Skip to content

Commit

Permalink
ARM: dts: stm32: add PWR regulators support on stm32mp157
Browse files Browse the repository at this point in the history
This patch adds support of STM32 PWR regulators on
stm32mp157c. This replace dummy fixed regulators on
stm32mp157c-ed1 and stm32mp157c-dk2.

Signed-off-by: Pascal Paillet <[email protected]>
Signed-off-by: Alexandre Torgue <[email protected]>
  • Loading branch information
ppaillet authored and atorgue committed Oct 25, 2019
1 parent b81c8c3 commit 111ef3f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 24 deletions.
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/stm32mp157a-avenger96.dts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@
status = "okay";
};

&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};

&rng1 {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/stm32mp157a-dk1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@
status = "okay";
};

&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};

&rng1 {
status = "okay";
};
Expand Down
8 changes: 0 additions & 8 deletions arch/arm/boot/dts/stm32mp157c-dk2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
/ {
model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
compatible = "st,stm32mp157c-dk2", "st,stm32mp157";

reg18: reg18 {
compatible = "regulator-fixed";
regulator-name = "reg18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
};

&dsi {
Expand Down
21 changes: 5 additions & 16 deletions arch/arm/boot/dts/stm32mp157c-ed1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,6 @@
serial0 = &uart4;
};

reg11: reg11 {
compatible = "regulator-fixed";
regulator-name = "reg11";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
regulator-always-on;
};

reg18: reg18 {
compatible = "regulator-fixed";
regulator-name = "reg18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};

sd_switch: regulator-sd_switch {
compatible = "regulator-gpio";
regulator-name = "sd_switch";
Expand Down Expand Up @@ -293,6 +277,11 @@
status = "okay";
};

&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};

&rng1 {
status = "okay";
};
Expand Down
23 changes: 23 additions & 0 deletions arch/arm/boot/dts/stm32mp157c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,29 @@
#reset-cells = <1>;
};

pwr_regulators: pwr@50001000 {
compatible = "st,stm32mp1,pwr-reg";
reg = <0x50001000 0x10>;

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,stm32mp1-exti", "syscon";
interrupt-controller;
Expand Down

0 comments on commit 111ef3f

Please sign in to comment.