arm: dts: odroidxu3: Remove extcon node for a host-only USB 3.0 port 62/168362/4 accepted/tizen/unified/20180130.144410 submit/tizen/20180130.013321
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 25 Jan 2018 05:33:27 +0000 (14:33 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Jan 2018 09:35:21 +0000 (18:35 +0900)
The host-only USB 3.0 port on odroid-xu3 doesn't provide connection
detection through GPIO, but extcon node is configured for this port.
This unnecessary extcon node just represents wrong state for USB
connection. Thus, this patch removes extcon node for a host-only USB
port and configures USB controller in odroid-xu3 specific device tree.

Change-Id: I4be1ae7e8a8a4ca80e53cc6a8b408f7f57a89ea1
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi
arch/arm/boot/dts/exynos5422-odroidxu3.dts

index 04b44e9c3034c63d7ef37cc839fb724445c89c10..0e813f414f1fe3039fcbc8cc195ddc486c9bd9a6 100644 (file)
                        clocks = <&i2s0 CLK_I2S_CDCLK>;
                };
        };
-
-       usb_extcon_a: odroid-usbotg-a {
-               compatible = "extcon-odroid-usbotg";
-               pinctrl-names = "default";
-               pinctrl-0 = <&otg_ida &vbus_deta>;
-               otg-id-gpio = <&gpx1 1 0>;
-               vbus-det-gpio = <&gpx3 4 0>;
-       };
-
-       usb_extcon_b: odroid-usbotg-b {
-               compatible = "extcon-odroid-usbotg";
-               pinctrl-0 = <&vbus_detb>;
-               vbus-det-gpio = <&gpx3 5 0>;
-       };
 };
 
 &bus_wcore {
        mali-supply = <&buck4_reg>;
 };
 
-&usbdrd3_0 {
-       extcon = <&usb_extcon_b>;
-};
-
-&usbdrd3_1 {
-       extcon = <&usb_extcon_a>;
-};
-
 &usbdrd_dwc3_0 {
        dr_mode = "host";
 };
 
-&usbdrd_dwc3_1 {
-       dr_mode = "otg";
-};
-
 &cpu0 {
        cpu-cluster.0-supply = <&buck2_reg>;
 };
index 78e6a502f320b527f315bfceaebfaed22c111789..14c569a4d8f82c3af64baaa2a09b6f531d0e16ca 100644 (file)
 / {
        model = "Hardkernel Odroid XU3";
        compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5";
+
+       usb_extcon_a: odroid-usbotg-a {
+               compatible = "extcon-odroid-usbotg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&otg_ida &vbus_deta>;
+               otg-id-gpio = <&gpx1 1 0>;
+               vbus-det-gpio = <&gpx3 4 0>;
+       };
 };
 
 &i2c_0 {
                shunt-resistor = <10000>;
        };
 };
+
+&usbdrd3_1 {
+       extcon = <&usb_extcon_a>;
+};
+
+&usbdrd_dwc3_1 {
+       dr_mode = "otg";
+};