From: Jerome Neanne <jnea...@baylibre.com>

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 <ebl...@baylibre.com>
Signed-off-by: Jerome Neanne <jnea...@baylibre.com>
Signed-off-by: Apelete Seketeli <aseket...@baylibre.com>
---
 .../k3-j721s2-common-proc-board-u-boot.dtsi   | 37 +++++++++++++++-
 .../dts/k3-j721s2-r5-common-proc-board.dts    | 44 +++++++++++++++++++
 2 files changed, 80 insertions(+), 1 deletion(-)

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..cb9f9ab86d 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,26 @@
        };
 };
 
-&wkup_i2c0 {
+&wkup_i2c0{
        bootph-pre-ram;
+       tps659411: pmic@48 {
+               bootph-pre-ram;
+               compatible = "ti,tps659411";
+               regulators {
+                       bootph-pre-ram;
+                       bucka1234: buck1234 {
+                               bootph-pre-ram;
+                       };
+               };
+       };
+};
+
+&tps659414 {
+       compatible = "ti,tps659411";
+};
+
+&lp876411 {
+       compatible = "ti,lp876441";
 };
 
 &cbass_main {
@@ -47,6 +65,17 @@
        chipid@43000014 {
                bootph-pre-ram;
        };
+
+       mcu_i2c0: i2c@40b00000 {
+               status = "okay";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mcu_i2c0_pins_default>;
+
+               tps65941_wd: watchdog@12 {
+                       compatible = "ti,tps65941_watchdog";
+                       reg = <0x12>;
+               };
+       };
 };
 
 &mcu_navss {
@@ -101,6 +130,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 e02b334d10..8a24002045 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@0 {
                compatible = "u-boot,fs-loader";
                bootph-all;
@@ -95,6 +127,13 @@
                        <&mcu_secproxy 23>;
                bootph-pre-ram;
        };
+
+       wkup_vtm0: vtm@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 {
@@ -196,4 +235,9 @@
        ti,sci = <&dm_tifs>;
 };
 
+&wkup_vtm0 {
+       vdd-supply-2 = <&bucka1234>;
+       bootph-pre-ram;
+};
+
 #include "k3-j721s2-common-proc-board-u-boot.dtsi"
-- 
2.34.1

Reply via email to