From patchwork Mon Apr 15 19:46:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630675 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 BF84E15FA68 for ; Mon, 15 Apr 2024 19:47:22 +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=1713210444; cv=fail; b=bZ1pRqmP0G4RPp6DVbbp5S7XoQ2zTYFhheusJSQGV7LhojYGJB+rOn8YsB7A7VMljkb+Q7v/Yst22Fgoe3oCxBAgefF/CxP0EG23HCRoxpx+kb3nE1drALfUCunuA7FI2qf2lVB3VO3d5eBZ6dnxwU8B0okI+iq8JjdJcZzMJwI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210444; c=relaxed/simple; bh=tAEu2cjhvJES6EJR8Wiztl3r0OgUGKBUl8GHUotDjU8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=C/wZ+z5lThx89UngoRXEmVFBNxG5tKtB0WLTaMi/Vp8P8t8xJXZ1+LPZpBrn1hXCOMZqa4rVTL0ieD9/0KDPl5BjiVhva+QB2qlhs22A8mOh0/usntIJSVN1louABLGDrCaxlfWn3Rcor0mNvjgyUO/vtfHnF4XSu3nmyv4zfFo= 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=QDn7uoj2; 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="QDn7uoj2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4c0TLdXnApJxuAqLtOm+d9IbDEqtzlfB+j/9CtMPyMDy7cAL4D23yz/5vQx8CeXaqP/yF1KTW7cNX2BROxi1+Pre4CNP0mYP7mb42EtpU6uC/6kVsWF0jLJzyqR2MQvCCd/fUXPRM4E3M0gPOE9cxe00TDVZIo6b+3QUwcSKjg9CFuQvdopS5CFWQrgIjGwWJfaURtGFG/W6Nzjr1Pmkee0DdTcXKhNnbAOGLY6aniMaWpGYppnnkLEmBdzrENDJ+apam/X/ODCXTtq8S59WXP7UHmndOJN3Uv+Q1HNjl111vltLycrO+EqtmFkneE+RYkQ9qHBgSXWLTdRCfFKkg== 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=o5a/9/wZExo56noJCufyQkV1IznGXo+eMrVxef4qAOM=; b=Z8PFqIY9viMvrksmx91eCE0oKTFNlAH6siJWoCSDRNUf2Zl1hmz7MGt2rO4W/zeQN5gealdHpp7pt5hDKqXAlO0qhApDQIQs/flVCX4Tx/EcNIJRvEWusqsG+G1QKv+8dv/5EeBDo6zk/+sPR1kPKMVA3khke3MtELZt1YLZ2EoqoCc2mZgHWQ3n4jy1DnWAydICg+f+aXgphoXVoiD2zlMZPbn2rXlrXzli3qelvtrNgbEO/Om67X+Ly+jHJ/EZI+2zViUXgnU5UlJwsHCPzTqFYH9QeIit8G92LX5h15+5nnBaWlwaEEHHiaASvAuXmC8SjJvHnchCdvej+xgS/Q== 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=o5a/9/wZExo56noJCufyQkV1IznGXo+eMrVxef4qAOM=; b=QDn7uoj25PzQ3hmkapoM5K0OSm/B9ZNRMTjFjsrsAHbaEyFnTdikcJiynIGdJBaEf0Md1t53nUl7dwmYTWjyExmZhOPTLzAD6nu0ZDEzEynH71vi6LFerCxEF/Bkv2sSjErlCRflrKto3JSYJUxEm92uceL9ulzT9loIsKuFVsI= 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:21 +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:21 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:42 -0400 Subject: [PATCH 06/10] arm64: dts: imx8qm-mek: add cm41_i2c and children devices Message-Id: <20240415-dts_8qm_audio-v1-6-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=1328; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=tAEu2cjhvJES6EJR8Wiztl3r0OgUGKBUl8GHUotDjU8=; b=OzuQp1Hsdbb3iR7HOudi7Vdj1Ioazr/4m7oqeL/WS16OG5LTylqtFkjKC/+41DLEiQTSXk+r9 qUhnt3iuGDNDQFBbInKpCxxmu3v1jP1235u5D+0O6HcafMqWSy+5fxA 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: 500add61-898a-43ae-d04c-08dc5d84dd8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8glrO+q9XhCg87fRse9vq3VB8demqXbcOeFHlmjHMkwMhhM6QjnewjmFigPcL2GdXaYMTMUpJgSaikyEC9t6n8Y0tppLA5J2UYFlmoAjxMrDe/LVXZhYJn/RG1TY2iOIDR4B4wQVeEaIVHl2eKZq8MLZW+gyJG6XR/kZpB5V0d4fpjwbSOLGXyq0DE/iymnDjzu0RvfFtrR45syqnPbSG6+MX1zO2cUvz6vVglBR//CmZM5/xIk82MRMPiwtZvEYC89Ig77Dk+s+IBylCphEOsNSaI2csbBmdvoixqduRuNZRW23HBCsnwUmBATM/XxGfHnvUb/rjlarwVt/47hEVbchRh+4wbcsgwRSoTrmplcen7GEAxB24zxCWzw9aEZIdikmmiLfRCqRgiKCZCSL6P3wm3j8Mr0buQKOSQdTffRTYGNZ3be9aDq5BqQZOaSFVWAJeP/81BbQNPSU78z/D0XbLnFGw3h2Ne+ckEUZSfQ6SVBZmcJieP1+jnNgYrs+06mKRvrPL/e8hrpOw6/JDvI2enML7afqzyktDyNLPG9oT6AfdvE5eXQIpDYm7iB6NoVY0YQD/HufTNvR+06yqnoAxRobW1Tz1/Bd6q7S8obiwSHNdDs90PcpznKjXAVLDvi+K5JB543g8OSTrUxwr0L5jJY2V0rQSTF8iuCg6vuSJ01EEpRCz5nvjhXc+ApW3WWIElIi7soilMs+B7CgSGaglaCjaGM6a5gvHueTrKc= 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?F75WOerP354RmoaZgmWa96LqtgmF?= =?utf-8?q?wOhrfLXV/NPSIzrcbrq32A0en140rfpLsnBIZ8faMPxCV+kca8mvV6dkuRMBcNx6f?= =?utf-8?q?x6zuC4xSPHiSjMOiVlw8kO2ntenA4tdevuwOEPIzunuqvvAXJy3LbHSS4Yi71gH5N?= =?utf-8?q?vKImMUW7nIaNolTX/iAVg6hrwzqPDbuO+tROsCeZoOUseOeNe4rmkixmO972vUZ9j?= =?utf-8?q?RDVV7jEajjHzggFj9NoR6KtWES/MPjyJRWnZMbOHgPx3Gp2o15BjwvbqgoGGdtYgt?= =?utf-8?q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FeP5kg/IOEoDi+YHCWIqx/ehZiMDM5BTKBDMZiWLzlcJg87vBayMsSqPVw9yJy?= =?utf-8?q?LI6LU/F2d3U/OMm7ebkUdghEYFKA2Gc2m5rTiHEvdEh2rS4UqMGNmX0ytuDijv0Nd?= =?utf-8?q?KbdPs6dFNoLGCl5kv81t/Lgp8ZPumXi8qt/A+hZEfhtJsg+6ViwFeGVCo6hIKmfuz?= =?utf-8?q?vEmnY5fBDbD7S8+8fFUFQiyAdrZubc4DqnPHTTW1fhgfQXLWiS1/wGScSp4SVpCB4?= =?utf-8?q?/fqXZ6n20m0kxTTfrzDiiKKeLKroiNZP8FH6a6W4rdwR+THg87UBs0dM2t/VEz3J6?= =?utf-8?q?k+QqNtZYGq+Hlv8nS5i7tornd0z1U2GA6v15hZ1KzKYTaG+VTkY5G/FTmXb78x1+G?= =?utf-8?q?N0KHbrcJ7lp6?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 500add61-898a-43ae-d04c-08dc5d84dd8e 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:21.4854 (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: KSguI0PnpsagP1RcU6MdaR1wdEuuKCo3HuF68iwlHEbMylkEfQZuNWlfYuNk8qHYzz1HIgpQIW+T7g98LHGivA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7290 Add cm41_i2c and devices under it for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index d321876754e9b..4b87e13923328 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -222,6 +222,26 @@ &sai7 { status = "okay"; }; +&cm41_i2c { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cm41_i2c>; + status = "okay"; + + pca6416: gpio@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&cm41_intmux { + status = "okay"; +}; + &lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; @@ -353,6 +373,13 @@ IMX8QM_ADC_IN0_DMA_ADC0_IN0 0xc0000060 >; }; + pinctrl_cm41_i2c: cm41i2cgrp { + fsl,pins = < + IMX8QM_M41_I2C0_SDA_M41_I2C0_SDA 0x0600004c + IMX8QM_M41_I2C0_SCL_M41_I2C0_SCL 0x0600004c + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < IMX8QM_ENET0_MDC_CONN_ENET0_MDC 0x06000020