Skip to content

Commit 7422115

Browse files
olemmelawens
authored andcommitted
arm64: dts: allwinner: axp803: add AC and battery power supplies
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>
1 parent c56689e commit 7422115

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

arch/arm64/boot/dts/allwinner/axp803.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,39 @@
4949
interrupt-controller;
5050
#interrupt-cells = <1>;
5151

52+
ac_power_supply: ac-power-supply {
53+
compatible = "x-powers,axp803-ac-power-supply",
54+
"x-powers,axp813-ac-power-supply";
55+
status = "disabled";
56+
};
57+
58+
axp_adc: adc {
59+
compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
60+
#io-channel-cells = <1>;
61+
};
62+
63+
axp_gpio: gpio {
64+
compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
65+
gpio-controller;
66+
#gpio-cells = <2>;
67+
68+
gpio0_ldo: gpio0-ldo {
69+
pins = "GPIO0";
70+
function = "ldo";
71+
};
72+
73+
gpio1_ldo: gpio1-ldo {
74+
pins = "GPIO1";
75+
function = "ldo";
76+
};
77+
};
78+
79+
battery_power_supply: battery-power-supply {
80+
compatible = "x-powers,axp803-battery-power-supply",
81+
"x-powers,axp813-battery-power-supply";
82+
status = "disabled";
83+
};
84+
5285
regulators {
5386
/* Default work frequency for buck regulators */
5487
x-powers,dcdc-freq = <3000>;

0 commit comments

Comments
 (0)