From nobody Sun Nov 24 05:33:39 2024 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2046.outbound.protection.outlook.com [40.107.20.46]) (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 BADFE1EC01E; Thu, 7 Nov 2024 10:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730974264; cv=fail; b=mTEarZE9ZL+i3ayisOOVZiEPpJIdgM5JW/yDIWEflI58RtG0GNFjG5bUtB4VHC1bxzrEemW7kiJuMHaoCupMNARcrRrBFjrxxMG9OB5m9BDDoGIGHNrdyRGgYc/iKFgJ/HJYzAHIB/UWKWSAScK2Umbb55E9oj5ZXjk2F+1aWjU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730974264; c=relaxed/simple; bh=AQuSeegLBfc9TiaBMB/8LtMYb4ixN3Y6C7oaEx8bFNk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=kiC9hcgnIi+p2/nkcVvRjWc0bXGYFcR5iq0llvc1gacXLSd6uq5UhLHoqPFp7DZG0sUo+rbH8D5TmSHVDaxw5BBUA4eAEOwBgAaabcFPbKYcF7Npwge2RZ/++B6IrosHFT9HRrHYcuPoMrhHKvpgoTurGgkvlNhLmsBBYjxtrec= 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=EEjgDuuJ; arc=fail smtp.client-ip=40.107.20.46 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="EEjgDuuJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mlPUZhSJkHJb0xN5X9Dgd6cg/b2AwJiSocAK2ePhBIMf2bJco9wJ0bM1ooj2JAQkAFr3Mya8adfvcvPIh/WhsLT5WXTcNMqm1KMJ6s/PrMoZ0nPcelYdtc3f3JPUVDPgDQk6CcNUUuAlaC9ntjnc1tXmzrEx8l4BtCCEitZBUp7repbfS73h8ipq9Y8cLkzy/tGAHhYR9ZHzvo0o076CqA6GuVHYRfUTIr24NO2cdJUFZrAhMKX/ug+yu95AnC4UPyQybM0BlyrUNmBt3q6ur+eiUWQROwR3RdFACEfOau8DGLiUbfnjZYy3EmwV3GlGUBl48flEz9Glt2JC9GCUAQ== 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=V3tnjdf9vw/udV24JmpTNkCVenZwSRuG1YlYfCb6FGI=; b=rszB9FN+/DJ+WHPOTSMNXp1fr9RuPwKNb7dHNhYTFRB6/3vVHB8J3w/p9Ty2vYgGFkmrpYvlDsEa60gpNbJTF2f/H3mp7JOaMsMLJc/aKIb6L0ehTSEsvk7SmphRI6uupM7qYXREFl1OvgNqb/mVQna7N7BVulDlE/LH3NibuJMqb5TLOO1VPRFSYfjIevAu4jyDhUXIsrALVUMzlf0EkCEJ2JSpNYCgAL7CeuUNaF5DwVVpPgUeAOU01ZaPupkYXSVCM1NRAy4ymLGxLqxFpQxpSoSDQ+hvIU2mMguhPWlrbAqlLL1wSSGQJM4WZOEq3nvDpP/4CGT731ipj0k6UA== 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=V3tnjdf9vw/udV24JmpTNkCVenZwSRuG1YlYfCb6FGI=; b=EEjgDuuJBeFZyLlTQ0Tr9wK/2CnqNgnj1bEzYcLHD0XrLOcsI/fRJ1go3rcqb8E1g0USgtuwscxcFeLff2RsrlUQ6+ilqn680bHsyLwzcSrKrCHLwm1WX2a6b+hhkXutbrzdEH2QCoKu6n+fIj2EI3Dqe3DAT6e5olGCyVU3qnxRtd9Yc/j6ix6zOZsgC3vyFlwGzPnmWCq/gJRidTJjUNVbkDp4vnygvj2wn7RYZ6pqUlg/5EGVs2CVWHsJXTBXyiXKOLLmcXM2CiHYAQKe8ktSFeLTbewoxgYD3vTPJaVMoIKqPSHZfrVhoABmSlQU62d6L0g51UAy45dGqjJcig== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB7055.eurprd04.prod.outlook.com (2603:10a6:800:123::21) by PAXPR04MB8991.eurprd04.prod.outlook.com (2603:10a6:102:20e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 10:10:50 +0000 Received: from VI1PR04MB7055.eurprd04.prod.outlook.com ([fe80::d6ab:1538:d868:bf8]) by VI1PR04MB7055.eurprd04.prod.outlook.com ([fe80::d6ab:1538:d868:bf8%3]) with mapi id 15.20.8137.018; Thu, 7 Nov 2024 10:10:50 +0000 From: Shengjiu Wang To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, shengjiu.wang@gmail.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] clk: imx93: Add IMX93_CLK_SPDIF_IPG clock Date: Thu, 7 Nov 2024 18:20:07 +0800 Message-Id: <20241107102008.3626023-3-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241107102008.3626023-1-shengjiu.wang@nxp.com> References: <20241107102008.3626023-1-shengjiu.wang@nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SG2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:3:18::16) To VI1PR04MB7055.eurprd04.prod.outlook.com (2603:10a6:800:123::21) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7055:EE_|PAXPR04MB8991:EE_ X-MS-Office365-Filtering-Correlation-Id: a2c7bb1b-7c74-478e-5384-08dcff146eed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?IEs+iUGcuO9zcY3cBzlpRgZiiOi0o4dnQ/b02bdi5K0BPjnXYf/x3lLQkSyS?= =?us-ascii?Q?a2+wWNCoO2DVE0UosYto/Zp5lwGbcLf4v64JcfJWuXgKp7Vl85gCiooY/qY2?= =?us-ascii?Q?jROM7VXqCM9BFlwozWTiLiBNaBNB5GthGxjaSV/iTDiUm584/TrIraR2N/Im?= =?us-ascii?Q?wH3qzFfDeMTj7ifmacGZ4la6Fn/FIWE5QxLOmJH8SZMsy4iX/g3smw4svdFd?= =?us-ascii?Q?5JjDsigsvs8tZ8WI6sRqq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-ascii?Q?GUAgL0vcgOsnsTWl6c5OSi88/0J10lTFSRD/nR4MugYiZ+AGJPxf2P2ZzHR7?= =?us-ascii?Q?td1Hb/RRMby34XRSXnrBOP35c6ieg7EK1mLHUtEjoEIzUIWvu7hdRbJYW5Mp?= =?us-ascii?Q?bu/iHf2HLv+cmu88AoU/sXbj7xABVSjiZ8mTGdx+vVhz4Jnppdo8SNThjK7f?= =?us-ascii?Q?NgK9PJgL4ji+WM8KlYNPMCtBVnqjqS8ZKJNrN82d7yyVy1mF6EkmjGpnnqHV?= =?us-ascii?Q?QMp+KGuVwLQNEpgVxunBSiJ73W8x?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7055.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?pD2kFEvtvq3iY6qWgIQKOnQ3pAYyU9fdu2Fh2W6WBlCrY3RxZKyoVQmlwQYG?= =?us-ascii?Q?m6Hn2pL4eWjSGW6NivekaeGhPOIlo1qp8TYBjw4dwi8om16Vb5ATqeiZgJMq?= =?us-ascii?Q?3VbhCz9LjIWdX+G1kAOiWvNfp8PKdgBjgg/vjeb/rIkaWeoXObYTZos6Ls7W?= =?us-ascii?Q?opALhc7YnFwjazFn8b9V/LidVGMJjz+iqZhbuLJPhoEY1j1nxZxc69kI6nqr?= =?us-ascii?Q?nTkxtVPQjFwbvvJHQEoCWGeOLNb5ma7/7vGbLkwLl+wZiOEBLxfRbpyiS9W5?= =?us-ascii?Q?l3AlEUMUQDHViC4L0ETnnEG5GZDLFFV10MDQuldDNmqoY8ZboTjjE0Jc0VlK?= =?us-ascii?Q?Q0Wxb/mNYXN7GyLMhZ/yE2NscMK3FotSHaHj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YHpaKCcEUMVzNMmJUYHI8IFlfqfkh9hsEh1FdOUvMSPJ11CTS?= =?us-ascii?Q?J1CKVTv2DZaEJSMAo2MSQi5Yob1uD8iRP0iBJ9gO4NQwdK5EDI76STkA1h2M?= =?us-ascii?Q?vajsTkNTkUBpERG3wiCEZzGzpJznBqIwKYSpptlgc+fgujN5LfJrJDYA/hz+?= =?us-ascii?Q?B/lcWoKJjJ7adgDhnM42kg2LHJVUvEuJFP5EOzwyesv1CcJE0lw2Gc8yETQe?= =?us-ascii?Q?peHTWSQflBwZVLfHzXotoBeWcamgaTLFTJ3H+5edrY2SJ3GkXVu0IjzkNKwz?= =?us-ascii?Q?qioXGTrE3tD304H2g48IlaNCF1xKCBW4y5lOZPnj?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2c7bb1b-7c74-478e-5384-08dcff146eed X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7055.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 10:10:40.8229 (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: oYFNObD2etF+OuHpu9nMFjFzZUTss71FzEOyBCskof27GeZDWOUr95ptc+7D9t3P9kf4AR/0KwR4Q6gS0k7Hnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8991 Content-Type: text/plain; charset="utf-8" The IMX93_CLK_SPDIF_GATE also controls the gate of IPG clock and root clock, need to define them separately. Otherwise driver disable IMX93_CLK_SPDIF_GATE will cause IPG clock is also disabled, then register accessing fail. Signed-off-by: Shengjiu Wang Reviewed-by: Frank Li --- drivers/clk/imx/clk-imx93.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 58a516dd385b..eb818db008fb 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,7 +15,7 @@ =20 #include "clk.h" =20 -#define IMX93_CLK_END 207 +#define IMX93_CLK_END 208 =20 #define PLAT_IMX93 BIT(0) #define PLAT_IMX91 BIT(1) @@ -38,6 +38,7 @@ static u32 share_count_sai2; static u32 share_count_sai3; static u32 share_count_mub; static u32 share_count_pdm; +static u32 share_count_spdif; =20 static const char * const a55_core_sels[] =3D {"a55_alt", "arm_pll"}; static const char *parent_names[MAX_SEL][4] =3D { @@ -252,7 +253,8 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_MQS1_GATE, "mqs1", "sai1_root", 0x9b00, }, { IMX93_CLK_MQS2_GATE, "mqs2", "sai3_root", 0x9b40, }, { IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, }, - { IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, }, + { IMX93_CLK_SPDIF_IPG, "spdif_ipg_clk", "bus_wakeup_root", 0x9c00, 0, &s= hare_count_spdif}, + { IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, 0, &share_count_= spdif}, { IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", 0x9dc0, }, { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, 0, NULL, PLA= T_IMX93, }, { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, 0, NULL= , PLAT_IMX93, }, --=20 2.34.1