ARM: dts: dra7-evm: Add extcon to USB2 port
authorRoger Quadros <rogerq@ti.com>
Tue, 29 May 2018 09:00:56 +0000 (12:00 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Jul 2018 06:50:33 +0000 (23:50 -0700)
Both ports on the dra7-evm and related boards can be used
as dual-role ports. Although we don't enable dual-role mode
for USB2 port let's add the necessary extcon bits to it.

Move the common portion of extcon_usb2 into dra7-evm-common.dtsi

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra7-evm-common.dtsi
arch/arm/boot/dts/dra7-evm.dts
arch/arm/boot/dts/dra72-evm-common.dtsi

index 33230c8..7e18147 100644 (file)
                id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
        };
 
+       extcon_usb2: extcon_usb2 {
+               compatible = "linux,extcon-usb-gpio";
+               id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
+       };
+
        sound0: sound0 {
                compatible = "simple-audio-card";
                simple-audio-card,name = "DRA7xx-EVM";
        extcon = <&extcon_usb1>;
 };
 
+&omap_dwc3_2 {
+       extcon = <&extcon_usb2>;
+};
+
 &usb2 {
        dr_mode = "host";
+       extcon = <&extcon_usb2>;
 };
 
 &atl {
index 0894593..6ed5f91 100644 (file)
                enable-active-high;
        };
 
-       extcon_usb2: extcon_usb2 {
-               compatible = "linux,extcon-usb-gpio";
-               id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
-       };
-
        vtt_fixed: fixedregulator-vtt {
                compatible = "regulator-fixed";
                regulator-name = "vtt_fixed";
        vdd-supply = <&smps123_reg>;
 };
 
-&omap_dwc3_2 {
-       extcon = <&extcon_usb2>;
-};
-
 &elm {
        status = "okay";
 };
index df174f5..e297b92 100644 (file)
 
 &usb2 {
        dr_mode = "host";
+       extcon = <&extcon_usb2>;
 };
 
 &mmc1 {