Add extcon device detecting USB cable type.

Signed-off-by: Robert Baldyga <r.bald...@samsung.com>
---
 arch/arm/boot/dts/exynos5422-odroidxu3.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 
b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index a519c86..80057d6 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -278,6 +278,14 @@
        rtc@101E0000 {
                status = "okay";
        };
+
+       usb_extcon: odroid-usbotg {
+               compatible = "extcon-odroid-usbotg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&otg_id &vbus_det>;
+               otg-id-gpio = <&gpx1 1 0>;
+               vbus-det-gpio = <&gpx3 4 0>;
+       };
 };
 
 &hdmi {
@@ -369,3 +377,15 @@
                shunt-resistor = <10000>;
        };
 };
+
+&pinctrl_0 {
+       otg_id: otg-id {
+               samsung,pins = "gpx1-1";
+               samsung,pin-pud = <0>;
+       };
+
+       vbus_det: vbus-det {
+               samsung,pins = "gpx3-4";
+               samsung,pin-pud = <0>;
+       };
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to