From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 705ACC61DA4 for ; Tue, 14 Mar 2023 00:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U3TzjXcQ1lZLb142yd/tHSRKNU9K6p8/jDAqaD1IqPo=; b=VZhs2q0IkF0iR3 oytaEM22xqfycHWmHJnRIAl7jEEoLZPV0tGYB8yBRFf51yGF4FIKQIbsgqRHknCKEkkpx2cFepC9L ECQXei9u5NSwc4jODYjitI/0qwV3SSw/j5rplVfbboC8wE8hf7rl5xuE9L0ymPRlHN7Q8M9TKZi99 mLbApfXc8RPQUvdQgY6KC6yBhjhRgTkE/Q3DvG4DnPTVxwHt8EisLfWsDqMPYGCB1uU4IDSRkhQtz gpv07M5i4P6J+FnmmAxwsONnpsnj5jQaCY8Z77EeG8yHfwAHZdWaOMrCzMBS70MbjM1qoAg6h2kbF WgpTmohmM+eEkJpOH47w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbsvM-008U87-OC; Tue, 14 Mar 2023 00:53:56 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbsvJ-008U7W-Mf for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 00:53:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 10F4461572; Tue, 14 Mar 2023 00:53:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25CC4C433D2; Tue, 14 Mar 2023 00:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678755232; bh=2DrJLkuUgorhS4aRsd6guPDQJPAJsGtB34wensbN/rA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WY9JzQOsxmdcp90IysXxRHkkhGV8wWNmf58MOaA+FZk4ERlXf3bMl5wQer1UN3mQv yUbOm3LjT7EPmwgw2eF4yheaBO+tRFveN3uSo0x/CmbjyoEbW1ReETHZRgvcf1f9H5 v8ithuXN6AXXGybstjwEXOdDlAW2a4V4as9+0pQ+dXm5X2uhjejbnfTb4uD8saak86 cqrbREA5xHF/FyvXQIIOsydQyQgN4dcN8F1j/nhEjlMFkr7GeqhtNxko+/XLksJuAj k6G/tvXzcyRPPiaU94iGBCPzSafc/7DsehDyjVDtHkYGjSd5RezGPNwf4B846tLSED 7cJDQaQ393rFw== Date: Tue, 14 Mar 2023 08:53:45 +0800 From: Shawn Guo To: Frank Li Cc: Rob Herring , Krzysztof Kozlowski , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , imx@lists.linux.dev Subject: Re: [PATCH 2/2] arm64: dts: freescale: imx8qxp-mek: enable cadence usb3 Message-ID: <20230314005345.GU143566@dragon> References: <20230213222229.686072-1-Frank.Li@nxp.com> <20230213222229.686072-2-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230213222229.686072-2-Frank.Li@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230313_175353_850220_E94C9E16 X-CRM114-Status: GOOD ( 15.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Feb 13, 2023 at 05:22:28PM -0500, Frank Li wrote: > Enable USB3 controller, phy and typec related nodes. > > Signed-off-by: Frank Li > --- > arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > index afa883389456..64f20ff44ba7 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > @@ -6,6 +6,7 @@ > /dts-v1/; > > #include "imx8qxp.dtsi" > +#include > > / { > model = "Freescale i.MX8QXP MEK"; > @@ -28,6 +29,21 @@ reg_usdhc2_vmmc: usdhc2-vmmc { > gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>; > enable-active-high; > }; > + > + gpio-sbu-mux { > + compatible = "gpio-sbu-mux"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_typec_mux>; > + select-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_LOW>; > + enable-gpios = <&pca9557_a 7 GPIO_ACTIVE_LOW>; > + orientation-switch; > + > + port { > + usb3_data_ss: endpoint { > + remote-endpoint = <&typec_con_ss>; > + }; > + }; > + }; > }; > > &dsp { > @@ -127,6 +143,44 @@ light-sensor@44 { > }; > }; > }; > + > + ptn5110: tcpc@50 { > + compatible = "nxp,ptn5110"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_typec>; > + reg = <0x50>; > + Unneeded newline. > + interrupt-parent = <&lsio_gpio1>; > + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; > + status = "okay"; Unneeded "okay" status. > + > + port { > + typec_dr_sw: endpoint { > + remote-endpoint = <&usb3_drd_sw>; > + }; > + }; > + > + usb_con1: connector { > + compatible = "usb-c-connector"; > + label = "USB-C"; > + power-role = "source"; > + data-role = "dual"; > + source-pdos = ; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@1 { > + reg = <1>; > + typec_con_ss: endpoint { Broken indent alignment. Shawn > + remote-endpoint = <&usb3_data_ss>; > + }; > + }; > + }; > + }; > + }; > + > }; > > &lpuart0 { > @@ -204,6 +258,27 @@ &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>; > + }; > + }; > +}; > + > + > &vpu { > compatible = "nxp,imx8qxp-vpu"; > status = "okay"; > @@ -267,6 +342,18 @@ IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020 > >; > }; > > + pinctrl_typec: typecgrp { > + fsl,pins = < > + IMX8QXP_SPI2_SCK_LSIO_GPIO1_IO03 0x06000021 > + >; > + }; > + > + pinctrl_typec_mux: typecmuxgrp { > + fsl,pins = < > + IMX8QXP_ENET0_REFCLK_125M_25M_LSIO_GPIO5_IO09 0x60 > + >; > + }; > + > pinctrl_usdhc1: usdhc1grp { > fsl,pins = < > IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041 > -- > 2.34.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel