diff options
author | Sanchayan Maity <maitysanchayan@gmail.com> | 2016-09-08 15:53:12 +0530 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-01-10 23:10:09 +0100 |
commit | 62c3704936bef7b7103746470b2b1663f8db07f1 (patch) | |
tree | 109f738be38ed055749c3b73ebaea94fce6f09ef /arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | |
parent | 1f43d373946ee34ce0cfeb667a9aa48d6995bfea (diff) |
ARM: dts: imx7d/imx7s-colibri: Enable usb device/host switch using extcon
Use USBC_DET feature of standard Colibri SODIMM pin 137 for USB
device/host switching using the generic extcon USB gpio implementation.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
[remove pin from FEC and fixed pinmux assignment]
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit cf86d072a45f1490d447aebe8677a740164ac5fb)
Diffstat (limited to 'arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi index ebb16f32cbdd..75e0b5e28dae 100644 --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi @@ -36,6 +36,14 @@ gpio-key,wakeup; }; }; + + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + debounce = <25>; + id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; }; &bl { @@ -251,6 +259,7 @@ }; &usbotg1 { + extcon = <&extcon_usbc_det>; vbus-supply = <®_usb_otg2_vbus>; status = "okay"; }; @@ -291,6 +300,12 @@ MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x14 >; }; + + pinctrl_usbc_det: gpio_usbc_det { + fsl,pins = < + MX7D_PAD_ENET1_CRS__GPIO7_IO14 0x74 + >; + }; }; }; |