diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2024-10-19 13:11:21 +0200 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2024-10-30 00:47:58 +0100 |
commit | a2c06140b92a0fde8587e7a413014701cf121836 (patch) | |
tree | 1633b34d43a24c01d92ba2578c56f26c29fcae61 | |
parent | ARM: dts: omap36xx: declare 1GHz OPP as turbo again (diff) | |
download | linux-a2c06140b92a0fde8587e7a413014701cf121836.tar.xz linux-a2c06140b92a0fde8587e7a413014701cf121836.zip |
ARM: dts: ti/omap: omap4-epson-embt2ws: add charger
Add charger and battery definition for the Epson Moverio BT-200 to make
charging working.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20241019111121.331477-1-andreas@kemnade.info
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
-rw-r--r-- | arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts index 6bc8c0397c29..c90f43cc2fae 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -17,6 +17,24 @@ reg = <0x80000000 0x40000000>; /* 1024M */ }; + battery: battery { + compatible = "simple-battery"; + device-chemistry = "lithium-ion"; + charge-full-design-microamp-hours = <2720000>; + voltage-max-design-microvolt = <4200000>; + voltage-min-design-microvolt = <3300000>; + + constant-charge-voltage-max-microvolt = <4200000>; + /* + * vendor kernel says max charge 1400000, input limit 900000 + * and charges only with dcp chargers. So it is unclear what + * is really allowed. Play safe for now and restrict things + * here. Maybe 900000 is just the limit of the vendor charger? + */ + constant-charge-current-max-microamp = <900000>; + charge-term-current-microamp = <200000>; + }; + backlight-left { compatible = "pwm-backlight"; pwms = <&twl_pwm 1 7812500>; @@ -198,6 +216,14 @@ #interrupt-cells = <1>; system-power-controller; + charger { + compatible = "ti,twl6032-charger", "ti,twl6030-charger"; + interrupts = <2>, <5>; + io-channels = <&gpadc 10>; + io-channel-names = "vusb"; + monitored-battery = <&battery>; + }; + rtc { compatible = "ti,twl4030-rtc"; interrupts = <11>; @@ -277,7 +303,7 @@ #pwm-cells = <2>; }; - gpadc { + gpadc: gpadc { compatible = "ti,twl6032-gpadc"; interrupts = <3>; #io-channel-cells = <1>; |