summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2014-08-04 08:56:32 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:49:59 +0900
commit630f2f670b58d0ddf1721fe4999135f5958276ca (patch)
treeb6ac639f1167492f114d106c079439344fa1bb9c /arch/arm/boot/dts
parent3ef6a0d6657a2470ea5ef759dc51ec75c9980e31 (diff)
ARM: dts: add odroid-usbotg extcon support for odroid platform
This patch adds odroid-usbotg extcon dt node for odroid-u3 and odroid-x. Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> [Adjust gpio dt node name with the odroid-usbotg driver] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidu3.dts22
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidx.dts19
2 files changed, 41 insertions, 0 deletions
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>;
+ };
};