From patchwork Wed Apr 3 09:04: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: 13615523 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 1BFD6CD1288 for ; Wed, 3 Apr 2024 09:05:08 +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=RmFb/bzW8GYa3QpBcRDY+Xv8EhswAhmH6wOGvsC+fBc=; b=38699JD7B7qIva he+IJBEK0+Sl44DE2GNp4DHoiZM/VUXpHbk2nUY4ErN5gfAW4TiloAbboeEaMrIGzRA+fFn0NtQrW uTbtNQrVFcwoMcASu8+zJHIF5/Iy5wXQ76vMfQVBth+SBfphCba5nNwJcTMvalNfwm2Oan+ISkkC3 5Kp6aWP2vKsiK/UMYVXv9OPm7l4rZsINuNMtSYLRnQVFHC1f4kirLhJDPVvhfsFJ3UDUIWxuC65cD ODHCpOlzeW6cV6y2Nv9JUBghSQOREEKYmj73Qg+eWVI0eaY/LSgaALJMZUVFdXdgdzByyUcbwMe3K 5bC7yr54BjTJoJXCYXoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrwY6-0000000F6Hf-2r3Z; Wed, 03 Apr 2024 09:04:50 +0000 Received: from mail-vi1eur04on20701.outbound.protection.outlook.com ([2a01:111:f403:2611::701] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrwY1-0000000F6CX-2KSN for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2024 09:04:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B2S75def9JMBpaRdqXO+yn8xStPBm9hZh0GJWtclJv2dQsa4B6S0gSifIYj6TD00h952jHXwEaoYapT0LGASyy+sUeh8jajbhbYLHhzy7S5OyYgJTUJmtDJ/qydx37f5z9nEpt+IE+4hfBY7lb3fNqIHcOPjyoDH8mCUP2MhSC7gpLFX4xvYRwkb6cQPVFd4YEFKWctMbCgE0flqgL8TD/mn8XNouH3GF/+39twTdkxEeEzkBEjJEMfOTkLUbai1XcST3b5bqNivuVBXcL995hGv7qHXNLFd/dgxLlpZkhfEidzvqTTHkMkAyyMJ//bgUyGQIrNMycodDDqNns5PAw== 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=h1GYXPb4oEGHOYLFxWywsebm6S2zpOGtk6O3FtrN0T4=; b=kbm6jVWnvu2Miku+9tjHqw7d9iiiztenZdjHPlLzy2vsu/NBEBaSl2QZRGAIT2tfTD5hhnV3gRLs+Zbj34DkjIeLpZ/Ym89MSzWk9sL7z+at+MuZziDwW7gToQSdL4iobQFVGVSNP7dFQO7Vok6eYsF54mSO3f2KCudq2fmM0GbclwOp0dPM6bvoQLqatnumaP9dma6bbkQTACk+t5PaNAfMkHpRKeOt5OvVdH0di/0qzhBr4aQ9fTZZifGDvKJ6lkOcRdBfneLnSkUNHGFdyenBYRj5kZH9EZT5HXNRUq5XdZ0tU8jApb/FMcL1xXsJhbcCdFE/Izxqv8U4OGU3Mw== 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=h1GYXPb4oEGHOYLFxWywsebm6S2zpOGtk6O3FtrN0T4=; b=DPhC+FyvLsBsbupt0Hry1t/FM0tsiLUqAbwfhtfbi/a7ZtG2x1+X9j1/YCTwCmyXn1c9V3vqNGdtV911nIlCLPP1zBxawSR/p34yVZrjL1VExJuESdRlmcdBzFpSJQ02MAw0GDKqTPX6FIQeYDajGj1RLHWm1wrvEtgte1c93RU= Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by DB9PR04MB8169.eurprd04.prod.outlook.com (2603:10a6:10:25d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 09:04:38 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::8d2f:ac7e:966a:2f5f]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::8d2f:ac7e:966a:2f5f%5]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024 09:04:38 +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, 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 v11 6/7] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Date: Wed, 3 Apr 2024 17:04:37 +0800 Message-Id: <20240403090438.583326-6-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403090438.583326-1-xu.yang_2@nxp.com> References: <20240403090438.583326-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR02CA0020.apcprd02.prod.outlook.com (2603:1096:3:17::32) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DB9PR04MB8169:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3/cDjLB0+fli9P0jeqn+NowacjPNmTKSwDtK2f37Bjuop79FHPFGs/beWvRTqGi+EEuk8E6ChjSNIQbjXMNBZRJjedqK/0aJE1wUJAdbGWhgokitgbh1fToDHuIJNvqD6aln2pppb6P67yZaOdqgT16zbsjtUVyehCi3tqHyoDym1G+0JjlxmzMFitlj3R8WkK3G3IKec3w6mEUmFxCgE4fZ/e5P7pRC/0i8Gm4flIpIhl/YLrIk5QI1yRSGWTHsgVgFexFVaZ8zJCujLLidfIsCuP+2JFyAskW9B5l74l2eZkq7bsAgW01dLKB7AzEo/4Y5fvBcKMqp9T3oVKvh9pBpa+y1fE5VwJkO95p9MqzuVtFO1i1VdUuMdNgwLKk07tFXtHU9jwfE3jBgOQufUQxIjZu1hv39tMYLCqw8O1MLQKoxoqZO7UuJdnZPso3K6ERnaJ2KoHba4E8rd4264rZX3EdK9Kzt64gneykdLYtnm/fMjdiADUCguG0rV2kIzR3ZFdKPfNEhKRO/CQMqHw3WGTVhiLGLiAtjpLQWc3C7zCQT1mz5Wio2ncPeoLdQH9QBdYrn5+lxmKIq/HP5KwnGfap+MuFkLO9ySBVPkqUW+CBYQ3PMbKXwC9ltmlNKwYjUP8tTVraX+9mkOgblur+7i5sUY/cpms7T2V5LBeIYHpYY/5MZoyeBwriuNO7wLd/ZZC1+8aHlqw2Jua6VEg== 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)(7416005)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z/vkNWbjBLSgVHiviwZxXEaWiqOkgmKUHqheKPCuDIIrLLpiUiOrgU3zr7pmCh9td7ONFUkczYCN+9wjmJD7dgj05AE/7pDNAufA8bFHSoVQAL1NNr2z4wM2Cw+9VEusI//5i0hXOsb+FrRkVrMcFx0irKOhiCII+MLbXhEGckrGx3gHyOXJtfAZQy7aZQD9JT4cyhgEyQUZqbBYWXkEKgeFQ0zEQzyENiRwC3pxk9APuIv7LTzzvOKzsOa28uQIpZh/9uf5Ao7p5Hu5jH+LfTReEzb5RAps863P8Bhj8eeb4vEniS3YMS2AsVxymvAD+LZGfD2jrPAXEoXiByhZYRMVchY0zajqU07sPhwaD5s2oEHIuSe0Hq3yw+2hEJpdn71g/ayVAxOQ8hEj/I5ovB2fq//hKuIiAn1qbDH5qUAkD14RCSfJCfMo3KBmVMalpdAWvZkXunS3bOlOS7iZbNObk90qbQCdIejenTi+sYnNeasqeKW21fMb1/xiN8/DNcV/rBE6jh107ZezIERFyc8VISbgeu4FdP5ClVPjEZ+GP/Hvh41vf4IScCqnFwHAFuNOZLcCn2h1fAv2fzIOAn7QVodQXTr5vb8M1403q1l4mxCmdrokNFU+gKOsJHG4ywe8lB6BfJeCyPlRIn9clruCvwFzKIQRq0Wl/bA5j+jcADjmeC/yCMRh5HLL31uRESaLcFG6s6Y1S1oqBFfISH2GVg/Wfq3ug4EK4Q4HTohw8aqdeJPi+Z/ooERv5eR2lkMPCG4sx8Nw2VoHo7BDLBPVDu/wefvwjaMsMV3O8VD1xuV/5XpH7SlYqr3X+FHIgMA0PzNqH72hilpcjiteDPtlCQqCzWhp8trWBcb7RX1PUBZqpnRa1efSDH003KOl3xLvKFY/AVRovc4e0/RddR2lS90h9DXqbN7pcnYf2X667sW2k7sTBQ6/zOS5XYfwbSvffUv9e3FGZpjfkGoWA1P8Q+fPkDkLR2wCX7x09THFvATM3FVkqxvIOw7pJ2hFqG9WrMDYybJBmYIoPvbbUsljsURvCPVUCk8U/uLFTh3M7c1bhWq14jlJCM1C37L0RGmrnq8e+sKFHKFn5PzM+nVXKOZKfgI2kBjXOkMDW/Q67gmOPpAQPVrQ1aMPh4Ejb+f00BLcMQylw6OJ5lyFFcXdcMro1tqYYmndZFrJKcIFde1vYJDwMy8IjrkwGVLL7ACcoQv/rwTob1wiYIvsI1Dz7e+9qORYM0fZs5p9jBHHe4wpHDKscR4/JmIfHM3m/jCKOjNrMw8T38L3N8OB74wBKH7KY7Wf0rI0B8wn4dhMwAGPFh/zEWA+apPaWNm8Yokt+j83aRvHTGFOKdMv0Rgw6YHeqCl/kE6PiZRIZ9Wo0yeLEjM+l3p4HXmmIyq+IdFJrxOM3jeU139+SPk0dlT80POV1eUCA+S1dfE6kO0NGQebo01+mGbQyQ8wrDlYDRbgsMa2gWIYTQyr1gRhu8DaHvvmZxrHUlWHbjouAxv8+Zn4d10oxqDhZWNyeQS2BtmcINf79tkutcJSr4DtERuvfnX/LRbzrQ1PMl5GTB5sF97nkQ9egTZvO26uY6Zp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70303895-5aea-4651-4ca4-08dc53bd1594 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 09:04:37.9232 (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: kWFSss58Ae3SR4td0rqIFVVQNz0UYzVBdJ2+TCFnukD9q+YzrV4MmTjbroji30x/pj3tjErys7lRfT2m6Rspeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8169 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240403_020445_794887_83691CB8 X-CRM114-Status: GOOD ( 11.22 ) 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 Changes in v11: - remove "sleep" pinctrl state - add newline --- .../boot/dts/freescale/imx93-11x11-evk.dts | 119 ++++++++++++++++++ 1 file changed, 119 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..fc340d4573ce 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,81 @@ &mu2 { status = "okay"; }; +&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&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 +232,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 +334,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