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: 13794723 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 F310FCE7B11 for ; Fri, 6 Sep 2024 20:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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:In-Reply-To:References:List-Owner; bh=/GLq3G814IcNmhcubK1noDla7nbOXJDkywDxBXFHiQE=; b=1adanibPFYvptRNEdwii52nOTn v20z2q+Lll7cfWIY4/R3qqvu4cGO5aZus15GFLZu5NqmKtrGHB9NyUU3wKTsBMsV161Se/jagTYCK FlbCyOXkYSBmx9OiWTgdaLhABC8rsK2fB/MPSWF7eLil6TgXQEKpRShdvxpdkwJAtq3cIUFDPwvjw qlD+cUKUkZVTWfe7ZEXpsIEbF2lvWsegrLuD/ykChmnt/u7RbJa4jDtvAcReaD6PjN9uAsse+zRJT GxKKR7MeA40pH34hvMmhoWERuf83yVTmKbzzMGVVnFOAs8Xn1Ho+u95YNSLclS3omYy26Znb4Di15 bAhSw/OQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smfNb-0000000DWix-2e25; Fri, 06 Sep 2024 20:16:27 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smfMc-0000000DWdE-1EmH for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 20:15:27 +0000 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) 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/ad3OQgMwKcefd5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;PTR:;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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_131526_407263_4B69C7C0 X-CRM114-Status: GOOD ( 16.56 ) 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 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 + >; + }; +};