arm: dts: k3-am625-sk: Add support for USB instances brought out on the board

The two instance of USB IP in AM62 SoC are brought out on the SK board. The
zeroth instance is brought out through a USB TYPE C port and the first
instance through a USB TYPE A port. As role switching is supported in
U-Boot and dfu support is required, fix the role of zeroth instance to
peripheral in the U-Boot dts file.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
This commit is contained in:
Aswath Govindraju 2022-04-06 20:54:45 +05:30 committed by Praneeth Bajjuri
parent 6505d5bee3
commit 316c827f74
2 changed files with 58 additions and 0 deletions

View File

@ -112,6 +112,29 @@
u-boot,dm-spl;
};
&usbss0 {
u-boot,dm-spl;
};
&usb0 {
dr_mode = "peripheral";
/* Since role switching is not supported in U-Boot */
/delete-property/ extcon;
u-boot,dm-spl;
};
&usbss1 {
u-boot,dm-spl;
};
&usb1 {
u-boot,dm-spl;
};
&main_usb1_pins_default {
u-boot,dm-spl;
};
&cpsw3g {
reg = <0x0 0x8000000 0x0 0x200000>,
<0x0 0x43000200 0x0 0x8>;

View File

@ -21,6 +21,8 @@
mmc0 = &sdhci0;
mmc1 = &sdhci1;
mmc2 = &sdhci2;
usb0 = &usb0;
usb1 = &usb1;
};
chosen {
@ -131,6 +133,13 @@
default-state = "off";
};
};
extcon_usb0: extcon-usb0 {
compatible = "linux,extcon-usb-gpio";
id-gpios = <&main_gpio1 50 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&extcon_usb0_gpio_id_pins_default>;
};
};
&main_pmx0 {
@ -241,6 +250,18 @@
AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */
>;
};
extcon_usb0_gpio_id_pins_default: extcon-usb0-gpio-id-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x254, PIN_INPUT_PULLUP, 7) /* (C20) USB0_DRVVBUS.GPIO1_50 */
>;
};
main_usb1_pins_default: main-usb1-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
>;
};
};
&wkup_uart0 {
@ -346,6 +367,20 @@
disable-wp;
};
&usbss0 {
ti,vbus-divider;
};
&usb0 {
extcon = <&extcon_usb0>;
};
&usb1 {
dr_mode = "host";
pinctrl-names = "default";
pinctrl-0 = <&main_usb1_pins_default>;
};
&cpsw3g {
pinctrl-names = "default";
pinctrl-0 = <&main_mdio1_pins_default