Skip to content

Commit 6b5502c

Browse files
macromorganwens
authored andcommitted
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>
1 parent 2873085 commit 6b5502c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
serial0 = &uart0;
2222
};
2323

24+
battery: battery {
25+
compatible = "simple-battery";
26+
constant-charge-current-max-microamp = <1024000>;
27+
voltage-max-design-microvolt = <4200000>;
28+
};
29+
2430
chosen {
2531
stdout-path = "serial0:115200n8";
2632
};
@@ -217,6 +223,16 @@
217223
vin3-supply = <&reg_vcc5v>;
218224
vin4-supply = <&reg_vcc5v>;
219225

226+
axp_adc: adc {
227+
compatible = "x-powers,axp717-adc";
228+
#io-channel-cells = <1>;
229+
};
230+
231+
battery_power: battery-power {
232+
compatible = "x-powers,axp717-battery-power-supply";
233+
monitored-battery = <&battery>;
234+
};
235+
220236
regulators {
221237
reg_dcdc1: dcdc1 {
222238
regulator-always-on;
@@ -307,6 +323,11 @@
307323
/* unused */
308324
};
309325
};
326+
327+
usb_power: usb-power {
328+
compatible = "x-powers,axp717-usb-power-supply";
329+
input-current-limit-microamp = <1500000>;
330+
};
310331
};
311332
};
312333

0 commit comments

Comments
 (0)