On Fri, Mar 24, 2023 at 12:53:09AM +0000, Bryan O'Donoghue wrote: > On 24/03/2023 00:43, Jianhua Lu wrote: > >> Can you show the printout of *(pmic_typec->base + TYPEC_SM_STATUS_REG) ? > > [ 53.120005] hub 1-1:1.0: 4 ports detected > > [ 58.675134] typec base is 0x1500 > > [ 58.675148] TYPEC_SM_STATUS_REG is 0xa > > [ 58.675153] typec status reg is 0x150a > > It should be correct. > >> And can you check your schematics and verify VBUS is supplied by > >> pm8150b_vbus and not say by an external IC ? > > I haven't schematics, so I can only use hacking code to test it. > > Could you show the state of TYPEC_MISC_STATUS_REG @ 0x0b ? when connected to usb-c, it outputs: [ 47.111552] debug: typec misc status is 0xc0 when disconnected to usb-c, it outputs: [ 64.061706] debug: typec misc status is 0x42 > > I wonder if BIT(5) TYPEC_VBUS_DETECT is set ? > > BTW what sort of device have you connected here and is it self-powered ? It is a usb-c to 4-usb host hub without external supplies. > > --- > bod