From patchwork Fri Jul 12 14:39:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13731873 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 1BB7BC3DA45 for ; Fri, 12 Jul 2024 14:40:07 +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: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:In-Reply-To:References:List-Owner; bh=JzirjbBX3dLoIACF1ACa8UX2oehpQmaG6SIC/7y3wh8=; b=14pqk1Br3CLu90I0xI4Ug86iJ8 VcQMNid+1qfUtEQEGru9r2EqQC1N/TPHLfF8MVAmIqYACBfLNk7cSdZE2fZ0fgX7AiVqFAkVOsoaV sIBnPVbAVL21JpvTd10KZYT3bGTz0wK0ELgh2JmWmaCb56Ado7ayt6u5cynY8jxyufYRhLN5NGIbM iFgQ2a/1sVk/h2ojEr9z3306BEebBKopl99dFJOS7Jor8rUS1ukEkyrz3LymUpO9D2YLhkhsYDf0a +AQPWzOupqYGAk1pR3JldHeSPU43zBfvtZ+ZXUbeVRkh1AUGt2RsK4HpZhIHpjBo7JU+bpo3A7z0C KjnZtD4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSHRE-00000000M3N-1A0k; Fri, 12 Jul 2024 14:39:56 +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.97.1 #2 (Red Hat Linux)) id 1sSHQv-00000000Lyh-2qLJ for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 14:39:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=flcSKxqjNZw064NesOTuBIk9cwgAHpZ8uhS//RNbJkzhLuYpZ3uGZC0Ke9Y35olv1U6uPN6L1yBFcjcJ6UUoCAh1KChlPjHPHNbcutEpYMxTgahVvjVJLvM4Eza3ugPk2JMs4ruClz7QXcYJURCPFggWKjITycjddMieYuOdoz/W/Vj2vYw9IebLt/rzAv8iKA4zgy1kQmMKNUMAK7fKaYUree0OzkpbRjWaymlgt2egZ9VSW3dEygethLRES21b5krQgQANVk277FZWPOX1uGUIgmg1Z6zanjvCgNmqpFNfDTAv+xHS8urrUEzbY3TRZHdePRW7VAn6DE/r0+Uitg== 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=JzirjbBX3dLoIACF1ACa8UX2oehpQmaG6SIC/7y3wh8=; b=w89sRAxee8IzCpUCEGNSAmJD3vLaMgIuYkvsd4EIZ/oak0aypoxzVrqEmjpEwQdfCJw5FCIPXPkc50VQRddplvLZ+3HryUf+nA0Oful6LV9UndioGXllyyFSZSlyqxwx3o3vZ3CKUmqGky4SP6hjGX1TTTciNbWEtcR1RbDKyZTyQD+TcJ7Jw9n6dRPGusoWV6Lb66T0NELSUKM5RJXCoV1lED7TRXUY1gyly1lceTEKZlycheDS8LLbylpzyAMUt5WUoM9KXxVOZI6v8hdQRZQ1uRwPQweRe+vpuDJS7JyFQUxPY8utluXrZnFeKdW0RZa2kusO9Ip8RUBrr6DkHg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JzirjbBX3dLoIACF1ACa8UX2oehpQmaG6SIC/7y3wh8=; b=igfakRhdjaCulZ/7PVOGI0uxG/nS+Ivc4IPTuKAZ7qF4wfqfW28Phm88T6VEkFo28cgh1vlN83IJzInO/aBh8kMFxc9UTNiVvh84jtbjV21uF9s/CHv5sFMujUZK6m6T9IxwCQbjbP/F2XPg17y/j1li3eWDgExsqzCrwrAHZV0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by AM7PR04MB7045.eurprd04.prod.outlook.com (2603:10a6:20b:11e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23; Fri, 12 Jul 2024 14:39:32 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::21bf:975e:f24d:1612]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::21bf:975e:f24d:1612%2]) with mapi id 15.20.7698.025; Fri, 12 Jul 2024 14:39:32 +0000 From: Shenwei Wang To: Alexander Stein , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, Shenwei Wang Subject: [PATCH v2] arm64: dts: imx93: update default value for snps,clk-csr Date: Fri, 12 Jul 2024 09:39:08 -0500 Message-Id: <20240712143908.158752-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BY3PR10CA0009.namprd10.prod.outlook.com (2603:10b6:a03:255::14) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|AM7PR04MB7045:EE_ X-MS-Office365-Filtering-Correlation-Id: eadc0425-8cb6-4780-ca0b-08dca2807141 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: GstVi8FWUwAYko5ROQAomlxj8jfZe8YVIkoHjqBkpl3CpRVUqqBeAgK6XdWb0YRblSyX0DSdbUXxRPL68K/4ipCI/ze5X9AzIrRopSPpthMsEus6LKEzUnMlhlGtK5jtmsoTZv6KA5vagW92uN3CdTeZxVkhVw/rcjMQAKsc5P3k3gE7VnFKOD+UFP4dRN6P+9PuWrJs/E85xEgop4iWVpUoYX5tp8vnpMXkQj4usVPlBy5wVCEnkvTkEhq7F2IZ+IyQuhkGYvSAqhI2VINTPbQVeD/UkOs5vCChpS4ZEZARv2Ulq5KL/aMG5FcwjzLBFl9GrH7uLxO9AX0LmAKjBYTJ6Vh70/zJ/9tbgEVPQZp21AmYBTePOQnOim2a0R1wku4IG8d/DxPP3xjpWAhCj29b9sYm/YLzeKaC3C+G888Iv+4VmGl9kJW3+S4cVCkoY23rnz77fpVCW+St5F+OrryU/eZG9dFcPTKEIJl0+AsNdFwC84JhxMUYFi+MX7ut02sAMI34tnYhdWKIn0sw26SIF3XrOTbr3p2TwDj9s9CkT97RmWdTA2iFBhQW6PsrdZzS42fwBe2rgm5ozgzf+wbFm/KzQOVd/SOeVERSnDOebFsqgcmxV8C2txGUj4q40YG2gp3WAm4aOaOhPQ4SSJwo/UTzN+8+yJVkembbScFABDO+ANshEVytPZiftqTOhdt1MKo+C470T3MEZLrQ/hJg8I3UoiOPRLh31GlXYRIelbNlQyaSpPkFjniP0J88UlfhRxCA6OV9/0Ktml1O0bXJ/PzP2o6C7/YsGabJGZRMtxd1R+fLBpjdIM7/8QS2T6OEaObz6jXpaQiXdz+rf6Z7y/n4vLyYbHd2yfs3+BHVaU+kEsqld2whSihPzM0UPtXBpPMrlTEC8mriQP18Mk/O93PQCIA0eQYDd9/aMnyh/MVwxvDzG7UUFkm0JMtEPdJ/1fu05FPk4vx9L0BNUIBlDKblBc67EdzdAuHTTnH6AS7qDmn/xmmTY27TPx2XB4oQtsw2N+K6VRwktyPDyO1nOUEfVxxx6DOGNnwk/M3luZ7OSSobPgO0exhnJvpJSdXIQY7pT/c/1RXVIPnbp7OgKCw5pATrNO/DwAlbVRZ1fNgsqxlq85coszXr+YFBI7NxWkiesbF1TuJE+EW7gsmvWnXr0OD4uURAr+aJvGdaexQ2mr7z1oLpYMZJHdNTkuO10uTRF49/gRuF7KEC2O0PB2rV/qo3aiPZz3PR1pIINd0t9+g90xMJEzV0fNaPeSB4UK30n9YdQJ2ucvSLNJUmUpZShlg7YlOi0ezrB4g7zYdUY54vuI9hCJMjWfED9AZ3tzsdK2GqtjdA9qBvdbGMFGvgDdhbAs2jVOUMaCrdpl65PtgAGWZpqewddAghXmK9LZ8xIunECO0bL752Bw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7ZOkyMgTYqWkvYNDiX0a0WSR031Sxh6S5EgXKch8FvlHoi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Lhbjp4shprccQduaBbHYlwq2X13CEhvoI8eX/nOtQO9TsS3IFQfDiz9MrF/DvsKXoZCRkPooop6InxadDH/6Bks9OSt2cEPLZjGnYNCBHdT4v4Nn7CMEWe1tQ9RHYf2GdjZd6IH7rRYRQvNODcRxOzqcaMZULZ4QVI2HqiAmcN3BCMzsAGWI1CAEceYK1pX0gZ18DRetzgw02Zrj+7/2gfA9gur9rzWemdv1XlULhFy7d0VWYzEg1mL4kin2+fa9hWkm0AnwGvgo7qbMN8MxNnF0SFPWNzKhoXkToReCxeOQmF3/LA9H+T+VJY72PL6hf8w+AK/scq/3Q0ZTAboEu3WQ7IQXZtOHX/bopARm1RUXcukwF3f31mUCKGXp0ruDGzSYc6QwLedSJ7xNhRLWH6XCZjWkQMscaeSG1Rt0+ryqXkQJjAk7IuGx/NJP3fg/6F9y+YJDXf7Slc+n20JOnt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eadc0425-8cb6-4780-ca0b-08dca2807141 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 14:39:32.2213 (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: C945qeB4jtVqMzLpqm83xr6ZuoQ1hX+rOKcGaNo9F0FdxPeasNnl11JxRoV+TqlVHOXdctdYDgULJQi7QhR7uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7045 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240712_073937_823512_26EC1199 X-CRM114-Status: GOOD ( 13.31 ) 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 For the i.MX93 SoC, the default clock rate for the IP of STMMAC EQOS is 312.5 MHz. According to the following mapping table from the i.MX93 reference manual, this clock rate corresponds to a CSR value of 6. 0000: CSR clock = 60-100 MHz; MDC clock = CSR clock/42 0001: CSR clock = 100-150 MHz; MDC clock = CSR clock/62 0010: CSR clock = 20-35 MHz; MDC clock = CSR clock/16 0011: CSR clock = 35-60 MHz; MDC clock = CSR clock/26 0100: CSR clock = 150-250 MHz; MDC clock = CSR clock/102 0101: CSR clock = 250-300 MHz; MDC clock = CSR clock/124 0110: CSR clock = 300-500 MHz; MDC clock = CSR clock/204 0111: CSR clock = 500-800 MHz; MDC clock = CSR clock/324 Signed-off-by: Shenwei Wang --- Changes in V2: - improved the commit comments per Alexander's feedback arch/arm64/boot/dts/freescale/imx93.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 4a3f42355cb8..a0993022c102 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -1105,7 +1105,7 @@ eqos: ethernet@428a0000 { <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>; assigned-clock-rates = <100000000>, <250000000>; intf_mode = <&wakeupmix_gpr 0x28>; - snps,clk-csr = <0>; + snps,clk-csr = <6>; nvmem-cells = <ð_mac2>; nvmem-cell-names = "mac-address"; status = "disabled";