]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Repair PMIC configuration on AV96
authorMarek Vasut <marex@denx.de>
Tue, 31 Mar 2020 17:51:34 +0000 (19:51 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Wed, 1 Apr 2020 09:58:00 +0000 (11:58 +0200)
The core and vdd PMIC buck regulators were misconfigured, which caused
instability of the board and malfunction of high-speed interfaces, like
the RGMII. Configure the PMIC correctly to repair these problems. Also,
model the missing Enpirion EP53A8LQI on the DHCOR SoM as a fixed regulator.

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
arch/arm/dts/stm32mp157a-avenger96.dts

index 27d407a867eb143732b74ca4c880f5187440af7d..1f32395e71a4cb4c6311ab7d72eace75a35393f4 100644 (file)
                states = <1800000 0x1>,
                         <2900000 0x0>;
        };
+
+       /* Enpirion EP3A8LQI U2 on the DHCOR */
+       vdd_io: regulator-buck-io {
+               compatible = "regulator-fixed";
+               regulator-name = "buck-io";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+               regulator-boot-on;
+               vin-supply = <&vdd>;
+       };
 };
 
 &ethernet0 {
 
                        vddcore: buck1 {
                                regulator-name = "vddcore";
-                               regulator-min-microvolt = <1200000>;
+                               regulator-min-microvolt = <800000>;
                                regulator-max-microvolt = <1350000>;
                                regulator-always-on;
                                regulator-initial-mode = <0>;
 
                        vdd: buck3 {
                                regulator-name = "vdd";
-                               regulator-min-microvolt = <3300000>;
-                               regulator-max-microvolt = <3300000>;
+                               regulator-min-microvolt = <2900000>;
+                               regulator-max-microvolt = <2900000>;
                                regulator-always-on;
                                st,mask_reset;
                                regulator-initial-mode = <0>;
                                regulator-name = "vbus_otg";
                                interrupts = <IT_OCP_OTG 0>;
                                interrupt-parent = <&pmic>;
+                               regulator-active-discharge = <1>;
                        };
 
                        vbus_sw: pwr_sw2 {
 };
 
 &pwr_regulators {
-       vdd-supply = <&vdd>;
+       vdd-supply = <&vdd_io>;
        vdd_3v3_usbfs-supply = <&vdd_usb>;
 };