[PATCH 07/15] arm64: dts: mediatek: radxa-nio-12l: Add MT6360 battery charger

AngeloGioacchino Del Regno posted 15 patches 10 months ago
There is a newer version of this series
[PATCH 07/15] arm64: dts: mediatek: radxa-nio-12l: Add MT6360 battery charger
Posted by AngeloGioacchino Del Regno 10 months ago
Enable the MT6360 PMIC's battery charger which also provides a regulator
the USB VBUS.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
index 221d7062d5ef..3b8880db49ff 100644
--- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
@@ -186,6 +186,17 @@ mt6360: pmic@34 {
 		#interrupt-cells = <1>;
 		pinctrl-0 = <&mt6360_pins>;
 
+		charger {
+			compatible = "mediatek,mt6360-chg";
+			richtek,vinovp-microvolt = <14500000>;
+
+			otg_vbus_regulator: usb-otg-vbus-regulator {
+				regulator-name = "usb-otg-vbus";
+				regulator-min-microvolt = <4425000>;
+				regulator-max-microvolt = <5825000>;
+			};
+		};
+
 		regulator {
 			compatible = "mediatek,mt6360-regulator";
 			LDO_VIN1-supply = <&vsys_buck>;
-- 
2.43.0
Re: [PATCH 07/15] arm64: dts: mediatek: radxa-nio-12l: Add MT6360 battery charger
Posted by Krzysztof Kozlowski 9 months, 4 weeks ago
On 12/01/2024 10:46, AngeloGioacchino Del Regno wrote:
> Enable the MT6360 PMIC's battery charger which also provides a regulator
> the USB VBUS.
> 
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Don't add new nodes one by one. This obfuscates entire picture.

Best regards,
Krzysztof