summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-21 12:52:55 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 10:56:14 +0200
commit3c0666b174f0a003fd1b5a33e1c8c9b033fb55bb (patch)
tree76a4ae26e37276ede8ac0eb38cded62fb123fdb1 /arch
parentb2e122b2a9dbaa8728d48a2bf0d0566e07690d13 (diff)
ARM: dts: vf500/vf610-colibri: usb device/host switch using extcon gpio
Use USBC_DET feature of Standard Colibri SODIMM pin 137 for USB device/host switching using the generic extcon USB GPIO implementation.
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/vf-colibri-eval-v3.dtsi12
-rw-r--r--arch/arm/boot/dts/vf-colibri.dtsi8
2 files changed, 19 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
index 28582fa83a2b..bb82acc3bd27 100644
--- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
+++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
@@ -29,6 +29,14 @@
default-on;
};
+ extcon_usbc_det: usbc_det {
+ compatible = "linux,extcon-usb-gpio";
+ debounce = <25>;
+ id-gpio = <&gpio3 6 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usbc_det>;
+ };
+
regulators {
sys_5v0_reg: regulator@0 {
compatible = "regulator-fixed";
@@ -256,6 +264,10 @@
status = "okay";
};
+&usbdev0 {
+ extcon = <&extcon_usbc_det>;
+};
+
&usbh1 {
vbus-supply = <&usbh_vbus_reg>;
};
diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi
index 5c4b91fa8229..4b70a5228249 100644
--- a/arch/arm/boot/dts/vf-colibri.dtsi
+++ b/arch/arm/boot/dts/vf-colibri.dtsi
@@ -137,6 +137,7 @@
&usbdev0 {
disable-over-current;
+ dr_mode = "otg";
status = "okay";
};
@@ -204,7 +205,6 @@
VF610_PAD_PTB23__GPIO_93 0x22ed
VF610_PAD_PTB26__GPIO_96 0x22ed
VF610_PAD_PTB28__GPIO_98 0x22ed
- VF610_PAD_PTC29__GPIO_102 0x22ed
VF610_PAD_PTC30__GPIO_103 0x22ed
VF610_PAD_PTA7__GPIO_134 0x22ed
>;
@@ -374,6 +374,12 @@
>;
};
+ pinctrl_usbc_det: gpio_usbc_det {
+ fsl,pins = <
+ VF610_PAD_PTC29__GPIO_102 0x22ed
+ >;
+ };
+
pinctrl_usbh1_reg: gpio_usb_vbus {
fsl,pins = <
VF610_PAD_PTD4__GPIO_83 0x22ed