[PATCH 3/3] arm64: dts: mediatek: mt8183-pumpkin: add USB host support

From: Fabien Parent
Date: Wed Nov 10 2021 - 14:24:44 EST


The MT8183 Pumpkin board provides USB host support through 2 type-A
ports. In addition the board provides Ethernet support
with the LAN9512 IP connected on the USB bus.

Signed-off-by: Fabien Parent <fparent@xxxxxxxxxxxx>
---
.../boot/dts/mediatek/mt8183-pumpkin.dts | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
index d5a6628e9c5b..541b382c0e81 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
@@ -434,6 +434,18 @@ pins_gpio {
<PINMUX_GPIO28__FUNC_GPIO28>;
};
};
+
+ usb_pins: usb-pins {
+ pins_usb {
+ pinmux = <PINMUX_GPIO42__FUNC_GPIO42>;
+ output-low;
+ };
+
+ pins_hub_rst {
+ pinmux = <PINMUX_GPIO9__FUNC_GPIO9>;
+ output-low;
+ };
+ };
};

&mfg {
@@ -496,3 +508,17 @@ dpi_out: endpoint {
};
};
};
+
+&ssusb {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_pins>;
+ maximum-speed = "high-speed";
+ dr_mode = "host";
+ vusb33-supply = <&mt6358_vusb_reg>;
+ status = "okay";
+};
+
+&usb_host {
+ vusb33-supply = <&mt6358_vusb_reg>;
+ status = "okay";
+};
--
2.33.1