From patchwork Wed Dec 18 04:42:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Song X-Patchwork-Id: 13913010 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011049.outbound.protection.outlook.com [52.101.70.49]) (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 D78973596E for ; Wed, 18 Dec 2024 04:31:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734496301; cv=fail; b=sdBlP+smVtsvfvttPeBf3UpKt0yuUIHeKbKhGik0tIhtZYTEIUZbGxUYyeg0jl1MPxisbhSS+c2ywTxBWERt88SdpAxH6YB7RBDgod9pfEGaWP6aJhwyARQbTQo19TVkcw4agXsxvpnrX1PpZ9hh+zbN57H3dKO8uEs4eAbQMOU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734496301; c=relaxed/simple; bh=SJAW0IBnt29LprQo8uwP+XYmGwmtiyCLjT54pCIID0I=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=r/UvbGgQu38IifJTnnfI0uewflnJ4vVo3IQyKmZGalMyoxQxFJ1ObtfZrp3n2Lw4J66rqhZF4qJzsrtpPXbV6FGOSSxoU0IVHpQ3Z2fjTzEjSqc8ON/3tq0huLoInZId/ZSg/9rNAoHy33tr9smHsDcdaTw2QHymh4loboo3ikc= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=dLchgk1l; arc=fail smtp.client-ip=52.101.70.49 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="dLchgk1l" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AE75BZX4pOoiJzwPRKTJQesrUo+sAWGEG/DWkEcL+CNgnAItHKN037MXSl9mawXwgLgu9xMwL3PR65xyBklgEXh+tC5ssH8iYQSDKKmdgfNMIQE6rrOrguST184t8wyDqYqV0FyUHwvE8qio5eJ3FHx9aEMHfD11tM7R2a2n/uiVGGaBvlus/++OGI6U6P9P6jd6ph2sDKXg0UPAnnb0QyyrfSNyTuhXwDYGjBzEL3VjxdbEXGzRe6qSRyoYRGkenj0mYKKEz9mDcS+r4x2CkTpTFLB8L76NERs3cAkODGZJSJ+77YqT0O3Q0A+3aR4goe516MpObjfOnAy7EAi+qA== 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=QjXr7/gAhGvH3Fw1kT+t8GfkOpLq/6YNEl2eWiLfVI8=; b=qkpkzGLR4QeSdWzZvfzIE7G/XR8M0dt3mBnLW4VPpYpsQdGBngGq46k0xsxc5mqw6lKhwlov0OqiN5jPNB2QGVeL20EEfeCstuGOz3hPgbZPLnHXNbjVxIvTD6NMeHnQq39RN7i2LANrDhoFUPXjCfNjm3WoiUVHrFQ96U1xcjVBl4R5izO5Xm+OMB0fFDwTjtkvpg96iwjryLJNnmPbEVxojAM4e3u305JPy2d6eEXtDts0wecwdCCMQhaJxFubutpRQ81ETc4T4+JX690SNK4m4+QaaCgM6jtahrYQotx+4WyurCuPqEiWVHpWLvopAVFizoTiqp65g3Lcrl3pMQ== 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=QjXr7/gAhGvH3Fw1kT+t8GfkOpLq/6YNEl2eWiLfVI8=; b=dLchgk1lZ/tb++3H2qjftoIZzwKZai2lZX6HaHVfey5yBDhXhfwZ8oQo2gsVonlgEIFzuiuxttkAiTA3p3sHbTQ+2j/f1+7K6+xHFWEcX/bKkyc2WsicbU0ovNr3g4oatwXFj97+JtcvVFmlHQH0UqOXzIybsHjGSP5dj7mhiaUvCpArEpkGZ15F8pyajfyLejthqBzRz2aH9b99RcknxNbZU9m7PWFmAI2DIYtGcrm4SHZxxdrw0V77z4dwc5rgWrjQTd2M3U669LXAwfecG2YPFspwurde0tbTbwuIvw+OuWLsVrRaP0sEe0iNWG+JjlHXsVvzk4e0jMlfL0OtrA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) by AM9PR04MB8873.eurprd04.prod.outlook.com (2603:10a6:20b:408::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 04:31:36 +0000 Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0]) by AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0%5]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 04:31:36 +0000 From: Carlos Song To: andi.shyti@kernel.org, frank.li@nxp.com, o.rempel@pengutronix.de, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Carlos Song , Haibo Chen Subject: [PATCH v3] i2c: imx: add imx7d compatible string for applying errata ERR007805 Date: Wed, 18 Dec 2024 12:42:38 +0800 Message-Id: <20241218044238.143414-1-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: AM0P190CA0013.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::23) To AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) 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: AM0PR0402MB3937:EE_|AM9PR04MB8873:EE_ X-MS-Office365-Filtering-Correlation-Id: 98eb1d8f-4c18-431f-356a-08dd1f1cdbd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 3V1qk2MkjkTNgZ1RyZVcbrP1leSAx8Uv7H6FG6j4sF/qSvK1KugtgVzoXYxPxyFQUANQKL+tMaDc/u+8f3RseZLfT0f1G3W4SRljB5zsICclHmD2pnwJ4L3Vgk2CW4tOnB2ysub9AlgRRbAUWE2cGpjy7ONJpgRrGLSz0Sz7onAFFRftXnZrF8gLFLn+M0DibJd9lMdJYGacYWr8GFzcau4kpnCtzD57kEWRmD0I45XJbR07izP8Ly36dnG4OJYMY7jy+vwbqG4oYXcWtT1zzxEib97+GzmQRYSzDoROGJXQlpIXelMV4NKekPZSHllsN2wxv5isPh2ef27j8ZO+ErbVOEcWFKL5hsyETwHszY1KzVxxxUZKVww5MHiMNaBPLkBde6rcEwBsUFGY88LTM2ITenlKmUBXARMT12cUt9iT0Od3QQATKDWrZ7Z8ih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:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3937.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vmDg/baoYJMba8zsbL6c6NEjn0eJlkbktDo4jwyZnOcrPXsiQiftiZ6xjrnNrMV9CwTSmHuZ2qtVR+grF/4acdTiiK31QTWI0l0P6yB6x/5Q3mqSkEuBqvIvPaSbDhkYl0r1boFbGdiOGaivPsPHWfC26wp7ED51tVphECTKQX++xQgpU+KEdwR9w8HDMRdckQaAr0Y59xCNuo+Voiqxnu4mCMUD46y3Fs1J8oIbbdC2zYEubZ8eVE/2vMHZOht6uq78g1/vpjXhN8DLC2MQjMx3To2tDx9onT8vt+pwjFVkv8N51XKSZOVooMiNSVTh2bsjl5FMHTIvjxqm0iKSaDqhsCRazmvFTBQ/oF9SiJ2ep2sNQzwfXUeddgQ9gQ5fIsW4AtXZoeJzCO2M+TBNUJaVkM1YvO7M/8ff9qUfdgS8eVt0oiOTEAStLDdwG75A/O6I/bY+AkhT6zKW8RZyBIBkn8UOSyJIUDY/7GYsPtIbTPFQjSjCsLO0vIlc8NsqhHZm8sjVX/Gvmm4Iv2KTgew66frDsyZD+78dFrmDAuuLly3X7I1QCWrE0+hJ6Mag1ZfH6+RnL5/fWtSfrrNsLRApyhvdQitRB1M0kgc++GEE7niBziDFBlqBtMgXM4nDYvg/ckS42ZqckuE5kALLI8M117ITW8ktUI2s/5GfNMsr28oNF0tiXkhYQAqoxMhRrIeKJs4YeVsBfjAi3cBAMHl/edeAccc9PG+qg55L8CfV5orFngXsc6BmagNqsMTVIxaqOtL8i6awmalaM7zCHQbxyfPGNAVJg/DlBq6ePU8xbL4BnRITsv12je2JlrCdI1Lf6HiOmQMSaY+/mM0kVC5fa1knlBf+BSodx/ogkhGTpnAjCsxdMLP+ndUF2Kp50gEaBalkCLjRhV6GmX5ZgBPwwRR2YO+OsYUQ4N0YMF3VhLgHsBbTiSb+NAW4GuDRT4y3kkwkJrxQKxI8uF/fTnQjF2blj2wjF5Lb2AktUg38/eZiRuhr13xwcawG6f2wPLmOhUUAuqCe+F7FB0mmopxEvqg0KKRagqDLrWj31EofnQ8IRhaeDyk9CHtIDjlkoRzUBvcIRIhi0CJpuiHo13eHAZBtjgtxrzMusK7VTMKvPtXT4vP3GVfL7XXPCVyE27esl3oCbSNfBoJcf3BAaWp4XSUJswoJnmTe6V1m+lmM94Hs3OIyVrNXmNH/ox3WrU+HE8JSCRweod+GeHzaarBQetkiztOoVeFWbmLq64s9mSFpVPrxJ0lWohx6a/vE+JDmM5HNZVx+JET5NFa25FdcXbk1pEWIBVo/BryXFiiRndcSKk0Fn0w6RgMzzu78U+bdNaLKxlgzFhYGlxXMhpdB6ejDSk0g+z6wtbj7gEiJ3Vm7xtC3rusk3BFEF69VN/1qENekvHdyGUn3O9/gnA5NYsTi0hpCK7GrSDuHux2rSYGEJMr+lf3bklnNF6FJ49yNU9pCih5l/sMi0ZXYi0D3Qgon8Rl+8qTY3cNUZfyiihMg1uRUZk4EfamXIPPpPgcIWk0kb7mO7c5pSP93f/HhYXNcToaE6Bak9YQ/+H2oOAUzIq0sYmfvJUt/0nNL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98eb1d8f-4c18-431f-356a-08dd1f1cdbd8 X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3937.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 04:31:36.8276 (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: 3IkSGulvOoHqyaUqqykh7ZmQ/a4XeGouxcbzFREcUU8CfYDaB31AkmgIWh/1Y4lzpDRlTY0hb0c73sBJ/Y84aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8873 Compatible string "fsl,imx7d-i2c" is not exited at i2c-imx driver compatible string table, at the result, "fsl,imx21-i2c" will be matched, but it will cause errata ERR007805 not be applied in fact. So Add "fsl,imx7d-i2c" compatible string in i2c-imx driver to apply the errata ERR007805(https://www.nxp.com/webapp/Download?colCode= IMX7DS_2N09P). "fsl,imx7d-i2c" already is documented in binding doc. This errata fix has been included in imx6_i2c_hwdata and it is the same in all I.MX6/7/8, so just reuse it. Signed-off-by: Carlos Song Signed-off-by: Haibo Chen --- Change for V3: - No ACK, so resend this patch. Change for V2: - I have tried to fix this issue at imx7s.dtsi in V1, according to the community suggestion, I make V2 patch for i2c-imx driver to avoid updating the FDT to fix an errata. Discussion in V1: Subject: [PATCH] ARM: dts: imx7s: change i2c compatible string for applying errata ERR007805 Message-ID: <20241021031148.2682015-1-carlos.song@nxp.com> (raw) --- drivers/i2c/busses/i2c-imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 350346a7892c..9d5caa032c5c 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -335,6 +335,7 @@ static const struct of_device_id i2c_imx_dt_ids[] = { { .compatible = "fsl,imx6sll-i2c", .data = &imx6_i2c_hwdata, }, { .compatible = "fsl,imx6sx-i2c", .data = &imx6_i2c_hwdata, }, { .compatible = "fsl,imx6ul-i2c", .data = &imx6_i2c_hwdata, }, + { .compatible = "fsl,imx7d-i2c", .data = &imx6_i2c_hwdata, }, { .compatible = "fsl,imx7s-i2c", .data = &imx6_i2c_hwdata, }, { .compatible = "fsl,imx8mm-i2c", .data = &imx6_i2c_hwdata, }, { .compatible = "fsl,imx8mn-i2c", .data = &imx6_i2c_hwdata, },