arm: dts: k3-j7200: Add PMIC node for CPU AVS
cover arm: dts: k3-j7200: Add PMIC node for CPU AVS
The J7200 EVM has PMIC LP876441 for supporting CPU AVS, addding nodes, compatible string, and configs to enable the corresponding driver to support AVS.
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: Hook buck1_reg to vtm supply arm/dts: k3-j7200-r5-common: Add VTM node
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 | 6 +++ drivers/power/pmic/tps65941.c | 1 + include/power/tps65941.h | 1 + 4 files changed, 46 insertions(+)
Signature · 1 line
2.28.0
PATCH 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.
--- 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.28.0
PATCH 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
@@ -182,6 +182,32 @@ ti,driver-strength-ohm = <50>; }; +&wkup_i2c0 { + u-boot,dm-spl; + lp876441: lp876441 at 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.28.0
PATCH 3/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
@@ -208,6 +208,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.28.0
PATCH 4/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.
--- 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
@@ -72,6 +72,13 @@ mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>; mbox-names = "tx", "rx"; }; + + wkup_vtm0: vtm at 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.28.0
PATCH 5/5 configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent configs
In reply to Gowtham TammanaEnable AVS, PMIC and dependent configs.
--- configs/j7200_evm_r5_defconfig | 6 ++++++ 1 file changed, 6 insertions(+)
configs/j7200_evm_r5_defconfig +6 -0
@@ -97,6 +97,12 @@ CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_SINGLE=y CONFIG_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.28.0