Skip to content

Commit 40a2226

Browse files
mgrzeschikclaudiubeznea
authored andcommitted
ARM: dts: at91: sam9g20ek: enable udc vbus gpio pinctrl
We set the PIOC to GPIO mode. This way the pin becomes an input signal will be usable by the controller. Without this change the udc on the 9g20ek does not work. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Fixes: 5cb4e73 ("ARM: at91: add at91sam9g20ek boards dt support") Signed-off-by: Michael Grzeschik <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent cef8cdc commit 40a2226

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/arm/boot/dts/at91sam9g20ek_common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939

4040
};
4141

42+
usb1 {
43+
pinctrl_usb1_vbus_gpio: usb1_vbus_gpio {
44+
atmel,pins =
45+
<AT91_PIOC 5 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PC5 GPIO */
46+
};
47+
};
48+
4249
mmc0_slot1 {
4350
pinctrl_board_mmc0_slot1: mmc0_slot1-board {
4451
atmel,pins =
@@ -84,6 +91,8 @@
8491
};
8592

8693
usb1: gadget@fffa4000 {
94+
pinctrl-0 = <&pinctrl_usb1_vbus_gpio>;
95+
pinctrl-names = "default";
8796
atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
8897
status = "okay";
8998
};

0 commit comments

Comments
 (0)