From patchwork Wed Feb 21 14:58:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13565010 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 15882C5475B for ; Wed, 21 Feb 2024 06:52:44 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qF9ELke0w8yyi5uETrLlEu9XCKzYrqiqhaXWaWaiBa8=; b=m/tp0D+1zzN4Y/ ztNOxv+HvSrQQHbqQeO00ChWzlnawiOuC7rjBM94wC8gKYZ01fCHnefX44YTUM4h3wFKw6LsIZ9Fi xzBPT90hOhE/iu9IMHLa5/2ySljkWZVQSz3UCfMk0ScHy02/5oVGTIC2aJ32TRHBSRzIx2DmBMMG9 FM6F/Ts7L1TjjfuB/j41K0ClLYUeAyhGd+rnIMkhBhz5iWSq00YuPoiqxRuqF/BbJUjfS3WPT6lQc EZQg1FNZnc3O3volRyFN2xd7QJM490OLeD3qQ7Z3zUN10i21Zo8rlncLue3HmtsepsYpbI1RGzf68 +rl3CNNONysoXHlYCwnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcgT3-0000000HNsz-478H; Wed, 21 Feb 2024 06:52:34 +0000 Received: from mail-db8eur05on20605.outbound.protection.outlook.com ([2a01:111:f400:7e1a::605] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcgSl-0000000HNfZ-0ACF for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 06:52:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EymkLCK4rDvLfHKlTyDzfGGqZipiQybShwa9PZXM8Z9Qf+6eme6iUmQmjb8HHW313Wj2Un8eWrOC3dSZrutxf2PX+ExXJ4ObscEWwjRUlSFhYj+04bDDAyL/ogqKKKfu+n3d9o5lgW1illDf8m/wa8n3/UoeM3e6rEAMvyZWtNnxdYB0C/nCYvx4wGOSapvZSfkQuU5aj/4Two9tzXwsfNhdIPl+uKZBvAAjbTVZz5L5o6V4d5haFyhluYFcpLkFw1yBq4OrdXM7od2sApf7RIai9Qq7Y1x3EZx8Qjda8EW6VZ9+s3TcjNRGQldcOSa06igP/y41nDuJHU6JoJg+jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wY9dqhfR6wgdb/jnJT0Pv4zgG36U8S0PrQH+Y8xtoAU=; b=UpIGLz+5dfgB3iXhpOY4DmFtJI1mxVN2UC8ReoBhNmmhGFQvOsFVQrtjtA8nHdOziyLgu8mWLYsxMmz0by2UXtvHcPcLYdueL9dJaludBHKz8MHx9V41TeUKd732BrZpGNN7ODj1IBOm/ZP3JYyhlS/ZnK6vY8SVpmbUVcVrBb94WRQ0Mo/Zz9NFO6vEyp2pWppA2+HfCV2LsyfkF6HACBl79S5glw59NSt7Md1saV12oDxbeMfXfD1ih6sFfaVySGm6q6xUSYgjqJyMa/yuYuqfdw7x7p5Qr0d13OxDHpEMMO3qdA/OItI56ra17tGnuAwXciF6xGrqx51UXGu6Cg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wY9dqhfR6wgdb/jnJT0Pv4zgG36U8S0PrQH+Y8xtoAU=; b=M7LJhhxSEP7JFCaBlFZOTRto8o+INBiQ1C8Ms3rX9OqLTCR72JyQZ5WlFSvuBVsqw1Im+tA2RmaLGs+oviDTBOej1PvP2c9mj4L7SHpUyGmN7l+GcX+e7VhEE+GlyVinue3ORYoxm3u6C+qCGIyaumAFqeGNV1DlH4p6KiEQPlY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by PAXPR04MB8476.eurprd04.prod.outlook.com (2603:10a6:102:1df::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.21; Wed, 21 Feb 2024 06:52:09 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0%7]) with mapi id 15.20.7292.029; Wed, 21 Feb 2024 06:52:09 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 8/9] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Date: Wed, 21 Feb 2024 22:58:45 +0800 Message-Id: <20240221145846.1611627-8-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221145846.1611627-1-xu.yang_2@nxp.com> References: <20240221145846.1611627-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::6) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PAXPR04MB8476:EE_ X-MS-Office365-Filtering-Correlation-Id: fcff1eff-b26b-419e-2e4e-08dc32a99fcf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HNotIHtAM2lIz0a6TdvimBoVDOallLSy6TTMF+6gM8ddFjsMVNOFzbRWWiXWK53D6+ljrzrXFcXFdNaJRVqqZAciLCrEnbMdxjyXtVgJqUBzXg8+OQN4UKsAPPAlWOETNCxHDyMmUuXSY+UdzUTkRN19rdCb3MD+Hp6Qn1Z6OaJzzdr/bKNdTR90G1+b9lzBZ6BjXMrs5PYJfPAcu3dgjNwj3TfvbzLjJEeFW4MYmF5PwoyxO3ols6gfGGR76yvig8Qmzn6ysI8mvG1Pof9S6q/FkIsj0laCBV0mVuZ/2VlB8Ulb6Q/CKMCly6PJ231uSS2LCRehoNg5Nou8vAZbIepe5puyXsacC8HYwoPTTz8FtcXavfa1Aqal8xH38GIvU+b7Q4aKv7MkDmc2lsXk8Toi6gy0dT6gKizGaLP6nimYAm7zklA+tRDvAgBHwcisWCiWVuExoGWyFnb6rVd3AcqEPWqattVhneUbj2nrl524yHPPvSQZVdYGjYOEFkwaUIekF34ClDHh9KzCYRXsQXa8m+HQfBbYV/mBvJx6NAKfQxZjimvD8OL5++FtRnOTZcHBPxm3RSQCAUDvx3b7EAoBbs5edLXA54eI8/qqLOA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(230273577357003)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9IgAzmPTJfsNdbOf9fUiFffzdhcVkx5Ll9BLrhqE3Eotx63DTupm7mSwc0ZDkpwuLy8TNRZqEkD0IZxXG6HrefcoEyMl4AUj3N01OpmhTCmLDczY1Kt83aBBJ7ycpRRaCxMuX+jrT4YT4jy0Zkr1EsFZXT5kEk3DyXOnBmTvW4FXouxrHRuacs8Ao2X3w3Xf1OXweJb2CDoNwPkOQaNV31TkhtkShAHzjEXkxqePn8Tp2a5PEmQpTOgs2mEWKkYMtUJ42fLZ7ZCcm58jL9cSvM9dcgCotpu8ljp1ve0ZjQBtO6KedVzPgQggPWQBbMYJqsiNpq+f+ZOYQlPzUQwZO5H7Iwpatxu1WYkA2HP+oUn524fDAxD7bJawcNaZ1aOSg1ZXxQJ51XJS/+bTyvJIJDxqm0aWkbutafJ3RkhVuL0JsotWPhc0fsQh5ULLnMo8Uxsap5nBu5TIO1GPJkGuex32bQi82iiBZ5nfeldZ9/8rjKRUzs40ak8i/heq3ux3CPyOPd/acVinOICLxF5i9ms01ZCIzgu9LuAzq6Y87dLR6b/NTMXhV7xVzOnsHj2VCJGRZsYpCxaIH3vvJiLonFsmyqhmHleqUwWIIQK7QVxbrz9irNZY1CZ5MOyl/gDqFOtgOljKXHboJziOJ0E5h9wJFy0CuJ0eVPlW47r9qMRMl+zCESLHJOIt51RO4+DHobvH39Sv0RFO7QaTqfsLwPysjU9YsFmpTNxBJ3dTOkCDKEPfvTWe7zmi2QwgkAhi+ZoUWYz81F+JsPd8kmXLvZ8gMGKVeEWHj1atBxjN7urlRPkmuef4dEDCQZdtBqc/gFA9Kq9j4ILXBP9OK2PsHTmGS5v/sAhfEfKyXDcua6KjjU3mr1XTrfq6mIkgqva5wsDLU2paoblIRCTICcSHUC1A0QIKNgOwrltaFraNj7zXVe4Lx4JoG30z7ysR6qWRk2COZ2SgM7odmfMMrvsKAmWe1aoX4TA2tPsTLQFEZyIiavmdCyzoFh0z0nEdJrnX6WC84umj8PPBtOGMtSAVWTl8XO0MOveqSlkTz6V+B1uIC0CKkEXHsZubuXM3AKWw3OYTZL2pgWXqK/TF/ODTMSCgmnj/oyEJmvYI5MsFrchsDLI89ThyF4hdzJ96Exfbc/zONBRKVOVXeGEMc9AqCRsQsnSoKJxGtNbx5tVd/TPEzlXcxOtJKQK2jbGE1dU+gojhy5YB3govEl1LrVI1oJvmZvk9Acq8shcgsM1sMDXQdmxyoFZB4P2RxJgnF9GFxy4ilhu4+rflNFkiKx60jo66BtnqJs4tSPUaqi+lcZCPU6TrZNPzOhySz8hhfvjpLogBhFJeE6a/D6rSxXC9Rl43vT3c5DresWRXv6uJrwgvhMCJYVCJIvISKGTvkoZPCHSUHHs83uSURXq9X1YYAaVuFYZL3KVRvI6WriC+tW+zpGd7u9iTRB1CLlrM7Qa6b+tDyRZtBrP1whM/GanyXeQDfqEZBPFR26vZj1Hz64dkCpWB0mkJOL/mOboVsqjr5xjt9ZTceHOGdaYg2AOmjUI4sDsuKeRYXxEuPFipz7P2AJjwoqEwcYOygviW1W09 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcff1eff-b26b-419e-2e4e-08dc32a99fcf X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 06:52:09.3375 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RvMYd3beogvGFXwyVI8rALSgSf+zXSOoUiNnLxsmTLeEyjrTPu3XSuhGdoF07IWjUr6EHtFAZvhGf1+gehQ7sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8476 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_225215_317608_A2AC192B X-CRM114-Status: GOOD ( 11.73 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are 2 Type-C ports and 2 USB controllers on i.MX93. Enable them. Signed-off-by: Xu Yang --- Changes in v2: - remove status property in ptn5110 nodes - fix dt-schema warnings Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - no changes Changes in v6: - no changes --- .../boot/dts/freescale/imx93-11x11-evk.dts | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 9921ea13ab48..ec4cb50445fc 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "imx93.dtsi" / { @@ -104,6 +105,80 @@ &mu2 { status = "okay"; }; +&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3>; + status = "okay"; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110"; + reg = <0x50>; + interrupt-parent = <&gpio3>; + interrupts = <27 IRQ_TYPE_LEVEL_LOW>; + + typec1_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <15000000>; + self-powered; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + typec1_dr_sw: endpoint { + remote-endpoint = <&usb1_drd_sw>; + }; + }; + }; + }; + }; + + ptn5110_2: tcpc@51 { + compatible = "nxp,ptn5110"; + reg = <0x51>; + interrupt-parent = <&gpio3>; + interrupts = <27 IRQ_TYPE_LEVEL_LOW>; + + typec2_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <15000000>; + self-powered; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + typec2_dr_sw: endpoint { + remote-endpoint = <&usb2_drd_sw>; + }; + }; + }; + }; + }; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; @@ -156,6 +231,42 @@ &lpuart5 { status = "okay"; }; +&usbotg1 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + usb-role-switch; + disable-over-current; + samsung,picophy-pre-emp-curr-control = <3>; + samsung,picophy-dc-vol-level-adjust = <7>; + status = "okay"; + + port { + usb1_drd_sw: endpoint { + remote-endpoint = <&typec1_dr_sw>; + }; + }; +}; + +&usbotg2 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + usb-role-switch; + disable-over-current; + samsung,picophy-pre-emp-curr-control = <3>; + samsung,picophy-dc-vol-level-adjust = <7>; + status = "okay"; + + port { + usb2_drd_sw: endpoint { + remote-endpoint = <&typec2_dr_sw>; + }; + }; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -222,6 +333,13 @@ MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e >; }; + pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = < + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX93_PAD_UART1_RXD__LPUART1_RX 0x31e