Commit 136f8845 authored by Philippe Schenker's avatar Philippe Schenker Committed by Shawn Guo
Browse files

ARM: dts: imx7-colibri: add usb dual-role switching using extcon



Add USB dual-role switching using extcon.

Signed-off-by: default avatarPhilippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 417092d5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -20,6 +20,13 @@ clk16m: clk16m {
		clock-frequency = <16000000>;
	};

	extcon_usbc_det: usbc-det {
		compatible = "linux,extcon-usb-gpio";
		id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_usbc_det>;
	};

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
@@ -141,6 +148,7 @@ &uart3 {
};

&usbotg1 {
	extcon = <0>, <&extcon_usbc_det>;
	status = "okay";
};

+2 −3
Original line number Diff line number Diff line
@@ -512,7 +512,7 @@ &uart3 {
};

&usbotg1 {
	dr_mode = "host";
	dr_mode = "otg";
};

&usdhc1 {
@@ -540,8 +540,7 @@ &usdhc3 {

&iomuxc {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4
		     &pinctrl_usbc_det>;
	pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4>;

	/*
	 * Atmel MXT touchsceen + Capacitive Touch Adapter