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: 13851886 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 71B3DD149F6 for ; Fri, 25 Oct 2024 22:14:44 +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:References:In-Reply-To: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:List-Owner; bh=UTbuz0jxAwiykMv13rH0mVbXcqXEW3MW4KvSLsFNNnM=; b=xek8L2F0cCUsJEk77l1ES2GqJD pM5Wp/O35dKHzOq30HFGBeXef38LkxyEgDezXndcZedXoqUw3ppc3okjiAUX/7DT678UuNn2rYYod tEpluvf5y2RpAkyHKUxudaW5Mdg/uwyy5W/whMsqfMFkZyQ+3/F2hgApM4wQq2IA+ZmsmwXK3dke2 86NtXpMeyzUFe2tY5dsSX2d24fbsRW80Y8xCRN/uH0qw3kddMqIXHyCihK0fKwmwOhhs9YE2wp8OK aWsYdA/TzeVjC+t674ov17oLuEDbxOlPLh1PTXNMir6xoGhfQhAV31fTDrcj6Iujwx8hHsVvbLIc/ SndmeI2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4SZm-00000005Pan-4B6r; Fri, 25 Oct 2024 22:14:35 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4SU0-00000005OwQ-3aZH for linux-arm-kernel@lists.infradead.org; Fri, 25 Oct 2024 22:08:38 +0000 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) 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+DrmGJaWtnz0R1xiMd7QwJ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iAI02SglGD5mMDHsJERkqImfx32bdHx4NszJVJ7FA5E9 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241025_150836_927532_D32A1924 X-CRM114-Status: GOOD ( 11.36 ) 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 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>;