Skip to content

Commit c1ca3e2

Browse files
committed
ARM: st: add new compatible for PWR regulators on
Merge series from Patrick Delaunay <patrick.delaunay@foss.st.com>: 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 f798f70 ("ARM: dts: stm32: add PWR regulators support on stm32mp131") https://lore.kernel.org/linux-arm-kernel/b89d0531-067f-4356-91b0-ed7434cee3d7@foss.st.com/
2 parents 4236b12 + bb064c8 commit c1ca3e2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
const: st,stm32mp1,pwr-reg
14+
oneOf:
15+
- items:
16+
- const: st,stm32mp1,pwr-reg
17+
- items:
18+
- const: st,stm32mp13-pwr-reg
19+
- const: st,stm32mp1,pwr-reg
1520

1621
reg:
1722
maxItems: 1

drivers/regulator/stm32-pwr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev)
166166

167167
static const struct of_device_id __maybe_unused stm32_pwr_of_match[] = {
168168
{ .compatible = "st,stm32mp1,pwr-reg", },
169+
{ .compatible = "st,stm32mp13-pwr-reg", },
169170
{},
170171
};
171172
MODULE_DEVICE_TABLE(of, stm32_pwr_of_match);

0 commit comments

Comments
 (0)