From patchwork Thu Apr 11 12:21:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13625854 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 E64D8CD128A for ; Thu, 11 Apr 2024 12:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=ve8sjMpzxP5aQMHGOg5VJOsdRmFQBYwzjqPm4cEsRgI=; b=RrspVtYqoKdYSq hjKDLoM6b4eAey+aFYNw8WmCcjuouZzO/A7DoaPoisXnqPnh0o62S4YfC0WyfXFjBMmfLtkHrGdHq sC4EPEwO+BmD4mcYoCWpV1Ja5qWerSD4KPxVTqgU4T3Uf2fz5qeL9BhIroFkEuc2PRSwPuPGjYoOs cjYKZSmymbBCc/MRuVgYhEpWIvFupnpE9i8Gj/UIEJZYTcmjXmMxU2+teTHbPCtLQnenLl9WCtrMN ah+qgKGkXR9ufZcKTWwQRypKEtCwcstxoAkC0yxrluI+LOCdFYVRkP41LAs8BGJsuGwXdIjFFeXEo y8a7EPf4rGVyo7Ks4KPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutQj-0000000BvTI-2kF9; Thu, 11 Apr 2024 12:21:25 +0000 Received: from mail-bn8nam12olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c18::801] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutQg-0000000BvSo-3kPs for linux-riscv@lists.infradead.org; Thu, 11 Apr 2024 12:21:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GjjKZWXX5A4Y89nz0ZcoADg9AwDNz962JcvHN9d8fy7fYl9QiTWSo5ImHXw8A5nFr8dYNsKCJFXBIuU5wCP/E96a2g1TdEcjfM+4l+v3dJ5LCy3zuWR6l3pCB/TDMJiUxSAqhMTgcm7XmaX5M1XaCjEO1Yn6+mXy0HhKyLF9rAc0cWkdE1bsG6KGwJGsL7jj1bYrSerEL0FFg37uMyWX122LNa6P4+qUFYp/EMEmmJ+ztEIFUa2KE+/F8ayDY0Va9ye8OQGSCas/7pKx0EToBUKti0xmRcsFVFOfir0WBh+mHlTr7+keJ+y5zTNPnK2x38qI2uXfH6pqdIW8O2XdsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=dhKpUZevkYPltCISaDvXBPMAxwJx6OomIJ1ckJTeX98=; b=g27SutoJZvMEvTKJSdtE4wMyiUPM35UTiAYmxClOxms3W9ZR0ottZNZTu+TXWH9YRfs4SQSbnrVu8rKQ84SUl7NIQ0sSiR0j0u0Mem5fQQ2mAR13kdotO91F0kZ5KRaeoatzw0nK8sruCF5mKNuhDE7r52UG4MBWoV+OyHUpHKCYNkpOiowACudSUHjb/yNr+yleCta28vTUMK9g/xmOKL1tTJYKw5cZDwMFzFtQ+nlBJybJxSv2HPu6Y/7KH2vaVReRCVgX7d1npwmeaQEKsHP2fD/jlPbcEn9mLWhHG8OTkVgdWt2nvQNk76Fu97An+lvg03oFIVBKCwU0VxY0pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dhKpUZevkYPltCISaDvXBPMAxwJx6OomIJ1ckJTeX98=; b=Hs5mLXPZUGaYoDcCPCj1ABVWqpTGxGRp5q5xy4pofpiv2Ug3ay55B5grQ4lXSR4VDf9rNZ4FsJclqTt6+csQAqZatefmEx7YwxFy/uQoh2fVkKUty7nXd+woXgbapl/Zp2/8qvoGBAyZCIBB8/3abdl4z5OZVa9Fx1vEzw3AZQICpJnQOdP5o6WlL+gAxntuPHrNiBS/CbhHoErMWM+UFfzheKwjI3Y8DV0ScMTf5TnriOOPqoUbrVVKVaTT75sNGpQp1Ju7F/YsGCQUvlNkCYarQWeFwAQ/0tLtleQBTbLIbEq2Xz1Z6DWFJOyIVuV+eB9smnaMPmQ9fqx5O+/SYw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by IA1PR20MB6245.namprd20.prod.outlook.com (2603:10b6:208:3f7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Thu, 11 Apr 2024 12:21:16 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.042; Thu, 11 Apr 2024 12:21:16 +0000 From: Inochi Amaoto To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: sophgo: use real clock for sdhci Date: Thu, 11 Apr 2024 20:21:35 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 X-TMN: [Hjz5IfWffUx3hxm4nKiDE1XoRhgcmDzWsQ/YzfUSQQI=] X-ClientProxiedBy: SI1PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:1f6::14) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240411122136.793528-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|IA1PR20MB6245:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bfb4f37-466a-4655-7a94-08dc5a21e295 X-MS-Exchange-SLBlob-MailProps: dx7TrgQSB6fRphPAZkDOXKiJlf+rSXUByCx+8qhstiUj7tIcA51KpS2vy+RYr2SJtTaMKCoFvvpiBx1+ho1eJ9f1IMrjVvh20KY2k7vU6fWeVtpHAhEvlEMmTTAOGbZZkyMV7RMGCxzj3UjULp1UgePoYHN9SIOGfFTivKyELTj+vdj08VrjLu1q8XM3Uyz1Rvhn4+wQIyTdxX7uK7rsBcfe7VTmL5GojqIvjgXGHynhg7355Gpl9D4wIw/RY/2iHdSg98SRYPYwY1K5i2Py3mSZ7fhxSSeVo5L9TuZqrvLmMX/Wie3E55DyAwYMwHW9uisQXZZz29Pib0mc3ajl/+BoDO3yNl3IoTPkJ0V1/wAgTy4/OEu5FMMRYpXOQ42KhpULqjL7Ts7AAkV80/zP7Y3QBHf0C/r2tU9QhvmTlkaQBsPX/jVWy3+IHhhaXsTs9LM5cFcpPuWVZ0TuIfWEyaK6AkDxJc7VvEpBMEZHTt2m6pdpHpf5z1/3DQQA3yipvXRynlCJvB/oUArUg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CZk1NnfmG9A2x39qyHYGto91dkv19cUsb8GAdIhQ0lzc/xVrE3QnSYvIoV/FIZAIHGWtzWi5zwtLOuoiuApAnJnmut9gtfInZDapzAIenBUvZ/V9R+/BRgYI4hiMXkvzZ57M6 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bfb4f37-466a-4655-7a94-08dc5a21e295 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 12:21:16.3195 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR20MB6245 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_052122_959593_3645C2F7 X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org As the clk patch is merged, Use real clocks for sdhci0. Signed-off-by: Inochi Amaoto Reviewed-by: Chen Wang --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) -- 2.44.0 diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index 75d0c57f4ffb..891932ae470f 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -47,13 +47,6 @@ osc: oscillator { #clock-cells = <0>; }; - sdhci_clk: sdhci-clock { - compatible = "fixed-clock"; - clock-frequency = <375000000>; - clock-output-names = "sdhci_clk"; - #clock-cells = <0>; - }; - soc { compatible = "simple-bus"; interrupt-parent = <&plic>; @@ -298,8 +291,9 @@ sdhci0: mmc@4310000 { compatible = "sophgo,cv1800b-dwcmshc"; reg = <0x4310000 0x1000>; interrupts = <36 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&sdhci_clk>; - clock-names = "core"; + clocks = <&clk CLK_AXI4_SD0>, + <&clk CLK_SD0>; + clock-names = "core", "bus"; status = "disabled"; };