summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-03-11 09:04:39 +0100
committerSeung-Woo Kim <sw0312.kim@samsung.com>2015-06-10 20:47:16 +0900
commit41b7c9bbe3e7acb9cb8efa8fa03b0db201783c29 (patch)
treedf0c3e1804c859812d514c72ea71b7815d761121
parent578307282a9e47a9303de4fd55ed1bcdae995cbf (diff)
downloadlinux-3.10-41b7c9bbe3e7acb9cb8efa8fa03b0db201783c29.tar.gz
linux-3.10-41b7c9bbe3e7acb9cb8efa8fa03b0db201783c29.tar.bz2
linux-3.10-41b7c9bbe3e7acb9cb8efa8fa03b0db201783c29.zip
ARM: dts: add odroid-usbotg extcon support for odroid platform
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>
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidu3.dts24
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidx.dts18
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidx2.dts18
3 files changed, 60 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
index 68155c8d913..9a7597df8ce 100644
--- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
@@ -32,6 +32,18 @@
};
};
+ 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";
@@ -72,3 +84,15 @@
"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>;
+ };
+};
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index aed770fc767..3e001ce97c4 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -38,6 +38,17 @@
};
};
+ 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>;
@@ -109,3 +120,10 @@
};
};
};
+
+&pinctrl_1 {
+ vbus_det: vbus-det {
+ samsung,pins = "gpx1-6";
+ samsung,pin-pud = <0>;
+ };
+};
diff --git a/arch/arm/boot/dts/exynos4412-odroidx2.dts b/arch/arm/boot/dts/exynos4412-odroidx2.dts
index c881c668bd7..2bdb5dd9879 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx2.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx2.dts
@@ -52,6 +52,17 @@
};
};
+ 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";
@@ -83,6 +94,13 @@
};
};
+&pinctrl_1 {
+ vbus_det: vbus-det {
+ samsung,pins = "gpx1-6";
+ samsung,pin-pud = <0>;
+ };
+};
+
&sound {
samsung,model = "Odroid-X2";
samsung,audio-routing =