Add PMIC node for J7200
v3 cover Add PMIC node for J7200
The J7200 EVM has PMIC LP876441 for supporting CPU AVS. This patchset adds dt nodes, compatible string, and configs to enable the corresponding driver.
v3:
- rebased to resolve minor conflicts against master
v2:
- rebased the changes are reordered patches 3/4
- https://lore.kernel.org/u-boot/[email protected]/
v1:
- https://lore.kernel.org/u-boot/[email protected]/
Gowtham Tammana (5):
power: pmic: tps65941: Add compatible for LP876441 arm/dts: k3-j7200-r5-common: Add pmic lp876441 node arm/dts: k3-j7200-r5-common: Add VTM node
arm/dts: k3-j7200-r5-common: Hook buck1_reg to vtm supply
configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent
configs
.../arm/dts/k3-j7200-r5-common-proc-board.dts | 38 +++++++++++++++++++ configs/j7200_evm_r5_defconfig | 7 ++++ drivers/power/pmic/tps65941.c | 1 + include/power/tps65941.h | 1 + 4 files changed, 47 insertions(+)
Signature · 1 line
2.32.0
PATCH v3 1/5 power: pmic: tps65941: Add compatible for LP876441
TI J7200 EVM has lp876441 pmic that is similar to tps65941. Add support for same with existing driver with new compatible.
---
v3:
- Added Acked by
https://lore.kernel.org/u-boot/[email protected]/
drivers/power/pmic/tps65941.c | 1 + include/power/tps65941.h | 1 + 2 files changed, 2 insertions(+)
drivers/power/pmic/tps65941.c +1 -0
@@ -72,6 +72,7 @@ static struct dm_pmic_ops tps65941_ops = {static const struct udevice_id tps65941_ids[] = { { .compatible ="ti,tps659411" , .data =TPS659411 }, { .compatible ="ti,tps659413" , .data =TPS659413 }, + { .compatible ="ti,lp876441" , .data =LP876441 }, { } };
include/power/tps65941.h +1 -0
@@ -2,6 +2,7 @@#define TPS659412 0x1#define TPS659413 0x2#define TPS659414 0x3 +#define LP876441 0x4/* I2C device address for pmic tps65941 */ #define TPS65941_I2C_ADDR (0x12 >> 1)
Signature · 1 line
2.32.0
PATCH v3 2/5 arm/dts: k3-j7200-r5-common: Add pmic lp876441 node
In reply to Gowtham TammanaAdd pmic lp876411 node needed for CPU AVS support.
--- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +26 -0
@@ -239,6 +239,32 @@ ti,driver-strength-ohm = <50>; }; +&wkup_i2c0 { + u-boot,dm-spl; + lp876441: lp876441@4c { + compatible = "ti,lp876441"; + reg = <0x4c>; + u-boot,dm-spl; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>; + + regulators: regulators { + u-boot,dm-spl; + buck1_reg: buck1 { + /*VDD_CPU_AVS_REG*/ + regulator-name = "buck1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-boot-on; + u-boot,dm-spl; + }; + }; + }; + +}; + &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>;
Signature · 1 line
2.32.0
Re: [PATCH v3 2/5] arm/dts: k3-j7200-r5-common: Add pmic lp876441 node
Quoted 14 lines · Gowtham Tammana
Add pmic lp876411 node needed for CPU AVS support.
Signed-off-by Gowtham Tammana <[email protected]>--- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)arch/arm/dts/k3-j7200-r5-common-proc-board.dts +0
-0@@ -239,6 +239,32 @@ ti,driver-strength-ohm = <50>; };
arch/arm/dts/k3-j7200-r5-common-proc-board.dts line 250
Quoted 10 lines
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +9
-0+&wkup_i2c0 { + u-boot,dm-spl; + lp876441: lp876441@4c { + compatible = "ti,lp876441"; + reg = <0x4c>; + u-boot,dm-spl; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>;
pls, send follow up fix to place pimux and freq props correctly in i2c node
Quoted 21 lines
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +17
-0+ + regulators: regulators { + u-boot,dm-spl; + buck1_reg: buck1 { + /*VDD_CPU_AVS_REG*/ + regulator-name = "buck1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-boot-on; + u-boot,dm-spl; + }; + }; + }; + +}; + &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>;
Signature · 2 lines
Best regards, grygorii
PATCH v3 3/5 arm/dts: k3-j7200-r5-common: Add VTM node
In reply to Gowtham TammanaAdd voltage and thermal management (VTM) node. The efuse values for the OPPs are stored under the VTM, and is needed for AVS class 0 support.
---
v3: resolved merge conflicts
arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +7 -0
@@ -89,6 +89,13 @@ <&mcu_secproxy 23>; u-boot,dm-spl; }; + + wkup_vtm0: vtm@42040000 { + compatible = "ti,am654-vtm", "ti,j721e-avs"; + reg = <0x0 0x42040000 0x0 0x330>; + power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; + #thermal-sensor-cells = <1>; + }; }; &dmsc {
Signature · 1 line
2.32.0
PATCH v3 4/5 arm/dts: k3-j7200-r5-common: Hook buck1_reg to vtm supply
In reply to Gowtham TammanaHook buck1_reg to vtm avs supply.
--- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +5 -0
@@ -272,6 +272,11 @@ }; +&wkup_vtm0 { + vdd-supply-2 = <&buck1_reg>; + u-boot,dm-spl; +}; + &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>;
Signature · 1 line
2.32.0
PATCH v3 5/5 configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent configs
In reply to Gowtham TammanaEnable AVS, PMIC and dependent configs.
---
v3: resolved merge conflicts
configs/j7200_evm_r5_defconfig | 7 +++++++ 1 file changed, 7 insertions(+)
configs/j7200_evm_r5_defconfig +7 -0
@@ -114,6 +114,13 @@ CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_SINGLE=y CONFIG_POWER_DOMAIN=y CONFIG_TI_POWER_DOMAIN=y +CONFIG_TI_SCI_POWER_DOMAIN=y +CONFIG_DM_PMIC=y +CONFIG_PMIC_TPS65941=y +CONFIG_DM_REGULATOR=y +CONFIG_SPL_DM_REGULATOR=y +CONFIG_DM_REGULATOR_TPS65941=y +CONFIG_K3_AVS0=y CONFIG_K3_SYSTEM_CONTROLLER=y CONFIG_REMOTEPROC_TI_K3_ARM64=y CONFIG_DM_RESET=y
Signature · 1 line
2.32.0
Quoted 8 lines · Gowtham Tammana
The J7200 EVM has PMIC LP876441 for supporting CPU AVS. This patchset adds dt nodes, compatible string, and configs to enable the corresponding driver.
v3:
- rebased to resolve minor conflicts against master[...]
Applied to https://source.denx.de/u-boot/custodians/u-boot-ti.git for-rc, thanks! [1/5] power: pmic: tps65941: Add compatible for LP876441
https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/d4a344c393 [2/5] arm/dts: k3-j7200-r5-common: Add pmic lp876441 node https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/cbd49ed9d6 [3/5] arm/dts: k3-j7200-r5-common: Add VTM node https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/993fa93f2d [4/5] arm/dts: k3-j7200-r5-common: Hook buck1_reg to vtm supply https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/9925c76752 [5/5] configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent configs https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/672758829a
--
Thanks and Regards,
Lokesh