]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: k3-am642-*-evm: Add USB support
authorAswath Govindraju <a-govindraju@ti.com>
Fri, 4 Jun 2021 16:30:36 +0000 (22:00 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 9 Jun 2021 16:53:44 +0000 (22:23 +0530)
AM64 EVM board has a micro USB 2.0 AB connector and the USB0_VBUS is
connected with a resistor divider in between. USB0_DRVVBUS pin is muxed
between USB0_DRVVBUS and GPIO1_79 signals.

Add the corresponding properties and set the pinmux mode for USB subsystem
in the evm dts file.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210604163043.12811-7-a-govindraju@ti.com
arch/arm/dts/k3-am642-evm.dts
arch/arm/dts/k3-am642-r5-evm.dts

index dc3482bea4339b4d75ca2a9cb9ae6963c4d54777..3a505d22c635062b38e13c61126bfd10381c40a1 100644 (file)
                        AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
                >;
        };
+
+       main_usb0_pins_default: main-usb0-pins-default {
+               pinctrl-single,pins = <
+                       AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
+               >;
+       };
 };
 
 &main_uart0 {
        ti,driver-strength-ohm = <50>;
        disable-wp;
 };
+
+&usbss0 {
+       ti,vbus-divider;
+       ti,usb2-only;
+};
+
+&usb0 {
+       dr_mode = "otg";
+       maximum-speed = "high-speed";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_usb0_pins_default>;
+};
index 1fbf6d2c23a5f51e5099e4606381a7323bb60eb7..cc48fd4cb6075e00fc9d4593905752bad46663fb 100644 (file)
                        AM64X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7)       /* (L18) OSPI0_CSN1.GPIO0_12 */
                >;
        };
+
+       main_usb0_pins_default: main-usb0-pins-default {
+               pinctrl-single,pins = <
+                       AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
+               >;
+       };
 };
 
 &dmsc {
        /delete-property/ power-domains;
 };
 
+&usbss0 {
+       ti,vbus-divider;
+       ti,usb2-only;
+};
+
+&usb0 {
+       dr_mode = "otg";
+       maximum-speed = "high-speed";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_usb0_pins_default>;
+};
+
 #include "k3-am642-evm-u-boot.dtsi"