Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1417459
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC v4 7/7] ARM: dts: exynos: Add extcon-usb-gpio node for Odroid XU3 |
| Date | 2016-06-08 15:50 +0200 |
| Message-ID | <rHM1R-Pq-63@gated-at.bofh.it> (permalink) |
| References | <rHM1P-Pq-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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(+)
diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
index 03fa88c45426..3d4d51bc2e3d 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
@@ -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 {
diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index 9ed6564acfb0..020eb097c9c6 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -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
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC v4 0/7] extcon: usb-gpio: fixes and improvements Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 15:50 +0200
[RFC v4 2/7] Revert "extcon: usb-gpio: switch to use pm wakeirq apis" Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 15:50 +0200
Re: [RFC v4 2/7] Revert "extcon: usb-gpio: switch to use pm wakeirq apis" Roger Quadros <rogerq@ti.com> - 2016-06-09 10:10 +0200
Re: [RFC v4 2/7] Revert "extcon: usb-gpio: switch to use pm wakeirq apis" Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-09 10:20 +0200
Re: [RFC v4 2/7] Revert "extcon: usb-gpio: switch to use pm wakeirq apis" Roger Quadros <rogerq@ti.com> - 2016-06-09 10:30 +0200
[RFC v4 6/7] ARM: exynos_defconfig: Enable EXTCON_USB_GPIO for Odroid XU3 USB OTG Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 15:50 +0200
[RFC v4 7/7] ARM: dts: exynos: Add extcon-usb-gpio node for Odroid XU3 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 15:50 +0200
[RFC v4 1/7] Documentation: extcon: usb-gpio: update usb-gpio binding description Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 15:50 +0200
Re: [RFC v4 1/7] Documentation: extcon: usb-gpio: update usb-gpio binding description Rob Herring <robh@kernel.org> - 2016-06-10 16:10 +0200
[RFC v4 3/7] extcon: Add raw VBUS and ID cable states Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 16:00 +0200
[RFC v4 4/7] extcon: usb-gpio: Add support for VBUS detection Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-08 16:00 +0200
Re: [RFC v4 4/7] extcon: usb-gpio: Add support for VBUS detection Roger Quadros <rogerq@ti.com> - 2016-06-09 10:40 +0200
Re: [RFC v4 4/7] extcon: usb-gpio: Add support for VBUS detection Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-09 10:50 +0200
Re: [RFC v4 4/7] extcon: usb-gpio: Add support for VBUS detection Roger Quadros <rogerq@ti.com> - 2016-06-09 14:20 +0200
Re: [RFC v4 4/7] extcon: usb-gpio: Add support for VBUS detection Roger Quadros <rogerq@ti.com> - 2016-06-09 10:50 +0200
Re: [RFC v4 0/7] extcon: usb-gpio: fixes and improvements Chanwoo Choi <cw00.choi@samsung.com> - 2016-06-09 10:40 +0200
Re: [RFC v4 0/7] extcon: usb-gpio: fixes and improvements Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-09 10:40 +0200
Re: [RFC v4 0/7] extcon: usb-gpio: fixes and improvements Chanwoo Choi <cw00.choi@samsung.com> - 2016-06-09 11:40 +0200
csiph-web