From: Frank Li <Frank.li@nxp.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Dong Aisheng <aisheng.dong@nxp.com>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 8/8] arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes
Date: Sun, 1 Sep 2024 13:13:26 -0400 [thread overview]
Message-ID: <ZtSgtqEFSOzE06Vx@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20240701-imx8qm-dts-usb-v4-8-03cdbc8c44b6@nxp.com>
On Mon, Jul 01, 2024 at 11:03:34AM -0400, Frank Li wrote:
> Enable usb3.0 and related usb type C nodes.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 87 ++++++++++++++++++++++++++++
> 1 file changed, 87 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> index 7ceea79f658db..aa874576e974b 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
Shawn:
Can you take care this?
Frank
> @@ -6,6 +6,7 @@
>
> /dts-v1/;
>
> +#include <dt-bindings/usb/pd.h>
> #include "imx8qm.dtsi"
>
> / {
> @@ -109,6 +110,21 @@ lvds_backlight1: backlight-lvds1 {
> default-brightness-level = <80>;
> };
>
> + mux-controller {
> + compatible = "nxp,cbdtu02043", "gpio-sbu-mux";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_typec_mux>;
> + select-gpios = <&lsio_gpio4 6 GPIO_ACTIVE_LOW>;
> + enable-gpios = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
> + orientation-switch;
> +
> + port {
> + usb3_data_ss: endpoint {
> + remote-endpoint = <&typec_con_ss>;
> + };
> + };
> + };
> +
> reg_usdhc2_vmmc: usdhc2-vmmc {
> compatible = "regulator-fixed";
> regulator-name = "SD1_SPWR";
> @@ -321,6 +337,44 @@ gyrometer@69 {
> compatible = "st,l3g4200d-gyro";
> reg = <0x69>;
> };
> +
> + ptn5110: tcpc@51 {
> + compatible = "nxp,ptn5110", "tcpci";
> + 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@0 {
> + reg = <0>;
> +
> + typec_dr_sw: endpoint {
> + remote-endpoint = <&usb3_drd_sw>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + typec_con_ss: endpoint {
> + remote-endpoint = <&usb3_data_ss>;
> + };
> + };
> + };
> + };
> + };
> };
>
> &i2c1 {
> @@ -525,6 +579,26 @@ &usdhc2 {
> status = "okay";
> };
>
> +&usb3_phy {
> + status = "okay";
> +};
> +
> +&usbotg3 {
> + status = "okay";
> +};
> +
> +&usbotg3_cdns3 {
> + dr_mode = "otg";
> + usb-role-switch;
> + status = "okay";
> +
> + port {
> + usb3_drd_sw: endpoint {
> + remote-endpoint = <&typec_dr_sw>;
> + };
> + };
> +};
> +
> &sai0 {
> #sound-dai-cells = <0>;
> assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
> @@ -791,6 +865,19 @@ IMX8QM_SAI1_TXC_AUD_SAI1_TXC 0x06000040
> >;
> };
>
> + 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_usdhc1: usdhc1grp {
> fsl,pins = <
> IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-09-01 17:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 15:03 [PATCH v4 0/8] arm64: dts: imx8qm: add subsystem lvds and mipi Frank Li
2024-07-01 15:03 ` [PATCH v4 1/8] arm64: dts: imx8: add basic lvds0 and lvds1 subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 2/8] arm64: dts: imx8qm: add lvds subsystem Frank Li
2024-07-02 4:10 ` Shawn Guo
2024-07-02 4:22 ` Frank Li
2024-07-02 6:18 ` Shawn Guo
2024-07-02 10:56 ` Fabio Estevam
2024-09-02 0:44 ` Shawn Guo
2024-07-01 15:03 ` [PATCH v4 3/8] arm64: dts: imx8: add basic mipi subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 4/8] arm64: dts: imx8qm: add " Frank Li
2024-07-01 15:03 ` [PATCH v4 5/8] arm64: dts: imx8qm-mek: add cm4 remote-proc and related memory region Frank Li
2024-07-01 15:03 ` [PATCH v4 6/8] arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 7/8] arm64: dts: imx8qm-mek: add i2c in mipi[0,1] subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 8/8] arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes Frank Li
2024-09-01 17:13 ` Frank Li [this message]
2024-09-02 0:42 ` [PATCH v4 0/8] arm64: dts: imx8qm: add subsystem lvds and mipi Shawn Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZtSgtqEFSOzE06Vx@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox