Skip to content

Commit a3576e4

Browse files
Fabio Estevamgregkh
authored andcommitted
ARM: dts: imx51-babbage: Fix ULPI PHY reset modelling
commit 7a9f060 upstream. GPIO2_5 is the reset GPIO for the USB3317 ULPI PHY. Instead of modelling it as a regulator, the correct approach is to use the 'reset_gpios' property of the "usb-nop-xceiv" node. GPIO1_7 is the reset GPIO for the USB2517 USB hub. As we currently don't have dt bindings to describe a HUB reset, let's keep using the regulator approach. Rename the regulator to 'reg_hub_reset' to better describe its function and bind it with the USB host1 port instead. USB host support has been introduced by commit 9bf206a ("ARM: dts: imx51-babbage: Add USB Host1 support"), which landed in 3.16 and it seems that USB has only been functional due to previous bootloader initialization. With this patch applied we can get USB host to work without relying on the bootloader. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1fb91db commit a3576e4

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

‎arch/arm/boot/dts/imx51-babbage.dts‎

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,12 @@
127127
#address-cells = <1>;
128128
#size-cells = <0>;
129129

130-
reg_usbh1_vbus: regulator@0 {
131-
compatible = "regulator-fixed";
132-
pinctrl-names = "default";
133-
pinctrl-0 = <&pinctrl_usbh1reg>;
134-
reg = <0>;
135-
regulator-name = "usbh1_vbus";
136-
regulator-min-microvolt = <5000000>;
137-
regulator-max-microvolt = <5000000>;
138-
gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
139-
enable-active-high;
140-
};
141-
142-
reg_usbotg_vbus: regulator@1 {
130+
reg_hub_reset: regulator@0 {
143131
compatible = "regulator-fixed";
144132
pinctrl-names = "default";
145133
pinctrl-0 = <&pinctrl_usbotgreg>;
146-
reg = <1>;
147-
regulator-name = "usbotg_vbus";
134+
reg = <0>;
135+
regulator-name = "hub_reset";
148136
regulator-min-microvolt = <5000000>;
149137
regulator-max-microvolt = <5000000>;
150138
gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
@@ -176,6 +164,7 @@
176164
reg = <0>;
177165
clocks = <&clks IMX5_CLK_DUMMY>;
178166
clock-names = "main_clk";
167+
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
179168
};
180169
};
181170
};
@@ -419,7 +408,7 @@
419408
&usbh1 {
420409
pinctrl-names = "default";
421410
pinctrl-0 = <&pinctrl_usbh1>;
422-
vbus-supply = <&reg_usbh1_vbus>;
411+
vbus-supply = <&reg_hub_reset>;
423412
fsl,usbphy = <&usbh1phy>;
424413
phy_type = "ulpi";
425414
status = "okay";
@@ -429,7 +418,6 @@
429418
dr_mode = "otg";
430419
disable-over-current;
431420
phy_type = "utmi_wide";
432-
vbus-supply = <&reg_usbotg_vbus>;
433421
status = "okay";
434422
};
435423

0 commit comments

Comments
 (0)