Skip to content

Instantly share code, notes, and snippets.

@amazingfate
Created July 23, 2022 13:09
Show Gist options
  • Save amazingfate/1a294b3076a23ad6f56ce67876aad316 to your computer and use it in GitHub Desktop.
Save amazingfate/1a294b3076a23ad6f56ce67876aad316 to your computer and use it in GitHub Desktop.
[ 2.213318] typec_fusb302 4-0022: Looking up vbus-supply from device tree
[ 2.214157] typec_fusb302 4-0022: sw reset
[ 2.217911] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 2.217923] typec_fusb302 4-0022: Setting usb_comm capable false
[ 2.222564] typec_fusb302 4-0022: pd := off
[ 2.222574] typec_fusb302 4-0022: vbus is already Off
[ 2.222581] typec_fusb302 4-0022: charge is already Off
[ 2.222589] typec_fusb302 4-0022: vconn is already Off
[ 2.222596] typec_fusb302 4-0022: Setting voltage/current limit 0 mV 0 mA
[ 2.222607] typec_fusb302 4-0022: polarity 0
[ 2.222615] typec_fusb302 4-0022: Requesting mux state 0, usb-role 0, orientation 0
[ 2.223447] typec_fusb302 4-0022: pd header := Sink, Device
[ 2.223476] typec_fusb302 4-0022: state change INVALID_STATE -> SNK_UNATTACHED [rev1 NONE_AMS]
[ 2.223490] typec_fusb302 4-0022: cc1=Open, cc2=Open
[ 2.223499] typec_fusb302 4-0022: CC1: 0 -> 0, CC2: 0 -> 0 [state SNK_UNATTACHED, polarity 0, disconnected]
[ 2.223510] typec_fusb302 4-0022: state change SNK_UNATTACHED -> PORT_RESET [rev1 NONE_AMS]
[ 2.223519] typec_fusb302 4-0022: 4-0022: registered
[ 2.223522] typec_fusb302 4-0022: Setting usb_comm capable false
[ 2.228168] typec_fusb302 4-0022: pd := off
[ 2.228178] typec_fusb302 4-0022: vbus is already Off
[ 2.228185] typec_fusb302 4-0022: charge is already Off
[ 2.228192] typec_fusb302 4-0022: vconn is already Off
[ 2.228200] typec_fusb302 4-0022: Setting voltage/current limit 0 mV 0 mA
[ 2.228212] typec_fusb302 4-0022: polarity 0
[ 2.228220] typec_fusb302 4-0022: Requesting mux state 0, usb-role 0, orientation 0
[ 2.229024] typec_fusb302 4-0022: pd header := Sink, Device
[ 2.229036] typec_fusb302 4-0022: cc:=2
[ 2.229044] typec_fusb302 4-0022: cc := Rd
[ 2.234447] typec_fusb302 4-0022: pending state change PORT_RESET -> PORT_RESET_WAIT_OFF @ 100 ms [rev1 NONE_AMS]
[ 2.234460] typec_fusb302 4-0022: state change PORT_RESET -> PORT_RESET_WAIT_OFF [delayed 100 ms]
[ 2.234470] typec_fusb302 4-0022: pending state change PORT_RESET_WAIT_OFF -> SNK_UNATTACHED @ 920 ms [rev1 NONE_AMS]
[ 3.154841] typec_fusb302 4-0022: state change PORT_RESET_WAIT_OFF -> SNK_UNATTACHED [delayed 920 ms]
[ 3.154899] typec_fusb302 4-0022: Start toggling
[ 3.159713] typec_fusb302 4-0022: start drp toggling
[ 3.159755] typec_fusb302 4-0022: state change SNK_UNATTACHED -> TOGGLING [rev1 NONE_AMS]
[ 3.161721] typec_fusb302 4-0022: IRQ: 0x80, a: 0x00, b: 0x00, status0: 0x83
[ 3.161744] typec_fusb302 4-0022: IRQ: VBUS_OK, vbus=On
[ 3.165586] typec_fusb302 4-0022: IRQ: 0x00, a: 0x40, b: 0x00, status0: 0x83
[ 3.165609] typec_fusb302 4-0022: IRQ: TOGDONE
[ 3.171482] typec_fusb302 4-0022: detected cc1=Rp-3.0, cc2=Open
[ 3.171527] typec_fusb302 4-0022: cc1=Rp-3.0, cc2=Open
[ 3.171559] typec_fusb302 4-0022: CC1: 0 -> 5, CC2: 0 -> 0 [state TOGGLING, polarity 0, connected]
[ 3.171584] typec_fusb302 4-0022: state change TOGGLING -> SNK_ATTACH_WAIT [rev1 NONE_AMS]
[ 3.171612] typec_fusb302 4-0022: pending state change SNK_ATTACH_WAIT -> SNK_DEBOUNCED @ 200 ms [rev1 NONE_AMS]
[ 3.184920] typec_fusb302 4-0022: IRQ: 0x41, a: 0x00, b: 0x00, status0: 0x93
[ 3.184953] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.186824] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x00, status0: 0x93
[ 3.186856] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.217391] typec_fusb302 4-0022: BC_LVL handler, status0=0x93
[ 3.333877] typec_fusb302 4-0022: IRQ: 0x41, a: 0x00, b: 0x00, status0: 0x93
[ 3.333928] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.335817] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x00, status0: 0x93
[ 3.335858] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.367660] typec_fusb302 4-0022: BC_LVL handler, status0=0x93
[ 3.371885] typec_fusb302 4-0022: state change SNK_ATTACH_WAIT -> SNK_DEBOUNCED [delayed 200 ms]
[ 3.371948] typec_fusb302 4-0022: state change SNK_DEBOUNCED -> SNK_ATTACHED [rev1 NONE_AMS]
[ 3.371974] typec_fusb302 4-0022: polarity 0
[ 3.371995] typec_fusb302 4-0022: Requesting mux state 1, usb-role 2, orientation 1
[ 3.372890] typec_fusb302 4-0022: pd header := Sink, Device
[ 3.372917] typec_fusb302 4-0022: state change SNK_ATTACHED -> SNK_STARTUP [rev1 NONE_AMS]
[ 3.372980] typec_fusb302 4-0022: state change SNK_STARTUP -> SNK_DISCOVERY [rev3 NONE_AMS]
[ 3.373013] typec_fusb302 4-0022: Setting voltage/current limit 5000 mV 3000 mA
[ 3.373042] typec_fusb302 4-0022: vbus=0 charge:=1
[ 3.373061] typec_fusb302 4-0022: vbus is already Off
[ 3.373080] typec_fusb302 4-0022: state change SNK_DISCOVERY -> SNK_WAIT_CAPABILITIES [rev3 NONE_AMS]
[ 3.377935] typec_fusb302 4-0022: pd := on
[ 3.377962] typec_fusb302 4-0022: pending state change SNK_WAIT_CAPABILITIES -> SNK_SOFT_RESET @ 310 ms [rev3 NONE_AMS]
[ 3.483089] typec_fusb302 4-0022: IRQ: 0x41, a: 0x00, b: 0x00, status0: 0x93
[ 3.483134] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.485273] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x01, status0: 0x93
[ 3.485317] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.485347] typec_fusb302 4-0022: IRQ: PD sent good CRC
[ 3.489485] typec_fusb302 4-0022: PD message header: 51a1
[ 3.489536] typec_fusb302 4-0022: PD message len: 20
[ 3.489795] typec_fusb302 4-0022: PD RX, header: 0x51a1 [1]
[ 3.489833] typec_fusb302 4-0022: PDO 0: type 0, 5000 mV, 3000 mA [E]
[ 3.489859] typec_fusb302 4-0022: PDO 1: type 0, 9000 mV, 3000 mA []
[ 3.489882] typec_fusb302 4-0022: PDO 2: type 0, 12000 mV, 2500 mA []
[ 3.489904] typec_fusb302 4-0022: PDO 3: type 0, 15000 mV, 2000 mA []
[ 3.489926] typec_fusb302 4-0022: PDO 4: type 0, 20000 mV, 1500 mA []
[ 3.489948] typec_fusb302 4-0022: state change SNK_WAIT_CAPABILITIES -> SNK_NEGOTIATE_CAPABILITIES [rev3 POWER_NEGOTIATION]
[ 3.489979] typec_fusb302 4-0022: Setting usb_comm capable false
[ 3.490017] typec_fusb302 4-0022: cc=2 cc1=5 cc2=0 vbus=0 vconn=sink polarity=0
[ 3.490041] typec_fusb302 4-0022: Requesting PDO 4: 20000 mV, 1500 mA
[ 3.490061] typec_fusb302 4-0022: PD TX, header: 0x1082
[ 3.492579] typec_fusb302 4-0022: sending PD message header: 1082
[ 3.492603] typec_fusb302 4-0022: sending PD message len: 4
[ 3.495004] typec_fusb302 4-0022: IRQ: 0x41, a: 0x04, b: 0x00, status0: 0x93
[ 3.495046] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.495074] typec_fusb302 4-0022: IRQ: PD tx success
[ 3.496841] typec_fusb302 4-0022: PD message header: 1a1
[ 3.496854] typec_fusb302 4-0022: PD message len: 0
[ 3.496864] typec_fusb302 4-0022: PD TX complete, status: 0
[ 3.496879] typec_fusb302 4-0022: pending state change SNK_NEGOTIATE_CAPABILITIES -> HARD_RESET_SEND @ 60 ms [rev3 POWER_NEGOTIATION]
[ 3.498688] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x01, status0: 0x93
[ 3.498711] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.498724] typec_fusb302 4-0022: IRQ: PD sent good CRC
[ 3.500482] typec_fusb302 4-0022: PD message header: 3a3
[ 3.500496] typec_fusb302 4-0022: PD message len: 0
[ 3.500531] typec_fusb302 4-0022: PD RX, header: 0x3a3 [1]
[ 3.500559] typec_fusb302 4-0022: state change SNK_NEGOTIATE_CAPABILITIES -> SNK_TRANSITION_SINK [rev3 POWER_NEGOTIATION]
[ 3.500588] typec_fusb302 4-0022: Setting standby current 5000 mV @ 500 mAi
[ 3.500609] typec_fusb302 4-0022: Setting voltage/current limit 5000 mV 500 mA
[ 3.500640] typec_fusb302 4-0022: pending state change SNK_TRANSITION_SINK -> HARD_RESET_SEND @ 500 ms [rev3 POWER_NEGOTIATION]
[ 3.530965] typec_fusb302 4-0022: BC_LVL handler, status0=0x93
[ 3.674285] typec_fusb302 4-0022: IRQ: 0x41, a: 0x00, b: 0x01, status0: 0x93
[ 3.674357] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.674386] typec_fusb302 4-0022: IRQ: PD sent good CRC
[ 3.676442] typec_fusb302 4-0022: PD message header: 5a6
[ 3.676502] typec_fusb302 4-0022: PD message len: 0
[ 3.676777] typec_fusb302 4-0022: PD RX, header: 0x5a6 [1]
[ 3.676814] typec_fusb302 4-0022: Setting voltage/current limit 20000 mV 1500 mA
[ 3.676868] typec_fusb302 4-0022: state change SNK_TRANSITION_SINK -> SNK_READY [rev3 POWER_NEGOTIATION]
[ 3.677095] typec_fusb302 4-0022: AMS POWER_NEGOTIATION finished
[ 3.677126] typec_fusb302 4-0022: AMS DISCOVER_IDENTITY start
[ 3.677148] typec_fusb302 4-0022: PD TX, header: 0x128f
[ 3.678630] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x00, status0: 0x93
[ 3.678671] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.681160] typec_fusb302 4-0022: sending PD message header: 128f
[ 3.681185] typec_fusb302 4-0022: sending PD message len: 4
[ 3.683142] typec_fusb302 4-0022: IRQ: 0x41, a: 0x00, b: 0x00, status0: 0x93
[ 3.683256] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.685170] typec_fusb302 4-0022: IRQ: 0x51, a: 0x04, b: 0x00, status0: 0xd2
[ 3.685195] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.685208] typec_fusb302 4-0022: IRQ: PD tx success
[ 3.686941] typec_fusb302 4-0022: PD message header: 3a1
[ 3.686963] typec_fusb302 4-0022: PD message len: 0
[ 3.686975] typec_fusb302 4-0022: PD TX complete, status: 0
[ 3.688796] typec_fusb302 4-0022: IRQ: 0x51, a: 0x00, b: 0x01, status0: 0x93
[ 3.688821] typec_fusb302 4-0022: IRQ: BC_LVL, handler pending
[ 3.688834] typec_fusb302 4-0022: IRQ: PD sent good CRC
[ 3.691420] typec_fusb302 4-0022: PD message header: 7b0
[ 3.691442] typec_fusb302 4-0022: PD message len: 0
[ 3.691473] typec_fusb302 4-0022: PD RX, header: 0x7b0 [1]
[ 3.691504] typec_fusb302 4-0022: AMS DISCOVER_IDENTITY finished
[ 3.720841] typec_fusb302 4-0022: BC_LVL handler, status0=0x93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment