]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx51-babbage: Pass the USB PHY regulator
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 2 Dec 2017 20:26:04 +0000 (18:26 -0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
The USB PHYs are supplied via MC13892 VUSB regulator rail,
so properly describe this in the device tree.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx51-babbage.dts

index c4aa53c9c4133270556b69c7116250f018c89edb..c432de77885091e89d36bdc83180084437654ea2 100644 (file)
@@ -165,6 +165,7 @@ usbh1phy: usbh1phy@0 {
                        clocks = <&clks IMX5_CLK_DUMMY>;
                        clock-names = "main_clk";
                        reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
+                       vcc-supply = <&vusb_reg>;
                        #phy-cells = <0>;
                };
        };
@@ -241,6 +242,10 @@ vsd_reg: vsd {
                                regulator-max-microvolt = <3150000>;
                        };
 
+                       vusb_reg: vusb {
+                               regulator-boot-on;
+                       };
+
                        vusb2_reg: vusb2 {
                                regulator-min-microvolt = <2400000>;
                                regulator-max-microvolt = <2775000>;
@@ -414,6 +419,10 @@ &usbh1 {
        status = "okay";
 };
 
+&usbphy0 {
+       vcc-supply = <&vusb_reg>;
+};
+
 &usbotg {
        dr_mode = "otg";
        disable-over-current;