From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6320AC27C5E for ; Tue, 11 Jun 2024 09:42:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C34888640; Tue, 11 Jun 2024 11:42:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZpFzv7JY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46ACC88638; Tue, 11 Jun 2024 11:42:09 +0200 (CEST) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0F60188619 for ; Tue, 11 Jun 2024 11:42:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seashell11234455@gmail.com Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1f64ecb1766so41380205ad.1 for ; Tue, 11 Jun 2024 02:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718098924; x=1718703724; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=udFZv7R5m8JcvfX84MOWyXGUYZhGTj5nPhOhqf6CvcE=; b=ZpFzv7JYcEcNqCpaUOC7VjENQ6GUCX1ArJHSR3jvq1RhXYrT8xC1caYrzWq+nT0/BF 8qAtv2PlJLWIPmpczl+CgkDtqULAsRJWPh2/uZk0lA7EA+6+2yM3GNNMt9tNodfdQ2AO gBRsVWbiMTYYaTiPi4EJeU777WGoi+sIwzBNByRWcAFjieeDttaDdmxgsfjQgx4ScaLC q9pul0jnLLw3NP73XC2nAye+mMdkxCP4WCTPSXEpR26CWS1SF2PrcuAYtgtGPgPgzQnF pMg4QHkmTIu3tv4rf9RmI+XzNFNGj5OtAw4WJF7F1L7q0l4CnTbQczDB9swwZHXaN2r7 qWMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718098924; x=1718703724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=udFZv7R5m8JcvfX84MOWyXGUYZhGTj5nPhOhqf6CvcE=; b=gAWfM+AauPCMdNzH5wsuaQNwn/VyxbQ4fo+XwjrKxLQNcAKDZkQImppaILvr8FE+oQ mPNGma9ZpMY6rhpvCWOjJDo6lltUW/Das0RRb/FVO2ir4yXODJTa1Kw1DCps8jd8Rxsl 6LDaaSwYouAGJz/8Vwxy5iy9pFBLXEU3LpmPGzjryrwEzzZEoMIVMWJTLD41Lb621wyr kASwAaIGvlhcF1XFEfQsaM/F9bTvjVtmXbGcr8lRBoQc7gS1Gm85HmdF7Dzj5Oifjfyo 6+5dyvpkWBswZWnHQSOimFH7cbQ0e/zQyVrR+7hwNWwe3ezrLsZc++WIQE1yqd069koF vAtw== X-Gm-Message-State: AOJu0Yw5HTi2sHqBstkYNV0c6ugUIha5i3i6RJ5fBLJyYVPxwwjrkwvJ slhVgiBdXrewMJp6rW2bvhOvtfKtJ5Gg24AMmwWZ5Z7+eIqhgMt9FH1UaHLv X-Google-Smtp-Source: AGHT+IEL487TtKXE9OFuADkc6bVn9pNfwWD3QdjuaXTPbF+t6tA7h3lKgjrUc9MeHX0S2Dj71S4n6Q== X-Received: by 2002:a17:902:da84:b0:1f7:1b97:e91f with SMTP id d9443c01a7336-1f71b97f220mr37265955ad.26.1718098924302; Tue, 11 Jun 2024 02:42:04 -0700 (PDT) Received: from localhost.localdomain ([117.135.90.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6d859ea3csm76873555ad.178.2024.06.11.02.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:42:03 -0700 (PDT) From: Kongyang Liu To: u-boot@lists.denx.de Cc: Leo , Rick Chen , Tom Rini Subject: [PATCH v2 4/4] riscv: dts: sophgo: Replace device clocks with real clocks. Date: Tue, 11 Jun 2024 17:41:16 +0800 Message-ID: <20240611094134.18868-5-seashell11234455@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240611094134.18868-1-seashell11234455@gmail.com> References: <20240611094134.18868-1-seashell11234455@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Replace device clocks with real clocks from the clock controller, and remove dummy clocks. Signed-off-by: Kongyang Liu --- (no changes since v1) arch/riscv/dts/cv18xx.dtsi | 40 +++++++++++++++----------------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/arch/riscv/dts/cv18xx.dtsi b/arch/riscv/dts/cv18xx.dtsi index 4b0143450e..8a7386b76e 100644 --- a/arch/riscv/dts/cv18xx.dtsi +++ b/arch/riscv/dts/cv18xx.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { #address-cells = <1>; @@ -45,13 +46,6 @@ #clock-cells = <0>; }; - sdhci_clk: sdhci-clock { - compatible = "fixed-clock"; - clock-frequency = <375000000>; - clock-output-names = "sdhci_clk"; - #clock-cells = <0>; - }; - eth_csrclk: eth-csrclk { compatible = "fixed-clock"; clock-frequency = <250000000>; @@ -66,13 +60,6 @@ #clock-cells = <0x0>; }; - spif_clk: spi-flash-clock { - compatible = "fixed-clock"; - clock-frequency = <300000000>; - clock-output-names = "spif_clk"; - #clock-cells = <0>; - }; - soc { compatible = "simple-bus"; interrupt-parent = <&plic>; @@ -163,8 +150,8 @@ compatible = "sophgo,cv1800b-dwmac"; reg = <0x04070000 0x10000>; interrupts = <31 IRQ_TYPE_LEVEL_HIGH>; - clocks = <ð_csrclk>, <ð_ptpclk>; - clock-names = "stmmaceth", "ptp_ref"; + clocks = <&clk CLK_ETH0_500M>, <&clk CLK_AXI4_ETH0>; + clock-names = "stmmaceth", "pclk"; status = "disabled"; }; @@ -172,7 +159,8 @@ compatible = "snps,dw-apb-uart"; reg = <0x04140000 0x100>; interrupts = <44 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART0>, <&clk CLK_APB_UART0>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -182,7 +170,8 @@ compatible = "snps,dw-apb-uart"; reg = <0x04150000 0x100>; interrupts = <45 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART4>, <&clk CLK_APB_UART4>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -192,7 +181,8 @@ compatible = "snps,dw-apb-uart"; reg = <0x04160000 0x100>; interrupts = <46 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART2>, <&clk CLK_APB_UART2>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -202,7 +192,8 @@ compatible = "snps,dw-apb-uart"; reg = <0x04170000 0x100>; interrupts = <47 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART3>, <&clk CLK_APB_UART3>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -212,7 +203,8 @@ compatible = "snps,dw-apb-uart"; reg = <0x041c0000 0x100>; interrupts = <48 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART4>, <&clk CLK_APB_UART4>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -222,8 +214,8 @@ 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"; }; @@ -232,7 +224,7 @@ reg = <0x10000000 0x10000000>; #address-cells = <1>; #size-cells = <0>; - clocks = <&spif_clk>; + clocks = <&clk CLK_AHB_SF>; interrupts = <95 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; -- 2.41.0