ARM: dts: add odroid-usbotg extcon support for odroid platform 77/36877/2
authorRobert Baldyga <r.baldyga@samsung.com>
Wed, 11 Mar 2015 08:04:39 +0000 (09:04 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 10 Jun 2015 11:47:16 +0000 (20:47 +0900)
This patch adds odroid-usbotg extcon support for Odroid-X/X2/U3
boards.

Change-Id: I8fd165ece62e839dc53ad3c248a40da0c4bec993
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
arch/arm/boot/dts/exynos4412-odroidu3.dts
arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/exynos4412-odroidx2.dts

index 68155c8..9a7597d 100644 (file)
                };
        };
 
+       usb_extcon: odroid-usbotg {
+               compatible = "extcon-odroid-usbotg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&otg_id &vbus_det>;
+               gpio-otg-id = <&gpx3 1 0>;
+               gpio-vbus-det = <&gpx1 6 0>;
+       };
+
+       hsotg@12480000 {
+               extcon = <&usb_extcon>;
+       };
+
        pwm: pwm@139D0000 {
                pinctrl-0 = <&pwm0_out>;
                pinctrl-names = "default";
                "Headset Mic", "MICBIAS",
                "IN1", "Headset Mic";
 };
+
+&pinctrl_1 {
+       otg_id: otg-id {
+               samsung,pins = "gpx3-1";
+               samsung,pin-pud = <3>;
+       };
+
+       vbus_det: vbus-det {
+               samsung,pins = "gpx1-6";
+               samsung,pin-pud = <0>;
+       };
+};
index aed770f..3e001ce 100644 (file)
                };
        };
 
+       usb_extcon: odroid-usbotg {
+               compatible = "extcon-odroid-usbotg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&vbus_det>;
+               gpio-vbus-det = <&gpx1 6 0>;
+       };
+
+       hsotg@12480000 {
+               extcon = <&usb_extcon>;
+       };
+
        mshc@12550000 {
                #address-cells = <1>;
                #size-cells = <0>;
                };
        };
 };
+
+&pinctrl_1 {
+       vbus_det: vbus-det {
+                 samsung,pins = "gpx1-6";
+                 samsung,pin-pud = <0>;
+       };
+};
index c881c66..2bdb5dd 100644 (file)
                };
        };
 
+       usb_extcon: odroid-usbotg {
+               compatible = "extcon-odroid-usbotg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&vbus_det>;
+               gpio-vbus-det = <&gpx1 6 0>;
+       };
+
+       hsotg@12480000 {
+               extcon = <&usb_extcon>;
+       };
+
        regulator_p3v3 {
                compatible = "regulator-fixed";
                regulator-name = "p3v3_en";
        };
 };
 
+&pinctrl_1 {
+       vbus_det: vbus-det {
+                 samsung,pins = "gpx1-6";
+                 samsung,pin-pud = <0>;
+       };
+};
+
 &sound {
        samsung,model = "Odroid-X2";
        samsung,audio-routing =