From patchwork Wed Feb 28 11:30:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13575280 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 06F7FC5478C for ; Wed, 28 Feb 2024 11:34:10 +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=+O+pwsbApBf2jDhlXzq2YE30HoMYJLGRBdPiPZgp5ss=; b=aLIHHEAEknMYc4 Hz++8IX+SIBtAqlTylnuPtte7zxJ1FsveJ0l14PVEmK5esp5FB45pxxEWR3DfB3c/K0zvAzGcZTDY kaiomCseluZ1+OlW9mg4Laqa2l+6Lnj/RfnTc3PethbqK+RUognqrW/Gbwd5JoWyW4IXw/wsGeELi yryH/eanRgWDCzfiFiZrP8Ivj2+Grq78fkeMMmhS7VwTGIbbNOi6kyl2uSNqJsgjREekS9JGnbWsD vWtc4xIOVn2vAL7sQ8cCgG77KoRd9sz4qdsQ2/Vq2dsgwbyxoKhNC1E6PM2qH7VyXsqhDpU/TDt3I 1YO5LxNmtI9p4ceAMUew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfICD-000000091FY-1cOo; Wed, 28 Feb 2024 11:33:57 +0000 Received: from mail-ve1eur01on0626.outbound.protection.outlook.com ([2a01:111:f400:fe1f::626] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfI9D-00000008zfn-3BTX for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 11:30:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z/h6LS2JH4Vh0BH6JQPBHaklO3aj6g8YZJeErzfQiW5lcOOVGVooNh9ZQnEQmfc3I5T3hb3kq+OtUKeIaFFxKDZiSzZKSNccU0BDBuvWT03P+ZdphKqJcY2C09dUIW/mVOmyzyBH4QMau2FsW34j/FV00JQR7aIkC6MkceVLL+f4223qBSJUoBXP8QV10vBvE3ofmmaR4R3MPt6YyXzxG4jATLl4qGsyYsKDKE1vIXNmTFnQM4gthLvzl142qmsV/chZw2E6hb7xh684FnziNMbs3BCTF44pQj2quXzhAYlzEr3rZBrTAGe41fK2qCHBW9zQ4JYJwyQjjNLIzyjHgA== 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=fpbEWmXoKTECCjCNvb+E/fRwkolLemItLbhoREClVz4=; b=XUsVd/+Ujp1EeRWoQuiMH6KA+krNNtW299ychzM9Li4FatoXq6MeacUto2CsZRYzFjajqPQrGZGeklvrXwmDMbmou9jrr7oKvgiUAWg6WEVgLT4YJUSCZqSUgRfZo2TUsh8h3Eg1lQxGgdbBmcYo/HQSrZGwzL49yImePOvJSlrnZz0uAARFcmBuIfyFL5YCFMKiNdIZXvP6L0g4jJylguWKocy/W16NtAVusEXdIj/7yPWBav2FrlA0mPfKAAOV9d4OHK6rwC0318F/Lxjeo28gvEK+YBthS72TLQl0oH2Gmcf/paypl9aM/ube4rSJny/OvY3aPrPQebLyM6YyZQ== 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=fpbEWmXoKTECCjCNvb+E/fRwkolLemItLbhoREClVz4=; b=E1CnPt1y5OcrQBYOfzdFaK6t6UAhIaKsOHliDvp8U3AZ81dp/0+eCYWhTZNoS230ARMU8y+5uMBY153x6WGAdZ8NJG/XM36f9svKsMy2Qs6PGINsCU1xQTChDFxwsFkEuz6Zg6T1sfiS4OlkIzguFFVTL6Rc0qMhchcxiHfK1kc= 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 AS8PR04MB8466.eurprd04.prod.outlook.com (2603:10a6:20b:349::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Wed, 28 Feb 2024 11:30:48 +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.7316.034; Wed, 28 Feb 2024 11:30:48 +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 v7 10/11] arm64: dts: imx93-11x11-evk: enable usb and typec nodes Date: Wed, 28 Feb 2024 19:30:03 +0800 Message-Id: <20240228113004.918205-10-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228113004.918205-1-xu.yang_2@nxp.com> References: <20240228113004.918205-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB8466:EE_ X-MS-Office365-Filtering-Correlation-Id: 669ec3dd-83b6-4a3b-74d6-08dc3850b64b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IBdmasOsQdrwt1y6lgdAPRJK/Dodp9e8O0F9nH1z00FzNVYergE0jZWFCMn+enMHZi08DAYdqM1VrkfjtLbALFdkfwzRNGmuWzR66F6rvMfoKE8eUnheDL5/pdygLeS8Wrv6+lrgdgGnBQqeBnFfpO7KWInZU6p8qi4/VOCsGE0PjI2FNx54TXFERLwNWT/P6BH0PEhCqjtF+TlCbIiPayy96FhdHFMFjmncn4UyAN4gJ431n8FlnVtxC6yngMOQcTaNFq9WJdTrB/xYZMvqdJ/j/90bzYbVTanGpbywnTpc3ExOqiooIy5LzlZnsZaOBVU0z8fjov64PNyThy/eviJxg5b3idNB49WrZhWedaba0ew5XmvquM8xgw0PyuyymE0XN9TU3mKppeKIMSEQNkarbXltUg/4d2Ffe1qQzf7GHSUsT2/5dMlz56ISHrdLH0jpQjPw/QFuvGjLxFCvJoDV96x6CBUsYqDNOuY5TS0x+XdC33oG35YcHcnaLx7IjXIjYYnkmyvkoYJXx5PhzEZOVmko/LJL1YCdH217NFeq7wfTUHzQPCWClbDW3CLja0gVOC6AOipRY1KhhVxy6kL/X9AUFnr5wXQa6BMeCtmGhDVfZxObDlVq7GWvwy1R24PcwWZErxkaARy9eABlN+4ojuwXcIcxZcldpG4HXCUwBYWq+54TVRcpnmAyOjH6AHhtEGh6IpK0MrlzAhuT8Q== 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: yAlkYv5QhTCVjWgggailh+FAp6LHF9z7GbO3QlN7p33KNNYcXPTKi2TnqOKtSCFDFsq8lcwi4LgTs3ZIrpS2JWho28ojUdotIu/CXkXwnKHmc/h0B/ajtiRyFt6uWuga69aTi64d3yVshFRAo0hpFLq/OOCvRIDDYYlIJvkMqWEoEa5xdbaHV00LvbfRKa7krfnch03UEueQRu8Y++up3HCCKpWUmU0EF5frIjdL2vxBZ+YcvZQkSjCwLIIohunG4C7Z6u44Ga6WdtjweFb9D5Uhb1/2M/qz+JoDrRDpKZMWQCpMy8sFdoGiMTpqgPXPRceWAtGeSrQYLAoYaha1RAM2nRbI3wj8X3uOQooHuKLPfz5HhjOuATwmnJdueAw9W94k5jJDV6/n7Zgn9oJkJ6EDtsoR87eNLPnd8JQrlBP3Epr8m/iQ7S0cF7q76KzRakuZTyG9Kx1bachxEfGQrlXmrRStDaUzwZz6GYmtDVKxw6NqFtNBeeCgllLn/T4lFtb5/c8Ie6jRqErXIC8Bm5Zd+BMIWnRxCfDzvN2lJwc8+0klm5MrrPXQGcWpOQkymbot5eyQhUC2XYRBmdxBPEaBgn5IstWvcwPc7Rvu5oGEeUCapYY9lew4af8HLdeVs6Pc0W/6nioSDx0ezGaRnNZcuMQjMdHtDj4TdKTa62Z0AlbaVx9HnHBrv0NeyGui0AbC+30TYfsSsn9zYkPl3zg7b3rG0dO1BcxNvvgiDQNekKkARM7h2jCzzTJZP4/tmqYu1QmGWjWe7OBiiwLJHUY2o7jV19YZspatpyk/gAny9VjfUBZR8ZEx+upv6biPSy2rm8VQVOjuR1ZOk/XS5FmB9QngxX3ZcMaQ3EIjFlueHopp2Zwoh+01c+j5yQBiLPJiXtNCh41P+eGPFvSZCbuRid6HV5Z/bObaYnkiWykyD33mKoIPw7fuliP0xKqBJS//SPi2C7YvbrRsrzhQ1sOr0eBZq4RPv+rOCGy38wiU1aZr1XJuXUB0d5ydw+UpXJqCgwRnoxE/l1YGUny0SRkpiZlfIbE4MqQIoUq7l6GzC138doo14bPLbcEHox80pD7+uCOXBMSX92tdvQorqE04POmFP3A1XWDiaWXsoQmPNvxO0JnLzoIvWQ5EZBQWloDmPGUy07jlR8fRmU5sM98jbn4iREPhNMOIM5Zz2TWf4hv+yiUar+AN65aSZiPajn+4pCEQY6kczaf0WpbVwpnKg+Ve6bS8/mj01C5nnW+ANJLPE1bnyxPJN1fq/1ZVovMZgn4hCyRCrTw7zvA3Bj8Yq392Fvah9hyQAaQGFkGQ3NvxZBlfo+O9+qeQiyJeB9ooXYsLJ7h941nFHXkmtFNVVVPx/qaEvzO/KKgKogww6iUnT6fzbmDPfgiYu67Sz68tIN0fT9WX5uLXNpnOX9fLpRjYvtYOVvQnY3C7sgba7YXEL06yoGagLa/MTsqr3ohHCP82enQVR1CzIENrjDhicNqm5fOXWkNUfh/xC4EoK0bU1LEo9v7UbOOxH2Zv+x7Z2p+IsEn/YivamKhHy84TMGFqjYtBYRRt9h9stBPAOasy2vERncs8gz2HxJIA X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 669ec3dd-83b6-4a3b-74d6-08dc3850b64b X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 11:30:48.8761 (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: 7z2l9qXDd3L/8yphfyUBzlznduSdUZBuPcdlipeoSCLVi2kfKZw6mmVP2LmewYdUYSuFtb8s3Bd/qX0dXyhs8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8466 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_033051_826145_3EE9351E X-CRM114-Status: GOOD ( 11.30 ) 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 --- .../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