From patchwork Mon Jul 15 13:17:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13733549 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 99A11C3DA4B for ; Mon, 15 Jul 2024 13:18:23 +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=zRhW5sv6S8SgfAF7X/HW1mHaiFd8BTr7wZDpXeneOoA=; b=M2yL115VUzSeRNkbkOZbJLRpCK Sy2ylz+1+cqEUgdt1YBqlrDSMHq49GOaABHPnyobYBDTj6TnAQMtc2xBbJocho7taoStgdwDIjsDj KjRhLlxZ6gK8dUV5HH0TzbZAwzKckfA2ZUNA0vJ0ssM7M1cj3FQOOFiaECa4euGp/eG/Q+0xnk2Ng Or5ZWBAVXY55e06iRCl1s5hqE2EZ5yK/kqGMBzP9lk0vo3npi0SmWhsH+tobU8/NxUgjjwIZrDE+N O2JGQNZ9YeuZS5V+KD9I+cuLNEKSE553NqXteVOgTWaHRZFsRu4q9Fmu2GEf5gaolRRYeN1ssC4vP D/vCc4ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLaj-00000007Ay1-1xL7; Mon, 15 Jul 2024 13:18:09 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLaP-00000007Aw7-3JCM for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 13:17:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w2uT5rPXUjzQ+lBSm9nHS9LkbSYfvfq5m8d5HiHrK5xHRnLMhXDSkwJvOiLOZnQEjYgex9o2fjcu7H5OIQ1bR+w5qhe1ZhCMOq3RWJ8EwJu+fpMKPlgzrFSZQtANQZ7tsvEiq/AbjTl3FKUu6igBqEpIdS93whSbnPsZ5Zhl+5W6hMaiYDx1t51japn1NSkBWjIxtsytsPx2aKVzgZZLnnaGVt6cpvYK0rNwUBTyxTQoBVT1yGRVWMEZS3jEoVTweaE8u1d+9pQNFJ4iQirdrYtkxgLBCQixL3VZ1FSTnAgA9sNXZKzpbPDkf++r3WkqTX9CbilNtbswr3MBkk1a/Q== 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=zRhW5sv6S8SgfAF7X/HW1mHaiFd8BTr7wZDpXeneOoA=; b=HHW15lYp2cMDWuGVkxV5XxFjNFcm8rKcOxZl5wBUOfgaaAvohWMi0TF4m1RMykf5V/KqL8A+TD8z3HpiJhwKB7Nn4iNfVb/l5q8EbkQMQb34qHVpqRHfnxjSH816EtjC85IYZPH+cBQEduMmEwevlIxoUneb9KYN+4xWsH30NO7hhPBbqN2Eg8q5ybBNjm/e0mA+ns77lBzPy1zBjc/YLN79q/vRWKXSUF1WHKYKlXfHm431D8s2TtUPtEcx5/4MdiN8Ck7vQYPD0vA+XB3seXohupdC0ToPA1gyAzKwMCcWLDpZjl9Narv1qpnyEJNNoD7opEmpRcb7J6cCyu3XDw== 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=zRhW5sv6S8SgfAF7X/HW1mHaiFd8BTr7wZDpXeneOoA=; b=eaJJ1A/hZKHoYnVPeBNg0xP55jnFt01ZN9+eq0OTJkx5H2aT8SYzKv9O/mTqpCdjGm5WKGDn2gXlgvYJ582T+nQ55RR4iZBGdn47aTeSCrCID9euMXsDhlpAPuIl3ecbVAsdhQk2Lt5tLwdHOkl7QwVHOTWOu4fgEcaW4+j6WIo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB9176.eurprd04.prod.outlook.com (2603:10a6:20b:44b::7) by AS8PR04MB9111.eurprd04.prod.outlook.com (2603:10a6:20b:44a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Mon, 15 Jul 2024 13:17:39 +0000 Received: from AS8PR04MB9176.eurprd04.prod.outlook.com ([fe80::4fa4:48:95fd:4fb0]) by AS8PR04MB9176.eurprd04.prod.outlook.com ([fe80::4fa4:48:95fd:4fb0%4]) with mapi id 15.20.7762.027; Mon, 15 Jul 2024 13:17:38 +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 v3] arm64: dts: imx93: update default value for snps,clk-csr Date: Mon, 15 Jul 2024 08:17:22 -0500 Message-Id: <20240715131722.161135-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0P220CA0014.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::22) To AS8PR04MB9176.eurprd04.prod.outlook.com (2603:10a6:20b:44b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9176:EE_|AS8PR04MB9111:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e518670-c91d-41cc-8dd3-08dca4d07f88 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: ytPmn/NrYutt3d+0WlJGomq8dGsL3bkQyIi7E/h9TpdktIDcoYUooLHPm8A+lsMTnDJgNTiiaQgwtjoFVJM3xIqTvPpEr00sZ1RkA8pkMXKZNqizUM7OSy3KULDVnZ7oZtKfPWNvZgBnUWeGro6n48iFfBoeYLQnIQ4zZhaA3lWARiW8AvVpUsfeGbBtFOitZmPpx3S/N9KKXDK9v6KcG20Hf10IdRpEZ+NQldc7BmR06o/Fbt3CdsXCK8KC4RVXzIRg2cjnQf5iLc8V3DlWZJd7ebAa5ZJw+G7mGCM4EXm1jnfHuvWj6njARlI4pguu7PM9K8JUMDpfW9YYdJILUMSMUEU+I/D015kdDyqx/qps97HJ0bVjU3SxaFvyR0rsJZGUH4k5tLDnENrkOhiysSimnUicmFgZVDHklx1ozuwM6er3fLh3Is55AMU5TnpBC6QC9JLA7I6wSmAFoO3aQW0savcMF0TmY1UU4pja2gwRsqm0Wgjk6NoU0AkDaSC+M+J0+trNoAMcmUYEAnBGNgN/rKPt+9lTrykXJgyx29s0Ijm/V3j7YBxYIaY7ABJKkSb4nFZKpIYZkI8Z5Z9w5PsRDJGD2npiSLtxN+41mOUlGJqkdsYmgt7SWL+qZPBBxpKV9fqbzLn4lpzQnCKgpwUb+0Uj2t6sOv1OivY1s849Nt7ORntck/qVq+CsLVSmAlhVF7nQIJ7gzGFZAN3MU2SdfdfzULpJRhWjEjx5u9BIYLMxEBWGXKp4jjCv0+kKLlfBrkY3uZup8uPK0fEugAAl9sd8FkboAIazq7zhvxgyn5aMs6r/LDu5/5eo+zziLdQuheGshzwD0+r14KATMMsxYOths/R2iDRF6exUYmrYWOpNhVNR56W1iXUQAY3Lvzty1ytGVgetb316KQoBX9zTWFn7U4WRY/Ps9ddhEBSQ1K4GgCUVIfJEXisMowOD30rloruAMBeTnTFT675t5Zp3vB8kvSNXQ0s03qR+KGKQLIb+/TFLRY4z2Nt+jNSwdsa51rXY14OzGG5dpL3myxXZDV1WovZV3BSMarmew5hHhsEAj6IshU4yE+GP4ONoOxdSRTWbXYPA1qL6vyvDWSzS3HmEzI2WNilmBDlEuBwJ34LZTzEkEfYUa6z8eTwLA+xHy+79SawCSqgL1sjwAKLKNp5MKL6hTHPlgtFUnHGg63quwudOZiXQ0qexxWbfACrapQebR71J5XBzeDcrOwJLBv79GPZz+Xzm5HJVw5tdg/eb0/teqjrvaO+GJOcyJvxr9mOZQVUq9FjbyqcGC6VxMn6DNhWTOKEuMrzxBiuSqnz5PeKbg8Ndkp7h2n+GggPENN3lT+Z887LG/+PobDmreThRmSmfue9ZXXwYg3Sat9zLaTjxQcRf+xvuXJ3llEK8QpBax4sSryDLYOXe8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9176.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(7416014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-M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MsJyGPxd6cHyumVrM9Q4MNq59ggeNaM/ycBDuI3q2mPgQCh32Flgd9Dmk6LRRQg6rcva7t0wwM+q/mQ224S3jy5+E8ktZAwS7CvavFs8MrGSgnJ3pKmDxsReN+p2gaXkkbc7gXJ9STwu8ngubKoWsIUvqL6JvDhQcZDU2hXSuTgRfDkXT8dqzy0H4IFZpOL2sX5KRfV3BjenqwRzvISi7DBYeo2fiTYJeVF2rQTmUZoBboE4i0M5yKlzVU7a0sbazEO7Dg914IJ7/AY1RuYE7hg7XDNw5CSeU67gVDvd/BIbhwG0co74K6v4mhhLiId2wcDUF8j3cmp42Tgf0uL1yT/yZBiPDbT8gisYFtvP/GDbYQyLOnO91Nkg8ML98VKNFjuH3lEyBOOKEzAxXWhWFysgvtCmkU4MWIm/rZE8XvE7G7KXBeZeK+XZACpP6DNXJtuUSV2DAJ4AfYBmKrTIVJuUmW+mJqML9l2eIBjnOelWSXVCmFtaK33MIIDXo1N2fRsUNhaGyvADS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e518670-c91d-41cc-8dd3-08dca4d07f88 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9176.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 13:17:38.2667 (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: sRQg9nF80zOQh3Sey3+Znkp4JnDHOkvi7La4PGaU7ft9iMzfK6PnVY9tkEtPjYerlJeF42EhEkqP7opZU+Ycxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9111 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_061750_038564_A9A0C920 X-CRM114-Status: GOOD ( 13.62 ) 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 Fixes: f2d03ba997cb ("arm64: dts: imx93: reorder device nodes") Signed-off-by: Shenwei Wang --- Changes in V3: - added the fix tag. 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";