diff mbox series

[v2,2/2] ARM: dts: kswitch-d10: enable the USB device port

Message ID 20220707132500.1708020-2-michael@walle.cc (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] ARM: dts: lan966x: add clock gating register | expand

Commit Message

Michael Walle July 7, 2022, 1:25 p.m. UTC
Now that there is driver support for the USB device, enable it.

Signed-off-by: Michael Walle <michael@walle.cc>
---
changes since v1:
 - add pinctrl node, Thanks Claudiu

 .../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi   | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Claudiu Beznea July 11, 2022, 7:15 a.m. UTC | #1
On 07.07.2022 16:25, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Now that there is driver support for the USB device, enable it.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>

Applied to at91-dt, thanks!

> ---
> changes since v1:
>  - add pinctrl node, Thanks Claudiu
> 
>  .../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi   | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> index 5a6c5f7c371a..3eecaa1b7205 100644
> --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> @@ -76,6 +76,12 @@ usart0_pins: usart0-pins {
>                 pins = "GPIO_25", "GPIO_26";
>                 function = "fc0_b";
>         };
> +
> +       usbs_a_pins: usbs-a-pins {
> +               /* VBUS_DET */
> +               pins = "GPIO_66";
> +               function = "gpio";
> +       };
>  };
> 
>  &mdio0 {
> @@ -200,6 +206,13 @@ &switch {
>         status = "okay";
>  };
> 
> +&udc {
> +       pinctrl-0 = <&usbs_a_pins>;
> +       pinctrl-names = "default";
> +       atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>;
> +       status = "okay";
> +};
> +
>  &watchdog {
>         status = "okay";
>  };
> --
> 2.30.2
>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
index 5a6c5f7c371a..3eecaa1b7205 100644
--- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
+++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
@@ -76,6 +76,12 @@  usart0_pins: usart0-pins {
 		pins = "GPIO_25", "GPIO_26";
 		function = "fc0_b";
 	};
+
+	usbs_a_pins: usbs-a-pins {
+		/* VBUS_DET */
+		pins = "GPIO_66";
+		function = "gpio";
+	};
 };
 
 &mdio0 {
@@ -200,6 +206,13 @@  &switch {
 	status = "okay";
 };
 
+&udc {
+	pinctrl-0 = <&usbs_a_pins>;
+	pinctrl-names = "default";
+	atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
 &watchdog {
 	status = "okay";
 };