Commit 111ef3fd authored by Pascal Paillet's avatar Pascal Paillet Committed by Alexandre Torgue

ARM: dts: stm32: add PWR regulators support on stm32mp157

This patch adds support of STM32 PWR regulators on
stm32mp157c. This replace dummy fixed regulators on
stm32mp157c-ed1 and stm32mp157c-dk2.
Signed-off-by: default avatarPascal Paillet <p.paillet@st.com>
Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
parent b81c8c3b
...@@ -282,6 +282,11 @@ &iwdg2 { ...@@ -282,6 +282,11 @@ &iwdg2 {
status = "okay"; status = "okay";
}; };
&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};
&rng1 { &rng1 {
status = "okay"; status = "okay";
}; };
......
...@@ -432,6 +432,11 @@ &m4_rproc { ...@@ -432,6 +432,11 @@ &m4_rproc {
status = "okay"; status = "okay";
}; };
&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};
&rng1 { &rng1 {
status = "okay"; status = "okay";
}; };
......
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
/ { / {
model = "STMicroelectronics STM32MP157C-DK2 Discovery Board"; model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
compatible = "st,stm32mp157c-dk2", "st,stm32mp157"; 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 { &dsi {
......
...@@ -74,22 +74,6 @@ aliases { ...@@ -74,22 +74,6 @@ aliases {
serial0 = &uart4; 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 { sd_switch: regulator-sd_switch {
compatible = "regulator-gpio"; compatible = "regulator-gpio";
regulator-name = "sd_switch"; regulator-name = "sd_switch";
...@@ -293,6 +277,11 @@ &m4_rproc { ...@@ -293,6 +277,11 @@ &m4_rproc {
status = "okay"; status = "okay";
}; };
&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};
&rng1 { &rng1 {
status = "okay"; status = "okay";
}; };
......
...@@ -1079,6 +1079,29 @@ rcc: rcc@50000000 { ...@@ -1079,6 +1079,29 @@ rcc: rcc@50000000 {
#reset-cells = <1>; #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 { exti: interrupt-controller@5000d000 {
compatible = "st,stm32mp1-exti", "syscon"; compatible = "st,stm32mp1-exti", "syscon";
interrupt-controller; interrupt-controller;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment