From patchwork Fri Mar 31 07:18:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13195332 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 5FF2FC77B60 for ; Fri, 31 Mar 2023 07:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbjCaHPC (ORCPT ); Fri, 31 Mar 2023 03:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjCaHPB (ORCPT ); Fri, 31 Mar 2023 03:15:01 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2085.outbound.protection.outlook.com [40.107.247.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCE1F754; Fri, 31 Mar 2023 00:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nfA6IqdlV4obgK8wvs54F6Ah6MeGyivnp+9lLhBgT0SydboTkhavBvtJ6IrxWphoqluy+hH+2LZuPqYRN3Xg9TM4QIP4J+xa0iVkRzeAW6RiMe5KMXO5XeUjXZ3pZsoGdd9KIOdHHMFOUMAVmVlMTrlbLkm33ck79mhQiJFJkbRg5JGDvbKZt8c/HAckpP7cCmuBChpta2q6RXRpVoDAw80DapiFahBDVlZwBmru3odAmom25MDbZr8j2+EQzXF0t0hu4lUGiv90tGjzXJqsxA2nH2dNzpO8z71h2aJIHsKeqd9zVKfjUxUn6Ydrd3Rjl880W45Sqq8epbnjJQQZIA== 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=HgYNHx8gfwAW1T3KjEyWRBhshB2kPrkWmf8HRgU4OT0=; b=meTjAjnY0gJNR/QhaURcKIB911i6627eFANWMphzbsS/5wkXzS/f2DOcnkHzAVPWeLQngzoMOK7QrW8+E3COv3cofNwdSPolp5oNEw4li0tYP8TU7K79YJEwV3ZFmzIuJcJxOeuRwuuQK+FlPdMeA6Fmv/2iOx682Bs+qkYg5RAey2RZmdT2uKah+AjHhTHxQtGMZefFvTvol+fMM6D2+xdYVggRIBXA5IlQRQ0SbROgfM9PaHuuBaX6dpb/8ePCyFe59halOnqJkhZX88iQztE0c237tcRypDg8ptG7naa8ogYElBuI/TeUNLErzkwwBlFcE3mvyNyv2NYwRzayGQ== 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=HgYNHx8gfwAW1T3KjEyWRBhshB2kPrkWmf8HRgU4OT0=; b=GWaRrq/zFv3Fpz+NG9OrQEHqx3h1ie8MtghPKaVMKAJG3xOva6kFLtopVLN/JnX+sI5rNZpc/sJAQNPr0mmnSPVDB2veQ3rgFRgG+fyM61s942Zuat0cqEDArqkt2JH6owfTXcby7GfX3T4/sRBYGXSntWaJ6SZ1lIpMzyiay70= 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 GVXPR04MB9879.eurprd04.prod.outlook.com (2603:10a6:150:11c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.35; Fri, 31 Mar 2023 07:14:56 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0%4]) with mapi id 15.20.6222.028; Fri, 31 Mar 2023 07:14:56 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Liu Ying , Sandor Yu , Dong Aisheng , Peng Fan Subject: [PATCH 2/3] clk: imx: imx8mp: Add LDB root clock Date: Fri, 31 Mar 2023 15:18:00 +0800 Message-Id: <20230331071801.2483686-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230331071801.2483686-1-peng.fan@oss.nxp.com> References: <20230331071801.2483686-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0023.apcprd01.prod.exchangelabs.com (2603:1096:4:192::17) 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-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|GVXPR04MB9879:EE_ X-MS-Office365-Filtering-Correlation-Id: aa753587-d813-4a33-8f1a-08db31b7a17b 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: GvQJ5mf5hwsVT2d6ilmJJcaREC3OxYyWeIMF5cdVO54zrGsQqD2nG/oBWRCePRYnii8iFHdBQ6TN2MRQFzDfZ+R3qzFGlohzdA45uG0CSRA44FWICIyEM0kfTi/ZzWdnH7WS/YOC04ug/RDNbUSOYA9cixtRPtAhYJt+7i1d3oeivDETzTsdoU8pDl4fqhec2YtbyjJ+LRvYbY5nmrbGCI+OSSKYUAxa1RoF1WZqsQCbOQ6BFrw243FGJ6AX/+fQm7i+RjBz0qo5NDTNK7KZu3liZ6ZU2OF0sAs9KrmL3WAuCuxwQDonuNhPwgfNWdeFDqv+domuucMHNtfemv0L8iqVZE8Jrfs/Ik+n+ZGIgJ4ie/Vou77JRfFvqapyGnZMx05u4Ts0Yr6p1H7QkroaddUKrFEEOz/4ETQECWT/X7pze5UZVwxy5vq2Oqf7rgxYEN5CPlJTnj3LsZjhivRfnlTXYpJcthytRBk6H1zoWY6Wxspywp3OkGGJIk5MuHGlSWTpzh8datyOFQchsr+YYc2DS3oVK56w+KByje7sEkM5BWlMpKGqkuVeIIEYdaLid3xsmH+zMc11HmKTEL8o222XnxC/LJszgAZh3JbQ54v8o6o8FHLLXFg67YV91GyeV0mpWC4G2IIy4JhR6L3dfQ== 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:(13230028)(4636009)(396003)(136003)(366004)(376002)(39860400002)(346002)(451199021)(66476007)(4326008)(66946007)(66556008)(7416002)(5660300002)(38100700002)(38350700002)(316002)(186003)(41300700001)(54906003)(8936002)(6506007)(2616005)(83380400001)(6512007)(6666004)(52116002)(478600001)(1076003)(8676002)(6486002)(86362001)(2906002)(26005)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z9f3hSqGBPbAuZQ9a1c3tbYU8zjpD79ZvCeXO7/WRpzvB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X0BJ8E69leLDvFmrNYztaIniAUGnWP/gdKlgpJq8uRJRUg8m/Zp3yyfUbGMfdcMAYHaC/UL2A9qs/pxjGiL49Aoliy6MCg2NnyVIVCabnfc+yOoKdIm7s7r832DGKRDLWpgshCXucX24R5ReNbBRylBPz1cVimybjP36v9hjgp/HFFVojxG8JwfYLrMNFBNNPX8tVGOy+G500i8euQHLbav3s0T/1LAVm/nfE/lDxUXD8dMHQtcanys6/ea5JGXqa3CmWnwgpHvv+QxcjsEl1t1biRiyyX9WmfCt+hrpGCGDosZY7SscS/+BLZlzKzs8fu8KBKpTA5D+ktsF/2BjZNCJ7kk9CgjBjvQotYO3Xgl/qKNMieCcNk9/Ci1p5KegE4nMKmNSrJiu8P/GGFbD18s1acdlKZYxdTOfeSbctZd2DlGoaUxMH0hBfVe4QlHsfftMROzBHD2PeoJopizDogLM2K X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa753587-d813-4a33-8f1a-08db31b7a17b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 07:14:56.3974 (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: LQeL490Dvm1Kopkdsn8xZbLLXFPPYTIkrqIDY9OXsXaigSRLd174hsIC9lvvyMoH1CtL5hCtLKyt0T0nTZ2mxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9879 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Liu Ying This patch adds "media_ldb_root_clk" clock for the LDB in the MEDIAMIX subsystem. Reviewed-by: Sandor Yu Signed-off-by: Liu Ying Signed-off-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mp.c | 1 + include/dt-bindings/clock/imx8mp-clock.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 4a0f1b739fd4..8dcaeb213277 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -696,6 +696,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_MEDIA_DISP1_PIX_ROOT] = imx_clk_hw_gate2_shared2("media_disp1_pix_root_clk", "media_disp1_pix", ccm_base + 0x45d0, 0, &share_count_media); hws[IMX8MP_CLK_MEDIA_DISP2_PIX_ROOT] = imx_clk_hw_gate2_shared2("media_disp2_pix_root_clk", "media_disp2_pix", ccm_base + 0x45d0, 0, &share_count_media); hws[IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT] = imx_clk_hw_gate2_shared2("media_mipi_phy1_ref_root", "media_mipi_phy1_ref", ccm_base + 0x45d0, 0, &share_count_media); + hws[IMX8MP_CLK_MEDIA_LDB_ROOT] = imx_clk_hw_gate2_shared2("media_ldb_root_clk", "media_ldb", ccm_base + 0x45d0, 0, &share_count_media); hws[IMX8MP_CLK_MEDIA_ISP_ROOT] = imx_clk_hw_gate2_shared2("media_isp_root_clk", "media_isp", ccm_base + 0x45d0, 0, &share_count_media); hws[IMX8MP_CLK_USDHC3_ROOT] = imx_clk_hw_gate4("usdhc3_root_clk", "usdhc3", ccm_base + 0x45e0, 0); diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h index ede1f65a3147..3f28ce685f41 100644 --- a/include/dt-bindings/clock/imx8mp-clock.h +++ b/include/dt-bindings/clock/imx8mp-clock.h @@ -334,8 +334,8 @@ #define IMX8MP_CLK_SAI6_ROOT 326 #define IMX8MP_CLK_SAI7_ROOT 327 #define IMX8MP_CLK_PDM_ROOT 328 - -#define IMX8MP_CLK_END 329 +#define IMX8MP_CLK_MEDIA_LDB_ROOT 329 +#define IMX8MP_CLK_END 330 #define IMX8MP_CLK_AUDIOMIX_SAI1_IPG 0 #define IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1 1