arm64: dts: hi6220: Move the fixed_5v_hub regulator to the hikey dts
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 3 May 2017 10:46:55 +0000 (12:46 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 23 May 2017 12:17:53 +0000 (14:17 +0200)
The regulator is a part of the hikey board, therefore let's move it from
the hi6220 SoC dtsi file into the hikey dts file . Let's also rename the
regulator according to the datasheet (5V_HUB) to better reflect the HW.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
arch/arm64/boot/dts/hisilicon/hi6220.dtsi

index d22eb3a646c40ee6a54d66c648fd72036773a1ab..0f6cba77fc7622dd464a6e328ad1d349b6604640 100644 (file)
                };
        };
 
+       reg_5v_hub: regulator@0 {
+               compatible = "regulator-fixed";
+               regulator-name = "5V_HUB";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-boot-on;
+               gpio = <&gpio0 7 0>;
+               regulator-always-on;
+       };
+
        soc {
                spi0: spi@f7106000 {
                        status = "ok";
index 1e5129b19280bf8195a9ac24e506ec096493b084..951152d44c026ab7f00cec444560664ab0034948 100644 (file)
                        status = "disabled";
                };
 
-               fixed_5v_hub: regulator@0 {
-                       compatible = "regulator-fixed";
-                       regulator-name = "fixed_5v_hub";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       regulator-boot-on;
-                       gpio = <&gpio0 7 0>;
-                       regulator-always-on;
-               };
-
                usb_phy: usbphy {
                        compatible = "hisilicon,hi6220-usb-phy";
                        #phy-cells = <0>;
-                       phy-supply = <&fixed_5v_hub>;
+                       phy-supply = <&reg_5v_hub>;
                        hisilicon,peripheral-syscon = <&sys_ctrl>;
                };