From patchwork Fri Sep 6 20:15:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13794722 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2042.outbound.protection.outlook.com [40.107.105.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59E341B59A for ; Fri, 6 Sep 2024 20:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725653725; cv=fail; b=bZig6XYSltTeT6p5JFjreutUDKgTopYblemyxi9uzNC2TV9Y9yBkAey5RQpabsEDjqqjpU0JAzJM6Nbf5IY9fZB8/p/qT/g3xo6E/EVwOzJf2ljDjE3f/LlnBuThTaZsW4rNnoGwMC+MBCJa7iSF6WfY9+rH8/u3r6WuUkWw5Jo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725653725; c=relaxed/simple; bh=9ZWnSqe0hXVV0YFcHZg5PpauJMGytfXCMp3eImzbEuw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=hUMYuUbvhSydlEe8/CFCNRAWEz8Ze6J712VqkK7ujgbxDOq5I3z2f3nDRHZx+6t0zyaw3Xwb580rtHhx52ReKuCfsofoltom1p0rNDL9vojXZnicKeUHuUQAK4JNwT/aojaFs3MI1PQQvgaaiqwuAjZHLjYqB+VWvED7K60xYaI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=oH8mo1/a; arc=fail smtp.client-ip=40.107.105.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="oH8mo1/a" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eTJhJfyTUsYglwUZTrz3/Nkurc8cWCJQ6lHufBvxd2h9hIh7P282YmuT9oSdVrqWgoiGTmvaTu1WYzYLof3A7TvTZEB5fIbzsGylfQFImXFaK4WNIk4Y0ZvVN4kaREobLxGLxd+lfSV6tc0yZJe3FzHSvvb7IZ/a8dJrHVi9afAHvG1mJPvW+53/NV+aggQ9+CuSatO0xQptS0GQafVvVQP1etvJ+o/bcUCaECwXPu4NFpDKmEACe+R78AQO5aTb37OQbOjuhLairgRnUIMwPkeKTmMw3bPFoFEeq/6zKQS9ajpK9qFJ/dUrKlAhYuwms6F8vLDizMHsOrToykO1TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=/GLq3G814IcNmhcubK1noDla7nbOXJDkywDxBXFHiQE=; b=WwvQw2spcSiRCocz/YqtFYyCGp9XblcbH1qvQgDqf9OSmXIcfGrvNSZSVrR3A9B3w95j3Q8FweiyHfBGBLDBSjPbaTp/yGfItTU3C1JqNBg0+AnsDqwBf39wIvyCSMzRoPvweQC8ACMGyEN3t/9hNx+P4EOCOaG6EwbcoPSIQBHdWf9kwkMdbjjowshhYPv06SH4GNWeC24zKM494tEN0tuNEzc881oxhCr53iPzw/CDy88Sdf4ZfUOdBCKIGRCy7fInhinKwZpi9c4IRkQlX1uCRPF9P/96KlKR37YYd+U4twLoHv3geZeX933J9axb58sUCGHmrgdqvRhDMxxqbA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/GLq3G814IcNmhcubK1noDla7nbOXJDkywDxBXFHiQE=; b=oH8mo1/akGtP2/2RSDSEQ1iKHlGqTC3qYzzm/PrdLTcVZ3TaBatsxKqDeqklznyK5mDHcLiKnlXDNvkXttyfyJofJr8qvc6RxeBP09RpYD641srVrwjZLq6M9ovjrtJNMKF9v8asAOhsj4KZXyb9Mb3Jv27us4L8MZT8vXv5E64gip95gc4wnPTSHvqXLPA0opnAoeyUvLEREnNNuZkDUlTRVJftfqibIK9kPiwj917RFLBMnH9eNmtS7/5HIQFUL5zCzjb7Pt3BmBNE8WLunKeCF6uL8pKjDWfJCLhG0d7k0Fr7Wnd0NadIbBckl2QM8oHxCLOCIFe/B0hBtSKZ6g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA4PR04MB7997.eurprd04.prod.outlook.com (2603:10a6:102:c9::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.20; Fri, 6 Sep 2024 20:15:18 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7939.017; Fri, 6 Sep 2024 20:15:18 +0000 From: Frank Li To: peng.fan@nxp.com, shawnguo@kernel.org Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, frank.li@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, s.hauer@pengutronix.de Subject: [PATCH v2 1/1] arm64: dts: imx93-9x9-qsb: add I3C overlay file Date: Fri, 6 Sep 2024 16:15:01 -0400 Message-Id: <20240906201501.2249242-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0216.namprd13.prod.outlook.com (2603:10b6:a03:2c1::11) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB7997:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bc13430-1c8a-456d-2e28-08dcceb0a099 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: m09lmNO2d6IYvDBRL3LFVoDTR08nP1niw5l2iayCogU3RArrdoKnRWk8Hv6ITR6484NJkHtjh0HcJfKqRb8YQppjbFktoLwwMEeFoNwezGchRBMuZR6OO/II1FpqD0r1Z98ZZZLHGihPtBcFv0SXzuX0p+KpYm3QyROK7fu9/Vy3T6qFGQ8rtdPi0/hfYNiyIe+m4Ue11Xj4EmjfpD/hFIpUcO5S+C6+nwT8NfGINtdBAmV4ZtSmUY8ZnU5Y/s5HsW7YNww8xJyy9UojS4wFEH4EardTyPH0f9kGQCMVXWxer5EeU7pcc+y8C4kViWEF9LMtSKAzJQhseMJOLLphbP+YLrrXJwnVb/4ZJ1Mpm8BNMq/zdW/fbU7+WP2/L9DsMbhGIbQKGLbGxKA0f8J+nsvy9490qRenkTamiipyDrZQZ+gyuY/ad3OQgMwKcefd5c1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R:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3fgjxJ0JsLbimrCr/WVAT6omUF5d/N6ALZYTPJD3yfa3zWOhF7zjTx3v3XyKe7GtV+LXRRxSk6a4g0E2rAZycVbBwbmm1SH5M6BFqJX7E2LudL3CoUzCtD2Nw7/5yCoQ3W9asv34Rb3zSbXeYkXncuit45cTylcyjDdEAMFAbbCazV2h5fAcy6YLBs26XrzkeQ7UizmCyg5/8FVYV1DYCiUuxbdCfzWpHORtWaoGNBc+7dnw1wAeU71Anb9INgYjX6XAJ0NjogXzf81GePyxP1Jtdg1o2ZfQCrXbxVcnPaE/EbOpYKPbyH2RsRhu4L6TzAoiwj5/V3JVsLezlSp0DTJszG002rqfOvkgKPPBFRbcprm9CBS/m7kWaO0kUGO7+gCPtGPv3FkEEL/xNbCPssNUEwejJriptZ4XDB3uy4VXYiikZNXIg/MJQ3klie12x4/dxF847B5nyPwD2TYq+KgN01IWWJSG2w8vgXco9o1202mEznGvDx8tXsdozlY1TfM0vbDoOQD5HcrN+0ARjulantB0o7jX7UPK9JaxZ7oSbIdfkRtquJ2IEPtkH8XcEqKBp7VaX0JC14FMnqimmBBoSnCzSAKKfr4lyzPemtu6MjoOpTllmTYn8z7vlZqqfRlmPdD1yFs0Y/wrssFjxEgGY0Ev1wNZYZmTYochtH6fcYcWUPns25+Q+ix4z1fi2BS3HLOUVfzfxls7/keTO73ljCTCV4MxDskgyZvt3O3wxp1A9ckagWMpJ0iGjSWuJjuhA4w2Y3DdcKekzJZoMnGqe1m7JfRy1oY3CdEpWnTFml8HFJk+B/v60ju5V838qnKcAlA2lcV11umStzgZ97R8N/LRTecc1pQ0gZ/35Uo4/RYcN3Zyub2qMupi/bNq25fM/huc5MGNtsY03xk2on7Ww8o4U2pCucJXlB3+2eXXrSPR18O9ER6G2gTK8gLfHnq4ikT8/XZTgHbzUVrwQ04Sz0QTGnuHy3+4mUXT6zf3LckFnGrL2UOY98woyGMd0UuGNp5MLO3CiYvFEsQZQ3dqq6dF6jaSmDeFz79yoFfv8s3G6n0blYmKGcwxlb2yQAFmLWiZNeddZzrgUE8E0t3A/WPlxzCYS4gVQUXKo1Cm2vA+uk1pfMZXWUynoEhbAa49UklLeDED4fcpMNiYEwFj9K8pfA32L9DbfhV8xfQfbLksbKAUlhiUbLT8uVi79pagiD8EANBXGxnil/xrVhDm0Xck/eJns0J+RX8hs3GjFSV+1nQX4eXB67hPk6yca/RrtUJxU2+y7V1b1X3jOZ8T67+JPsYjYQiL1TO/Toz6UZ0VE+eMyDg7Er5FnZJjEF3aEhNnaIW0mBvn1jC2GMYvWMTJ9lV2TLXZ5dDbhOotivTlXVpLICAaHVCixUx83BEaMiDeIiytbECLK6JrIUbf8fnRd5qo9LfTf8bdyem3tcH1QFUrsKwMWN5NQKnEnkG5UKYCs5mZLM6x9KoQDNVaC4VFOC5+oVqp/ho3YoOudnYZNGpP5jQIx5B6nbsaVVg0OPgg/65JmgtFuk6t8tpu/E46d3EqzPBKtz8ZPwU0RjhbgdEXWytEor18BIlD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bc13430-1c8a-456d-2e28-08dcceb0a099 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 20:15:18.5614 (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: /dXU7BWd4CjIOd2SC+9Kv+qMrSXKlhhcxnNDbA1OneXjEo2bbgXlHoeX0tDy3+KoSslf/tEb/rky81uUtEP1Dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7997 Add an overlay file to enable I3C support on the i.MX93, replacing I2C1 with I3C. I3C is compatible with I2C, but it has not yet been enabled in arm64's defconfig. This overlay allows users to conveniently utilize I3C on the imx93-9x9-qsb platform until I3C and its driver become more mature and ready for full switch to I3C. Signed-off-by: Frank Li Reviewed-by: Peng Fan --- change from v1 to v2 - update to 2024 - drop imx93-clock.h - use irq.h --- arch/arm64/boot/dts/freescale/Makefile | 4 ++ .../boot/dts/freescale/imx93-9x9-qsb-i3c.dtso | 72 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-9x9-qsb-i3c.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 9d3df8b218a2e..032f07adc0c53 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -240,6 +240,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-tqma8xqp-mba8xx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-9x9-qsb.dtb + +imx93-9x9-qsb-i3c-dtbs += imx93-9x9-qsb.dtb imx93-9x9-qsb-i3c.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx93-9x9-qsb-i3c.dtb + dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-14x14-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-kontron-bl-osm-s.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-i3c.dtso b/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-i3c.dtso new file mode 100644 index 0000000000000..3fe6209a34236 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-i3c.dtso @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include +#include +#include + +#include "imx93-pinfunc.h" + +/dts-v1/; +/plugin/; + +&lpi2c1 { + status = "disabled"; +}; + +&i3c1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c1>; + #address-cells = <3>; + #size-cells = <0>; + i2c-scl-hz = <400000>; + status = "okay"; + + tcpc@50 { + compatible = "nxp,ptn5110", "tcpci"; + reg = <0x50 0x00 (I2C_FM | I2C_NO_FILTER_LOW_FREQUENCY)>; + interrupt-parent = <&gpio3>; + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + + 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>; + }; + }; + }; + }; + }; +}; + +&usb1_drd_sw { + remote-endpoint = <&typec1_dr_sw>; +}; + +&iomuxc { + pinctrl_i3c1: i3c1grp { + fsl,pins = < + MX93_PAD_I2C1_SCL__I3C1_SCL 0x40000186 + MX93_PAD_I2C1_SDA__I3C1_SDA 0x40000186 + >; + }; +};