From c4f897149ea56ab2f7389cc6df39c6c81391c8d3 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Sun, 13 Jul 2025 12:54:07 -0500 Subject: [PATCH] arm64: t210b01: enable max77812 Signed-off-by: Thomas Makin --- .../arm64/boot/dts/nvidia/tegra210b01-nx.dtsi | 69 ++++++++++++++++++- .../boot/dts/nvidia/tegra210b01-vali.dts | 2 +- 2 files changed, 69 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210b01-nx.dtsi b/arch/arm64/boot/dts/nvidia/tegra210b01-nx.dtsi index e98cc56647d9..0bf9575eb4fb 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210b01-nx.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210b01-nx.dtsi @@ -74,7 +74,74 @@ status = "okay"; clock-frequency = <400000>; - pmic: pmic@3c { + pmic_a: pmic@33 { + compatible = "maxim,max77812-regulator"; + reg = <0x33>; + maxim,soft-start-slew-rate = <5000>; + maxim,shutdown-slew-rate = <5000>; + maxim,ramp-up-slew-rate = <5000>; + maxim,ramp-down-slew-rate = <5000>; + status = "okay"; + + /* interrupt-parent = <&gpio>; */ + /* interrupts = ; */ + + regulators { + gpu_max_reg: m1vout { + regulator-name = "vdd-gpu"; + regulator-min-microvolt = <250000>; + regulator-max-microvolt = <1525000>; + /* regulator-max-microamp = <10000000>; */ /* 0x33 cfg */ + /* regulator-max-microamp = <15000000>; */ /* 0x31 cfg */ + regulator-init-microvolt = <800000>; + regulator-ramp-delay = <5000>; + regulator-enable-ramp-delay = <5000>; + regulator-disable-ramp-delay = <5000>; + maxim,peak-current-limit-ua = <7200000>; + }; + + m2vout { + regulator-name = "vdd-mvout2"; + regulator-min-microvolt = <250000>; + regulator-max-microvolt = <1525000>; + regulator-ramp-delay = <5000>; + regulator-enable-ramp-delay = <5000>; + regulator-disable-ramp-delay = <5000>; + maxim,peak-current-limit-ua = <7200000>; + }; + + ram_max_reg: m3vout { + status = "okay"; + regulator-name = "vddio-ddr"; + regulator-min-microvolt = <550000>; /* Set min lpddr4x normally allowed */ + regulator-max-microvolt = <650000>; /* Set max lpddr4x normally allowed */ + /* regulator-max-microamp = <5000000>; */ + regulator-always-on; + regulator-boot-on; + /* regulator-init-microvolt = <600000>; */ /* Controlled by bootloader */ + regulator-ramp-delay = <5000>; + regulator-enable-ramp-delay = <5000>; + regulator-disable-ramp-delay = <5000>; + maxim,peak-current-limit-ua = <7200000>; + }; + + cpu_max_reg: m4vout { + regulator-name = "vdd-cpu"; + regulator-min-microvolt = <250000>; + regulator-max-microvolt = <1525000>; + /* regulator-max-microamp = <5000000>; */ + regulator-always-on; + regulator-boot-on; + regulator-init-microvolt = <1000000>; + regulator-ramp-delay = <5000>; + regulator-enable-ramp-delay = <5000>; + regulator-disable-ramp-delay = <5000>; + maxim,peak-current-limit-ua = <7200000>; + }; + }; + }; + + pmic_b: pmic@3c { compatible = "maxim,max77620"; reg = <0x3c>; interrupts = ; diff --git a/arch/arm64/boot/dts/nvidia/tegra210b01-vali.dts b/arch/arm64/boot/dts/nvidia/tegra210b01-vali.dts index 5e35af2942ef..e4a175c554b3 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210b01-vali.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210b01-vali.dts @@ -49,7 +49,7 @@ }; i2c@7000d000 { - pmic: pmic@3c { + pmic_b: pmic@3c { regulators { /* Vali: Powers LDO 2V8 for Sio VDD * Powers LDO 1V8 for I2C1 VDDQ and ALC5639.