arm64: dts: colibri-imx8x: Add usb support

Add USB HOST and OTG support to Colibri-iMX8X carrier boards.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
Emanuele Ghidoli 2024-09-01 17:57:12 +02:00 committed by Shawn Guo
parent b237975b2c
commit 53f7fe5070
4 changed files with 111 additions and 4 deletions

View File

@ -7,6 +7,10 @@
status = "okay";
};
&extcon_usbc_det {
status = "okay";
};
/* Colibri Ethernet */
&fec1 {
status = "okay";
@ -38,6 +42,28 @@
status = "okay";
};
/* USB PHY for usbotg3 */
&usb3_phy {
status = "okay";
};
&usbotg1 {
status = "okay";
};
&usbotg3 {
status = "okay";
};
&usbotg3_cdns3 {
status = "okay";
};
/* USB PHY for usbotg1 */
&usbphy1 {
status = "okay";
};
/* Colibri SDCard */
&usdhc2 {
status = "okay";

View File

@ -23,6 +23,10 @@
status = "okay";
};
&extcon_usbc_det {
status = "okay";
};
&i2c1 {
status = "okay";
@ -90,6 +94,28 @@
status = "okay";
};
/* USB PHY for usbotg3 */
&usb3_phy {
status = "okay";
};
&usbotg1 {
status = "okay";
};
&usbotg3 {
status = "okay";
};
&usbotg3_cdns3 {
status = "okay";
};
/* USB PHY for usbotg1 */
&usbphy1 {
status = "okay";
};
/* Colibri SD/MMC Card */
&usdhc2 {
status = "okay";

View File

@ -21,6 +21,10 @@
status = "okay";
};
&extcon_usbc_det {
status = "okay";
};
/* Colibri FastEthernet */
&fec1 {
status = "okay";
@ -108,6 +112,28 @@
status = "okay";
};
/* USB PHY for usbotg3 */
&usb3_phy {
status = "okay";
};
&usbotg1 {
status = "okay";
};
&usbotg3 {
status = "okay";
};
&usbotg3_cdns3 {
status = "okay";
};
/* USB PHY for usbotg1 */
&usbphy1 {
status = "okay";
};
/* Colibri SD/MMC Card */
&usdhc2 {
status = "okay";

View File

@ -23,12 +23,31 @@
};
};
extcon_usbc_det: usbc-det {
compatible = "linux,extcon-usb-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbc_det>;
id-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
reg_module_3v3: regulator-module-3v3 {
compatible = "regulator-fixed";
regulator-name = "+V3.3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
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";
};
};
/* TODO Analogue Inputs */
@ -329,6 +348,20 @@
/* TODO On-module i2s / Audio */
&usbotg1 {
adp-disable;
disable-over-current;
extcon = <&extcon_usbc_det &extcon_usbc_det>;
hnp-disable;
power-active-high;
srp-disable;
vbus-supply = <&reg_usbh_vbus>;
};
&usbotg3_cdns3 {
dr_mode = "host";
};
/* On-module eMMC */
&usdhc1 {
bus-width = <8>;
@ -356,10 +389,6 @@
no-1-8-v;
};
/* TODO USB Client/Host */
/* TODO USB Host */
/* TODO VPU Encoder/Decoder */
&iomuxc {