PTN5110 itself supports vSafe0V detection and auto discharge disconnect capabilities. This will enable these feature. Signed-off-by: Xu Yang <xu.yang_2@xxxxxxx> --- drivers/usb/typec/tcpm/tcpci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/typec/tcpm/tcpci.c b/drivers/usb/typec/tcpm/tcpci.c index 698d00b7fce9..c128c24f8603 100644 --- a/drivers/usb/typec/tcpm/tcpci.c +++ b/drivers/usb/typec/tcpm/tcpci.c @@ -863,6 +863,9 @@ static int tcpci_probe(struct i2c_client *client) i2c_set_clientdata(client, chip); + chip->data.vbus_vsafe0v = 1; + chip->data.auto_discharge_disconnect = 1; + /* Disable chip interrupts before requesting irq */ err = regmap_raw_write(chip->data.regmap, TCPC_ALERT_MASK, &val, sizeof(u16)); -- 2.34.1