提交 4c1bad09 编写于 作者: G Gary Bisson 提交者: Shawn Guo

ARM: dts: imx6qdl-nitrogen6x: fix USB PHY reset

Declared as a regulator since the driver doesn't have a reset-gpios
property for this.

This ensures that the PHY is woken up, not depending on the state the
second stage bootloader leaves the pin.

This is a workaround until a proper mechanism is provided to reset such
devices like the pwrseq library [1] for instance.

[1] https://lkml.org/lkml/2017/2/10/779Signed-off-by: NGary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 b1900445
...@@ -108,6 +108,18 @@ ...@@ -108,6 +108,18 @@
startup-delay-us = <70000>; startup-delay-us = <70000>;
enable-active-high; enable-active-high;
}; };
reg_usb_h1_vbus: regulator@5 {
compatible = "regulator-fixed";
reg = <5>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbh1>;
regulator-name = "usb_h1_vbus";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
}; };
gpio-keys { gpio-keys {
...@@ -515,6 +527,12 @@ ...@@ -515,6 +527,12 @@
>; >;
}; };
pinctrl_usbh1: usbh1grp {
fsl,pins = <
MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x030b0
>;
};
pinctrl_usbotg: usbotggrp { pinctrl_usbotg: usbotggrp {
fsl,pins = < fsl,pins = <
MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
...@@ -629,6 +647,7 @@ ...@@ -629,6 +647,7 @@
}; };
&usbh1 { &usbh1 {
vbus-supply = <&reg_usb_h1_vbus>;
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册