Re: [PATCH 0/1] usb: typec: tcpci: read the VBUS_VOLTAGE register

From: Guenter Roeck
Date: Tue May 07 2019 - 21:48:44 EST

On 5/7/19 5:40 PM, Angus Ainslie (Purism) wrote:
I don't have a setup that I can test this code right now.

I did test the tcpci_get_vbus_voltage and on my setup it is always 0.

Odd. PTN5110 is supposed to support it, though the datasheet is a bit vague about it.
It may be disabled. Did you check the status of POWER_CONTROL.VBUS_VOLTAGEMonitor ?

I don't currently have setup that I can adjust the vbus voltage to
trigger the fault.

Angus Ainslie (Purism) (1):
usb: typec: tcpci: add functions to read the VBUS voltage

drivers/usb/typec/tcpm/tcpci.c | 35 ++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)

In general, an introductory patch is only useful if there is more than one patch.