arm64: dts: tqma8mpql: add support for 2nd USB (host) interface
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Thu, 15 Sep 2022 06:28:55 +0000 (08:28 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 Oct 2022 09:10:40 +0000 (17:10 +0800)
The on-board USB hub has a single reset line which needs to be enabled.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts

index 7bf6f81..1c44090 100644 (file)
        status = "okay";
 };
 
+&usb3_1 {
+       fsl,disable-port-power-control;
+       fsl,permanently-attached;
+       dr_mode = "host";
+       status = "okay";
+};
+
 &usb3_phy0 {
        vbus-supply = <&reg_vcc_5v0>;
        status = "okay";
 };
 
+&usb3_phy1 {
+       vbus-supply = <&reg_vcc_5v0>;
+       status = "okay";
+};
+
 &usb_dwc3_0 {
        /* dual role is implemented, but not a full featured OTG */
        hnp-disable;
        };
 };
 
+&usb_dwc3_1 {
+       dr_mode = "host";
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbhub>;
+       status = "okay";
+
+       hub_2_0: hub@1 {
+               compatible = "usb451,8142";
+               reg = <1>;
+               peer-hub = <&hub_3_0>;
+               reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+               vdd-supply = <&reg_vcc_3v3>;
+       };
+
+       hub_3_0: hub@2 {
+               compatible = "usb451,8140";
+               reg = <2>;
+               peer-hub = <&hub_2_0>;
+               reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+               vdd-supply = <&reg_vcc_3v3>;
+       };
+};
+
 &usdhc2 {
        pinctrl-names = "default", "state_100mhz", "state_200mhz";
        pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
                fsl,pins = <MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10         0x1c0>;
        };
 
+       pinctrl_usbhub: usbhubgrp {
+               fsl,pins = <MX8MP_IOMUXC_GPIO1_IO11__GPIO1_IO11         0x10>;
+       };
+
        pinctrl_usdhc2: usdhc2grp {
                fsl,pins = <MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK            0x192>,
                           <MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD            0x1d2>,