DESK-MX8M-L/Peripherals/USB-C

From DAVE Developer's Wiki
< DESK-MX8M-L
Revision as of 10:28, 17 February 2023 by U0028 (talk | contribs) (Device tree configuration)

Jump to: navigation, search


History
Version Issue Date Notes
1.0.0 Feb 2023 DESK-MX8M-L-2.0.0 release


Peripheral USB-C[edit | edit source]

SBC ORCA[edit | edit source]

In SBC Orca two USB-C ports were mounted, that is:

  • USB-C 1
  • USB-C 2

USB-C 1[edit | edit source]

The USB-C 1 port is used to power-supply the board and for the transfer of data by Downstream-Facing Port (DFP) mode.

In U-Boot you can use this port only to power-supply the board and not for data transfer.

In Linux you can use this port for data transfer.

For more information, refer to the example in USB1 OTG.

The connector that is inserted in this port works in both side.

USB-C 2[edit | edit source]

The USB-C 2 port is used for data transfer.

In U-Boot you can use this port to transmit data with an external device and to use the UUU functionality of NXP.

In Linux you can use the Dual-Role Data mode (DRD).

For more information, refer to the example in USB2 OTG.

The connector that is inserted in this port works in both side.

Device tree configuration in ORCA SOM[edit | edit source]

From imx8mp-mito8mplus.dtsi:

&iomuxc {
	pinctrl_ptn5150: ptn5150grp {
		fsl,pins = <
			MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00	0x156
			MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x16
		>;
	};
...
...

From imx8mp-mito8mplus-cb1001.dts:

...
...

	extcon_usbotg2: typec@3d {
		compatible = "nxp,ptn5150";
		reg = <0x3d>;
		int-gpios = <&gpio1 00 GPIO_ACTIVE_LOW>;
		vbus-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_ptn5150>;
		status = "okay";
	};
...
...