]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB
authorSergiu Moga <sergiu.moga@microchip.com>
Wed, 4 Jan 2023 14:04:12 +0000 (16:04 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 5 Jan 2023 08:04:57 +0000 (10:04 +0200)
Add the required pinctrl and gpio properties required by the USB DT
nodes of the sam9x60ek boards.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
arch/arm/dts/sam9x60ek.dts

index 1a02e2cb79e43dc802e8a099eb76f55425c85d74..45e2f4cc406268821187c6d78b46fba1b9b72ccb 100644 (file)
                                                <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
                                };
 
+                               usb1 {
+                                       pinctrl_usb_default: usb_default {
+                                               atmel,pins = <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+                                                               AT91_PIOD 16 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+                                       };
+                               };
+
                        };
                };
        };
        phy-mode = "rmii";
        status = "okay";
 };
+
+&usb1 {
+       num-ports = <3>;
+       atmel,vbus-gpio = <0
+                          &pioD 15 GPIO_ACTIVE_HIGH
+                          &pioD 16 GPIO_ACTIVE_HIGH>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usb_default>;
+       status = "okay";
+};
+
+&usb2 {
+       status = "okay";
+};