]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB
authorSergiu Moga <sergiu.moga@microchip.com>
Wed, 4 Jan 2023 14:04:11 +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 needed by the USB DT nodes
of the sam9x60_curiosity boards.

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

index 7c5b6ae2b87ae7d91d4381c1c6849794844e0af8..d6ae3d648daf92a3173a89f74d8c81c42b6dd88c 100644 (file)
                                                atmel,pins =
                                                        <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 18 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 18 GPIO_ACTIVE_HIGH>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usb_default>;
+       status = "okay";
+};
+
+&usb2 {
+       status = "okay";
+};