From patchwork Thu Apr 25 20:24: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: 13643737 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 28389C10F15 for ; Thu, 25 Apr 2024 20:25:26 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=cwNqLXkcQUK9grqd9RoWS6ZAnpd5D1/0fxRpvcOx0tU=; b=sULO/56CavkKubZ+WWQHJn0IZI 6oWVE0V2PDPbelbeQjq3OHCcFfmAwZwckRpmG4C03gRqk2TMUKeCVZGVN6GMAi1FuBwVCUHnqkZSD I/m8VuLXw1aKShMYN4meYzyv/wznI4RaS+X4WU1YH3d2R/jWD360eoJ7sp78usS1g+zCBZUsOXMdt MV83hWCqlQVqFIaqGgrJVMI1ScBGcYxByXhMGvfG+79p/7mURUjS5LLSeqI0iENjvFclQMvm+0qM2 U7bmtg2AhET/4utkIoCLFcnpQmxmSTnq27yNsT35dH2EXY6xkMtllVChKrQScHQvE1jg8brhjKDo4 s9KVsYUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s05ec-0000000A3cx-1meX; Thu, 25 Apr 2024 20:25:14 +0000 Received: from mail-vi1eur04on20600.outbound.protection.outlook.com ([2a01:111:f403:2611::600] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s05eV-0000000A3R2-0WcG for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 20:25:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gf9JUlGKHKTOxs1m+5PK3DR01aWlwJX03PUoA3Cy2IhJU5H7n7CO4KcJ9D+WWvklXAj6SRO3K1CxkCmpaAC20YMfLpXe8656KBlpHAUVy38BH61wxWnFKk9c1Q1CW4Ku29JnOfJm9c8NOppeLANpsYtuxPwNDUt57PK4aaPVc2U80p/MWTXJnSu7GVu10w8LeAFWO3Q5fo2g2IupQlD3MUzy2WhsXIU4Dtu5g0AnmyOnRDxM59+8Egs6/maWyBM2Zb4SBqdp9+lwCI/TLGfdOdXNcJI4hGGTVLBBAKe98KAy1Fvlw4AITrK5qwJexzoJLndJt7Y3gGLvLaEYOg210w== 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=Kw7HMSGRKHTkZ7ZB98kmLpuy/Xb3D48kuCuPxQsFlcg=; b=elRP/MxoLMyQuwgazdwDjXthMpvY/bidJmMIeOWh4Hl5TZx8KXsyBn2GvnlnSpUyBuDYdFx/uC9/A7TepSc22t2Qw6IO1iyIZvAgLf55N/iQ4RSAsG0Y7ZlgMUSYCQxASGvmsid4hMnl02HIKtM+OfJKkQE55m1iYtljHtfuTp29wrc1dSF1lsi2T0FZlGM5d0L7uhIkgf7w22hruZErnnAj5gOsKBMyxTfcylvqYTsfEX0FxmgMBlkKFEdTkbc+tCn+BVgPa9+6TPIc7Tts760GLJp9QXSDqF0ii73jJndZh7QsOgc6QWV5WRshNGa9qcR3Mtxzm4uF14dgf0nhIQ== 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=Kw7HMSGRKHTkZ7ZB98kmLpuy/Xb3D48kuCuPxQsFlcg=; b=SX6Afvcs31d9MfS2u8aMXz3sHIIEcLcjUQftX1rssVR6IA0Zudv5Mr41R2BELUfrdstoYZDAtyZQaQfKC2GvXZgXGM0op2eokKJKP/rvMx/idpysnzz6Z+rheafKoq5Bm97T4Vxx8qmtBU3xjM3lf98NLmDOTG3CrBYD1684+Mc= 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 VE1PR04MB7472.eurprd04.prod.outlook.com (2603:10a6:800:1b2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Thu, 25 Apr 2024 20:25:05 +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.044; Thu, 25 Apr 2024 20:25:05 +0000 From: Frank Li Date: Thu, 25 Apr 2024 16:24:41 -0400 Subject: [PATCH v4 05/10] arm64: dts: imx8qm-mek: add i2c0 and children devices Message-Id: <20240425-dts_8qm_audio-v4-5-7fa6ab2fd64e@nxp.com> References: <20240425-dts_8qm_audio-v4-0-7fa6ab2fd64e@nxp.com> In-Reply-To: <20240425-dts_8qm_audio-v4-0-7fa6ab2fd64e@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=1714076687; l=1737; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=KUsw0dhMkFj7qR53hs2zo3pJcSwNFRAfIdjGrecPBoA=; b=tckHOsj0m8Ns8mhmK2ycvKCnuyxGZsGhUkVNRw90zsM14+mFkf94WbdUKYiZh07awdsaEqqk0 Lsv8Cal22uiAl/Io8TzbOkgfilcthiHwVXcjFzh7FoflBX2W+YsCeSU X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY5PR17CA0015.namprd17.prod.outlook.com (2603:10b6:a03:1b8::28) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7472:EE_ X-MS-Office365-Filtering-Correlation-Id: ccf4fc80-bdf1-41d8-696d-08dc6565cb39 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005|52116005|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Og1hnZ8DBQyXfO1ZNBbpY92rRFe/lC5?= =?utf-8?q?kInWboHUOWmjoWyfIWd8/Tusm9Avomu0mApFGEBqTOj5dSJC6qy0ZaomGU9/dv/ce?= =?utf-8?q?7umAk/uPBnvkQm+KWn5rfVPBl84wYmFR3Skwab6uUnmGRMpYk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nupbfjmu3zRQEPyPn?= =?utf-8?q?EMq2qPDloikYjMQE0mpYbj07KTjTWB9sidt4m48scaLluxS1xhJ0EMxRXMheAStrx?= =?utf-8?q?OiUWqam9j7kJStWevYmukRvsABOgVM0wZyFdcKEgb46mmaMaThvZgzLrOoxChfFV4?= =?utf-8?q?9V48n2umhzb5Z7p2yeF9lx/ZGUaoz2fOJ784VUHqFbhUlF7lWcdASLsOgFnJwUS9s?= =?utf-8?q?1nqwnEOhTSPBZVwYcq2FT6wTr9lHNXcjB7Sqbs4aHJrc761CJovQd6rmKpM5IXyGq?= =?utf-8?q?R+KPx7hnD4R1TBcrfrV0f6r9UVUPja0yT5g=3D=3D?= 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)(366007)(376005)(52116005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+oSFFpkWkV4SlEzf8rwYq2qvSSLn?= =?utf-8?q?HxCKN5s3V7EGtsjHu367kWfwnAWnMkc6dNYWJyfRfTyJEmCrMuhjq3NSkTA+bu+ob?= =?utf-8?q?cSLiC111gMfw3Pg63u7hTHaKfW/+R8qM49Ol1ELmw2QrekhciNoU9EBMgXltS+aei?= =?utf-8?q?/iAkYoZkc+U28Np8Quv1GE82fAPWykcpX7yRjUlYTlqFZdtv3CsVVDCjbR4SnBhuS?= =?utf-8?q?vmFKF5nbmCFwpb2cr1GcXA4nEE8Uvkd7ZwkEUNII9ELGgiMj8oYeKk48doDN+aIWW?= =?utf-8?q?54CYkrLaL5oKdtGc6/opZQRgs8RQRSYJejbuM4m4b2gFU+Rpw2/kYLneUw25dHfO2?= =?utf-8?q?AaWqK5cOwJ4G5oEl0nyPGs0W5aLgmyY5Aqjuqf1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iJ1mypOFhGYJAxvalXym2QRlS?= =?utf-8?q?HYFUlU9GhRy25jfk49lipRufrQryZN+CKbsKEi6ldU0b0TP/sHQPgpJ2LBy5uUGAc?= =?utf-8?q?dXr1XrcI1+22prMqWoVT2+wXm2a9aYV9LNYHE+nIKgXFmHsB/gGFIfc5sZXkieDpE?= =?utf-8?q?neBVsHJ9wnx6xxz9YzVkhv+sGicAIVu0Ljwl06A6ksMAU+N0cl3P/sTDojkuwvrJp?= =?utf-8?q?wPV9m+K/ZyqJKRftalr3DeMzF7djlLIqGALvAizFpGV5hJ+oSkAPiIjYVDKTM2t4D?= =?utf-8?q?iT1OtrRfLVwr?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccf4fc80-bdf1-41d8-696d-08dc6565cb39 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 20:25:05.6130 (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: 9w+CzfWtcPSytb6lofWYrtMW7uBetsAcT1WIVBoKVcP1zFNPWcISQYxMUJe1pivwmvR2rzdvgcWOSodd80tOKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7472 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240425_132507_250696_57D2C86B X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. 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 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 6bdda248179f9..dd9dd3cb7d47c 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -104,6 +104,49 @@ &asrc0 { status = "okay"; }; +&i2c0 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0>; + status = "okay"; + + accelerometer@19 { + compatible = "st,lsm303agr-accel"; + reg = <0x19>; + }; + + gyrometer@20 { + compatible = "nxp,fxas21002c"; + reg = <0x20>; + }; + + light-sensor@44 { + compatible = "isil,isl29023"; + reg = <0x44>; + interrupt-parent = <&lsio_gpio4>; + interrupts = <11 2>; + }; + + pressure-sensor@60 { + compatible = "fsl,mpl3115"; + reg = <0x60>; + }; + + max7322: gpio@68 { + compatible = "maxim,max7322"; + reg = <0x68>; + gpio-controller; + #gpio-cells = <2>; + }; + + gyrometer@69 { + compatible = "st,l3g4200d-gyro"; + reg = <0x69>; + }; +}; + &i2c1 { #address-cells = <1>; #size-cells = <0>; @@ -282,6 +325,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