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

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>
Signed-off-by: Apelete Seketeli <aseket...@baylibre.com>
---
 .../k3-j7200-common-proc-board-u-boot.dtsi    | 27 +++++++++
 .../arm/dts/k3-j7200-r5-common-proc-board.dts | 56 ++++++++-----------
 2 files changed, 49 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..5088f918e8 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: watchdog@12 {
+               compatible = "ti,tps65941_watchdog";
+               reg = <0x12>;
+       };
 };
 
 &main_i2c0 {
@@ -196,3 +205,21 @@
 &main_r5fss0 {
        ti,cluster-mode = <0>;
 };
+
+&wkup_i2c0 {
+       bootph-pre-ram;
+       lp876441: pmic@4c {
+               bootph-pre-ram;
+               compatible = "ti,lp876441";
+               regulators {
+                       bootph-pre-ram;
+                       buckb1: buck1 {
+                               bootph-pre-ram;
+                       };
+               };
+       };
+};
+
+&tps659414 {
+       compatible = "ti,tps659411";
+};
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 e62f9218e8..1318edf9af 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";
@@ -126,13 +147,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 */
@@ -247,35 +261,9 @@
        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>;
        bootph-pre-ram;
+       vdd-supply-2 = <&buckb1>;
 };
 
 &main_i2c0 {
-- 
2.34.1

Reply via email to