[PATCH v2 10/12] ARM: dts: imx6q-sabrelite: add usb devices
Richard Zhao
richard.zhao at freescale.com
Mon May 21 19:23:55 EST 2012
Signed-off-by: Richard Zhao <richard.zhao at freescale.com>
---
arch/arm/boot/dts/imx6q-sabrelite.dts | 18 ++++++++++++-
arch/arm/boot/dts/imx6q.dtsi | 44 +++++++++++++++++++++++++++++++-
2 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
index 1dd2261..1d28957 100644
--- a/arch/arm/boot/dts/imx6q-sabrelite.dts
+++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
@@ -48,10 +48,26 @@
status = "okay";
};
};
-
+ iomuxc at 020e0000 {
+ gpios {
+ pinctrl_gpio_hog: gpiohog {
+ fsl,pins = <1044 0x80000000
+ 144 0x80000000>; /* MX6Q_PAD_GPIO_17__GPIO_7_12 */
+ };
+ };
+ };
};
aips-bus at 02100000 { /* AIPS2 */
+ usb at 02184000 { /* USB OTG */
+ fsl,vbus-power-gpios = <&gpio3 22 0>;
+ status = "okay";
+ };
+
+ usb at 02184200 { /* USB1 */
+ status = "okay";
+ };
+
ethernet at 02188000 {
phy-mode = "rgmii";
phy-reset-gpios = <&gpio3 23 0>;
diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
index 8c90cba..f67048e 100644
--- a/arch/arm/boot/dts/imx6q.dtsi
+++ b/arch/arm/boot/dts/imx6q.dtsi
@@ -444,12 +444,14 @@
};
};
- usbphy at 020c9000 { /* USBPHY1 */
+ usbphy1: usbphy at 020c9000 {
+ compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
reg = <0x020c9000 0x1000>;
interrupts = <0 44 0x04>;
};
- usbphy at 020ca000 { /* USBPHY2 */
+ usbphy2: usbphy at 020ca000 {
+ compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
reg = <0x020ca000 0x1000>;
interrupts = <0 45 0x04>;
};
@@ -485,6 +487,9 @@
compatible = "fsl,imx6q-iomuxc";
reg = <0x020e0000 0x4000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpio_hog>;
+
/* shared pinctrl settings */
audmux {
pinctrl_audmux_1: audmux-1 {
@@ -495,6 +500,11 @@
};
};
+ gpios {
+ pinctrl_gpio_hog: gpiohog {
+ };
+ };
+
i2c1 {
pinctrl_i2c1_1: i2c1grp-1 {
fsl,pins = <137 0x4001b8b1 /* MX6Q_PAD_EIM_D21__I2C1_SCL */
@@ -573,6 +583,36 @@
reg = <0x0217c000 0x4000>;
};
+ usb at 02184000 { /* USB OTG */
+ compatible = "fsl,imx6q-usb", "fsl,imx31-usb";
+ reg = <0x02184000 0x200>;
+ interrupts = <0 43 0x04>;
+ fsl,usbphy = <&usbphy1>;
+ status = "disabled";
+ };
+
+ usb at 02184200 { /* USB1 */
+ compatible = "fsl,imx6q-usb", "fsl,imx31-usb";
+ reg = <0x02184200 0x200>;
+ interrupts = <0 40 0x04>;
+ fsl,usbphy = <&usbphy2>;
+ status = "disabled";
+ };
+
+ usb at 02184400 { /* USB2 */
+ compatible = "fsl,imx6q-usb", "fsl,imx31-usb";
+ reg = <0x02184400 0x200>;
+ interrupts = <0 41 0x04>;
+ status = "disabled";
+ };
+
+ usb at 02184600 { /* USB3 */
+ compatible = "fsl,imx6q-usb", "fsl,imx31-usb";
+ reg = <0x02184600 0x200>;
+ interrupts = <0 42 0x04>;
+ status = "disabled";
+ };
+
ethernet at 02188000 {
compatible = "fsl,imx6q-fec";
reg = <0x02188000 0x4000>;
--
1.7.5.4
More information about the devicetree-discuss
mailing list