ARM: dts: stm32: add PWR regulators support on stm32mp131
Subsystems (3)
PATCH 1/2 ARM: dts: stm32: add PWR regulators support on stm32mp131
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear RCC_SECCFGR, is disabled by default and can only be enabled on board DT level.
---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- arch/arm/dts/stm32mp131.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/dts/stm32mp131.dtsi +24 -0
@@ -1092,6 +1092,30 @@ <&scmi_clk CK_SCMI_LSI>; }; + pwr_regulators: pwr@50001000 { + compatible = "st,stm32mp1,pwr-reg"; + reg = <0x50001000 0x10>; + status = "disabled"; + + reg11: reg11 { + regulator-name = "reg11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + }; + + reg18: reg18 { + regulator-name = "reg18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + usb33: usb33 { + regulator-name = "usb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + exti: interrupt-controller@5000d000 { compatible = "st,stm32mp13-exti", "syscon"; interrupt-controller;
Signature · 1 line
2.43.0
PATCH 2/2 ARM: stm32: Make PWR regulator driver available on STM32MP13xx
This patch makes STM32 PWR regulators available on stm32mp13xx. This requires TFA to clear RCC_SECCFGR, is disabled by default on stm32mp13xx and can only be enabled on board config level.
---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- arch/arm/mach-stm32mp/Kconfig | 17 +++++++++++++++++ arch/arm/mach-stm32mp/Kconfig.15x | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-)
arch/arm/mach-stm32mp/Kconfig +17 -0
@@ -155,4 +155,21 @@ source "arch/arm/mach-stm32mp/Kconfig.13x" source "arch/arm/mach-stm32mp/Kconfig.15x" source "arch/arm/mach-stm32mp/Kconfig.25x" source "arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig" + +config STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR" + depends on DM_REGULATOR && DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR. + +config SPL_STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR in SPL" + depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR in SPL. + endif
arch/arm/mach-stm32mp/Kconfig.15x +0 -16
@@ -77,22 +77,6 @@ config TARGET_ICORE_STM32MP1 endchoice -config STM32MP15_PWR - bool "Enable driver for STM32MP15x PWR" - depends on DM_REGULATOR && DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR. - -config SPL_STM32MP15_PWR - bool "Enable driver for STM32MP15x PWR in SPL" - depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR in SPL. - config TEXT_BASE default 0xC0100000
Signature · 1 line
2.43.0
Re: [PATCH 2/2] ARM: stm32: Make PWR regulator driver available on STM32MP13xx
Quoted 60 lines · Marek Vasut
This patch makes STM32 PWR regulators available on stm32mp13xx. This requires TFA to clear
RCC_SECCFGR, is disabled by default on stm32mp13xx and can only be enabled on board config level.Signed-off-by Marek Vasut <[email protected]>---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- arch/arm/mach-stm32mp/Kconfig | 17 +++++++++++++++++ arch/arm/mach-stm32mp/Kconfig.15x | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-)arch/arm/mach-stm32mp/Kconfig +17
-0@@ -155,4 +155,21 @@ source "arch/arm/mach-stm32mp/Kconfig.13x" source "arch/arm/mach-stm32mp/Kconfig.15x" source "arch/arm/mach-stm32mp/Kconfig.25x" source "arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig" + +config STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR" + depends on DM_REGULATOR && DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR. + +config SPL_STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR in SPL" + depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR in SPL. + endifarch/arm/mach-stm32mp/Kconfig.15x +0
-9@@ -77,22 +77,6 @@ config TARGET_ICORE_STM32MP1 endchoice -config STM32MP15_PWR - bool "Enable driver for STM32MP15x PWR" - depends on DM_REGULATOR && DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR. - -config SPL_STM32MP15_PWR
arch/arm/mach-stm32mp/Kconfig.15x config TARGET_ICORE_STM32MP1 · line 82
Quoted 10 lines
arch/arm/mach-stm32mp/Kconfig.15x +0
-7- bool "Enable driver for STM32MP15x PWR in SPL" - depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR in SPL. - config TEXT_BASE default 0xC0100000
Thanks
Patrice
Re: [PATCH 2/2] ARM: stm32: Make PWR regulator driver available on STM32MP13xx
In reply to Marek VasutQuoted 60 lines · Marek Vasut
This patch makes STM32 PWR regulators available on stm32mp13xx. This requires TFA to clear
RCC_SECCFGR, is disabled by default on stm32mp13xx and can only be enabled on board config level.Signed-off-by Marek Vasut <[email protected]>---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- arch/arm/mach-stm32mp/Kconfig | 17 +++++++++++++++++ arch/arm/mach-stm32mp/Kconfig.15x | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-)arch/arm/mach-stm32mp/Kconfig +17
-0@@ -155,4 +155,21 @@ source "arch/arm/mach-stm32mp/Kconfig.13x" source "arch/arm/mach-stm32mp/Kconfig.15x" source "arch/arm/mach-stm32mp/Kconfig.25x" source "arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig" + +config STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR" + depends on DM_REGULATOR && DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR. + +config SPL_STM32MP15_PWR + bool "Enable driver for STM32MP15x PWR in SPL" + depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC && (STM32MP13X || STM32MP15X) + default y if STM32MP15X + help + This config enables implementation of driver-model pmic and + regulator uclass features for access to STM32MP15x PWR in SPL. + endifarch/arm/mach-stm32mp/Kconfig.15x +0
-9@@ -77,22 +77,6 @@ config TARGET_ICORE_STM32MP1 endchoice -config STM32MP15_PWR - bool "Enable driver for STM32MP15x PWR" - depends on DM_REGULATOR && DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR. - -config SPL_STM32MP15_PWR
arch/arm/mach-stm32mp/Kconfig.15x config TARGET_ICORE_STM32MP1 · line 82
Quoted 10 lines
arch/arm/mach-stm32mp/Kconfig.15x +0
-7- bool "Enable driver for STM32MP15x PWR in SPL" - depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC - default y - help - This config enables implementation of driver-model pmic and - regulator uclass features for access to STM32MP15x PWR in SPL. - config TEXT_BASE default 0xC0100000
Applied to u-boot-stm32/next
Thanks
Patrice
Quoted 5 lines · Marek Vasut
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear
RCC_SECCFGR, is disabled by default and can only be enabled on board DT level.Signed-off-by Marek Vasut <[email protected]>
It seems these patches have been missed from the recent PR ?
Is there any feedback on those patches ?
Quoted 10 lines · Marek Vasut
Quoted 5 lines · Marek Vasut
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear
RCC_SECCFGR, is disabled by default and can only be enabled on board DT level.Signed-off-by Marek Vasut <[email protected]>It seems these patches have been missed from the recent PR ?
Is there any feedback on those patches ?
Hi Marek
Yes, these patches was voluntary suspended on our side due to internal discussion. On my side these patches are ok. They will be part on next STM32 pull request.
Thanks
Patrice
Quoted 41 lines · Marek Vasut
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear
RCC_SECCFGR, is disabled by default and can only be enabled on board DT level.Signed-off-by Marek Vasut <[email protected]>---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- arch/arm/dts/stm32mp131.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/dts/stm32mp131.dtsi +17
-0@@ -1092,6 +1092,30 @@ <&scmi_clk CK_SCMI_LSI>; }; + pwr_regulators: pwr@50001000 { + compatible = "st,stm32mp1,pwr-reg"; + reg = <0x50001000 0x10>; + status = "disabled"; + + reg11: reg11 { + regulator-name = "reg11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + }; + + reg18: reg18 { + regulator-name = "reg18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; +
arch/arm/dts/stm32mp131.dtsi line 1121
Quoted 10 lines
arch/arm/dts/stm32mp131.dtsi +7
-0+ usb33: usb33 { + regulator-name = "usb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + exti: interrupt-controller@5000d000 { compatible = "st,stm32mp13-exti", "syscon"; interrupt-controller;
Thanks
Patrice
Quoted 41 lines · Marek Vasut
This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear
RCC_SECCFGR, is disabled by default and can only be enabled on board DT level.Signed-off-by Marek Vasut <[email protected]>---
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- arch/arm/dts/stm32mp131.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/dts/stm32mp131.dtsi +17
-0@@ -1092,6 +1092,30 @@ <&scmi_clk CK_SCMI_LSI>; }; + pwr_regulators: pwr@50001000 { + compatible = "st,stm32mp1,pwr-reg"; + reg = <0x50001000 0x10>; + status = "disabled"; + + reg11: reg11 { + regulator-name = "reg11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + }; + + reg18: reg18 { + regulator-name = "reg18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; +
arch/arm/dts/stm32mp131.dtsi line 1121
Quoted 10 lines
arch/arm/dts/stm32mp131.dtsi +7
-0+ usb33: usb33 { + regulator-name = "usb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + exti: interrupt-controller@5000d000 { compatible = "st,stm32mp13-exti", "syscon"; interrupt-controller;
Applied to u-boot-stm32/next
Thanks
Patrice