ARM: dts: kswitch-d10: enable the USB device port
authorMichael Walle <michael@walle.cc>
Thu, 7 Jul 2022 13:25:00 +0000 (15:25 +0200)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 12 Jul 2022 07:12:30 +0000 (10:12 +0300)
Now that there is driver support for the USB device, enable it.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220707132500.1708020-2-michael@walle.cc
arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi

index 4cab1b3..84bffa3 100644 (file)
                pins = "GPIO_25", "GPIO_26";
                function = "fc0_b";
        };
+
+       usbs_a_pins: usbs-a-pins {
+               /* VBUS_DET */
+               pins = "GPIO_66";
+               function = "gpio";
+       };
 };
 
 &mdio0 {
        status = "okay";
 };
 
+&udc {
+       pinctrl-0 = <&usbs_a_pins>;
+       pinctrl-names = "default";
+       atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>;
+       status = "okay";
+};
+
 &watchdog {
        status = "okay";
 };