From patchwork Fri Aug 12 04:34:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 597141 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D774BC19F2D for ; Fri, 12 Aug 2022 04:32:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236537AbiHLEc5 (ORCPT ); Fri, 12 Aug 2022 00:32:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236239AbiHLEc4 (ORCPT ); Fri, 12 Aug 2022 00:32:56 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2055.outbound.protection.outlook.com [40.107.21.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 595949C53F; Thu, 11 Aug 2022 21:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKuN+NhLEaUF+pv6i0eLdHqX/546I1bgwzPyLamxEwPMbOOWHyRn9Mh5qqBNH45GadkqoKcKaT3Az0FvFEyYWDR+4sqi/kPPWV7QYd6v3PseJgCUUrXbSmijrRarjuRswGjaedDLXJ/jZDHN4C/Uv2S3pF6E1q+1pUEpFXboxbM0rg+HgJggIaH0en/NvgVnZl1YnjeMvbb4U0Tunhw7CKfO6yqygSUDtNNNF1o9i/JtUCKhQUImprTb/JwUB0Kx3FNF8/9HrICUBegZc/u5LKAL6vdTYANATxyHe0GOv4ZUjAk1K32vdCgJHvBSturNFjk5bQ41CzCm80ceOBB8hQ== 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=t+VDlxpwK1mbL/3+skhIYunrAgujrBtXvjqYL5Ac/y8=; b=RNSSgh/nEb1ZKMI49qKWNhjRM6W+uFB0BTJMsUAhnthG084n1+HheI19/pyvbYZsK/p1gjuVYYqVN7iRJ8nfvTtly/GeLFcqnkNYTcCdntqZB5qbqO7X4x+jtnz+XhuGT9L507plKHf/mmVuwqQe/q+ImcYcOzCbG2uvYqFrpZJZ07Rs0zzYagoHsHqohyLat866Kzl6KQyLVe7EtyxM3urH1nuBCl8OuY3tMuIDnN48sfHP5SYl1hWVybmgvs6NPkA5wD3WyPAdTzyexqkMoHPS9FnjgiChfrP4q1nhO5JKYP7kIRBppb+cLFwbz1XB1X0mHiGA12eShgMG5SvWMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t+VDlxpwK1mbL/3+skhIYunrAgujrBtXvjqYL5Ac/y8=; b=ZUYrYU01CoEX0dS9iFQV8j8B+lxmsMBjY5M5mfluFqkTCfLnBXcy2abJ1sCfFVEDIlC3vRuhH7mEGYCnUMepubQE7gzBjAvh+XyPD/Pxb2wtP4m++jI/K9m6i2Mp4xh+3Me9EJUQSzvdYyni5iwVkdyZ82R3myQHdjbsyhHF+Ew= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:32:51 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:32:51 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 1/6] dt-bindings: i2c: i2c-imx-lpi2c: add ipg clk Date: Fri, 12 Aug 2022 12:34:19 +0800 Message-Id: <20220812043424.4078034-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9300919e-791c-4630-2721-08da7c1bb782 X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZYO09Y0+AjWu0e1Ccv5pmias8pSBSlEgosNIsHZR5hPiI27aDUV2FH1yeXoMrmQj+IYjcLyCa2DpjV13+BSHOgkO3cQpKy8oOYvyKd9Y9lR0IxOPfOMmzxqQHU0opVLEeB6Sh+pRRzN3h3MaJVeQm10aLCg8In1U+53PB3Cb1Uj4bdMExZekyDrqc5ynd/ljcXRVOIDpub2zPluXqB2AvWKxCG2thVM7rKoedBCDeKfWeS91G9c94mnMAD4dTLPQdHeazSIi1rG099LumBUh8Ur8zj2HGxMgmqq4E6l/AYMzvvYJVxM6htyZWhNIFVVibY8XcjBBqgV5yMG03/KgD1R2QajSGOEkrba67Q1oQF9XIFa8Bq1DYA6vTmtrctqaIidlCOyFIbqjdBcBP/L2KHRa3nZ+ZOZowiQC1cC8Hj40Ws38dsf3DDhSVIqO3frgzYKAEhjLJgI15KppWEKAWHRJ+fWXLtR7pyDrJ4r6GmVWrWIR1D3tWLvg+m1R0w2qrfb/OeU4B66p8wwc1L7GZOY9xBDN0a2Q5WURmiXEa1f1uj6h4GApzV+17VYchmLlbhcPGQNMiMMe+p6HHl3FtHE9yfw227ZZkqhOLpphyAnB/cvaFuviN6EH2LQTy55OThbVSmmfHCTfVJL6jFzTD9QsUB2X88cu5inZRYUlyIAgpWHMB7lRZB/VfRBlF9lL/mE7lXaC8yxJac5emBNJfJyahW6DFJrk1ntVVEnCIMYwlkCW05yXqb71p6/LyAxygQxNOXkMplhHMgFiXUSDQ0Bu6Ch9eqG9lLzMQEHJCg2MnB8gGrpESpRV6CzxRQ3F X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(83380400001)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 97uWX2sy+Vj7YDA4W+eoICHuXNfg1wLXhcqTA39U3LxgrDRS4Y3V5KEwHp/8/YVWZKjdnVHzgQVCza+P2/Y6v6wl4+TevZthGTPydX/Qfd4QfAhFL3hvpwqTLfGQ2iyJgEDLs0ta4OXlXjOVkjcdDGFAbalhrWzcoMk2n8yHf1ZdUoKl37+NFdolNoqUP1c/68Btiou7dLG+IOEEj5Q4pc+hdbqBQI3QkHUlz1eA0+IUsGu+sFdO30PhioSXDgJsTRk++7fzyZV4h2PFADmSdn3ycuInkU7hRdo548HprlNfjnSpZKefucUQgj62mzU0rGZLOsfBXOkfYpqEETtYeinDmsA82hQTSXHs4AhH54U150FUNvbK1l3Mp+lo98vOsI7bmIEMMGHM+0+9Qn0aVQfq3zUDJD7vkmzjfwADWTpmMxOyhIMbs8jCcGZ/oxEzxY0bUVdOqTvvujXMVdMPS1w6pq1ZFO86cXaFwd62IKZYrCVJ/r8S4Y3DHIeONtcA3aSmUAUAE5+yQk/HNomde5xvYaqZm41Uf1Xvb5fvStV9EKeHTksd/+/RHWhYYB2T760raSSO9DHal31llVPqR2s7v1hGFwrcSiLcCaiPxOSLFxQHHUWuu4fZCNOkgiNbJYBienVhn4Pk7PBsSMmqsd9BSqIsaMIVe+Kt7AkJSGJtGWgGDvHQjRozE9ii6nmgOBfVE642qco9Ply0msmV0zDVTNrVlSVTnlPagtRKCjTNIPoeFMtgh5NNj+z9yVkqELJo8VjobGXIEKE8YGJ6B/uHftNPbkasm2YFzLfzyvsdXUP0ALIT3AAs6vBTzA1D2pBNMZ+Chh0X7yHQUHnwClovJ3KSvwQkVE5NFNlDSyOn4vFme4g4mUKaPTBVK2G8StsFobumejLGCCQNA6k7XVzYYkViiXORvpKfB4MDELJAbgRp0NKMRRnhrSidx6+GboieH40eGB3wrOEC7mSW2Y9536neV4pvMmtbGGyKkQ6hIbeBmBQMWF6q0AxyVh5rq1R01b1kgBZWhDqnqyXjT19wo7hqsPt5m3P4/YH5cBjFe047wUCGtZilR9GAXcZFEci6fwZ/NuD7x2gcSnwyH8XO9o68KMStq+U3UUqDTeXzFb6tK59UCFEVdSqBTXEqY3QFy4Gqn6VN99sMwQEsjBGLAEgxCI59y0XkLKxXz9SYERmTzcwH3lyFGQxRh+zUEc06I69ZVwHHttCLttBAppVDriIt+o2+Hg7oSwsCxfeBwVuhmvpwpZjCFi88yaPJ5/I8ytf7FRoGE95F7pA6R+92l7cp0m+5oDa1Q/Lx6DVyn4NdsyDy2xmYHlHIV/kmcDIhyLCV92dKleYiphwfuw/XAU3tImIbvOu3qhVqIOq5OwHBTqtjyY0xAwra5M/J9UerhJA+e0SwH7Fzcc/sfI29qAuI2dBpi9HWG9RujWqJt4k/1WQtlB1Nei6E0561PJAuE4CQe1g1PSgkY7rwdQ9RypBTj8oRqVRHOE03NHk5ABXOcz/eREF6E/d/mxsZqNRvdxPSiLDEV2TlIGVD6UvgyomGBXS7GODvtppPcTvqA01BDnjKogMmhUkYi1yq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9300919e-791c-4630-2721-08da7c1bb782 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:32:51.4673 (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: tb5ACYOioiK5EJQK1fh7F62Y1WYpcBT32qy5F2gJR0mVKpq8WGki3lJ+pJ5y/dYfbdk9B3MD7qovQD96KH6qvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan i.MX LPI2C actually requires dual clock: per clock and ipg clock, so add both. Signed-off-by: Peng Fan Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml index 529bea56d324..e42e35003eae 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml @@ -37,10 +37,12 @@ properties: clock-frequency: true clock-names: - maxItems: 1 + items: + - const: per + - const: ipg clocks: - maxItems: 1 + maxItems: 2 power-domains: maxItems: 1 @@ -63,5 +65,6 @@ examples: reg = <0x40A50000 0x10000>; interrupt-parent = <&intc>; interrupts = ; - clocks = <&clks IMX7ULP_CLK_LPI2C7>; + clocks = <&clks IMX7ULP_CLK_LPI2C7>, + <&clks IMX7ULP_CLK_NIC1_BUS_DIV>; }; From patchwork Fri Aug 12 04:34:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 597140 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDB7EC19F2D for ; Fri, 12 Aug 2022 04:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236800AbiHLEdE (ORCPT ); Fri, 12 Aug 2022 00:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236796AbiHLEdB (ORCPT ); Fri, 12 Aug 2022 00:33:01 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D319C8CC; Thu, 11 Aug 2022 21:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cj94muLMDUx37HWfUrXTGKjZDyGGgwGrfFnyej9J0xJmc7eLVsGFIibIAaEIHDSRKDlICO8F3Pk7imN1oF79Wik/JzBlWkMtW5qFnJHremngEeE0q1QsiUmy+2+B+Ei9enh2iYt8XejMoPFKp5+3pT3pS2c3SWFMHTunsCnU3lvS+ZV5Kaid0jea+bQ1aX/pMDSp2sR7BnNBX3n1hbNXycv0hXZaFMSIorlckQVHmF3P4c7s/1yJ6ye6siOnJhpbM6NfWFMtCPzzIc2WVMO/aUClWTHrtMpe9Wz5GH50TiGNizNVS6PmtURnoh5jxrC3NuYxfv57RAf07wHIcifeWw== 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=gSsknT/2mIv5Sm6vK0UtjWAc7Dqljg1xtrZ0MhFP7Bg=; b=gyYqh/DxEzTL5uWqVvrs9LwK1hDMWwx7wrHNpGifvrPtBPv7NcEpTuzOzE+r1rd4VpQF0KJ2EM3/N4cfR6MxOs1kbflS1SiYp9HgP6O9edQKWg2dNWKQhQmkHkzTvCWZVg9oslecIHMauH6DJxlVfSbVrY8X6HgbGa84x37P2AWWNAqDpD/l1bGfFGO3jVXh/Q0vT/bj8AdvBjdGDe18eDboEj163sdYQ5lu8sismnq+yjp6SBBD1y5F7HhLtuSSHcLcZNu+DfwnBdrAqq3rlIcvT5o2K93dDqsgGWN+leHJ8jBHOMOuHFafyoAcqhZm1Ci4/MwzZL3Sbe/+jktlNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gSsknT/2mIv5Sm6vK0UtjWAc7Dqljg1xtrZ0MhFP7Bg=; b=Kr4hQFg6Ci6HIsE64AGpVXCoO+9dnytmx6e20hE4YMXa1yyPqSoHdnDIVVTV4lYes2S/0LWF1daFcw3CgEZMdsM6uOwgsB7BAqw7eRp/e34OeH4zHi1QGvFd4pNw6RR8Szl8bRKiZweHrasl0crSIB1Fqtq9v1XGpx+bu8TmmhM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:32:56 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:32:56 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 2/6] dt-bindings: i2c: i2c-imx-lpi2c: add dmas property Date: Fri, 12 Aug 2022 12:34:20 +0800 Message-Id: <20220812043424.4078034-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ad9415cb-1453-4fa6-48eb-08da7c1bba4b X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YXcDGdMM8op91EIym74jYrFdyahdWV6EiOlty1cLjUx7BuyZxxKlMPK7qfcEmrdNXzIZyLVnk8bbkUmvLYz5/L+x9gV2fou0jooy5JYSg/KHKCr33//xKVoLHHMEGSTdqbbGfKFF+QLHJAykGIsqhv6YolTLROIwfK3tGVBQ1akZeKTZ3yU02uDUpZTnH6kcTeMAXk0yiAQLcOiTJyzKSM4aFMUWrM7lEzK72E+aWqsFV0DBfWLkKoYZDRH6f9GW6rT8G6J1L9V5AGKgzTRJSjr/iqCxJ119pUYsCIPxp9TRTrm18IqzFXPp2hmH337dLCIk6D+kWwfbx2BgciiSb0TCkMslY7LkVmPnUxL6GztL+NmMBKYEO2zFq7gy6KaO2UFyVeZicAcgGj1Za1lrgvwVwk+hT6oF8G8Ph6ugaDX4RyVUhZ0Z59aJw5Z+VX5buMsmRDRqEfzXviPiOev2Kqc8zre8GOd/UDTy6s6sNgZILQPozzQvGg0XQSemELflLTqRL37mhrLb7LcuccyaV9qg/tfiT+lv7a+4Ai7SZqu+nWFq2FtNWBosa/9txMOLIdSWTKJll9hpRTr3PxBdaLnRqF35UnuMui6yvdrAVg3SEavVwgJUbHMJo2Y+aHsLWgQuNTFv7zgv8ult3PwDEFaMPdnquY0gIVJXnImIg79P2nsy59G6z5kdsX4r4N1Qp0+7ED10rj4+dTzgL6lIcp3hmXGkNgMLLsJNEh8NKaRE+e04aBmN6dCT4WtaeBiSQ+dqqh0YOINQNcAaZKn53NkSA/DAmPhoqHQv9VdjLTlVNpQb96B6RUYsfHTbF6Ne X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(83380400001)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(4744005)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EYzNEGYsBenlxdjP3PgecjV/K8CCYuif73KTWXdwzbWcQKNW3Y6EgckTx4xns/s9DuRaENCNThauV8sIN5Ac8zE6rJnK7HYXji7Aj9WMl5xDeGiHfNU//cM9tINlkBhp3b5fg3MuH9yAYjGUequ2fApHAIJKtcqfEd4x2TQ7Z3zwvkXsJv517m3xZ9J202nvB39lp0jtElO6xozsIq8QEQrA8sNCryQy2b4X4E44orh61j8RX6NuUu4l3wZpJtWmPQaIA5kP5OTs8EFZCcfWIX8XaHr5g/Wyo8x7T1jIL1w/AP9oIG9KEVjEymROSYHJKRpMxRDn7mVFJA2bguc5xr46l6Qyri3br42vcCrtTdRdYEdaCjagQ46gUvBFtg5g48Y3NcfWnSiRh4QJKW+VF2JIXZk8VPv7Aqz2/J8CI1GWhxEOApeFzIXL2DGvNO8nq7KKmL7TMEfxp6GpXVSh9lyDCHDeQLlQPCxYZcrdelfOzshxYw+ibcnJrQcpj4m78jHC+M8Vzr7XtrzOWQ3PvWAqM4Yvw0ZbMTmWO5WK0rMcFJpuqffiX9pnFGLYCpDH5im0JgNDLMJBbQdjhddzz5nRoC5/Yf8TKjDmwMP5BLuznyYVYPnRCa+sFGuL0QKP2Jp6ZmRRPgdeYJmt3u1f991sDYN40NFRp3qLb5OalUXvsbx4S1fL5QZX7H/gK/xCT4b55rNsGh2Nrxa74HrZAlkByzVlHqWK06VQ7mnAs4v/tnhYKyAKpAlIUOQrWPBXMwRDuaF9cIZxbTAgfyVXLhhQdw/f/DSCPiWoyJv6pwhqXvdXv46P9L6OnlB2Rpqr7vu+2k5D2yUn3Yub+aHr8I/LjSpCBgPj/cXDv0/H/gTlqoYcmC6ubHUZskI7F4wXNAOXBUnIXT2D4Q/Mn6jW+orYXTbAZOam2P+ff3WuIXiIJs9w6T28DsHoxjUdMZ7VKgcwoSHz62MBpNb8NBLaHuZy+AmSSCf+sZ3fanPx3bAsv/gH5tbJuHaUQV5UAg2c6idZCNDaf7G4FP2qNNETA/IqJTKPOyEwIOHwafo88o9pftk6Hzo3/Qw4tVaEwkQPTp15OhXgELG+C5fB1CcMrXfXSmJ4F2uFe9IgDR31lrmF65LvegAtf1zGI3dGTIwudWoUTAgNbL7xgpqZd6GC5S40IFPJ3sigvmc8/Dvr2YhwsWwr98olkIQ2aS7poJkM6n0rtjFhdk0G/lS9+l4JTYKgKMi1XGYpIHiaJhnNxs8nUNaZA/YaUb0gcFrJvcFiJj09KXg93+cgPpoNaH8ouPP7MLWlcv7NbzVAKa6bLRncpWDhh5spvtu8kldYC2ptUe4EHQNB2xkVecWJuRHosE+O7mRLMCL1wcFwTxk0NRuoE1J0YCKVdmsUcjY6ks1609HLdJpoehkv7dAJPrQzhaTHAIb5/3i02ZVdZkpR4CRMnncJXW9cP2R/9NtKlT+m+d3mBMgBkUbnILGehOO1PDD7W27gon5rKFvjqZZThhxCASpq0/IA8PVihDSxEuK8D+x2xUZKU31Uls2vtve68HLeFLUHPYnzO7KcX/Q65KSWTyovvRhv88IaY1C28i85 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad9415cb-1453-4fa6-48eb-08da7c1bba4b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:32:56.1084 (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: SLOCZHg9Ma/3Z7M4xIm8MXg725hxYz8P3uks5902XDPQk+gKfUGv6KGuex7gH0ne4xFvYbujKeHW8GOkScNJFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan i.MX LPI2C has dma capability, so add dmas property Signed-off-by: Peng Fan --- .../devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml index e42e35003eae..08b81d57d7e1 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml @@ -44,6 +44,16 @@ properties: clocks: maxItems: 2 + dmas: + items: + - description: DMA controller phandle and request line for TX + - description: DMA controller phandle and request line for RX + + dma-names: + items: + - const: tx + - const: rx + power-domains: maxItems: 1 From patchwork Fri Aug 12 04:34:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 596954 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD8EAC25B0F for ; Fri, 12 Aug 2022 04:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236926AbiHLEdH (ORCPT ); Fri, 12 Aug 2022 00:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236844AbiHLEdF (ORCPT ); Fri, 12 Aug 2022 00:33:05 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B1A9C8C6; Thu, 11 Aug 2022 21:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hPSquIZlsaapQJtSSp0ehCLbxo9FklVeDyU1oo1v/vrFqcOVyT6Jhf+KJUHOvJcTWj+svsVp2FQ3eTDjVsCQwqMEgZ48qBiwV4COzvM9isl0mTDinX6k+73V9rVloLPRQW1cf2ziZpxOytE1zQ4l39GYmIHYteE0EXoFEetdqiENCv78GV67aduVmdEL9EJLgfr87n3j8f02V4gw2e+3TE3x4ruTy0eKKr9xLxUzUG4Dqn7ZqdG+9kvfsKJaTgr2oUCC2Qm5mo3frB0qe8RrARgf4Gu8NDOjjhThOBdX/XbKoWtHLRf2ud2XLoatmC4NmKMFDmtTUW0SX+A1fPbbRw== 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=5tVZ4dgVoZ62UQEOPSuhoLMktMmIXcWD1WLzWtvxr0U=; b=JKWoxzFDvk9OG0bc9KuN4MitP5VdvSzYXnqNRyHJrb/0JyifAzSObqrXIyQuv6ZxUdS4oktyQ5cb33dmrMubXuWcEi2RdeYpJbuP01AeFayMONdTbvBEovuMoCnM6Qi34q7i5JUQ0dGlyT1JICfrEpdGtaN0wQ4NqIVgHxFq1YQwbsqSzrV00S0+cH3HyODyqYDs7a+7iHXGfaMEq0rAzJgLLrjaLkOZsnw+qHK1v686Pu/CybENtMTc2c1UV7COmEoEgobct4LgvnJGYzKnixwuF/EO8uhRtG45owrw3G79XMxj5+DVmhCwOkDp3uN+0N5sDxRUWDHp8IakcwPEYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5tVZ4dgVoZ62UQEOPSuhoLMktMmIXcWD1WLzWtvxr0U=; b=QfbIRyzNciaxqbPfmIeWtozWDMGJyzInAS3ZpD4/BK6c4s8s4BDctDEILjDevVVsb20KXci3+Gu1GSV47zM97nvvT+FI1dNev6Xr6bdcU/EEua8Rlrbdvw9/rnfcXd6ZDtbjor+gmH/udwlghaLW+1mgOa3/XsP7e3UE/KDFT7o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:33:00 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:33:00 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 3/6] dt-bindings: i2c: i2c-imx-lpi2c: add i.MX93 Date: Fri, 12 Aug 2022 12:34:21 +0800 Message-Id: <20220812043424.4078034-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3251c03-7e1c-4beb-daeb-08da7c1bbcdf X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B6OjBoYbKZz2sHhfAEnnR9PaQ21AurX6pNw40h3BfidC1KT8QACWrD3Yw309TDaca3betdgfKAbcW7wUUHsX0wG+t2vqOw1CIyKnu0sW5KR8/+YXSqJwPk38cD8W1HsRB/kvkGxMeIWfRm+Y9GmxQS/5kmA06iFZfTL/SzSflXY5fXBCuWQccVFfj2Qb8zWFUXVSFr+JfSZnX0HrYYZ9E5eXRButW5nL7dgeV/KofqYi/7T2znt9Xr/ANz81QIUKigaV4+QASXwlyXJBDbcVBU1CApgxNbt1IoZ2JJ4x86qU3S+gjVJAl70XsP2LsA9QiFy3azlunki0YxtHCRbZ0SS3RBxEDOUa9BQA9vZlYi62ySYXLy3q2jfQ6KaoMo4qUHdHNjQFpcuiBMM1CFGa6er7Cye3DYWRDLtcEXd/a1ox1L7dUwhSm3bnBpx/arB0+vsz0+BjQ+HBf4yu5fTwZSPwg+oknktKCXuE1hPpAHFgzGcJYWjUGa6G7HWkE23AnwDpRJkOrYACc6YFS0dvjog24bDKqq8ReBvwp1UeHVm1BrmKkPXCWS++kDLIURcV03Ti0YNGYy7y/WRH5JKeQrnVrsLH3Qik83grgYpqAtDvaew4O1kMv0Im4WiCj/q2xViCS1VoYFS5XZ7UWZBi4ZU+DjMbuRtc2GKPgih/X7vZK3YLFCOehCIIjgdFGWSoqoc5894ZdoMJHQ7UwLGWys9gtYm4ytIVquMN7WtuhLFjWcSdFOEsINTXtBXPtzSUOu79s8Iv79Y7Euj4bP5HjKeYmknUF11hnG8L51l+TERcU2Wsuich4bK/WUQoS5m5 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(4744005)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yi0f8IZhPtty5+Bt3owt3ZzCCAxLLP8luKMSYX0dFT5uZFI1Z4pzX0eXjk67hyWHV8/r4GffEQP2ExzBsqgIJ1P6WigAMYTLYzEU68JzkpsRdb6OZlkrkexkBKQr9/M+XnopsznU/Dgwf11nJF0SpGxVbiUIwrVuTTwtJA8f98JMYlzTEwB6G/kn54FNoS5KlSuNpoPfUJxSIlho8Q6SPiNfUTXsHOsA1Sj2iIEzg/SeN/h17KC37/uszPJpIRqechLXe3c4UM+KIvc+nudGDSMRQKy3jCLLhf+6SD346SVfL1LBn7l4OXX2lXngyQgJT+GFjsSrR40kBeptduoKj7JXyVnRfhdLQ0MEDUkZT5TLPLTWG5WzwHgctCr1MpIXk35LwkUOEn+nhkpB4GX5cG8Cp4yGpUttFP3G0Du+CYKNG/xZfZHFoy1nRNBWYu0ZVB6ZYEWq5wQ2WVQuGsYcl4M+w5rj0EN0XtEg3oU/9aeBtcolJMk16Nut+cVQDWBxTHX95EKFtNb+q+cedknTQM42yKn5p2hWxgdlO3ZwmcwIMKO9vAQpezzo0ACcLlPe+4zxqt9kCLOJC+571439QRYolzC47uaZTatvlYL5VTAPz0N3O+R8tgBoBRRS9mRJK0JBv4/5XmV6cigby1GY9oWZR/J3DpkVFPcuFaSgZeTtZit15+MjGWjPay6laY/RKfeYyM9wk5t9bNPhuyvypi9Y7oeG58xKC/ey/OMujMDZW9erjg+3fgFQrgd2djk0M8bt84l2lE/DyD+hA3xXcRAvY2MasoREKQADpTKtoWJI+1gtw210Hv7IUz1gMjnBYUnxkzVfpBceFmIoBULwUVwRpTqGoxHvNbNl7m8MefLSLYhDUncdT6NyO7DFTyuGwTIj/mSn/cyTOxg/o2g5LqUz0T3UijrhTBLKpa2W3SQ9IV/+eKV135aw7OIW7JppaxTnmtLxEPNI8B4uWBnfe5S1VEU7qHwEftd4lD902enweGSJbb0VqWfPihLnzGyeu3BWjerNNBP3P/1OxwrI0yPlNXY+MqNGByq4UALFdUwxeFNhbvR3UZ/RSzlqq0rLT/TTj0src/9o1bbuWAlSNF+NmjfvIBnptd76OvH5uCOxGYe/gZoOwE3CDl5230XLNZ0aboxnw5l2kNAXO/lQMNnFRJOSqHhSW+OHDJjLWxPfqTYk/AG+tWdS9CLyEV1qOLt8AZwy57PwKkYFJJ1y7hA7eN/CtsPytqME3O2danCrFIG18cM92q+y6Oq8JCvhF+UdfS2cBzvv1HJM3TQkP79RJty/kj99q8LUiKCU5YhBNW7nHBy1Q1q9lsXTPg2uqtXB63+gP3GYmBH48huIGznYffwI4InHUJEMaXs06R8Gd8vTspTXMv3aymjouIHzSWjKheNv2letGAyeOwGv0P0qLyBYi+sylzp2S4jTS+4WJUqWwYveyw9+ROTgIkqQ8ztKyK63S3MRMQe6VwU6fOBSbK6d97WPm23K/R0i3wXjGfh0TZs/r7V9T9zKFDKbFTDKT1qx533QOSoEOKlvxaANvoxFpUszb5S4Y4XXVRajDF1Bnd0jXFpYr3nCdWcj X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3251c03-7e1c-4beb-daeb-08da7c1bbcdf X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:33:00.4219 (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: +TW35iApLwdye+6JslrqBdKlLZ9MmhvS0avpKSN2jXqBrcqMTu0j0jrUQ/4EhMEjAHM4xEOW7MKL8NkM84Sb3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan Add i.MX93 LPI2C compatible string. Signed-off-by: Peng Fan Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml index 08b81d57d7e1..4656f5112b84 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml @@ -23,6 +23,7 @@ properties: - fsl,imx8dxl-lpi2c - fsl,imx8qm-lpi2c - fsl,imx8ulp-lpi2c + - fsl,imx93-lpi2c - const: fsl,imx7ulp-lpi2c reg: From patchwork Fri Aug 12 04:34:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 596953 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DEE4C25B0F for ; Fri, 12 Aug 2022 04:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236947AbiHLEdK (ORCPT ); Fri, 12 Aug 2022 00:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236923AbiHLEdI (ORCPT ); Fri, 12 Aug 2022 00:33:08 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2042.outbound.protection.outlook.com [40.107.22.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1D79E131; Thu, 11 Aug 2022 21:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTwjPHdsnJhOU4jRE3rKrVXBsnDZ5TS3knq7ksxhSkwl9BuGbBebWskqF+grsPNr6H+pgOEVlKrKSs+yahLVCxpOLiRKMFuFKfnYiXy/gIvsMWATZh6PzRSpdbDbW2WkBGTtsWNAieAru/rPUVMPAPgX0cNhrhHn7nkyMXd4TVgmhI+jBDkMz/i08EVx/0Sbn90Kfi5sNG+knjDhkgrKGd+IBXzPg4D5ES8uBnjrQrY82qYLKqmFBSv11rji506kXD1xU+f6xEsmjMW7ma/vEUn0W22SSpbuLkUCj2qsJUnsQbNBy069RxEuDpLtCK7q1OZssjAndv6sYWJcOUlEyA== 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=FNgSPifPVT3FOihHeEgcJJztqpzDyRC7Vp2xf41BsLM=; b=gUrEAwxHNJ67UvSjiFlCVTDyyn1RvwvtvPRWVQeXtXzc9FAZKxGqq7elniEBAaR6bGc4HCk5Un/8ldwLT5O9wZCojQawdcIDxoqJ9ea7hJS0+J2KkBqAD575Ks4SnxGYHznQhHPQv6eHT0ZwxotGYeD/xX9cFwIqD+hMtpU2jdaLhAmxMaKGtybUm3YhA1Kpoq6x8Odo+zJP6raAfkwnZMd9nTbPtH42DbPDK2CCQo41hrTtKwvJkgNq2m2jt0/keqdgjgcnShQOGPg8R+vxCL7uj7KrPaLABzFyDhOcCvDDSDjSW1qynm543+eTXN/Ofv6gAtb0nS6fccrtgmPMZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FNgSPifPVT3FOihHeEgcJJztqpzDyRC7Vp2xf41BsLM=; b=S1/01J8Ov2Chwm5xLG55KdnqpBNjUEFk08hjjBvUkuJYcqd4fV6wmYAIjjPrnkL2wEclF3l2UAUkVtx3qlyilQndsJNFZN4B7bqFNfKtz9giOYBTt355j4DL+Oovb66dN2N3mw3BRyVNdDetsukn8rNdasByDX5CKGtnfr/ab2M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:33:04 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:33:04 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 4/6] arm64: dts: imx8-ss-dma: add IPG clock for i2c Date: Fri, 12 Aug 2022 12:34:22 +0800 Message-Id: <20220812043424.4078034-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 04b4fe28-6490-47b3-5d40-08da7c1bbf7c X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ils9/BaFxYZy99Dl1TU/KkfNykQ2GrjUBB3+VQ35lCcWasyA/Qu+5nEZfQB0plIObDuYl//SGDk75s3o6eH+6AjCoNUWBQVDaWnC309+eEa309nBpFDQ8Szyc4MjEo0W9dGXRabLUQhkXTaL5RqJr3Y4BF66Y7unqAXu7iQ272LE1NVQbZiVX4W92rRWzarrNshC37zJmihnycYXABAUWN+TzUE/kC7UrLtGZ8JmNmtDfZYws6yWf/iDqhhQjKrF6VtpaWJOBjYdjRLN8e0IASf2eC/jLVRPuAUe/a04ljengOTKkzxGDP773Xn+q+GDNzwUWHSexCRVLzJkSSWN1ET4x9aUxEwzJ3uIYV9u+d4+y/lJxgEwSepoyChx/DzdGZsM/nEDpubycOM0wcRWCH0LgcIXQd686xzTSeG2RqW3ErI/N7UpUTK/0Kfg92y35FU4dI88Kdb0pJOTuEHxdZLWOnUTes4dGMWPpI91k/HKlFeduG5MvEgDPJmsEo9Qy6XddGtqMV1bzZPsgju3IGAJknb5Ax64pXqDP3AsvKRgjniYZK8DwvvlEBFuNLJ3eyTl3aXzIHibD0Y6BB0p8Hi6eBwm2tG5MyXcFsMN4Ck4dcmM5RcyHbMvUh89f3Iay8LdyIE7q8QADgqRrzCjLqXc5txDjj6Xj3mdOt3560KKe1Q4p//ZFVRNyoUbRm1x5EJ4+26CRzpxQtJbJTPfyQrN6O6kzCjhRAKhe3iOcm9lzeTJTQ9CQ6vNtSiYiqfKIsuhlBtdgkogLMLMo1KdMTP3KOhHaRMr3PDmz3EC1ORfiSxkE5GX9Nm98PE1+Bb/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(83380400001)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: E81q1FyHBp8Gt2hAzfAdwVSDU+PRNW54tqHYf1VMWqWIfKAVAIRDB2AUo2nl3HgXmApL/nPECeWDCYIy3XJkWuwELwo+ZLqoQSpMqVvK8sIk5TTh6F8UD7+UIJfvBuonS/hbZpjotWEjL+X6TA/vtvNxpwlecjBMOGJeC8kawSrkZsZ0pxFbmRBQOVgkGgfOzqpbPtg/wPCxmJ2LZPzXKFji9/tzq6kNQRTVKht3vnuS3MVE/Fr0gH43VyiJwLIBRflTSw/WkJngakViunkk6W1ewjOyV2f6fbdFvxz37QI4bzXNIm9T6WK0W/J8oeQbmhwvCl0fHkWzFJRH3FKXnG/yhsOALP693ld4fNO9USyaUUbbNy9zHr3QmPFUW+zRF91xcARnyVgSSGcrR/+ZE9dbglOlPmJ3b19q/KeFdp3VoyvMpPCOrGt47oGEsdT9Z0bDGIq62Ubov5qX6VRavPsMnuy5UQsiB3qqCzPHWnoXKb1kubOx7dzLp6uSnhA0x+UBfbACBYKXJ7GDeI/cGk3TO92PY/Kg0OLMAR22QzAxItagFTZUO0gkl6Vc6/BVKTkYDfxUXDrZ3bgYlEcI8RIzQ94L6kYKvAGHwQ0VeKNqtYP7Oc25nAlNPA+UUnFq1RfOg8CPqU7U2UrnT+Jh68HWWnCX8LU/otAj5jWE2gIibaval79KbHooass/UPh0p02MeUKpmsnZNxQ6YIFsZlz8oFf3yaOz0H17eNsFzuxgn1xUnXZmk3nC/xPUhaqB7hgBpW/lUXEV/WngLXuZxRAW7c0dJ5yTv5dCADiADRRWjPoXRaqdZZJNZPrdL3lvB5x0Zb+9MFpHYN3umRsPx1IUQYxzSaFIww8U18quOGBNSMn8bvDg0TSEQj+L4RBYnQ0S8qKCvhKOVPzHhaE0cx2utTi5t/viusuaFtXJE7WF6Tq3kL5G7iFCYMqtDxSbZEsldrKxoWSxewzyAvo0Jwu/SGkNNpCZOCt87ag9OqO1XKbVztCxaCkAILz4dlacANelapzaVUGWswlZqN+N5INqzh/G6DjdcAO0NE9WwD8iNUa0WvRfP/eYcUoi/mx7hGar9qxUzWD0PBe1VC22WOlN59Y/5Dm2V+hilRn983AxhRNeuui8Z8LIN/Wkr9HaLh+Nd3VNKw47inEp02/4ngIToV8Rp76GYP3sL6FqBSSoJI6WSJv39hrZh7NmFzj7UgNBiRnwlNuvd1jUISu4LeobpGgH9GTFgfWnnlNxTLAwIbGNx3JQxk7gUOouUHD6DHCsfRiJsa7PJMWlj5PS7rRBFFCLex2NREq3BuQbphJlkr8K+fj/2N+6tbp9omMZSoGB9bkgwBcAHN1b0UesXGBLNsO421q+hp4rBb+l+yAA8IL5rGWL0pm3hDuEwkfgOlPXOI+lDIY01r+K08d1bi47hxNDkT8PtlyRA9mTKwNZlvL12VAv5jYmT6zJj5G3AROZ8E/0I8urBk7I4gFNNZzXk1MgFiIyTNsg8MPp3LUmHnumBfRBDAlr70MzbPvTNFx4/99rIET2RNo8C4EroCWGxAUU0J95WiQYJMzZdPf9mkdVBhkNOFuRE94RE6g4 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04b4fe28-6490-47b3-5d40-08da7c1bbf7c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:33:04.7093 (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: E/97qqopTeavEl4L2ixURRkBtjmElcfgLYgRDCW3L7EAjYBO//oRwre+V3rrnpoQvf8eaPYywCwr46U3le/saQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan i.MX8 LPI2C requires both PER and IPG clock, so add the missed IPG clk. Signed-off-by: Peng Fan --- .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index 960a802b8b6e..d7b4229bb4a2 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -111,8 +111,9 @@ uart3_lpcg: clock-controller@5a490000 { i2c0: i2c@5a800000 { reg = <0x5a800000 0x4000>; interrupts = ; - clocks = <&i2c0_lpcg IMX_LPCG_CLK_0>; - clock-names = "per"; + clocks = <&i2c0_lpcg IMX_LPCG_CLK_0>, + <&i2c0_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_I2C_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_I2C_0>; @@ -122,8 +123,9 @@ i2c0: i2c@5a800000 { i2c1: i2c@5a810000 { reg = <0x5a810000 0x4000>; interrupts = ; - clocks = <&i2c1_lpcg IMX_LPCG_CLK_0>; - clock-names = "per"; + clocks = <&i2c1_lpcg IMX_LPCG_CLK_0>, + <&i2c1_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_I2C_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_I2C_1>; @@ -133,8 +135,9 @@ i2c1: i2c@5a810000 { i2c2: i2c@5a820000 { reg = <0x5a820000 0x4000>; interrupts = ; - clocks = <&i2c2_lpcg IMX_LPCG_CLK_0>; - clock-names = "per"; + clocks = <&i2c2_lpcg IMX_LPCG_CLK_0>, + <&i2c2_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_I2C_2 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_I2C_2>; @@ -144,8 +147,9 @@ i2c2: i2c@5a820000 { i2c3: i2c@5a830000 { reg = <0x5a830000 0x4000>; interrupts = ; - clocks = <&i2c3_lpcg IMX_LPCG_CLK_0>; - clock-names = "per"; + clocks = <&i2c3_lpcg IMX_LPCG_CLK_0>, + <&i2c3_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_I2C_3 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_I2C_3>; From patchwork Fri Aug 12 04:34:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 597139 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA759C25B0F for ; Fri, 12 Aug 2022 04:33:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236968AbiHLEda (ORCPT ); Fri, 12 Aug 2022 00:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236973AbiHLEdY (ORCPT ); Fri, 12 Aug 2022 00:33:24 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2083.outbound.protection.outlook.com [40.107.21.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D14F8A1A7D; Thu, 11 Aug 2022 21:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E8pDNIDfrw1bueQZ6yZALO5GMJVwf96w0r5sHA9xwuxGIXw/SgXSPRamFTN1SNn24GB45f126OF0gkJFVsS/J77n0f1N1SI99gmWXS6VtSFDWOklKWBOapU1W9qMl5UG58C31DZY7PJPFyUlYNOSPDifIQue2Lk+ByMnPTVdDgCdGayWt4nGZt/EzuuHXTD1MeiIISz1i5SKzU/RDAa4SmK88IqHYAz2Tuix6kCISIDVmyYh49OAIP2PCUY4pBYQ7T/toBRFPXdRVHmPFH31UP1ySendu/4C8oyw2O+X89UO5g7T7LestgZyNgo9IcaQ3mZgIO6zweGBEs0yIwbOEQ== 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=wRqPpotnfQFz4Hw4ZJ9Z8fd+Y73wOxwinofWkWyDM14=; b=O/VT22OPW6ecix2ms0VCJ88Ul+NXHmvs6CAwxSaimu/337JJ950PdcXoE9+/8MBPpi+GyAVmwk3uA8eObSNHPO2JXAvGhEwTRAkSyci0vzGhpN3uHmmjjzKR5aUax5pAzv00Zc7IuVWejh6IUlN9CAuD1PADRuJJqhKR7tGaCtijIPVCAZRkYwXHAuypnoR/QXMUeM1Or5vLJSQ0nIPJh4HSbt1WqpvTGpRWbRgpllh0vpkUcqYdQc07VESAuPyAjyZPHzA5D5N5WQ6bM20gBRMArIuToJCAv+x8pW37Ij/DpU8EjsV2xV37+y7w1bhluoaL3GJqItMUCTES6NPlEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wRqPpotnfQFz4Hw4ZJ9Z8fd+Y73wOxwinofWkWyDM14=; b=bOToA4QkQfAl1nmH8Bdxqvs8+1QLBJO0uyISW5xpC1D5B4eH0E25h7xUCyMH11Hr+o3Zrsjl36tIbiWRdNIAfKUp7PKpZBKJHDg5GrWSCxYaCmyil1gk0Ai3AQTOy3QGtwXOF4wKmT5azL3VOFS70g4LkgxQyrJfxONIMWIjWGY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:33:09 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:33:09 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 5/6] ARM: dts: imx7ulp: Add PER clock for lpi2c Date: Fri, 12 Aug 2022 12:34:23 +0800 Message-Id: <20220812043424.4078034-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7911e08a-ff1b-4914-20de-08da7c1bc205 X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MVCr96QAx4iuHYqP6gG9uwN5wJZ4anSczuYWFVUZyWchwMCzMxZrTP2iTfzQ/aEvAF2svMWxqiFbAeeHK+lXUXrUY2jCDfmvGDkERwFjvl3dOtbCJNwuycW8BkzvlONgRw6kGgu0UZgJsEqaxCPoaKI3+SOGamL4fJEBbhVX0PQbCNShRG4Ln1u56GzmBofyuVlLS+Clf0keH/iNqUQXXcAV4r0Id8IIUmhYLcBc8vjg+YArTWBpyHA56lW6bkqw6GKgHKibhqbcrCzQDx0XaqIwfZQcS/iwn84iFScMhOkhFdLkNcrZLSo0Z3VnMusAbL7P5F04AVRddsO6mM/AWMt2ImCr+iP7FHZJRFEIny0bG5GJYCFuOD4YAd7EFim96fkA2aX80ULzD87ytyPpc5sm96cVvxpTDB5hGFbF2UYjm/woUbieH2xYO2Y4/qCIXLZRsBOAGxfYM5X8tZn9TB05ZuUHTaleOQclnguKiRe6aBh2f8i5UjBeTJjH8i86VFR7bhy1JyM5R3zBtM1fT32z0vg6qdaFk0/B0tAgnpvFCRb0JIy7Q4HsdDWGsCQ1oak0zq158Jd0eq0wNjmUFKXABKNbwHgz3TxvxOS2tIlCRA4LVG26Kh0oK/54wJcP2zveK8mmUFeTVYwE33PtYOCjP/ZLVvNmmNTpsA/F7fZWnE7MhVsDM+LkCrJRrZo6gDNZI9Gacm3QIgWS83bYdb9osSqSs2hT36G5VQlh52KCzqNrFiFpJ60LAqxPh0mxQf6gGlGgLEzb+Pu5nCKLNGZKSeb9+6OQYdzu7X3rOxjSCptjbKlNyCfWFRZsgpQu X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(83380400001)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: V2h7BpQPAPrplViYIu7KiFZhWNvQS8/SerTXJVpn9YZrwUxQu639MMuFnotdn7gPhCP+PsxQ9nvYdd8IehXSfTqrxSr1EyRTJQ0wqCr4fDJSdRL8zQNRSO0U7aYntYOrI0BlQXZ+Nr2XN2AEFhRvhcEPq6JFr/RTYpaFWgO0xQBv5AACeJDJEFcw57/WH7gkWLchAVp26LFlRyCqoYS9bSV9kBQBaNAMT682x00ByJEK4YCO3MDo396wy+qwUGZxgxGapeEnwk3xiLgITtW6LEh0/8ybutPb8bzZ1GF1c9trGrtj2JQH9sIv2l5YTX6VeUxfuagG9WiOH9nKcMSG5Hfl8xKQVxf8sDAy0C5FTK4gUX1H+QKhN6uh4/ADXT7q27ZSoLkLYzLYDjgMJZoF4CHbiYlWuFh5O2aBADY3WkFBIlFd+ObdwjnljJwWwZceY9+sag/ODf9dxLk/9qhjD9MBlgMfw5HlfEUYr4xObJJSSIbPbAmCIhcNhJqsEPYdYO1XJTAfGdTRwuhbFzFXNYDT4y4at1TaByJPx7pC/HamOfPji4fdh13P6Oe8ZVyql5lImJF4KYrYffOiSR8b74dDPOIec+IqPhzNIfutGQZpbRpI5NDjciVHB4c+/Wyrq4Tb/gUJdodREV/XnvNCY0iIGLMxMgLCthodgbuBaxHNqCE6BjTyIZD4u0WGYeo0VN8XsDPfP7BEhPBZ5Ud4g9WpCNdTg9oPNV89rdJlOZZt59Eo6hay6T7xGyFy0m/rEex13R6jyqaSeaIKvzZXZiPD8NX8q+GpyPR69WpSWC4HnabEp/kAAlD+TYSlAMBwFJQAnFjrBH3phntgys3z/PAXzxi29HJqoBaDgMbyo/2x9Xz9YPoUouem9wQnBEFJoWXgx+ydpHPO6gz4SOYsVE20J8Y0IY1h8qU457icPQ8tqiwmHNBKAVnKejHXHnlDRmuGJ8fSlldawI0TM50roflhMVLiUeeILT/jJ8/VmBC0awIQo5JTLfMaI7ltJMesqorxfwgUwAfMVkvEpLKOJZdvQmvu2rl+jhgfOMqZhGHvTqjlasKLUKmRRw02IasG0IqJlC8cpQu0CM7sAsaa+Ch9RyBVVh/vaCdHVgppsPUkZPwWqo6nVoxqY7Jcu+ZBDEIeaq3Lmr8QW5i3zhpesfk65Bo0c1ZJSQA3x3WbjGnYFx2til2rNYxPp9gTzrxgYReePTAw8Njfm/JmfyGSGIxXlMWWAhX0zK34oMzIZZvbLeeCvWX3uqloEqwfKQJwUe+rMoMgWRlRjwagQAv3QsTAG14iyFwB1oaYLWQbgxwpFhjjpMalSn1lb1kXDev8IG2pm6nu6XMGYrBxJXCnoxxtZNJ95WCxTkPy/ztlP+2r5FHoloJDJYXg3ZMsoUaCAymiP+fudwLNVMBqK/tp1gGUvLs6PLuthc1KhWVVr3E1D3DyEI/Ud3TY7nJYFoZxECs0bSgHt2gYiizViP1g5He+L9Wt1AgmrMALxUCGTtQytXTAXZpeHgilqpLzn+2EbknjpKP+ovLHMl9BOV6BK7xXseVW7uT+UcriNaUSimLzOIAwEES46vKM9p+HmrG7 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7911e08a-ff1b-4914-20de-08da7c1bc205 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:33:08.9610 (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: yU2D1UPjyz53X27NgunGzxbRxf3QMUbu97jsqmQrtvS4+hwPZuNRRfZg1pTtwq0ar0l56W69UH4U3LrF6qgeHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan The current IPG clk should be PER clk, and add a new clk as IPG clk. Signed-off-by: Peng Fan --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index bcec98b96411..7f7d2d5122fb 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -328,8 +328,9 @@ lpi2c6: i2c@40a40000 { compatible = "fsl,imx7ulp-lpi2c"; reg = <0x40a40000 0x10000>; interrupts = ; - clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>; - clock-names = "ipg"; + clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>, + <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>; + clock-names = "per", "ipg"; assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>; assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; assigned-clock-rates = <48000000>; @@ -340,8 +341,9 @@ lpi2c7: i2c@40a50000 { compatible = "fsl,imx7ulp-lpi2c"; reg = <0x40a50000 0x10000>; interrupts = ; - clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>; - clock-names = "ipg"; + clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>, + <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>; + clock-names = "per", "ipg"; assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>; assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; assigned-clock-rates = <48000000>; From patchwork Fri Aug 12 04:34:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 596952 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1584C00140 for ; Fri, 12 Aug 2022 04:33:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237071AbiHLEdp (ORCPT ); Fri, 12 Aug 2022 00:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237065AbiHLEdb (ORCPT ); Fri, 12 Aug 2022 00:33:31 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2083.outbound.protection.outlook.com [40.107.21.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 338B5A2871; Thu, 11 Aug 2022 21:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bzkIfnof+ZM5tUQhlc/Lu3r1cp/6N7jUIN0jKtcK++BRTob8Yp+aM2QzXqN6MVDRUIpEAlThL9H9tM/Mz/Q5GTafH60yMe/E9D0bw6+RaSrjfWqMZcw4iH+f9cr1Cf0d+LirHrZ0Sr3cRH07+e5U0Lo1vgQRporM6J5sL6bUVw6Xj5ltgb6rxv4LzoxZ38V9Hjf6ZGplhnKneg/+zgo4B7+vBYj0Bh85UvTQGfRFzBTUZrJN8UdVviH2mF3pxnl2BU/GHh1mG6XnXVIf2EjsFcyUcMO6hFWjRzYJ4x/EYorhL5idG8DCVOaIWKGAi2wcSf1h2iotLMftLvzIET6KmA== 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=/NL3F2pwfKdpu8rKDnLmLcR8vUOc9Hl0GL+ZVmalzps=; b=htQf7ma3a3/XmqvfPkbiZhy+GksVkgy7w4rjj7V6DuE1mStsmoqk+kA8ixgk6ptWskrY/JOKz8ahPChJCYgKN/79SEoI4Qs/VGThcwxe9Y5ZY8WXEZeaKeujFlM70fcQkcpmO/O6F2RXkn3QAWd89pbHJrT/ddWPEPpIoZL2J5DDiRYeO3p7fdFOJEDt0AIk99uJxLIQsRQTgktDKV0kecA6Anr69ZW+kWNCCuqKx795hlmkUWOdcyJMdnrnm4D1kegpzJeuPEsT16ysu9nh0C6OxV63UW8v0Hgm+dC80FROZCJXpoonPsTUhsGBfuHOZhNaDvEGjyuQl77BZ7LVWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/NL3F2pwfKdpu8rKDnLmLcR8vUOc9Hl0GL+ZVmalzps=; b=cdH+q2OkC14BDDpFn3bX++baxCPM1Wf2VqgwpvHb0rkPDltiWnSolNqZbmO/qAPEeOdk06j1ctUNioXH75Hhqj0cOWrDSqEzwJ/iKtwY20SeNQZykNf6mNQJaHAVHRlcCCaMSLpH2P9KLziPphJAY6dSAGTZ5nPYSrdUHyh5pK4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6243.eurprd04.prod.outlook.com (2603:10a6:208:13b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 04:33:13 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 04:33:13 +0000 From: "Peng Fan (OSS)" To: aisheng.dong@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com, Peng Fan Subject: [PATCH 6/6] i2c: imx-lpi2c: handle IPG clock Date: Fri, 12 Aug 2022 12:34:24 +0800 Message-Id: <20220812043424.4078034-7-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220812043424.4078034-1-peng.fan@oss.nxp.com> References: <20220812043424.4078034-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e08faad9-f9ec-41cb-ee26-08da7c1bc48d X-MS-TrafficTypeDiagnostic: AM0PR04MB6243:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CcZ+Z5AO+qnybkAlWgzsGsGPnmB5sHyVj/FDz54C7h823aBcKzESA7AFwwuGOMDT/WuyoIoH0XWcErwQoEzMIZFTgi6c6IC1cfBNq1pbxiDQluCJXjQJGKyTmzPWCjmH4xMO/6+WoxDT0NUR2W41aMyg26wJC3iPQsl8fucxdHIrqdTtdZuTB1QKVITJmnk4IiTO+U+CgHt9F6/ZoN8QxARqjRqdT/B1joGht+F9cy81gB3cF8XVZe1uD9xhzbleDG10vpnoLmq130O8nTm5y/GTjI4mgZl9Z60KV3JrCPhp2NTURtVY1imT1Z5p26orBSIjsE5gPPneXfmqzM5ao+/aT+v3L9GPLe5r59IpcJm6TInEX2N/R9QipoW6pc00xsAdeHB5Tl9eQN/xnThrxyIKkP8d7EVjrFFzLd3uQoa5zN4N15qgLAvnofLnoKQmKJVUsB4ZXjVYUqZJ7lUuq32Bt3dQAu3lW3Oavqd30zpEGcO32r8TQofFWmMNVtvHcmEKbLUMXY1jXrqkIQwb17dfD+eZUjzT/rYgCrxoIra+ndTqCPM1BKpsQGb0YrixvzLqokGBy9CIS0MVVyGxfDgrQzG6QhkStauywVxwN5UfS13uD40Xns/zg5qXqhjPKvi7n57vr+vKUznMuKyu7h2nG48Cq9/RzAdsylmDIma1h+yZfbWLw/FvZ+4qcOLfCVrsZ5Bf5SstK6DZ5RsZwfrURMozK8iLByzryMcjmOv7YZa6Q64QtSmK07ijwbskPSITkiT5kHaZEAf+pMkQr/0HBeJDdO1QK026GOs1zfqxLXtJFz5CcNcW0dZeNksm X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(86362001)(52116002)(6666004)(83380400001)(6512007)(1076003)(186003)(2616005)(6506007)(26005)(478600001)(38350700002)(316002)(41300700001)(6486002)(66946007)(66556008)(38100700002)(8676002)(8936002)(5660300002)(7416002)(66476007)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xAwyyvB137CKe8bFAZqLU0ywlXvF/Ej3QMVUGgZ/Rl7UEKzkTo/uwJm4/F4gGoz/psov1+xtb0BzaPyJ/9Zs1qmH5BU7VhmvlktbhI/wOv1iXiQfy2YpFYWp944jQc8UHNsal9O7fCdHv+s72aq2nJbfcmoNhytBC+lAunfMbRYQDInxro/tX6xE6qZYkOF7WNypUkht0kIuBaEbHucASZL2x6VGEnO4KZJKeTZPVX7MsMPVXtwujcNlS7aTHMNlEvv5sdScLSxrkGiDSX8bfOSxK47yO8NuURSYgXN38r0VSb/2cTKPt1gsIvMP/Xl9VliFIZlZ05ljLKS5gqfLXEoQuYlLpP++r2kAoA3sKdSDSK6WqIPmGco+Jdg2Z/Mre1qOosxRwgDezcKobL3M3H0I7lFbNlEXDPd4y9bCEgX1OCTER1q8xovN9q1KxsLgaZYqbktJaedKyao18SSLXsfespfvGbtQ/dNHJPcRItSyP42WmjXLfc2H5ajKENSRMs7ixF65qrZCfrDDPQr0O0cLTdCqDd1xrI509lwHUP/YXF0W616yt7MGjPPilmvkcPUoxpG1mGhP5Ii3Yu1KVRJL/DCXSn6e/1BYKPVL1wHI6z8EtfMtV+Sx4W2wpMtnk+LYF7g0tjBH8KuIKBKkA6X6L5SIfouPFxyP8bVUuB7zHP4p2C7iZ5au6ws9pHEakNgje7G1YyheZM4/TY868HGT9v6CEUwHj53kyiI/E3XaboqFjmSyA7QPU1zrlSzjDfyvSx5Z0BJrAHWW0DijZgMr6XBWE5y6zg5IfFv8P8MFRegdjChs3fMD10caBRcSZ3I9zb5OlALNzFGF+d905/2FNVnS+S3YhnfUUcofHDv57Jrlrqt0WLboDI/tV/xDYLeq2QHdaDx592+W0HM94HAC0ZSTO0O5ScuO1PhT1cvF0WPhcuU8W/l2ZCKS2p0arSMcNaNLML8YjiVV2J4CNf/knWcRXQ9UGx1SKtCpVSfg0RqYOAcYTCgWyHGZGID+4vaBPftdl9N1tctb5XR4jk3tt0rANi+ABHfT55fKCwOS+LorIjOIa5DZ8WaHFZ2y6ssqTQhdIPy9oS2aD8RgOFz4sDFwHv1GPNmg1AmS0j6LBHRoQZnOpRwHIezjqv8/wVE4vDDLO8mr+13+925NwyoqMuVdM3HE15Ounf6EY2SJD/Mxvdqo+BrDtSyJpZB2Y4VbQGfVU3VVGeVHC1HQCIWZ0RDRl6347TYiw7QT///R0Ct55Y9OUO1lczYUoh23ojcUUvQLj0B9oNK+nznWiO+wNyeD4MWVU17vVfKwVi2qVxxpHKAqDZktwTeprwWSGe4dxdVuU3aGQ5mZZtqmbF/IxuJ1IvACkAx/ZSULQv7JYJTP0jGHHGwteFLqU0J7O2FPnNSPsFvLnSaOm2DqjkC0f4XZMO5u+WezxcNWnz9My/um/IL2W0XdORLBjS1vA5AAdOJvfK+PuAYU5xGeChfBOcoqNQNcL1x2qmxKQUac7vSSj4y4DyADmYr1o9R+SFbonJu2YvtkM46xZtAsMXI7LTMslfsR+4sE6+rQihdKN8Nur680gqLse2Quexp5 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e08faad9-f9ec-41cb-ee26-08da7c1bc48d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 04:33:13.2755 (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: ir0HwSUkAad5aMjWdw3UQb1dgHGBwgojBclM7UIBqavjJJF/6MsYH+dAP1O1WgSP/9oR5bGVJqJqwPHEY35Ugg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6243 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Peng Fan The LPI2C controller needs both PER and IPG clock to work, but current driver only supports PER clock. This patch add IPG clock. Signed-off-by: Peng Fan --- drivers/i2c/busses/i2c-imx-lpi2c.c | 41 ++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index 8b9ba055c418..f43ad1ae8627 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -94,7 +94,8 @@ enum lpi2c_imx_pincfg { struct lpi2c_imx_struct { struct i2c_adapter adapter; - struct clk *clk; + struct clk *clk_per; + struct clk *clk_ipg; void __iomem *base; __u8 *rx_buf; __u8 *tx_buf; @@ -207,7 +208,7 @@ static int lpi2c_imx_config(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_set_mode(lpi2c_imx); - clk_rate = clk_get_rate(lpi2c_imx->clk); + clk_rate = clk_get_rate(lpi2c_imx->clk_per); if (lpi2c_imx->mode == HS || lpi2c_imx->mode == ULTRA_FAST) filt = 0; else @@ -561,10 +562,16 @@ static int lpi2c_imx_probe(struct platform_device *pdev) strlcpy(lpi2c_imx->adapter.name, pdev->name, sizeof(lpi2c_imx->adapter.name)); - lpi2c_imx->clk = devm_clk_get(&pdev->dev, NULL); - if (IS_ERR(lpi2c_imx->clk)) { + lpi2c_imx->clk_per = devm_clk_get(&pdev->dev, "per"); + if (IS_ERR(lpi2c_imx->clk_per)) { dev_err(&pdev->dev, "can't get I2C peripheral clock\n"); - return PTR_ERR(lpi2c_imx->clk); + return PTR_ERR(lpi2c_imx->clk_per); + } + + lpi2c_imx->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); + if (IS_ERR(lpi2c_imx->clk_ipg)) { + dev_err(&pdev->dev, "can't get I2C ipg clock\n"); + return PTR_ERR(lpi2c_imx->clk_ipg); } ret = of_property_read_u32(pdev->dev.of_node, @@ -582,9 +589,15 @@ static int lpi2c_imx_probe(struct platform_device *pdev) i2c_set_adapdata(&lpi2c_imx->adapter, lpi2c_imx); platform_set_drvdata(pdev, lpi2c_imx); - ret = clk_prepare_enable(lpi2c_imx->clk); + ret = clk_prepare_enable(lpi2c_imx->clk_per); + if (ret) { + dev_err(&pdev->dev, "per clk enable failed %d\n", ret); + return ret; + } + + ret = clk_prepare_enable(lpi2c_imx->clk_ipg); if (ret) { - dev_err(&pdev->dev, "clk enable failed %d\n", ret); + dev_err(&pdev->dev, "ipg clk enable failed %d\n", ret); return ret; } @@ -633,7 +646,8 @@ static int __maybe_unused lpi2c_runtime_suspend(struct device *dev) { struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); - clk_disable_unprepare(lpi2c_imx->clk); + clk_disable_unprepare(lpi2c_imx->clk_ipg); + clk_disable_unprepare(lpi2c_imx->clk_per); pinctrl_pm_select_sleep_state(dev); return 0; @@ -645,12 +659,19 @@ static int __maybe_unused lpi2c_runtime_resume(struct device *dev) int ret; pinctrl_pm_select_default_state(dev); - ret = clk_prepare_enable(lpi2c_imx->clk); + ret = clk_prepare_enable(lpi2c_imx->clk_per); if (ret) { - dev_err(dev, "failed to enable I2C clock, ret=%d\n", ret); + dev_err(dev, "failed to enable I2C per clock, ret=%d\n", ret); return ret; } + ret = clk_prepare_enable(lpi2c_imx->clk_ipg); + if (ret) { + clk_disable_unprepare(lpi2c_imx->clk_per); + dev_err(dev, "failed to enable I2C ipg clock, ret=%d\n", ret); + } + + return 0; }