arm64: dts: ti: k3-j722s-evm: Enable PMIC
authorUdit Kumar <u-kumar1@ti.com>
Thu, 2 Jan 2025 10:38:14 +0000 (16:08 +0530)
committerNishanth Menon <nm@ti.com>
Wed, 8 Jan 2025 15:25:54 +0000 (09:25 -0600)
Add support for TPS6522x PMIC family on wakeup I2C0 bus.
This device provides regulators (bucks and LDOs), along with
GPIOs, and monitors SOC's MCU error signal.

Signed-off-by: Udit Kumar <u-kumar1@ti.com>
Link: https://lore.kernel.org/r/20250102103814.102499-1-u-kumar1@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j722s-evm.dts

index 796287c76b69873ee452f8bd2c8dace3a0fadb63..d184e9c1a0a598b1a15503978c96ed55f5782375 100644 (file)
                        J722S_IOPAD(0x00a0, PIN_OUTPUT, 1) /* (N24) GPMC0_WPn.AUDIO_EXT_REFCLK1 */
                >;
        };
+
+       pmic_irq_pins_default: pmic-irq-default-pins {
+               pinctrl-single,pins = <
+                       J722S_IOPAD(0x030, PIN_INPUT, 7) /* (K23) GPIO0_12 */
+               >;
+       };
+
 };
 
 &cpsw3g {
        clock-frequency = <400000>;
        status = "okay";
        bootph-all;
+
+       tps65224: pmic@48 {
+               compatible = "ti,tps65224-q1";
+               reg = <0x48>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pmic_irq_pins_default>;
+               interrupt-parent = <&main_gpio0>;
+               interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
+               ti,primary-pmic;
+
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               buck12-supply = <&vsys_io_3v3>;
+               buck3-supply = <&vsys_io_3v3>;
+               buck4-supply = <&vsys_io_3v3>;
+
+               ldo1-supply = <&vsys_io_3v3>;
+               ldo2-supply = <&vsys_io_3v3>;
+               ldo3-supply = <&vsys_io_3v3>;
+
+               regulators {
+
+                       buck1: buck1 {
+                               regulator-name = "vcc1v8_io_buck1";
+                               regulator-min-microvolt = <1800000>;
+                               regulator-max-microvolt = <1800000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                               bootph-all;
+                       };
+
+                       buck2: buck2 {
+                               regulator-name = "vcc1v1_ddr_buck2";
+                               regulator-min-microvolt = <1100000>;
+                               regulator-max-microvolt = <1100000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+
+                       buck3: buck3 {
+                               regulator-name = "vcc0v85_ram_buck3";
+                               regulator-min-microvolt = <850000>;
+                               regulator-max-microvolt = <850000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+
+                       buck4: buck4 {
+                               regulator-name = "vcc0v75_ioret_buck4";
+                               regulator-min-microvolt = <750000>;
+                               regulator-max-microvolt = <750000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+
+                       ldo1: ldo1 {
+                               regulator-name = "vdda1v8_pll_ldo1";
+                               regulator-min-microvolt = <1800000>;
+                               regulator-max-microvolt = <1800000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+
+                       ldo2: ldo2 {
+                               regulator-name = "dvdd3v3_ldo2";
+                               regulator-min-microvolt = <3300000>;
+                               regulator-max-microvolt = <3300000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+
+                       ldo3: ldo3 {
+                               regulator-name = "vdd1v85_phy_ldo3";
+                               regulator-min-microvolt = <1800000>;
+                               regulator-max-microvolt = <1800000>;
+                               regulator-boot-on;
+                               regulator-always-on;
+                       };
+              };
+       };
 };
 
 &k3_clks {