From patchwork Thu Apr 18 16:36:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13635113 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2081.outbound.protection.outlook.com [40.107.104.81]) (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 0F9F4175548 for ; Thu, 18 Apr 2024 16:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713458233; cv=fail; b=BKUqwO3FoRhDytuwvx1FGo3ruJOqbB8VIf4/IRUxSxYiinS7g+0JXEAlHTFYG/ygAY8p3+E1yicfQv0iIqKtS/8THYGehRvr8cOgQFckjocWazJZjZwsCto2c2J9C2utHv7Z3n/9VmUmRde92dQSc0FiAF8mh1gN2+R5UaCp28c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713458233; c=relaxed/simple; bh=Jfg4Vvplj+RzCDKt5gzAaPXK5833pBM2PeC9Y+Nj6Hw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Te5OJkZm5joDkoqBZXRSdbdSbtqhisXu/sxx9VuRF9WeNSAYsuwAooFpA30tP3K5m5w9pxVuGJBo/8XelBml71CfKoJvx5VKSoGSNxdcjelZk0fOodP6X7VOGVPKA3BvqWggAVdrC4fIldrfRKA2DpcWbCZR0eWPmkLQO8r6zFM= 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=UkoaJ+gG; arc=fail smtp.client-ip=40.107.104.81 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="UkoaJ+gG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dVnpPM32e2sxZXdwuU2xRVDqabo1hFkdyXZvBo7pFv07NbkjGuIktqlon7dEqyVcV3SUwj868v9oFNMQGVjqnuGIbbuPwnX/8PNaRdiOYzgkEHPkMAw55PYK6Igqkuj8gCowuBNXromxgDe/Pp0S8ILqFLjD45rf4Hl1dszleIXwmzRBLAo+EhTXo7pAXYUxG19PEB4LhGpI7XcN1DESq9Uu14ePbRBS+6+k9RT4LlTFChloBiLXZHyls/Ns4/wyUWH9Q2ixt9UKy04Q4+0iAOxUDH/Ggx2XcXuzSPYaI0N9/CjRAtSLtTGhT2OLk7t3N1nLG/Fe8OtOKCzyI0d+BA== 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=9Bwjtl05Hm+41tt8t/fWxL05NkXLXiF7wCsejzJxWq0=; b=eMrq4JLLjK/p1Ohn3zHCBLppR6JNkCwZ1SukY7zq+5GFhSC7A0nX4EMeBfKJZRPjtwF9U9vOcXp/MuJvUNq8wj3SPbp8ZYgHW6PJii2pJ4s2GasWBOPOPOfsJZHnQP5NLv73I90t98ST3RAl2XAckcL9ueKA4WNzGjYlNP6Me67U85H8JS5JJ6ICi/CHlxFKsXdMlqvnThaxBy+FS/SQAif7D5gE6B+q6RNH+cC6LILH8QxvM4M4dsXQlSXDiy8F6BSMJhiRO/vCKwRB7UJGW6baYVPGw3zw1035D/6+TVezbCtwegg53IuEnXWZml487IRGQWiGZxyQ3pnkSrHVmA== 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=9Bwjtl05Hm+41tt8t/fWxL05NkXLXiF7wCsejzJxWq0=; b=UkoaJ+gG1YZDubElMoCjgQNdkYT8btuzd0butdNdGeCzdFzlmWl5DsVNcCCkpZgji/CClKMhUzQgg/vV4YgXCpHlogfIn0t0wWpk6bH+v4zUvQzzsl9WNCWhrGnpRbWZN75EpvmTmcmOiGUitcLKoz3qJ/qLasQDKReGylklPQw= 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 AM7PR04MB7079.eurprd04.prod.outlook.com (2603:10a6:20b:11d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 18 Apr 2024 16:37:09 +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.7472.037; Thu, 18 Apr 2024 16:37:09 +0000 From: Frank Li Date: Thu, 18 Apr 2024 12:36:40 -0400 Subject: [PATCH v2 05/10] arm64: dts: imx8qm-mek: add i2c0 and children devices Message-Id: <20240418-dts_8qm_audio-v2-5-e40fe76b60a6@nxp.com> References: <20240418-dts_8qm_audio-v2-0-e40fe76b60a6@nxp.com> In-Reply-To: <20240418-dts_8qm_audio-v2-0-e40fe76b60a6@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=1713458209; l=1711; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=Jfg4Vvplj+RzCDKt5gzAaPXK5833pBM2PeC9Y+Nj6Hw=; b=rZ+MThLPG/fcvG4Rpq5t8dpQNQycbu+juxgqWCI7YhNtqeb2t6wMqRMYia9J6GV6jC10Bi+r7 l6p0zAzblSGAsuloUcRQyFXtCGvjnkSRZ6czGcGhq0zi19gx+PC+VCS X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR05CA0045.namprd05.prod.outlook.com (2603:10b6:a03:39b::20) 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_|AM7PR04MB7079:EE_ X-MS-Office365-Filtering-Correlation-Id: dbc1984d-1f56-4956-9c8a-08dc5fc5ca97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jsz3teHbg3sqal4aI+wsk/VA1gvIldvuIyxkkrnJT2wcnrD0X33HdKMwo8nfNq+JEeRLlwEoh3NCmmf9fR1UuTV64wsGWAKgw2uc4DYqrQ+Gdo53nzJSZK77rSUXHgEaKdkzCVi7yXZH3uDNfG5FA285/IFauEhuyoTGUGXd7KNf1PGuehaJSGOLlunL/LnlpANEqQcPEwkAivfbcJNPVKfnBTZKgAiGHDrQmWzXHXFQgpT+hoepl1A51/4NkLbIO8ky16FQZvve8/3yzSlgbh2fqI1DWQsIC+JNr66Kvkk+gNU4viBoeKXtQkCqbdlA7jHzRITuagArBdtCdEHUVfsZqLapD3ZWeXnslETDuYkDhQcumYgzhmwbQw00HIcAEYi9v+YkqvDZGP03FS7nWiFqgJwTDNHcAd3jNUk6UbkMy5iDtBApU54KM9ZTihSz11gcVipTui44gVC5cTfr2luQezp4tDwuJG8q1q1pq4DLI60X6kNBoKBkEVXk/Y978Nr+unTBDhEuuKLig18zwCBP+/mlN4BPfSv9bY1xxKIdAyv+PJGgPRxrMigGI+VEnovw9b6wUV3cwimzS4dmo3U6HMsALYi5pfq1vHFsSDWxnsToPG2JIVOAj/nqi5NR5o2FZZCxbxCiyNtGLMvYjQMGMf8U4tBu6plb0QHBrLziZNi5jxBJ0kXwMHgEM/yNdfEhrG9zbiu0AGQZD1QeMA== 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)(1800799015)(52116005)(376005)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cCL4oftjBvv7PpHUxyQPJ8BmOJxE?= =?utf-8?q?CfaA5KGmHDoncfmkhfKwbPT6BHBthbrYyh1TwuSO6YLHhwe6Y3+935ABubpa0jQnw?= =?utf-8?q?M3NikgkWnmpfDsBGltMXSeGAa3pYsHVIk8P3fF/bIyriUbSI4RUGM4QyiGs3Q0XhE?= =?utf-8?q?0ONNZTZt4PodZi1b1mcf7iNbh9fWXHe3fD/q3etd0Y7ruO84oPx22DsJMxvqhBESo?= =?utf-8?q?v92bHeCapyBvsbZje+4Gt13U/yVImhrL/k6ArJ2OX7CO3A5F1omLQKuaExnr5Hr7s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eZfv/6q7e0RU?= =?utf-8?q?EPaCWkDx2uZ1fO0ZUORdLpjnOREwcE+RCrBrdkXIPlgguPa3ZKculPF3pz5WfDzIv?= =?utf-8?q?BII9n8FGNdfxeglAGiG+fx+VaSSQTbSoVM7572maAUQ42EIqxYS4AgT2YkJ7LvO3J?= =?utf-8?q?uUmmHD0v4vlMPFVcdxmXbiv4DXcjoyNjPBL3lcMOaQO7XGLf2b59YL78Jzf55I2EJ?= =?utf-8?q?PWSmf23bOP1R1Om6N8g/vu1Z9GmGn7cJIx5gJCEZGcXs/Tv5fNA78xjaU5G/rA/mK?= =?utf-8?q?GKtUS4zOsrEqE8VrX7Pl+JYLWvt8DapT00zoHRI663k4zRxe1lZ+ieIN6jgzxUWBA?= =?utf-8?q?vQWQFg4bshTFbkZxes1wpQ/zz2C5b/4mlfO5G1VmIhsV4Iv00jcGNXGfPaNnZlJ5Q?= =?utf-8?q?ZEqz44eEXhyT?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbc1984d-1f56-4956-9c8a-08dc5fc5ca97 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 16:37:09.3134 (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: 8B/pZpoSM0ivaYlmNPxD/ViLKxBxDIrwQCo1jMRQNgHPGYP4lTsKVeGFQicBJQNidN1gDqQWEIEpJtcxY1+Q7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7079 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 9f8d3df00f793..e5740f301bde0 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