mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 03:22:39 +00:00
ARM: dts: imx7-colibri: add usb dual-role switching using extcon
[ Upstream commit 136f88458d ]
Add USB dual-role switching using extcon.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
78130b0585
commit
b31d4563b8
@@ -20,6 +20,13 @@
|
||||
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 @@
|
||||
};
|
||||
|
||||
&usbotg1 {
|
||||
extcon = <0>, <&extcon_usbc_det>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
@@ -497,7 +497,7 @@
|
||||
};
|
||||
|
||||
&usbotg1 {
|
||||
dr_mode = "host";
|
||||
dr_mode = "otg";
|
||||
};
|
||||
|
||||
&usdhc1 {
|
||||
@@ -525,8 +525,7 @@
|
||||
|
||||
&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
|
||||
|
||||
Reference in New Issue
Block a user