summaryrefslogtreecommitdiff
path: root/arch/arm/dts/imx6sx.dtsi
diff options
context:
space:
mode:
authorSherry Sun <sherry.sun@nxp.com>2019-07-25 17:20:26 -0400
committerYe Li <ye.li@nxp.com>2020-04-26 23:36:22 -0700
commit22071f5a0801f859977f60b8012ce0db7cedc9ca (patch)
treea082b93d0fb3e7fb4cdc2620620535ddbac97c5a /arch/arm/dts/imx6sx.dtsi
parente2fb7d0a618680c78d4254335fd109bf372ac889 (diff)
MLK-22336-2 dts: Add a new usb gadget node on imx6/7/7ulp/8/8mm
Since one dts node can only bind to one DM driver in uboot, for usbotg node, we can not use it for both DM usb host driver and DM usb gadget driver. So a new usb gadget node is added to each usbotg node, the original usbotg node is bind to usb host driver as default, and the new usb gadget node is bind to usb gadet driver as default. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 342adc8948def972dbd08b71009584745f7826f0)
Diffstat (limited to 'arch/arm/dts/imx6sx.dtsi')
-rw-r--r--arch/arm/dts/imx6sx.dtsi16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/dts/imx6sx.dtsi b/arch/arm/dts/imx6sx.dtsi
index e8d28f8ffcf..0b5d25d6446 100644
--- a/arch/arm/dts/imx6sx.dtsi
+++ b/arch/arm/dts/imx6sx.dtsi
@@ -65,6 +65,8 @@
usb0 = &usbotg1;
usb1 = &usbotg2;
pci0 = &pcie;
+ usbgadget0 = &usbg1;
+ usbgadget1 = &usbg2;
};
cpus {
@@ -1041,6 +1043,20 @@
};
};
+ usbg1: usbg1 {
+ compatible = "fsl,imx27-usb-gadget";
+ dr_mode = "peripheral";
+ chipidea,usb = <&usbotg1>;
+ status = "okay";
+ };
+
+ usbg2: usbg2 {
+ compatible = "fsl,imx27-usb-gadget";
+ dr_mode = "peripheral";
+ chipidea,usb = <&usbotg2>;
+ status = "okay";
+ };
+
usbotg1: usb@2184000 {
compatible = "fsl,imx6sx-usb", "fsl,imx27-usb";
reg = <0x02184000 0x200>;