]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: k3-am654-base-board: enable USB1
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 05:07:33 +0000 (10:37 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:29 +0000 (10:10 +0530)
Add pinmux for USB1 and enable it as a peripheral port in U-Boot
specific dtsi since U-Boot does not support OTG.
Disable USB0 as its not available on the baseboard.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-am654-base-board-u-boot.dtsi
arch/arm/dts/k3-am654-base-board.dts

index 57877f3d848c243e2314c063b016061b47b369aa..a349edcfa5fd6d6100c7fddefa3908991468c511 100644 (file)
 &wkup_i2c0 {
        u-boot,dm-spl;
 };
+
+&usb1 {
+       dr_mode = "peripheral";
+};
index 573ead0b4d857e6f63c2f05d83c38369bd743ed7..7ebbf17862555c9c8586c6214c22511e872111eb 100644 (file)
                        AM65X_IOPAD(0x01b0, PIN_INPUT, 0)               /* (C25) MMC0_DS */
                >;
        };
+
+       usb1_pins_default: usb1_pins_default {
+               pinctrl-single,pins = <
+                       AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
+               >;
+       };
 };
 
 &wkup_pmx0 {
                #gpio-cells = <2>;
        };
 };
+
+&dwc3_1 {
+       status = "okay";
+};
+
+&usb1_phy {
+       status = "okay";
+};
+
+&usb1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb1_pins_default>;
+       dr_mode = "otg";
+};
+
+&dwc3_0 {
+       status = "disabled";
+};
+
+&usb0_phy {
+       status = "disabled";
+};