]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: board: Update the way vdd-supply is retrieved from DT
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 30 Jul 2019 17:16:42 +0000 (19:16 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 27 Aug 2019 09:19:23 +0000 (11:19 +0200)
Due to kernel DT alignment, pwr-supply is renamed to vdd-supply
and is a subnode of pwr-regulators.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/dts/stm32mp157a-avenger96.dts
arch/arm/dts/stm32mp157a-dk1.dts
arch/arm/dts/stm32mp157c-ed1.dts
board/st/stm32mp1/stm32mp1.c

index ba86cf54783655a68a5c353a24757c0e7ba86041..5b15a4a915e671035082d42767fc465dc182e3a0 100644 (file)
 };
 
 &pwr {
-       pwr-supply = <&vdd>;
+       pwr-regulators {
+               vdd-supply = <&vdd>;
+               vdd_3v3_usbfs-supply = <&vdd_usb>;
+       };
 };
 
 &rng1 {
index 1d5c1a6d316b63b617eb9ebd7e3ee77b13c549f4..ba612a5d91c4d7729d3ae8fa9a4486c46fd7dcfe 100644 (file)
 };
 
 &pwr {
-       pwr-supply = <&vdd>;
+       pwr-regulators {
+               vdd-supply = <&vdd>;
+               vdd_3v3_usbfs-supply = <&vdd_usb>;
+       };
 };
 
 &rng1 {
index 94ac025da8a4a03257130746bf5f53e8326ad376..3e8b7b51618145e7429a7ff92c841691120558c2 100644 (file)
 };
 
 &pwr {
-       pwr-supply = <&vdd>;
+       pwr-regulators {
+               vdd-supply = <&vdd>;
+               vdd_3v3_usbfs-supply = <&vdd_usb>;
+       };
 };
 
 &rng1 {
index 1be1160e0aaa758c34994f05069102ffead30314..1f6ee3f742e6171dce4f443d8e21bfef27dbfa25 100644 (file)
@@ -472,7 +472,9 @@ static void sysconf_init(void)
         *   => U-Boot set the register only if VDD < 2.7V (in DT)
         *      but this value need to be consistent with board design
         */
-       ret = syscon_get_by_driver_data(STM32MP_SYSCON_PWR, &pwr_dev);
+       ret = uclass_get_device_by_driver(UCLASS_PMIC,
+                                         DM_GET_DRIVER(stm32mp_pwr_pmic),
+                                         &pwr_dev);
        if (!ret) {
                ret = uclass_get_device_by_driver(UCLASS_MISC,
                                                  DM_GET_DRIVER(stm32mp_bsec),
@@ -486,8 +488,8 @@ static void sysconf_init(void)
                if (!ret)
                        otp = otp & BIT(13);
 
-               /* get VDD = pwr-supply */
-               ret = device_get_supply_regulator(pwr_dev, "pwr-supply",
+               /* get VDD = vdd-supply */
+               ret = device_get_supply_regulator(pwr_dev, "vdd-supply",
                                                  &pwr_reg);
 
                /* check if VDD is Low Voltage */