[PATCH v2 12/13] DONOTMERGE: arch: arm: dts: k3-j721s2: Add TPS6594 familly PMICs

Jerome Neanne jneanne at baylibre.com
Fri Apr 7 15:33:46 CEST 2023


Add support for TPS6594 PMIC family devices:
- regulators (bucks and LDOs) on main WKUP_I2C0 bus,
- watchdog on MCU_I2C0 bus.

Signed-off-by: Esteban Blanc <eblanc at baylibre.com>
Signed-off-by: Jerome Neanne <jneanne at baylibre.com>
---
 .../k3-j721s2-common-proc-board-u-boot.dtsi   | 29 +++++++++++-
 .../dts/k3-j721s2-r5-common-proc-board.dts    | 44 +++++++++++++++++++
 2 files changed, 71 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi
index 4fd6d36417..e249edeff4 100644
--- a/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi
+++ b/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi
@@ -21,8 +21,16 @@
 	};
 };
 
-&wkup_i2c0 {
-	bootph-pre-ram;
+&tps659411 {
+	compatible = "ti,tps659411";
+};
+
+&tps659414 {
+	compatible = "ti,tps659411";
+};
+
+&lp876411 {
+	compatible = "ti,lp876441";
 };
 
 &cbass_main {
@@ -47,6 +55,17 @@
 	chipid at 43000014 {
 		bootph-pre-ram;
 	};
+
+	mcu_i2c0: i2c at 40b00000 {
+		status = "okay";
+		pinctrl-names = "default";
+		pinctrl-0 = <&mcu_i2c0_pins_default>;
+
+		tps65941_wd: tps65941-wd at 12 {
+			compatible = "ti,tps65941_watchdog";
+			reg = <0x12>;
+		};
+	};
 };
 
 &mcu_navss {
@@ -101,6 +120,12 @@
 
 &wkup_pmx0 {
 	bootph-pre-ram;
+	mcu_i2c0_pins_default: mcu_i2c0_pins_default {
+		pinctrl-single,pins = <
+			J721S2_WKUP_IOPAD(0x108, PIN_INPUT, 0) /* (G24) MCU_I2C0_SCL */
+			J721S2_WKUP_IOPAD(0x10c, PIN_INPUT, 0) /* (J25) MCU_I2C0_SDA */
+		>;
+	};
 };
 
 &k3_pds {
diff --git a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts
index bc617022c1..a379b169d0 100644
--- a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts
+++ b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts
@@ -21,6 +21,38 @@
 		remoteproc1 = &a72_0;
 	};
 
+	evm_12v0: fixedregulator-evm12v0 {
+		/* main supply */
+		compatible = "regulator-fixed";
+		regulator-name = "evm_12v0";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vsys_3v3: fixedregulator-vsys3v3 {
+		/* Output of LM5140 */
+		compatible = "regulator-fixed";
+		regulator-name = "vsys_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&evm_12v0>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vsys_5v0: fixedregulator-vsys5v0 {
+		/* Output of LM5140 */
+		compatible = "regulator-fixed";
+		regulator-name = "vsys_5v0";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&evm_12v0>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
 	fs_loader0: fs_loader at 0 {
 		compatible = "u-boot,fs-loader";
 		bootph-all;
@@ -94,6 +126,13 @@
 			<&mcu_secproxy 23>;
 		bootph-pre-ram;
 	};
+
+	wkup_vtm0: vtm at 42040000 {
+		compatible = "ti,am654-vtm", "ti,j721e-avs";
+		reg = <0x0 0x42040000 0x0 0x330>;
+		power-domains = <&k3_pds 180 TI_SCI_PD_EXCLUSIVE>;
+		#thermal-sensor-cells = <1>;
+	};
 };
 
 &main_pmx0 {
@@ -195,4 +234,9 @@
 	ti,sci = <&dm_tifs>;
 };
 
+&wkup_vtm0 {
+	vdd-supply-2 = <&bucka1234_reg>;
+	bootph-pre-ram;
+};
+
 #include "k3-j721s2-common-proc-board-u-boot.dtsi"
-- 
2.34.1



More information about the U-Boot mailing list