@@ -19,6 +19,27 @@
/ {
model = "Hardkernel Odroid XU3 Lite";
compatible = "hardkernel,odroid-xu3-lite", "samsung,exynos5800", "samsung,exynos5";
+
+ extcon_usb: extcon_usb {
+ compatible = "linux,extcon-usb-gpio";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_otg_id &usb_vbus>;
+ id-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
+ vbus-gpio = <&gpx3 4 GPIO_ACTIVE_HIGH>;
+ };
+};
+
+&pinctrl_0 {
+ usb_otg_id: usb-otg-id {
+ samsung,pins = "gpx1-1";
+ samsung,pin-pud = <0>;
+ };
+
+ usb_vbus: usb-vbus {
+ samsung,pins = "gpx3-4";
+ samsung,pin-pud = <0>;
+ };
};
&pwm {
@@ -18,6 +18,15 @@
/ {
model = "Hardkernel Odroid XU3";
compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5";
+
+ extcon_usb: extcon_usb {
+ compatible = "linux,extcon-usb-gpio";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_otg_id &usb_vbus>;
+ id-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
+ vbus-gpio = <&gpx3 4 GPIO_ACTIVE_HIGH>;
+ };
};
&i2c_0 {
@@ -52,6 +61,18 @@
};
};
+&pinctrl_0 {
+ usb_otg_id: usb-otg-id {
+ samsung,pins = "gpx1-1";
+ samsung,pin-pud = <0>;
+ };
+
+ usb_vbus: usb-vbus {
+ samsung,pins = "gpx3-4";
+ samsung,pin-pud = <0>;
+ };
+};
+
&pwm {
/*
* PWM 0 -- fan
Add node for extcon-usb-gpio driver which will be providing notifications about VBUS/ID changes to the dwc3 driver. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroidxu3.dts | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+)