diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2023-03-15 09:50:19 +0100 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2023-03-15 15:33:31 +0100 |
commit | 0ed70b87cfc33361eddc4bd415a6c7ad75660826 (patch) | |
tree | 5937fc71f82a031f42d0e4fb9836dcf92b8733b4 | |
parent | f56abd2fdc8735989d4b441a990cadf066fd3f9e (diff) |
arm64: dts: colibri-imx8x: Add usb
Add USB Host and USB OTG (Client/Host switching) to the carrier-boards.
Upstream-Status: Pending
- No support as of now in upstream linux.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi | 48 | ||||
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi | 48 | ||||
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 4 |
3 files changed, 96 insertions, 4 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index f95f3434fc4f..6c65ccabdbf9 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -17,6 +17,24 @@ #clock-cells = <0>; clock-frequency = <16000000>; }; + + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; + + reg_usbh_vbus: regulator-usbh-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh1_reg>; + gpio = <&lsio_gpio4 3 GPIO_ACTIVE_LOW>; + regulator-always-on; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "usbh_vbus"; + }; }; /* Colibri Analogue Inputs */ @@ -89,6 +107,36 @@ status = "okay"; }; +/* USB PHY for &usbotg3 */ +&usb3_phy { + status = "okay"; +}; + +&usbotg1 { + extcon = <&extcon_usbc_det &extcon_usbc_det>; + vbus-supply = <®_usbh_vbus>; + srp-disable; + hnp-disable; + adp-disable; + power-active-high; + disable-over-current; + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + dr_mode = "host"; + status = "okay"; +}; + +/* USB PHY for &usbotg1 */ +&usbphy1 { + status = "okay"; +}; + /* Colibri SD/MMC Card */ &usdhc2 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi index 3770cbebcdbc..f34f85f6054b 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi @@ -9,12 +9,30 @@ rtc1 = &rtc; }; + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; + reg_3v3: regulator-3v3 { compatible = "regulator-fixed"; regulator-max-microvolt = <3300000>; regulator-min-microvolt = <3300000>; regulator-name = "3.3V"; }; + + reg_usbh_vbus: regulator-usbh-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh1_reg>; + regulator-name = "usbh_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&lsio_gpio4 3 GPIO_ACTIVE_LOW>; + regulator-always-on; + }; }; /* Colibri Analogue Inputs */ @@ -114,6 +132,36 @@ status = "okay"; }; +/* USB PHY for &usbotg3 */ +&usb3_phy { + status = "okay"; +}; + +&usbotg1 { + extcon = <&extcon_usbc_det &extcon_usbc_det>; + vbus-supply = <®_usbh_vbus>; + srp-disable; + hnp-disable; + adp-disable; + power-active-high; + disable-over-current; + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + dr_mode = "host"; + status = "okay"; +}; + +/* USB PHY for &usbotg1 */ +&usbphy1 { + status = "okay"; +}; + /* Colibri SD/MMC Card */ &usdhc2 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index cf7524a63997..8957fc9c695a 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -557,10 +557,6 @@ no-1-8-v; }; -/* TODO USB Client/Host */ - -/* TODO USB Host */ - /* TODO VPU Encoder/Decoder */ &iomuxc { |