mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
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:
parent
2873085a8c
commit
6b5502c1d4
@ -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 = <®_vcc5v>;
|
||||
vin4-supply = <®_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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user