From patchwork Tue Mar 12 09:17:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13589700 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 91B35C54E58 for ; Tue, 12 Mar 2024 09:18:30 +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=58Yy6iVjTAOfV3IgkgzKsgxQHZ3R9MXqv/jLQv7s+Q0=; b=XNNozD486H+GSG jbKB7Uo04orzdg0i6pqbovyWPm7C0jgIJ965F9qAOsEqRdD9br9XIlBZs/HFcBd0Nnu4xXjl+M69l eEkyAezhgEkaVlYihMzn3ChAo64Gbgul6zeu+7cqsANNXmEeFMnwllziMnB96hfHKCVhYbd1A1C7l 6HdYpgz+h5joR6l/TMaROKo7A92UozD7Mxd9g3ZKF0yfreLFhQ6ZqAcLPgqyEQJpDlMM55Pi41xiE uLBV/yxAu+XRGXzfKZICB9q+fPFW+OguKeqxMb4crNllQAL7+DY+1vWOOxF++e5K5uJdS355p0Px7 Dj7IqfH2hgPielqABcbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyGx-000000054Lg-2xL7; Tue, 12 Mar 2024 09:18:11 +0000 Received: from mail-he1eur04on20600.outbound.protection.outlook.com ([2a01:111:f403:260f::600] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyGa-0000000543i-0c24 for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 09:17:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YrZ8vqpObPf3T/IVnFETGoza8X0wQazgWc0oLSts3GcIDTrcEJmBRl/lpUETSjkAP139ui0MNGoq02pJVnKHSbEuaIS42IGU5RmHSpd3Gyy+PC9iX50i58mhWgQred2HW3SNWzrIgWbIUMn0vOzCQ12rNq4I3PHzGYAM+ro9NLo5ipJuvum2gTZeYLhJ/jVAtMy9Pr8lt2OyQS5vEeD84PiBvRaiQVPpkDvKIaDDS+s76ndcVp75ag4+jzLqaxa7C2Cngjrqh7BBKsHA13GHN2OfuM1tTroe1fxP9rTO86w9+zrCQrvx4OH2vZJ51CRtUzsiqXDDcEbzeZhNerMZMw== 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=icitpbtTVTwDtf5CBbXpw0brep0b92LylCCF/4gH8wc=; b=WAQX/+Lcz5vliVQw2LXDwK7flNxQLhHLeGOe7biX3gAx9CyoIV/GF2fDFh8ayvpw3+wTWFvldpEU5c1GQbdDEu5GpYLG0M4FtCWBJXLjuIwOBCvVnzmwPfGe55LDRPOPa8MQPZa05+pnHMTJ8ZjWOeI6BLvGR+R7KdPTTJT42aPIYydtIgxfXZHkrvXfaYL0jYAwLDIYnkKqaT3muvl81I1i7+1loLHxriHZMT7cZydfyjXHKnE6Z9i0DdfCJanSCF4wKca+MfIoJikUjmICBUvZnTOwlRJwYlQKr4tV+7Jc1EP0TLZfzQTi6M/XiMLjqq6542lMWBQ3b16mHylkhQ== 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=icitpbtTVTwDtf5CBbXpw0brep0b92LylCCF/4gH8wc=; b=kjRZIuVIupp3rTNPTCfc1RT3Cz4ZUk6mQ7c4WCZAKgdFZbKmzUSgTa5OaQczD/ml2nnBaCyXOYjayswMEUbZqfbl/H4uKw2ZHW0fOfyT2h2YdJBvmFmOvoMvQrkkDkJcOGCeDUq+Ov8fgEDUSr+4DYF3uDgzzhRstodipGI4Tvo= 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 DB9PR04MB9676.eurprd04.prod.outlook.com (2603:10a6:10:308::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Tue, 12 Mar 2024 09:17:37 +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.7362.035; Tue, 12 Mar 2024 09:17:37 +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, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v8 09/10] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Date: Tue, 12 Mar 2024 17:17:02 +0800 Message-Id: <20240312091703.1220649-9-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240312091703.1220649-1-xu.yang_2@nxp.com> References: <20240312091703.1220649-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:4:195::19) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DB9PR04MB9676:EE_ X-MS-Office365-Filtering-Correlation-Id: b3118d1b-5734-4560-ba61-08dc42754228 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E2oshqFR1KKxKJvkYs4W5WXLTb0ijG2xHERY5xBmpFlGlByjloED1fb+udeFi2CEuCqqyLl2ogTPWNVa0pk7CY+QsPAvu31B3iOIIcSaHvS7ZMCAQKKjrsBgPFgpHYeG9aWXwkKW2K0SuKBbNKuJq+/XUsKHtXohy28gPYRNRAdOsGtqHeA6X4LGEBjzh65yohe6uZHNKQZ59Nt7NPPlQoFgQoOKcg7kxcfF5XL96U6x+mJyV8PuT+tS/HhhW6accoPHDOoAqFm5AjFAf32O8HxGiqYC2QKR1FCuttGiVDgBRuw0aYZZ5qZ2ikkskdvSsxa0LKepDKanrL3GsbDMQwmLAIkdzzqDmBgdelkw15JD/TntoADNCPl9zD+bc10yuVe0UvDrb7KLfII/GjmFoXfY0w1p/fglK1UQN3GfwoYOiJA+QSDPdE9WPdDHP9pVJgX4n8XK+WczMJpcKS3qtsVfUXUznypHooZoQ3pKrHa3zM1D1eY1RJD515hC+2/VZHr5S6L0Dgfl2sO9oSMldzrnJQBfXEFFk6ztOvQTSzp0uT7OulZ2tMIClrwnvfFpGtJ43GocPutKVpFldDdAp2Mvl8mO7LycK3OPjKVJVjwNDtwfMm7VYVBEJ+968yAhyNvQ71XqazIbU2f9Bs0YHsoCGal9fhwESFhmCJ5DhE/0Uu7Ag5KD2pEM14JmpdIgG3vOKskNLhFfTsWYQ8KKQg== 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)(1800799015)(52116005)(7416005)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GuwlZ2dHwpRc+G/2V/Vstfk07NwO4m0snQAFPaoyYwvVU3rptBlma0poCvcp0tgTEekcNV2mM9uYkPua2I/EZa01S83O2T1t7bGZOXRdbuW1FBVETHIRC/Ik37aVeYGBhTYugiSDAQUawr924J6INy+yTOZzn6IOfztH4E01D9dEzws8fP30UZvuKgg+lYm9Uykjbl4csdmdPWbIDnwWWI+7VvroCq5xqKDuf9IXKTltKs0l1zklWsFiJrxlzzC9Aot2Djwl065oaSsOyENH0rfxCghmXWv1bxqxGvsr0Gkys/v+8eHdn7Bj7nrgK2TZrj7nJB77m6Gr/JmDIi0eLwvS8/k6wDCIj8nC11+FiE5ijlhvXfFSeZKT18qSn9IkuFkNhINdIBjlOwfOr6sChKV44BnGBkh4z06C+QL8P04dbGvpWuD+/9CVRa9opJ9qgQMH3M6k8YRn0F2Kzlx9nD1nkvgFgeX5gmH/oxCcUrY9EcPW8rQZOXKBvyXX1HrtJN6QNXfw0r65Dajn38RI6ZoF7yZxvJgyokhlVH0IhmHWUk7VbtApyVBLc0Y8PybDNtreWCR1vYr4N9MdlygvnCz30V9fppuhHM/Qg8Rjgx2FAhc2rh2cSmJzqGt8wLImxYYkkaqOPKArNhLSxy+jWREIdHsTmDWXeJhyc5j6zPfeUMGPVgKyhcW34hSiP01Vkgyarc86xMTqDGLV+456Rox2HHkoY3MSd+6qUCqI1Dgg+IAq7avcxT81QBJNcqP6F8AzrTQy+7RySyh7SiTgTOgeOIBzTwH0ILxsDZXD9ma/Ep95P2cBqtzRxSJGMJDguqUDbbGFZRMBkc3/xuf3ylitUqfegNO2yq4TWt0rmZwcSF/PFgDMGXlAXTNrA19vjEAs5/vax08ePVpoQtAU05JNPiUMyiWL1VsIlY2o1KkI2Wpe45WZ2dF1awe0nT7cIrsFbtu6Eqi8qVmc7aI+c0s4Og7yXOS7DnEMzu224Z+fcdkIocHwf7PTMMNu5r/ELM8SQld3wMVdJPHk3oil8iefbhoU41kqnDI1yRPUyYkjd90c5NUrZMcD53RZjWWyoFUIL+bilnA1w+5krcl3XoL2tev/gDAP58qQFqGlsvx3AUiGBurvsdoT5gxnoM2Zf5WxK1w7lgeRI49O+RXM+lW7VuFZJFzEbVkcFc1+vQMxyNEORAMgDGwQ6tyXVLlVyylSc/yQn84of/jiy4zvqSE0QbWZKQaqVJVwRGWcGTKOzVry2NaPK63BrK4fx/WeTEZts2pUBFSqfn1jOD6RpOxP0zGvbtUTYsdY1KBGFxKD0C6MsE2ixsHAECiG+PrL3wpAcehsbvPQAACq/4f4eqFPScJxYSGZQNDhq1xB1oelnBXYBn0QOxoeqs3tozkMu0/C1a4NgU24drlmi3LJyvSL2k0hL420vg/LIxP/xCz4XcE5FaRcPhpn8V4x5qF++NZA/3STJ3EPI9w3oSzOxo3Ej9IacnfgsKbhOc/HWLMNJLBylnj3TnQ+ZE5V8v26gMV+cxlPXMybB7I3qxAX+uysrWDrRouAT24JWMR1JrBxkSN/xo0dzGA2AgImdDDG X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3118d1b-5734-4560-ba61-08dc42754228 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 09:17:37.0772 (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: iGPFvUZ8aAGJPW+7s0Rm4yTJq5g9oKdW7ehAZb9s6aWKZs9fWIucXO9jwKr7gEgI+55YbMqpcelc+sD34e2CMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9676 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021748_303735_435D4E7F X-CRM114-Status: GOOD ( 11.23 ) 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 Changes in v7: - no changes Changes in v8: - 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