ARM: st: add new compatible for PWR regulators on STM32MP13
v4 cover ARM: st: add new compatible for PWR regulators on STM32MP13
This patchset adds the new PWR regulators compatible for STM32MP13:
"st,stm32mp13-pwr-reg".
As this node is just introduced by [1] and it is is not used by any board in Linux, it is the good time to introduced this compatible and update the STM32MP13 SoC dtsi without ABI break.
A new compatible is needed as the content of the PWR_CR3 register, used by this driver change with new bits on STM32MP13 for SD IO domain:
- bit 23: VDDSD2VALID
- bit 22: VDDSD1VALID
- bit 16: VDDSD2RDY
- bit 15: VDDSD2EN
- bit 14: VDDSD1RDY
- bit 13: VDDSD1EN
I will push a update on STM32MP13 SoC dtsi if this new compatible is accepted to preserve the bisectability.
[1] commit f798f7079233 ("ARM: dts: stm32: add PWR regulators support on stm32mp131")
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Changes in v4:
- use fallback as proposed by Marek on V3 for STM32MP13:
compatible = "st,stm32mp13-pwr-reg", "st,stm32mp1,pwr-reg"
Changes in v3:
- Replace oneOf/const by enum; solve the V2 issues for dt_binding_check
Changes in v2:
- Add new compatible for STM32MP13 and change title after Rob remarks
V1: "ARM: st: use a correct pwr compatible for stm32mp15"
Patrick Delaunay (2):
dt-bindings: regulator: st,stm32mp1-pwr-reg: add compatible for
STM32MP13
regulator: stm32-pwr: add support of STM32MP13
.../devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml | 7 ++++++- drivers/regulator/stm32-pwr.c | 1 + 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
PATCH v4 1/2 dt-bindings: regulator: st,stm32mp1-pwr-reg: add compatible for STM32MP13
Add new compatible "st,stm32mp13-pwr-reg" for STM32MP13 SoC family.
---
Changes in v4:
- use fallback as proposed by Marek on V3 for STM32MP13:
compatible = "st,stm32mp13-pwr-reg", "st,stm32mp1,pwr-reg"
Changes in v3:
- Replace oneOf/const by enum; solve the V2 issues for dt_binding_check
Changes in v2:
- update for Rob review, only add compatible for STM32MP13 family
.../devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml +6 -1
@@ -11,7 +11,12 @@ maintainers: properties: compatible: - const: st,stm32mp1,pwr-reg + oneOf: + - items: + - const: st,stm32mp1,pwr-reg + - items: + - const: st,stm32mp13-pwr-reg + - const: st,stm32mp1,pwr-reg reg: maxItems: 1
Signature · 1 line
2.25.1
Re: [PATCH v4 1/2] dt-bindings: regulator: st,stm32mp1-pwr-reg: add compatible for STM32MP13
Quoted 3 lines · Patrick Delaunay
Add new compatible "st,stm32mp13-pwr-reg" for STM32MP13 SoC family.
Signed-off-by Patrick Delaunay <[email protected]>
Cheers,
Conor.
PATCH v4 2/2 regulator: stm32-pwr: add support of STM32MP13
In reply to Patrick DelaunayAdd support of the new compatible "st,stm32mp13-pwr-reg" for STM32MP13.
---
(no changes since v2)
Changes in v2:
- Add new compatible for STM32MP13 and change title after Rob remarks
V1: "ARM: st: use a correct pwr compatible for stm32mp15"
drivers/regulator/stm32-pwr.c | 1 + 1 file changed, 1 insertion(+)
drivers/regulator/stm32-pwr.c +1 -0
@@ -166,6 +166,7 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev)static const struct of_device_id __maybe_unused stm32_pwr_of_match[] = { { .compatible ="st,stm32mp1,pwr-reg" , }, + { .compatible ="st,stm32mp13-pwr-reg" , }, {}, };MODULE_DEVICE_TABLE (of, stm32_pwr_of_match);
Signature · 1 line
2.25.1