Re: [PATCH V5 5/7] phy: tegra: xusb: Add support for charger detect

2020-08-31 Thread Vinod Koul
On 20-07-20, 15:25, Nagarjuna Kristam wrote: > +#define USB2_BATTERY_CHRG_OTGPADX_CTL0(x)(0x80 + (x) * 0x40) > +#define PD_CHG BIT(0) > +#define VDCD_DET_FILTER_EN BIT(4) > +#define VDAT_DETBIT(5) > +#define

[PATCH V5 5/7] phy: tegra: xusb: Add support for charger detect

2020-07-20 Thread Nagarjuna Kristam
Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of usb-phy to provide needed functionalities. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V5: - No cha