From patchwork Mon Nov 25 13:45:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Song X-Patchwork-Id: 13884914 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 D76CCD58D4B for ; Mon, 25 Nov 2024 13:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=YQr3HASoq0wMbzkVTuZl6z24UD/nEwN57QGJoClINhQ=; b=djjujcscEwfnqVyMGBU4EojHmT wSUPCL8d5+2Ynj5GVuiwCA/ZjsNhrTW0Szk2iCWzEV3zXdVycDgOV8RIjrDjnniXwHxW4BXWbneBS rz8ItoNb2w8fzufJE2rVKq21eFm9ADfuZniCVEJ1W/oY6qSfsUmmDIb1CJyfyhv01lZXONzbvRlZl utkn5pNIihoihw9s9oXmiFvlnF3g/3uDr6xQAndb6vfQRwRMWGrjnGa8yJq/zuksm2A0HdkiHIxoz vN2VJpC+FnNvi6u4F6QG6uqckz6Lto2nhkElaKKPdCVvOSkMOQKWRSdUaoj6KtNl82enz8saDvcX3 saTu4qPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFZIB-000000089e1-0dRF; Mon, 25 Nov 2024 13:38:19 +0000 Received: from mail-vi1eur05on20624.outbound.protection.outlook.com ([2a01:111:f403:2613::624] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFZHD-000000089Ov-1i3G for linux-arm-kernel@lists.infradead.org; Mon, 25 Nov 2024 13:37:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dZfd3uYC+V1WK+O47jpo2jtaZhe8nOh95cWhtA8I/dmM1ZYqitztO+YgaJCs/fMNnaG7Za1Xn2H/0r5k4jT1IARNyHHINhh9h9MLNCRjtrzslaINkFl1Nyfh2M77/sF8ybn5EhRUxzuhGyew6HRcsSoulKG2ILHao5OfVrDljlvu5j1XLJJ1SqlzkHJj8jTfIExKz6oz2kk66UtcuRuP9z+WUjddRiPFNchwnurDqcJNLr0O3z8j/WTov0il/cYi63QMHeuXLsh7u1pqo750WzGKFDQFczxirQWKnFi+4RqdTan0MX3UE4dkFJJUYH1hodk0NAlN36kP9HuCq4/ghw== 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=YQr3HASoq0wMbzkVTuZl6z24UD/nEwN57QGJoClINhQ=; b=AcIfOtwSKzEqwODsnqUw/piBZtNxzPL1gkXsEGuaAnmYyGVw72fsCUiii17I5EL/5UTcoyOU/CRC49zlHPuW+gRISzHKJ6vqoufdMGiSTJYdId39Q/Ps8nozYqBG0kbPdHQe96tHOUytwLIB5zOb6fvixAISqJpkgJ2m5HE3B1jdiY2FwO+GJ3c4KQd653CkMs7MPqPKm44rjxrt4LV0cL7xmfqwGJ4xY/cRyEIkB6sEMLR8ACyElcKEOSxJ5HU8ordHLsMxvbF36RQk1xAsDj6eE9u1Tr6rsF9p7Tkm88yqiIStaE9eSWPYggMssu6jILgkRCbf87767Qz6bGC4Lg== 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=YQr3HASoq0wMbzkVTuZl6z24UD/nEwN57QGJoClINhQ=; b=nfic9/aGmR4/0sfJhjMpjmZjdWWTTtYXz3knlmrHK0Ss9dyCmo1lzR+o2ATM/LB4X31BKD1tXdcXrHyRytMJZDYNOoMUfwxqd00Qtxt/PkK82S4GYNt4jCAhCJP1pNYysu5hJKTHYuBX3dDe/v8/Qz6towLVnAt0/tO6zCeMCn4IGqAj2J+fUZ3RmMEpC4lpwpoNWCRiMr3M0W4W7O5fKAsjYQFCn/NbEmXTy4Vvj2Gl0WVNxibGP9zAC4y+jIOSiH1NOjZCKdc+/n0saGqctj+mH60Csy+gUjQvu00NjLx8fiJ5J+aAJO0hohnpvGeQNTm0WCExHHlPxXFImV3L9w== 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 AS8PR04MB8660.eurprd04.prod.outlook.com (2603:10a6:20b:42b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Mon, 25 Nov 2024 13:37:14 +0000 Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0]) by AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0%4]) with mapi id 15.20.8048.020; Mon, 25 Nov 2024 13:37:14 +0000 From: carlos.song@nxp.com To: o.rempel@pengutronix.de, kernel@pengutronix.de, andi.shyti@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, frank.li@nxp.com, francesco@dolcini.it Cc: linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] i2c: imx: add imx7d compatible string for applying errata ERR007805 Date: Mon, 25 Nov 2024 21:45:48 +0800 Message-Id: <20241125134548.1611923-1-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: AS4P192CA0037.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::28) To AM6PR0402MB3944.eurprd04.prod.outlook.com (2603:10a6:209:1c::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3937:EE_|AS8PR04MB8660:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f479a89-7f7c-4613-c279-08dd0d564595 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: tAoF3TYoVIKWRniLd8BSL+8HngrdxeVKOwdWjOobuB5YxGD2VHvyVw7rKEpZWU61AXwFuTl3Y2xUiWeFeqCxvt6xaecTBFBd8nALYqLbKJFikc6x4ItdZwpxBGXjMMD+PJ3KtHO+akpfVk/E4ZG/nuUELqDRrggjeZyWNSB5hCRCWQ8ZDQGQYHCVQssGSrIjlFV+wXsvaPuEcA2asgZLIJiwrdIOqizjnFzOzjbtD7mddGyC3lMlOlXM/mQimIqDzktysL/oFR/G4kK2LXT3kyB2jpXdLsYnVyHEBBKPtfBpBXJHpy+Zg5aDUloTnBVedVIvASYxpspCHyq0Y/KvyWoZ9It9hw0TzSAN8Mk3e1LugLGH0BwVUJm4FROBOHLWrOof3Xs1GdcTrM/lqtwsJXaXFTU7wckcgchR4BpNzMS4qMk6XVea1OshNmaRA5P9r+leMpmfcBtvk/T9RIkPBbFbxH+2GcRh6muebT2ipoFuAgXRneRqn0jSxH9r0MARZv2ezl4jU95729QxFs06/Uf6MQ8DzNOnIVxnt2HxqmSlLsl1QNu0x+Nfj7sZoqUnvzXDCcHvZ18EwXpo++oX0NazClAmb6MPQcRqAHoqJqCZ05l1ZJzyMEOlixA5z8TeAMudAcjao+ql/z83AfizFRM3yuAFCA4SQ95HfT3e48S7gXxZJwegWaMRroo8QCCRFDulybZW8x6P7EHrq6Bcksiqxh2xq/DY7VrNPY/6myK5nckJfiz/3CTmzTtybySWYBk/E0LRkMHUjtI4f+7qv242+res5ezY4CaL4aamprRrWxcYL4EJCvmJEGqkH+21AzSmF9eTCc5CbqgCO7EhYe893HzL4M6FN3HzfyC5w/8OkFP5fKLVzU/eGMfznspw9l71zx2Yy5Qg7FR33hvGjIgE4xSJyli1hgOLScJo3TwextaWqS7bH4N18nHzkXbwelpZyz3dweKiPiBz2l8g2aOFUOU2g7+MUPKeGm26qjKZ3je7D8eqtlRjxe3UbZHTm71bCifZsx6lAwSVCAtD790kgCLYfN3MpTqu3jni0CqtbfNEe8fQFrW2fMXRfJb//hEx2AWmXjIlgjtpVBPIkqwDQBOfO8gLHVa2FkgRl5wYKojuh6H2/laysgnLeCoUHVWd7+MAgvq+nuQO9s6kOEKqEoSgEF3mkmUqQqZtyHYpaJfCGA7O0oRCZ5leW9zzfugM3QRhUmD4drUBjVX0s1uuwft0ArbkPwUoH0Dm1G4wwFAAXROT/ZQs3DXEVknZLJXFuF4lvkc+Qiz2NPDih+FF7l6hClTGbhRZlbrrTFeN9bzneR/iT40w+imFb9TILjG1h9humd98NTBlAzdQHgdV77bA+JV57fXIEgJEVFY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3937.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7A/+1Boc23/N+X/sMf3Tjxf3HIHKlyNBPve2dCBumuT1zDsgi7bX7UiI2igfVhjpfRS6Gs2St3xlIO8bgLztRenn3e2NgGFJ0TmyiYIeSnEfqqQYdvMIwKceaXHz7BTcqw9lXpGsE5g2XtWxBBRQpm3tcO4w8/M9sHvDm417OHUEw+0n3Ej5vRunP5Osxxygi0n6KybwfGIiOVCMp4/1V9698AHrxUezyvPOYrZLMtGubtI7DrCrFqUo8zw+e2l+m8jm87850UHYOPBswuar07yANtimKWjhB455T2m5dVIHnqLStaQV2QIx3X3bptvuMrIDY6LvF33Dg+tvCAOistQAUQjOXzZOY2Yt9sbyr3amZwEdVToIQN0MNVjoGXCdjXp+568NyZjCF9Nt9n+kPXptugXY7LWy8kYe9/hAX2n9UJmUbCjGLxzudPfaeeSPcBiS/IOz4M8pG7cSg8agxalVdEcPnoVsGjt9kRr7Ds/7wNg3IMnfM3WAFsP2Uy2fG5KPqGceyZvFWF+Z7Za8aXpHWZ5SiWI2a/CeulXrGJ2VAM5Z6bPnzAEtxq0oiPn3RVyhwBtIJNCvP6eVIXJjGJXLL23zmy3j6DyDzHxtUKsPcUDrZHQpCsh6AUX8ajfoDZRnNYlQxdMp3t1CElk9iBLTArIZSFGxevrVVTSZkdgN+geNCcLzKxVJqRU+UXpzQBsI2SxNvl71h48Aw0j2jGMPlSr0nfcLCvT24uLI+jy2vDL1Z13J1BsMduUUAasP4ya0pXr4W3Tol49x18gBOTdFGZN8y6mK9GYzLFrAgLyGdRvK2gxy2/A2UZFbBqIlLlYVDH9HyTxiqB7c5ENmA33SuhNFYtKa+o//uWVf62B7oVuGS27PwPzB23+5nS+jlcFOZP9JJWBZB2addN3l81sl89gG2FMDaKKWIiLc9CoomaT0jf5HvyQdoJZziDmOmEK5n8JieSrJGgpBMAAkQfbYvR6ZWyeB1FWOTRpITbXWGVs5RsmPub586rfa032zELLsildol/nEbzRCt6HjVdyOCev5lcrFAAJNtPkegLyJghS6HjAq8gwesOuv1k85fVXUjz16uNkQJkTos6PDB0NE1xvon6eaVYyloZq2WXAZ3PQtY+gUQzNlDHsJ7l93bBG098ew/NTz3EnvEdph4tIzRr1nxBG8IPjN99vNDwbU2qKw9GHMWlDcRnVDzGpOiHQpLHrZIbNcLNzDDFs+jhQo2UB51d2V6W0Qtmo759Exnb72wbTkffIL542nZbo5DnY+aaW1lCDpfmoj4qQ0MbX09c874HPUlkPGkFHWeCIGwrtzNo7WzsAHV3eUWtn2I5ETto8hmmPIKoLxkhI0T993ZWfypUTh56l3zw/QvzUODlRcxFa4P4g5L/AfGfEeh1CKBjhodona5BsfME49hv3sUz1hgD46VR5zVdbvATwnsSsr2oAROtF8fQeYj/OOKH6Wjmh8Nl5vO9ORCPcsMfF87k+Zxudj/nVFCNM2GnN2ZyjJMVaPS3lLfDH6DY3XqlogjwSb5EsVF3xMIIlrkTbeKSkVG4fUSWtjQJCGNIJDfDnFhRYnnZpmbR/Q/ybh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f479a89-7f7c-4613-c279-08dd0d564595 X-MS-Exchange-CrossTenant-AuthSource: AM6PR0402MB3944.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 13:37:14.7111 (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: 50eh0QJ9C81ic4MRlldcrJ2dtaA6BLtfFEkR/IsWOSjBLyrjVKekzpn3LmVH2D4Dz6MZAJ9yp9CEmMhpfOFCpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8660 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_053719_447218_F9E27519 X-CRM114-Status: GOOD ( 15.44 ) 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 From: Carlos Song 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 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 cf8931a8013d..2c782cdc26bd 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, },