arm64: dts: allwinner: h700: Add charger for Anbernic RG35XX

Add the necessary nodes for the AXP717 to allow for monitoring the USB
and battery charger.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20240821215456.962564-16-macroalpha82@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
Chris Morgan 2024-08-21 16:54:56 -05:00 committed by Chen-Yu Tsai
parent 2873085a8c
commit 6b5502c1d4

View File

@ -21,6 +21,12 @@
serial0 = &uart0;
};
battery: battery {
compatible = "simple-battery";
constant-charge-current-max-microamp = <1024000>;
voltage-max-design-microvolt = <4200000>;
};
chosen {
stdout-path = "serial0:115200n8";
};
@ -217,6 +223,16 @@
vin3-supply = <&reg_vcc5v>;
vin4-supply = <&reg_vcc5v>;
axp_adc: adc {
compatible = "x-powers,axp717-adc";
#io-channel-cells = <1>;
};
battery_power: battery-power {
compatible = "x-powers,axp717-battery-power-supply";
monitored-battery = <&battery>;
};
regulators {
reg_dcdc1: dcdc1 {
regulator-always-on;
@ -307,6 +323,11 @@
/* unused */
};
};
usb_power: usb-power {
compatible = "x-powers,axp717-usb-power-supply";
input-current-limit-microamp = <1500000>;
};
};
};