1
0
Fork 0

ARM64: dts: imx8qm-mek: Add type-c support

Add USB Type-C support which is used for Cadence USB3 port.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Peter Chen 2019-08-19 14:47:18 +08:00 committed by Dong Aisheng
parent d16ead77fa
commit 1ace327640
1 changed files with 59 additions and 0 deletions

View File

@ -6,6 +6,7 @@
/dts-v1/;
#include <dt-bindings/usb/pd.h>
#include "imx8qm.dtsi"
/ {
@ -38,6 +39,21 @@
#reset-cells = <0>;
};
cbtl04gp {
compatible = "nxp,cbtl04gp";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_typec_mux>;
switch-gpios = <&lsio_gpio4 6 GPIO_ACTIVE_LOW>;
reset-gpios = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
orientation-switch;
port {
usb3_data_ss: endpoint {
remote-endpoint = <&typec_con_ss>;
};
};
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
@ -498,6 +514,36 @@
reg = <0x60>;
interrupt-open-drain;
};
ptn5110: tcpc@51 {
compatible = "nxp,ptn5110";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_typec>;
reg = <0x51>;
interrupt-parent = <&lsio_gpio4>;
interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
status = "okay";
usb_con1: connector {
compatible = "usb-c-connector";
label = "USB-C";
power-role = "source";
data-role = "dual";
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
typec_con_ss: endpoint {
remote-endpoint = <&usb3_data_ss>;
};
};
};
};
};
};
&i2c1 {
@ -779,6 +825,19 @@
>;
};
pinctrl_typec: typecgrp {
fsl,pins = <
IMX8QM_QSPI1A_DATA0_LSIO_GPIO4_IO26 0x00000021
>;
};
pinctrl_typec_mux: typecmuxgrp {
fsl,pins = <
IMX8QM_QSPI1A_SS0_B_LSIO_GPIO4_IO19 0x60
IMX8QM_USB_SS3_TC3_LSIO_GPIO4_IO06 0x60
>;
};
pinctrl_usbotg1: usbotg1 {
fsl,pins = <
IMX8QM_USB_SS3_TC0_CONN_USB_OTG1_PWR 0x00000021