Commit 10d27dfa authored by Roger Quadros's avatar Roger Quadros Committed by Tony Lindgren

ARM: dts: am57xx-idk: Support VBUS detection on USB2 port

VBUS detection is available on the board via the palmas PMIC.
Use extcon-palmas driver instead of extcon-gpio-usb driver.
Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 82038157
...@@ -62,11 +62,6 @@ mmc0-led { ...@@ -62,11 +62,6 @@ mmc0-led {
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
}; };
extcon_usb2: extcon_usb2 {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
};
}; };
&mmc1 { &mmc1 {
...@@ -79,3 +74,8 @@ &mmc1 { ...@@ -79,3 +74,8 @@ &mmc1 {
&omap_dwc3_2 { &omap_dwc3_2 {
extcon = <&extcon_usb2>; extcon = <&extcon_usb2>;
}; };
&extcon_usb2 {
id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
vbus-gpio = <&gpio7 22 GPIO_ACTIVE_HIGH>;
};
...@@ -23,11 +23,6 @@ memory@0 { ...@@ -23,11 +23,6 @@ memory@0 {
reg = <0x0 0x80000000 0x0 0x80000000>; reg = <0x0 0x80000000 0x0 0x80000000>;
}; };
extcon_usb2: extcon_usb2 {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
};
status-leds { status-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
cpu0-led { cpu0-led {
...@@ -76,6 +71,11 @@ &omap_dwc3_2 { ...@@ -76,6 +71,11 @@ &omap_dwc3_2 {
extcon = <&extcon_usb2>; extcon = <&extcon_usb2>;
}; };
&extcon_usb2 {
id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
vbus-gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>;
};
&mmc1 { &mmc1 {
status = "okay"; status = "okay";
vmmc-supply = <&v3_3d>; vmmc-supply = <&v3_3d>;
......
...@@ -303,6 +303,13 @@ tps659038_gpio: tps659038_gpio { ...@@ -303,6 +303,13 @@ tps659038_gpio: tps659038_gpio {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
}; };
extcon_usb2: tps659038_usb {
compatible = "ti,palmas-usb-vid";
ti,enable-vbus-detection;
ti,enable-id-detection;
/* ID & VBUS GPIOs provided in board dts */
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment