From patchwork Fri Oct 25 22:08:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13851884 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011010.outbound.protection.outlook.com [52.101.65.10]) (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 82397213141 for ; Fri, 25 Oct 2024 22:08:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.10 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729894118; cv=fail; b=iVsUlW1Gc7K7u0xBwUXLB0rbcye7HSaIIdLikHG/XHkEItDUUd+R+xsYxD9tRsEnFQk2od/MBB9JrQ4TgEdopfwLnkDkOPWYu3OcpC9IwoQmPbvbChfMD5XK4JAq/cEgsndyIV5VT9JqRSlr2vJuEz2lw7gLVsVkqzgdF4ZrHrE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729894118; c=relaxed/simple; bh=VF4kz/tJ9ZUI0uuxgQlr8uC+hfC53Dx4ZmJXcwCQ9wk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Wj8Pp6Sb342/Mv+dqRO2Ea1C93HIRoIT0HXkYmTO6luCkpqdjnfBq6IZmW1SqHXz8yaSufwL+JFCIUF7xcYCmYBtSovTkMkfWvk1TB7EsSytAMWyjci0YYRWriv+NhH2tHNhrrNmo9Ap4FApM7I9VQlx8kbUCq52Fw8KQtWuht0= 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=fI2A2BdK; arc=fail smtp.client-ip=52.101.65.10 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="fI2A2BdK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dsgG1zsnGET+Djf69mGP0wR/wkuRrPU44q+sE5ry6+GsKomLmItSIh9APBmhzFfMPYKbx3+xGItml31UcaTjJ602coQAwlWJX58WX2Z5cHRLGox8jdZgXPpAoarocpoGmVz+cVVjhpVYrg1hygpKPQaFa5Obzf+JZExZChSXahKLdHRMU5qV+cPgGn4evMAraaydLrF4XcfI9kXgK8hKDdJyBMBaKwEWOBFXGCJAdkRINC5SO551EYKcglA/XaoDKDuJW8OTMlx34H/VKcflcuLErTGpEuF14aKV2LEcsUgN9Kf69pq+u1ZEu1Jq/TBbA/qmrU9cEKTE7HZBIxxEZQ== 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=UTbuz0jxAwiykMv13rH0mVbXcqXEW3MW4KvSLsFNNnM=; b=hlpMv5WV3Cc3eOzwz2WvgnPh6MsJAKC5006Wg9x90yRs6Z+0/XssuBgChnBamvB1HeLZSJBGqvOZdg0TyN1he8rfRmpnrdZIIRbflN+7w1V2l0lY98XgZp4Kqn0gmvitdYoYqRMIOMeccmGf4grlC7ali831cKz32EG7YSnmJgow2tRUzjH/kZgpLREpQwju94gOoUiBpVCbzgQ7SC/AbXWZzHticfOY8sJTNUoztovdTgNC25fmphBhuJGhQ/H4XKfidx5t6CpTI3Fnvjk8HSDISSMgLRQKxQxsoLCSkDGx3TKJTAManskTCS03HxCaOhnnOMCTI1W7QenlKfXoHg== 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=UTbuz0jxAwiykMv13rH0mVbXcqXEW3MW4KvSLsFNNnM=; b=fI2A2BdK3QaMJWrBKAvwJ9J1fGCDqbAF3jQrM2PcGzZNC1iGYO2sjyffgHEhe3Bw998tsyfhCTUOcF+nLDSXlOzVKP1F4xhGy1W02AqY+u1y0Z1+ndb6lWB/7uqKc7CR1j4oXrHtEajV4VjJmQpNMMr79hqBSivMHouRLy1oZPdvzOJ6eawBN17kcGFhRP7jPV4Np9Qcz4GPcQ2u0pLvdTn05r2XttiiMq7LD2sWhj70Ze2SOyWQw5azopBJKKtRMw+ES553vE0XwkFkol7XbYT1kUogt4Kfh8VmN6IQCFb0OIyn0isZE3gjDeyFdGZwZlcVCIk5TAmpkGWvBSx+0Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAWPR04MB9987.eurprd04.prod.outlook.com (2603:10a6:102:387::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.27; Fri, 25 Oct 2024 22:08:34 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8069.024; Fri, 25 Oct 2024 22:08:33 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Richard Zhu , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 3/3] arm64: dts: imx8qm-ss-hsio: fix PCI and SATA clock indices Date: Fri, 25 Oct 2024 18:08:10 -0400 Message-Id: <20241025220810.1833819-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025220810.1833819-1-Frank.Li@nxp.com> References: <20241025220810.1833819-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0098.namprd05.prod.outlook.com (2603:10b6:a03:334::13) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|PAWPR04MB9987:EE_ X-MS-Office365-Filtering-Correlation-Id: ac83b206-9bf2-4f4d-95c3-08dcf541912a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: q5/29t0utDb1TSu/How1mzZsvQgFIn2g+5IGzvbGiJFQGXXphYcla51WJgh9Mkp33/h1IDRdWM5n9CvMV9znMk+GsVG1SHhMIA7HHNETG8nNlc6L/YUvIvlMc89H7+VuS2w7MQGAn4QoCDMY8YCzN7ULiHZbMwcFGppAU60Z/pKB/MkU2AUulhBQrv11he8p9POmdlZT3Q7Q4CiZUmTxJutdXNHBVFjkTR66APlE4gV92njAjkwbSxFHQQ0wIaGpG9+DrmGJ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PYeZ5YhoSPd3SidPiAI02SglGD5mMDHsJERkqImfx32bdHx4NszJVJ7FA5E9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(376014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZZmDaN92mGnyUFXV94VKwf97IHAA8QdxKsAf5xVGBzsg3gtK+XPdAEqh3icuWCafK5v+wmEkapa5FzbTZA9z4QiPMZKBNsH9q+nKfrVg5RtFPj7lM0b4OJQnJDwLi6mPBD3Xzfvg1whStBqQDHSmkJN/MS5U+pEpqt9GYDwbE6c6oOe/9ZrsjGjUoxs1yuPCX7uxoOFZtTMzodZL8Pv0GQ5HgScQ2gheRurPatz4bXDANQ/MAwKoguOKNkD2QJn7IyqtMcFIYCdteI+iHpJLBif0bWKJgRGbPpOp8RF5kIZce8d8mQv2WpyS1PSQyH87ArLIs6X6sYDtkKHKLhOPP4HLuLTPWwsT5RpDVkNdgRny4vueg71gucf31N/09s8/3SJBQP8TR3c4++e+aN6yAwJu938kDdfKxrYwkwBWCF6RyMdkj9I+NS5YvYChd/FcnrQNKqV9+r0HKUZ7ZzQv1Rcmfbn0iSUfrHbfhmr/SKnL1ZoUirBSeYmZyOde5W7+QjNkB9XX/RjClI/zSH9jRE24Fon7A6hpXa90ICA0p7Qiaq1fRdR8rdYPQ2T0kabBQMssoX/ZKOoFppO52bQVijKmczm+x6NVEX81YWsHvqZOo8J3gmkOKFltK0r4v5oWvgYAY4WLtas+Y/p49XvFLfQai7OOrp86F62YMTtsn5iXoyXC0xKB89/NKjvTHijclnF1R3vE200KhhwZuQlmY9nClB7rI4Vclj1rdqbDj8Y+MjoME3FOTgU0G2FdY/rQ7UTP9n538biPXKsdIE4cmws69JAO1ct0ltqV/VnbAdd4/aLJJkCOeN4OXEOeA4bvINqtOZfYH9w6rgGGykoh1UyhWYMzJRbnht3sNYygoOk5D8BGKarAnNLOlsRxPHlyJ4z1m1nDblOq5tfGrScTVT9gKAu9J2uEWN0DVtROLn459A1MObeGB91IvmnllpFqZgyVAa4vJZvEgvhizgJoIa+XqjN/LyXIjYx3gXNkUzASB2w10EUBmVaBcQzXwho1TM9RJo8x3eHK4Dj3U1WxJ6ftDB8js+4bhZxnQzGNAu83H6s1oGz2YfOdInzXqXLBpgVeeB0U3ps9UWLiI8eHVkpJsRBl5pSo5qZYwb0gqc2E8cceFvInhQJ4OWDtuw1aW8YQyJeyvMCw8EdsMuzWc1taihR0Ylbsw9+OqEJAUx7Po2wbKVV9XWkKI24z+UL2BRFeTtdQQOqYCdXHMC2Ajl+vyKx+nMJMFIAoa9CjyhDmgZ15abjtPdHRMFgurJTAg5vX3tverrNO8PtbZizMGBSCXG4wRoVAKXiip1k4JpOMkZckMHRTyd2hYJJrD0mUka6WtbT5fevcYBTWE2Ex3f/hEXLbmnJgWkIl2P/pZMHQsnHOUZ0xd6jsS5Mczq1BqIXHU7zNvDdyJ+KDoQJoISYaKpq2QfeguZEV+oWQ2oyQt+mzKhq7HjRIZZC0IB3+kWU6+hK8l8MxNaJCs5CqH46VtYeB7XIktg4k/qpGe2fRvTXfMEBLIcFtvGj0QuCCYsqz0jUO9a9y0xQS837ALBwQENdy1yZzTkvAuE8QBSXTdNbh30b/62axqLhWjbM8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac83b206-9bf2-4f4d-95c3-08dcf541912a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2024 22:08:33.8208 (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: YYExoyt9q0wtYrxpdAwplJFMtipSCnTqZxhpvROjI/TRxMu5LbAtjT+84IErdKbKNeyuL0RTn0Crd77Fz/AOoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9987 The first argument of lpcg should indices, instead of index. Fix it by use predefined macro. Fixes: 9f7053f67c8a ("arm64: dts: imx8-ss-hsio: Add PCIe and SATA support") Signed-off-by: Frank Li --- Shanw: Sorry, I miss check this again. If you like, you can squash to previous patch --- .../arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi index 59b6a670462c7..b1d0189a17258 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi @@ -24,9 +24,9 @@ pciea: pcie@5f000000 { interrupt-names = "msi"; #address-cells = <3>; #size-cells = <2>; - clocks = <&pciea_lpcg 2>, - <&pciea_lpcg 0>, - <&pciea_lpcg 1>; + clocks = <&pciea_lpcg IMX_LPCG_CLK_6>, + <&pciea_lpcg IMX_LPCG_CLK_4>, + <&pciea_lpcg IMX_LPCG_CLK_5>; clock-names = "dbi", "mstr", "slv"; bus-range = <0x00 0xff>; device_type = "pci"; @@ -54,9 +54,9 @@ pcieb: pcie@5f010000 { interrupt-names = "msi"; #address-cells = <3>; #size-cells = <2>; - clocks = <&pcieb_lpcg 2>, - <&pcieb_lpcg 0>, - <&pcieb_lpcg 1>; + clocks = <&pcieb_lpcg IMX_LPCG_CLK_6>, + <&pcieb_lpcg IMX_LPCG_CLK_4>, + <&pcieb_lpcg IMX_LPCG_CLK_5>; clock-names = "dbi", "mstr", "slv"; bus-range = <0x00 0xff>; device_type = "pci"; @@ -76,8 +76,8 @@ sata: sata@5f020000 { compatible = "fsl,imx8qm-ahci"; reg = <0x5f020000 0x10000>; interrupts = ; - clocks = <&sata_lpcg 0>, - <&sata_crr4_lpcg 0>; + clocks = <&sata_lpcg IMX_LPCG_CLK_4>, + <&sata_crr4_lpcg IMX_LPCG_CLK_4>; clock-names = "sata", "sata_ref"; phy-names = "sata-phy", "cali-phy0", "cali-phy1"; power-domains = <&pd IMX_SC_R_SATA_0>;