From patchwork Thu Mar 21 08:14:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13598485 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 4A126C54E58 for ; Thu, 21 Mar 2024 08:16:28 +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=zYxuGCbAIAaZsM26R3umBox9h8LoLDc/0TJBTSx3yjI=; b=pwofzvNgJ2Tkxk Lb1HjUicedAV7PsfwsKKG3+4EfskcX9yHPS+1hjcDA1aggz8o/eCbcdmW0PwUiPUMBMtGXlziEpjk gzhCylM+yWnAfA40q73SsafIacBkSZowI5Bjd45yKykzJtxLUQyI2KGfevHrHOA8NxzIT5h2dS76G a4NAAgoB5brDiBkrPyq8E3Dg6v90R8erfVv1cM+PgVmx1+JDy/ILEcb5h3iANXAHJMZXR97xPQUSI r0iV4svo3RUb+qVG0GA7XesYmeCwJYmFGV+vtFfwzvNKMjKsBdwjI5f/+1ZeNFkwzdLdt2Z7opTvl yZatQ4xZAcMn7J1iCENQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnDaw-00000002HaC-1CqY; Thu, 21 Mar 2024 08:16:14 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnDZs-00000002GqZ-2hzo for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 08:15:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jA26z1oY9j08CmKvI4A2VJpgMpy9sVxIxm3BzycqcdWeYtjSPOmz9psaTw+yPHC1TV3k9CJtdGnqv+Xzy9wA3I2qBnOUrcUr7veHoarmDFNPtkcORPNE6CIcq/Kgg7w/f/YAT3hmeCe04QOn81ETkx9BBnMbIybJgzNXxWQtOpCBNke1RtY79aD5pmFwpJf7f4NO/U8OESASTSrCEw3eB7TAqajhQkg0F4ynN2BnsrxHFt96DOsgRASZ4wdIpSasqOP9VbmAwZftCOYryqQAi8uQbz5kJMUJB2xllQPF03RdAUPiXCG22hEcTeIC6hCrytkDxBKXDtpn/sxNf3BUbw== 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=RKQnJhCdyY1RAh/c5O1GjnnLfAcp4SpZgusPVricJwQ=; b=GM6opdiNDMzdFHzL5kxaYrcF37CfArckFZPlh4JZI8/YVuWaF2nBxwSdcmFzRgCy1AJaqu2aw+WSunnXLpL2msLkAXeUw4ADUaHCCkYE41FfbZZSAEdvVzdlWz5WtGvqKlQUcD+pu01qJQjG7TBDiiAxWj7FAK5f0/jydl7/EpZ5q9UJuFWY3t7SfeDGvAAI41DmnB3Wns1H2qDPUAQQdOOEvQxFvA63BNkOv4YEFoI62BhcFPhCDkWkPNGJYgiBPSxulztb0eR6DzZJgJJ4IrX9Jc9UdRIi8i5WzO9eaYJVE9T9sDDb0iZMxWr/6ksSGQKjCTD/2MZjoln7XdIKmw== 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=RKQnJhCdyY1RAh/c5O1GjnnLfAcp4SpZgusPVricJwQ=; b=Yoro9lSs408qxAtyEh18SpXFkBLNOt4JcjY85NBGYyEwLXkqQnjWBUKPXAIb+lMEmVyTRSiZ5oWWDJ6vP3fpsDIb9vrcv9jZ1M4f5SLTPyUQgnPjSXVwyht8FWc3lHGYziIvw2iMXHMwDIL+93Uu0Nbqo3A8pobEA7Jdz7GIang= 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 AS8PR04MB9191.eurprd04.prod.outlook.com (2603:10a6:20b:44e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Thu, 21 Mar 2024 08:15:06 +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.7386.023; Thu, 21 Mar 2024 08:15:06 +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 v10 09/11] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Date: Thu, 21 Mar 2024 16:14:37 +0800 Message-Id: <20240321081439.541799-9-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240321081439.541799-1-xu.yang_2@nxp.com> References: <20240321081439.541799-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR02CA0022.apcprd02.prod.outlook.com (2603:1096:3:17::34) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB9191:EE_ X-MS-Office365-Filtering-Correlation-Id: cb1115ec-740a-4e08-0976-08dc497f0479 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WAGaFx1fuJgb8tKnNH0meIqphnjd6L+CZTjkc0fVfoRAKBNe8c+V8fsfgyOMe8pJV5QxpgFhNWnxF3WdgLRsJ3iANmnrINAZYncfOScjl84PXrXiEXmtiB+aVV5uOJmzZgDX81zfcq32e3C3lRGrGEeVFAFZDDN7HuDMajwXkZ9oAeu/6/+wppz6pTwkYwgx1XxPRr8NPHkaP7HUHjN7c/G71pjDZGRYJw38JrHexUInC20TABNdW2XjPVbZeCjk75qAZTF/AJh2v8nPMwSC9lpqLGk0TZe2y7Amqoyu/iGsF3SGD3OgUngtuNRi/zi9K4nDmC/djpVTAbiq2VZDPdzz2o248wPBS9nD4W53nud5idFHkY7IqhkuyPvG4/vKDbYixNpEVv4ZbzgV6XafVXoYJ/gc+AKdyu/bDklscGMF5gfqewwCD3wUkQxk2i1CIM44BJuNMrv36EuPiZ3OhcA847OzhQL9WSOnL8NlQyDgu4lcNGpZ3Nmr2CtriLPspj4M25Zvjyag1bK4KYODHBt5gFj3JlyIrbxf/Vt5DS/8lmwsInR6A++wpEUnMmiKJ+cEPNjFQIJrwRCVhfYrziLld2wpaXnuUobpTW6wBacXXZjVIvTex3X0V4gtg9g6ODL1c7rPjymK28jtvaJ8qr9yHyypf0AOK6+r+uBls46AMmjwRyFeO40rggYZJVkiO5+6P0PddiNcG0XfrRuBfA== 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)(52116005)(376005)(7416005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nbSKh5rOV/lEAB7aY0IZTHFgAblihNneOG1kTMgFTAHE7XT1JY2i3j0XihlVDCAtY+C7NasHwcQdw1bqkYF7ReCpgac5P+LaHzXpQpnW9mfik+dX7JdqY9T5+9VT9ewT6nbhubKJLcsGHcYy9NWlVM4UXGhfJrUB3wYwAwlqMa4OoVm+58miOCp3qI2BRprjQYXHLVp2b1GA37/zqsmotqAyBqLQ78rrkcOIF1SXwYcxD+cAs7leH/qCEmAaihpCdReIWa4WOu8SWWCFnsYM8bpLe1D+vgQFTP8ZsH/ra92ZoytZ+PtnKZ6K0uPsPnk26oHN6pD3cQaSrpcy44hLbhkbFmTQg6Bybn7TSivRj7hnUKlPaKLAgtk8m/o9nrR593l7EZx7+5yqxmKq3vZhM2F9QoVE0od1Kc+AD3qPZb1S5XZDW9uNPqlSm/HglqynxKx42z3dyS3knc8BG2ljcCkFKZ3/sVCAOHGtbXwdxW2EQUgGlbjxJbd13ppsz6iuOCs39AzAEpb73OCvsDwu0+FHVPEwtgvy0eSxsvZfy4Ch6JFi7d8XotHJ5AxEcBkq2Fkn382bnL/K1nMuIBwe93c0mxv5XHRf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-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 08:15:06.6737 (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: 2LLa292bsHb7KRpSec3dYmXM8/bIAsrOUPEwrOgqlZRhc0tlPKF3BSwjlMtB+7N/TXNzCZXY+qVlln5/qFPu0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9191 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_011508_775325_A12433F6 X-CRM114-Status: GOOD ( 11.19 ) 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 Changes in v9: - use compatible "nxp,ptn5110", "tcpci" Changes in v10: - 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..ecc01d872e95 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", "tcpci"; + 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", "tcpci"; + 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