]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Fix AV96 and DHCOR split
authorMarek Vasut <marex@denx.de>
Mon, 27 Apr 2020 11:16:02 +0000 (13:16 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Thu, 14 May 2020 07:02:12 +0000 (09:02 +0200)
The commit 132e5b68986d ("ARM: dts: stm32: Split AV96 into DHCOR SoM
and AV96 board") was not applied correctly and in full, and omitted
an important split of the SoM into 3V3 and 1V8 options. The Avenger96
board is based on the 1V8 IO option of the DHCOR SoM, however this is
an optional modification of the 3V3 IO DHCOR SoM with extra on-SoM
regulator to cater for the 96boards 1V8 IO requirements.

Reinstate the split between the 1V8 and 3V3 IO variants.

Fixes: 132e5b68986d ("ARM: dts: stm32: Split AV96 into DHCOR SoM and AV96 board")
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>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/dts/stm32mp15xx-dhcor-avenger96.dts
arch/arm/dts/stm32mp15xx-dhcor-io1v8.dtsi [new file with mode: 0644]
arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi [moved from arch/arm/dts/stm32mp15xx-dhcor.dtsi with 94% similarity]

index a6006775637ccbc6d2578d481521a3c719a5b655..1b0579c8abddb4ce6b727d9f1c7a5d62b2b8a3e2 100644 (file)
@@ -7,7 +7,7 @@
 
 /dts-v1/;
 
-#include "stm32mp15xx-dhcor.dtsi"
+#include "stm32mp15xx-dhcor-io1v8.dtsi"
 #include "stm32mp15xx-dhcor-avenger96-u-boot.dtsi"
 
 / {
diff --git a/arch/arm/dts/stm32mp15xx-dhcor-io1v8.dtsi b/arch/arm/dts/stm32mp15xx-dhcor-io1v8.dtsi
new file mode 100644 (file)
index 0000000..7543542
--- /dev/null
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
+/*
+ * Copyright (C) 2020 Marek Vasut <marex@denx.de>
+ */
+
+#include "stm32mp15xx-dhcor-io3v3.dtsi"
+
+/ {
+       /* Enpirion EP3A8LQI U2 on the 1V8 IO 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>;
+       };
+};
+
+&pwr_regulators {
+       vdd-supply = <&vdd_io>;
+       vdd_3v3_usbfs-supply = <&vdd_usb>;
+};
similarity index 94%
rename from arch/arm/dts/stm32mp15xx-dhcor.dtsi
rename to arch/arm/dts/stm32mp15xx-dhcor-io3v3.dtsi
index 97d370e119366ac7c3bdce298c9fa92e12887708..248fc455e3559d1be1b197dd35d46c1b61fa06e8 100644 (file)
                device_type = "memory";
                reg = <0xc0000000 0x40000000>;
        };
-
-       /* 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>;
-       };
 };
 
 &i2c4 {
 };
 
 &pwr_regulators {
-       vdd-supply = <&vdd_io>;
+       vdd-supply = <&vdd>;
        vdd_3v3_usbfs-supply = <&vdd_usb>;
 };