blob: a11590c66969b8c26144ba3574b4401d7c03ad59 [file] [log] [blame]
Google USB Power Monitor
Required properties:
- compatible: "google,usb-power-monitor"
Optional properties:
- bc_chg_det-gpio gpio pin CHG_DET for BC 1.2
- typec_power_supply typec power supply phandle, have to support get
property of POWER_SUPPLY_PROP_ONLINE and
POWER_SUPPLY_PROP_CURRENT_MAX.
- #thermal-sensor-cells export to thermal zone
Example:
usb-power-monitor {
compatible = "google,usb-power-monitor";
bc_chg_det-gpio = <&gpio GPIOZ_2 GPIO_ACTIVE_HIGH>;
typec_power_supply = <&rt1711h>;
#thermal-sensor-cells = <0>;
};