arm64: dts: allwinner: axp803: add AC and battery power supplies
authorOskari Lemmela <oskari@lemmela.net>
Tue, 20 Nov 2018 17:52:06 +0000 (19:52 +0200)
committerChen-Yu Tsai <wens@csie.org>
Fri, 30 Nov 2018 08:25:56 +0000 (16:25 +0800)
Parts of the AXP803 are compatible with their counterparts on the AXP813.
Add DT nodes ADC, GPIO, AC and battery power supplies.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Reviewed-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/axp803.dtsi

index e5eae8bafc422ca4a33f4d34c0109ef90c184563..c3a618e1279a5b75419be383205995f96eb598dc 100644 (file)
        interrupt-controller;
        #interrupt-cells = <1>;
 
+       ac_power_supply: ac-power-supply {
+               compatible = "x-powers,axp803-ac-power-supply",
+                            "x-powers,axp813-ac-power-supply";
+               status = "disabled";
+       };
+
+       axp_adc: adc {
+               compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
+               #io-channel-cells = <1>;
+       };
+
+       axp_gpio: gpio {
+               compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio0_ldo: gpio0-ldo {
+                       pins = "GPIO0";
+                       function = "ldo";
+               };
+
+               gpio1_ldo: gpio1-ldo {
+                       pins = "GPIO1";
+                       function = "ldo";
+               };
+       };
+
+       battery_power_supply: battery-power-supply {
+               compatible = "x-powers,axp803-battery-power-supply",
+                            "x-powers,axp813-battery-power-supply";
+               status = "disabled";
+       };
+
        regulators {
                /* Default work frequency for buck regulators */
                x-powers,dcdc-freq = <3000>;