From 630f2f670b58d0ddf1721fe4999135f5958276ca Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 4 Aug 2014 08:56:32 +0200 Subject: ARM: dts: add odroid-usbotg extcon support for odroid platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds odroid-usbotg extcon dt node for odroid-u3 and odroid-x. Signed-off-by: Ɓukasz Stelmach Signed-off-by: Robert Baldyga [Adjust gpio dt node name with the odroid-usbotg driver] Signed-off-by: Seung-Woo Kim --- arch/arm/boot/dts/exynos4412-odroidu3.dts | 22 ++++++++++++++++++++++ arch/arm/boot/dts/exynos4412-odroidx.dts | 19 +++++++++++++++++++ 2 files changed, 41 insertions(+) (limited to 'arch/arm/boot') diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 2111ed815fab..9c4b75298620 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -37,6 +37,16 @@ pwms = <&pwm 0 10000 0>; status = "okay"; }; + + usb_extcon: odroid-usbotg { + compatible = "extcon-odroid-usbotg"; + otg-id-gpio = <&gpx3 1 0>; + vbus-det-gpio = <&gpx1 6 0>; + }; + + hsotg@12480000 { + extcon = <&usb_extcon>; + }; }; &pwm { @@ -74,3 +84,15 @@ "Speakers", "SPKL", "Speakers", "SPKR"; }; + +&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>; + }; +}; diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts index cb1cfe7239c4..e5796d33168e 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -69,6 +69,15 @@ enable-active-high; regulator-always-on; }; + + usb_extcon: odroid-usbotg { + compatible = "extcon-odroid-usbotg"; + vbus-det-gpio = <&gpx1 6 0>; + }; + + hsotg@12480000 { + extcon = <&usb_extcon>; + }; }; &ehci { @@ -82,4 +91,14 @@ samsung,pins = "gpx2-2"; samsung,pin-pud = <0>; }; + + otg_id: otg_id { + samsung,pins = "gpx3-1"; + samsung,pin-pud = <3>; + }; + + vbus_det: vbus_det { + samsung,pins = "gpx1-6"; + samsung,pin-pud = <0>; + }; }; -- cgit v1.2.3