@@ -49,6 +49,37 @@
interrupt-controller;
#interrupt-cells = <1>;
+ axp_adc: adc {
+ compatible = "x-powers,axp803-adc";
+ #io-channel-cells = <1>;
+ };
+
+ axp_gpio: gpio {
+ compatible = "x-powers,axp803-gpio";
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ gpio0_ldo: gpio0-ldo {
+ pins = "GPIO0";
+ function = "ldo";
+ };
+
+ gpio1_ldo: gpio1-ldo {
+ pins = "GPIO1";
+ function = "ldo";
+ };
+ };
+
+ ac_power_supply: ac-power-supply {
+ compatible = "x-powers,axp803-ac-power-supply";
+ status = "disabled";
+ };
+
+ battery_power_supply: battery-power-supply {
+ compatible = "x-powers,axp803-battery-power-supply";
+ status = "disabled";
+ };
+
regulators {
/* Default work frequency for buck regulators */
x-powers,dcdc-freq = <3000>;
@@ -69,6 +69,14 @@
};
};
+&ac_power_supply {
+ status = "okay";
+};
+
+&battery_power_supply {
+ status = "okay";
+};
+
&ehci0 {
status = "okay";
};
Add AXP803 DT nodes for AC and battery power supplies. Enable AC and battery power supplies for sopine-baseboard. Signed-off-by: Oskari Lemmela <oskari@lemmela.net> --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++++++++++++++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 8 +++++ 2 files changed, 39 insertions(+)