Difference between revisions of "DESK-MX8M-L/Peripherals/USB-C"

From DAVE Developer's Wiki
Jump to: navigation, search
m (U0007 moved page DESK-MX8M-L/Pheripherals/USB-C to DESK-MX8M-L/Peripherals/USB-C without leaving a redirect)
 
(13 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 
|-  
 
|-  
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
 
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|1.0.0
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|17622|2023/02/27}}
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Feb 2023
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MX8M-L-2.0.0 release
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|DESK-MX8M-L-2.0.0 release
+
|-
 +
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2023/08/22
 +
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK-MX8M-L-4.0.0 release
 
|-
 
|-
 
|}
 
|}
Line 26: Line 27:
 
==== USB-C 1 ====
 
==== USB-C 1 ====
  
The USB-C 1 port is used to power-supply the board and for the transfer of data by Downstream-Facing Port (DFP) mode.
+
The USB-C 1 port is used to power-supply the board and for the transfer of data by Downstream-Facing Port (DFP) mode. The connector that is inserted in this port works in both side.
 
 
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.
+
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 [[DESK-MX8M-L/Pheripherals/USB1_OTG | USB1 OTG]].
 
For more information, refer to the example in [[DESK-MX8M-L/Pheripherals/USB1_OTG | USB1 OTG]].
 
The connector that is inserted in this port works in both verses.
 
  
 
==== USB-C 2 ====
 
==== USB-C 2 ====
  
The USB-C 2 port is used for data transfer.
+
The USB-C 2 port is used for data transfer. The connector that is inserted in this port works in both side.
 
 
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).
+
In U-Boot you can use this port to transmit data with an external device, Downstream-Facing Port (DFP) mode, 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 [[DESK-MX8M-L/Pheripherals/USB2_OTG | USB2 OTG]].
 
For more information, refer to the example in [[DESK-MX8M-L/Pheripherals/USB2_OTG | USB2 OTG]].
  
The connector that is inserted in this port works in both verses.
+
====Device tree configuration in ORCA SOM====
 
+
From <code>imx8mp-mito8mplus-cb1001.dts</code>:  
====Device tree configuration====
 
From <code>imx8mp-mito8mplus.dtsi</code>:  
 
 
<pre>
 
<pre>
 
&iomuxc {
 
&iomuxc {
...
+
pinctrl_ptn5150: ptn5150grp {
...
 
pinctrl_typec: typec1grp {
 
fsl,pins = <
 
MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13 0x1c4
 
>;
 
};
 
 
 
pinctrl_typec_mux: typec1muxgrp {
 
 
fsl,pins = <
 
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x16
+
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x156
 +
MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x16
 
>;
 
>;
 
};
 
};
 
...
 
...
 
...
 
...
</pre>
 
 
From <code>imx8mp-mito8mplus-cb1001.dts</code>:
 
<pre>
 
...
 
...
 
ptn36043 {
 
compatible = "nxp,ptn36043";
 
pinctrl-names = "default";
 
pinctrl-0 = <&pinctrl_typec_mux>;
 
switch-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
 
orientation-switch;
 
/* this must be left disabled to avoid conflicts with ptn36043_gpio
 
* see usb_dwc3_0 for more details */
 
status = "disabled";
 
 
port {
 
usb3_data_ss: endpoint {
 
remote-endpoint = <&typec_con_ss>;
 
};
 
};
 
};
 
...
 
...
 
ptn5110: tcpc@50 {
 
compatible = "nxp,ptn5110";
 
pinctrl-names = "default";
 
pinctrl-0 = <&pinctrl_typec>;
 
reg = <0x50>;
 
interrupt-parent = <&gpio1>;
 
interrupts = <13 8>;
 
 
/* disable this node to prevent blackout on boot
 
*/
 
status = "disabled";
 
 
port {
 
typec_dr_sw: endpoint {
 
remote-endpoint = <&usb3_drd_sw>;
 
};
 
};
 
 
usb_con: connector {
 
compatible = "usb-c-connector";
 
label = "USB-C";
 
power-role = "dual";
 
data-role = "dual";
 
try-power-role = "sink";
 
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
 
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
 
    PDO_VAR(5000, 12000, 3000)>;
 
op-sink-microwatt = <15000000>;
 
self-powered;
 
 
ports {
 
#address-cells = <1>;
 
#size-cells = <0>;
 
 
port@1 {
 
reg = <1>;
 
typec_con_ss: endpoint {
 
remote-endpoint = <&usb3_data_ss>;
 
};
 
};
 
};
 
};
 
};
 
 
 
extcon_usbotg2: typec@3d {
 
extcon_usbotg2: typec@3d {
 
compatible = "nxp,ptn5150";
 
compatible = "nxp,ptn5150";
Line 148: Line 66:
  
 
</pre>
 
</pre>
 
  
  
Line 154: Line 71:
 
----
 
----
  
[[Category:ORCA]] [[Category:MITO 8M Mini]]
+
[[Category:ORCA]]

Latest revision as of 10:22, 8 January 2024


History
Issue Date Notes

2023/02/27

DESK-MX8M-L-2.0.0 release
2023/08/22 DESK-MX8M-L-4.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. The connector that is inserted in this port works in both side.

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.

USB-C 2[edit | edit source]

The USB-C 2 port is used for data transfer. The connector that is inserted in this port works in both side.

In U-Boot you can use this port to transmit data with an external device, Downstream-Facing Port (DFP) mode, 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.

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

From imx8mp-mito8mplus-cb1001.dts:

&iomuxc {
	pinctrl_ptn5150: ptn5150grp {
		fsl,pins = <
			MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00	0x156
			MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x16
		>;
	};
...
...
	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";
	};
...
...