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

Signed-off-by: Esteban Blanc <ebl...@baylibre.com>
Signed-off-by: Jerome Neanne <jnea...@baylibre.com>
---
 .../k3-j7200-common-proc-board-u-boot.dtsi    | 17 ++++++
 .../arm/dts/k3-j7200-r5-common-proc-board.dts | 56 ++++++++-----------
 2 files changed, 39 insertions(+), 34 deletions(-)

diff --git a/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi 
b/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi
index f57c2306ba..a633f045a5 100644
--- a/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi
+++ b/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi
@@ -120,6 +120,15 @@
 
 &wkup_i2c0 {
        bootph-pre-ram;
+       status = "okay";
+};
+
+&mcu_i2c0 {
+       status="okay";
+       tps65941_wd: tps65941_wd@12 {
+               compatible = "ti,tps65941_watchdog";
+               reg = <0x12>;
+       };
 };
 
 &main_i2c0 {
@@ -196,3 +205,11 @@
 &main_r5fss0 {
        ti,cluster-mode = <0>;
 };
+
+&tps659414 {
+       compatible = "ti,tps659411";
+};
+
+&lp876441 {
+       compatible = "ti,lp876441";
+};
diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts 
b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
index 55ad6153dd..aac776ee33 100644
--- a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
+++ b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
@@ -21,6 +21,27 @@
                firmware-loader = &fs_loader0;
        };
 
+       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;
+       };
+
        fs_loader0: fs_loader@0 {
                bootph-all;
                compatible = "u-boot,fs-loader";
@@ -125,13 +146,6 @@
                >;
        };
 
-       wkup_i2c0_pins_default: wkup-i2c0-pins-default {
-               pinctrl-single,pins = <
-                       J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) 
WKUP_I2C0_SCL */
-                       J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) 
WKUP_I2C0_SDA */
-               >;
-       };
-
        mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default {
                pinctrl-single,pins = <
                        J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* (E20) 
MCU_OSPI0_CLK.MCU_HYPERBUS0_CK */
@@ -246,34 +260,8 @@
        ti,driver-strength-ohm = <50>;
 };
 
-&wkup_i2c0 {
-       bootph-pre-ram;
-       lp876441: lp876441@4c {
-               compatible = "ti,lp876441";
-               reg = <0x4c>;
-               bootph-pre-ram;
-               pinctrl-names = "default";
-               pinctrl-0 = <&wkup_i2c0_pins_default>;
-               clock-frequency = <400000>;
-
-               regulators: regulators {
-                       bootph-pre-ram;
-                       buck1_reg: buck1 {
-                               /*VDD_CPU_AVS_REG*/
-                               regulator-name = "buck1";
-                               regulator-min-microvolt = <800000>;
-                               regulator-max-microvolt = <1250000>;
-                               regulator-always-on;
-                               regulator-boot-on;
-                               bootph-pre-ram;
-                       };
-               };
-       };
-
-};
-
 &wkup_vtm0 {
-       vdd-supply-2 = <&buck1_reg>;
+       vdd-supply-2 = <&buckb1_reg>;
        bootph-pre-ram;
 };
 
-- 
2.34.1

Reply via email to