From patchwork Mon Apr 15 19:46:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630674 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2052.outbound.protection.outlook.com [40.107.105.52]) (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 B770215E7E7 for ; Mon, 15 Apr 2024 19:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210442; cv=fail; b=SKFt7m9DOwo5XAx1cYjGmXOz29f5HrpOPthL+YEbaCakJ6mLn6GiInlLCV8zVSEv02vzTX1Yc0IB7BDdGdi7j/BDerajY4vlCJX8HI+mjwYWTjFz47Rj0Gyj8ImIgIeR6E5nubuE7txzM04xKuCBnNXY89ZpTGh5kI1ZWweMI94= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210442; c=relaxed/simple; bh=VHH6arrzvDcTaHiMwsWAYkCtbrr4WW/mWFOXowZ4taA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=aY+yqXlE4wfn2AiC8q9ykGDZHvYDleneQYI/gfLHR8nwvEf47oIf2Hrkxj9qItvWJ2iQOlt9hqGHjBkyTLDfeyMCM0oEh5Fmqcu6tGb83GK7X8IrulE4n3BSylDxKVUMoNbUZE1cY/w8bTrt0xmndHPMN13feRno5HdENwbO27E= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=JlwFZY2/; arc=fail smtp.client-ip=40.107.105.52 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="JlwFZY2/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAgm7uEo4KiAIJRIhTx4VHg7R3xX6WEfadIBp3+sU2+1xDJp8EO+lgm/3PfHHWQNbHMyBoRSQ/gML8CdtIdVR4FOBR81Q9fjRzb71tS4BdhXxTYf6LRETkCVmm+OkjCM3AzrgJptUCAEkkn0yk+1oUQPi8aT6OSkdJqtIab46dMaEBfh9p8ktqCpCI328beTwmg3yjF2WwqjZLxIqXfnEuT77d3TS/+BxQNaRD45YmvZuvU9zS1mFL9HNfLG02yRM8Us/SAncWJynGZZsWQvYTJK1bdFnRKCOGygK7NJFIWycHIaiVMxVsY/h9SzqXmgkNAH4qDkWwOkkDLj9BuLqQ== 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=wXgJzOIyGUcJMXJkINb0HdMod46tJoDTML9Di3ewAyI=; b=jbciq9Qq9t0VWyJiqJJxfWwpYV8mMd40lZQbUFyGzxgPP5pA4HZV/Fvw2NTDuAledGd6nHdU4wllwCzw/7DfK87DFE9rS2nn6xGY+HTL7vUHqTeXkDYpa0GcDa+coaoesQGhp33AR8AgHQFdzkF4HghStLwzSe+1JjrRQPou/NICwqO2bnYEX3wKqHl08fg1hyxRsb08P4R0TYmpmozzmliSjUkfVVb7s1TGfjcoRxQiw8LHQ57GaWiPR5O7/HZhZSt/WPdjC5aonhVdUFdlYwdu4BwxxAw2H0BQNN1sUqbHDjYngAU7x5fhiDFRxipqRZkXwCeLdEouTKACjXKv8g== 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=wXgJzOIyGUcJMXJkINb0HdMod46tJoDTML9Di3ewAyI=; b=JlwFZY2/YChbMV9i1kMEJayFifWfxtimyrs6c+Ew9xhE3Ncn1wwYadCUbRk6hFaANRYdAWa6XnkhZDWI4CFhExsHMwYKW8mRsdzUrJGRAlSnhgtvR3xt4+IHdUgE8bOZV3ZFOYTdF4deVj0So+xiOTHHCyDSHtq3V9QxiWhx5x8= 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 PR3PR04MB7290.eurprd04.prod.outlook.com (2603:10a6:102:82::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 19:47:18 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7452.049; Mon, 15 Apr 2024 19:47:18 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:41 -0400 Subject: [PATCH 05/10] arm64: dts: imx8qm-mek: add i2c0 and children devices Message-Id: <20240415-dts_8qm_audio-v1-5-2976c35a0c52@nxp.com> References: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@nxp.com> In-Reply-To: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1713210421; l=1711; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=VHH6arrzvDcTaHiMwsWAYkCtbrr4WW/mWFOXowZ4taA=; b=xILNCR3LbvyTjNk+eZMmo10vG4/RrxYb+gMUU4AXIflEr7TJ/1ajzfKwEnSZnE3zDKi2+SJaL 3FTkxy8wXQTAJzS6Vh6aHw94VlazRqhhSqBNexzCHulyhRKatt1T4RZ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) 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_|PR3PR04MB7290:EE_ X-MS-Office365-Filtering-Correlation-Id: 01c65cfd-0c7b-4761-a8a7-08dc5d84dbd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5euY6FN8xHG6dLnd4Vk5BhTh6Rdh/dS4wBLd46GsAV1wNYp1KNcrumfZliWaSn/rACN3gBpYYY/ZpyHLHxJ9VVhJNgGHEWpCKUH0F+JmVecTXaZaIbVlqXnOr/k/9CN2PyI+HG0dJqnBAAwIrgCeMsNYLDOyPtfb8WaNJ206p7JhTNphFWB6RPUGCfea/Y1Fr3H4AwUL5rZTDVPsm9ziUOhqNF2uYg+IpV9smw6ky1fOdC/Ff31qsfOj2NRdccLd9jqklksMs/pXSf7+ydv/ONEcHZbPnZxi9hlnJ5JdLBcTupMW66O3Qp+WuHUdVCp7JcDn2cWRKzpeWhxbcOsyQo3xYRBAkBEvimpvSZx/RI6Ytwi0Mj6r/KIN6vlKZXbBvvxEjlog/gvrC+woBkem3JqCWJCLQ0bsO/nOFsOE6xymblXVNUB8oUssRyaY8Fz/YBoGO3MQOt1JrisKV2Hf9ArnGAowQKpJXhxeJzk5nSEbxTa40DPse0n+FLEJuWFgaEwW1k3LZuGRdUs6hHvao+oXK9vxcdHfihzIhNl6SP8aaEhZF4I3LMXbmLkPqL68bieMr6RjQ5hacNFNhTAmcqK3VtE9CQHejmFJe5z4K0anGNadMLJlXbTv5JommCu4pxklC7mvNcspxbVtoO3Cr2TpGMWZv+GjbUUvXKjsize32HnCJO9p/pf0MpBLeemoL8JzDlwi0PgoLhR3nz+jpA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(52116005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Wxtco9swZLHBtzq5t4k9TF7Wd/6P?= =?utf-8?q?UMe8b/F0GZYq2sTXCKhr5FKE7oMZ6tMv7NgsudyFX2U07IQ2UCCRLGINyt2LbPfOk?= =?utf-8?q?AzPoEX9ihheodGQoVqFq8O/trBEAWzaIxSXGFEgN4NxunFn2oSgZqmPCoMccnfWA5?= =?utf-8?q?1aUvWlGBvtJ2rt/xGjBLS9c7zbA52ytGQhE1g5gptkcTQImGN7JIfLeAfxCtkX4Rq?= =?utf-8?q?VFU3ddrXdQnTBDzqNSXn0YSh1A5E8iQHRkKRZNVahu1zifmoZPdyrllZulMQfx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VhJ?= =?utf-8?q?FdLjOObup4Km13HklFsGXuuMOdadu8NffmFfzynAKx00yBmRqlk8Pw2BIJ9cU6Xkr?= =?utf-8?q?toK/HDQ/BBXE56PS2sfmBoOgUxdz/v4/FeCEWtKpq5qFZAwkBYdhlx+BG1aO5o892?= =?utf-8?q?8F7MWVP5J63zfswrDm1wef+R1PSZUzpOOPo0EHWmee1a4epHBqgnY7qqYVqiuS+yH?= =?utf-8?q?PaUGB5THuuj+uGKHZlojYO/iZQPDwnEUIaW582iFt+TgCAVLaL7F5V9CGKGcwR890?= =?utf-8?q?0oF1yVI/PbHV6Rch+1QTwLWazljjnCG+QDRif3XBDFtQuH66Z2Fngz0LVq+v4igR+?= =?utf-8?q?/DaYRrq5Px1lZ0Wc/Y3CpVxyv6213hUsHqAIAllgLI2vRJgIzlfoE+ryRCCWRk29t?= =?utf-8?q?Pwe3UQUbai3K?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01c65cfd-0c7b-4761-a8a7-08dc5d84dbd3 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 19:47:18.5684 (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: 9DBwEeXCUdyUJqY2Dra9q/iGV42Jkbv6HpaeZ9q6OMszVNLGRvnhsJMp8YW2ad5/kJ6Aevss8vNB+1GH8KFzDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7290 Add i2c0 and all devices under it for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 9dd84126493ef..d321876754e9b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -96,6 +96,49 @@ &adc0 { status = "okay"; }; +&i2c0 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0>; + status = "okay"; + + lsm303arg@19 { + compatible = "st,lsm303agr-accel"; + reg = <0x19>; + }; + + fxas21002c@20 { + compatible = "nxp,fxas21002c"; + reg = <0x20>; + }; + + isl29023@44 { + compatible = "isil,isl29023"; + reg = <0x44>; + interrupt-parent = <&lsio_gpio4>; + interrupts = <11 2>; + }; + + mpl3115@60 { + compatible = "fsl,mpl3115"; + reg = <0x60>; + }; + + max7322: gpio@68 { + compatible = "maxim,max7322"; + reg = <0x68>; + gpio-controller; + #gpio-cells = <2>; + }; + + l3g4250@69 { + compatible = "st,l3g4200d-gyro"; + reg = <0x69>; + }; +}; + &i2c1 { #address-cells = <1>; #size-cells = <0>; @@ -283,6 +326,13 @@ IMX8QM_SCU_GPIO0_03_LSIO_GPIO0_IO31 0x0600004c >; }; + pinctrl_i2c0: i2c0grp { + fsl,pins = < + IMX8QM_HDMI_TX0_TS_SCL_DMA_I2C0_SCL 0x06000021 + IMX8QM_HDMI_TX0_TS_SDA_DMA_I2C0_SDA 0x06000021 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < IMX8QM_GPT0_CLK_DMA_I2C1_SCL 0x0600004c