ARM: dts: phycore-imx6: set buck regulator modes explicitly
authorChristoph Fritz <chf.fritz@googlemail.com>
Wed, 13 Nov 2019 13:40:16 +0000 (14:40 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 12 Dec 2019 01:41:01 +0000 (09:41 +0800)
This patch sets initial buck regulator modes explicitly to a state this
hardware needs. So a wrong initial mode set by bootloader or pmic itself
does not interfere anymore.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi

index 6486df3e2942da7e68e0ef94202b426ba43eb2a1..644625d97f56b451ef42388b0b2b4c3671e492ca 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/regulator/dlg,da9063-regulator.h>
 
 / {
        aliases {
                                regulator-name = "vdd_arm";
                                regulator-min-microvolt = <730000>;
                                regulator-max-microvolt = <1380000>;
+                               regulator-initial-mode = <DA9063_BUCK_MODE_SYNC>;
                                regulator-always-on;
                        };
 
                                regulator-name = "vdd_soc";
                                regulator-min-microvolt = <730000>;
                                regulator-max-microvolt = <1380000>;
+                               regulator-initial-mode = <DA9063_BUCK_MODE_SYNC>;
                                regulator-always-on;
                        };
 
                                regulator-name = "vdd_ddr3";
                                regulator-min-microvolt = <1500000>;
                                regulator-max-microvolt = <1500000>;
+                               regulator-initial-mode = <DA9063_BUCK_MODE_SYNC>;
                                regulator-always-on;
                        };
 
                                regulator-name = "vdd_eth";
                                regulator-min-microvolt = <1200000>;
                                regulator-max-microvolt = <1200000>;
+                               regulator-initial-mode = <DA9063_BUCK_MODE_SYNC>;
                                regulator-always-on;
                        };