Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp299566lqh; Mon, 6 May 2024 22:01:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ57OImKT+3st24xSt74hbENk0KB+i1xLB36qNc6+ZmC/eGThJyT+jgWhpP0I1pNLjQMJKYDTX9EK/3w1IMcV7EWcCWlXcZW0WKzBmZw== X-Google-Smtp-Source: AGHT+IGAkqLWBfdQlZbozpKhvtKSpnXoXYqlOLmeHWDyEJzC9BtWMDkxS5EKXF3YaZhDlyFZiAQ5 X-Received: by 2002:a05:6a00:2e0f:b0:6ed:879:f533 with SMTP id fc15-20020a056a002e0f00b006ed0879f533mr12930801pfb.26.1715058065989; Mon, 06 May 2024 22:01:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715058065; cv=pass; d=google.com; s=arc-20160816; b=WWkMQum8CYK0NpMoAIwJ9AHsQLNH3pbMTm8zYO/EUSolnuAtsSbQpRF2oVX6p3CiR/ ngH5BZBvbqItOCAL+Z8wxUnB58EKKUn0e44QX7kjz7nqsgd3h/d0yhgC93/rMglCXVrx B/fTBOnOd14/V/MJo16hCsEdiyjNzrDoGwDVyWCJffVCglLAlbdsmvRAbNi+/syFw70j UPPLXjOzR0kZL+1xtlbxQIejZDKVsQVowOjLMbQxOnc0P2wIyrGN1I3aDT1arh7yutiS qLP9d1BQTYFjz3A9TSev4gKi9SR+sgDlw7BpflWPskL4HvejgtAGw4tGbbh//PPd3lQo lO7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=ja0fFObIKrPPvbAU5aagsD2alb53+cRkDTlbcB+NuL8=; fh=vcORq5IsUiIri0ceo2dkX6Hg/6TzhZIDD5c6ngT4JpQ=; b=QCI/A4kckN95snQ/6sFFf+7p/o8yZg4HLVPDudvtfogOLOYyAwFlarnKOjEBYdnN22 2Dr/swx8XK9kIzEtxiFZ5mWOJZ9+KwVL6F5pXoxiVtA1dmAqb0ZM4LpwgqDIW/n0y937 sjXiUc3QHrZiSgQdNdxboVtZi6vXNDtIAwYq02Tqc4dB5RIpNZY0uZrbiwLYh97ymm7v LgJwNu4I/OubSwi9q0kVOa5zhODKobIev2K0tlRswkekqOcGG0gH2UIBOxFljmssUedq YyfJ5bLmoLndzqa2FEaHKcEgrPlLoVa7vasfHqtJHlGGPLRmHdefHryLCP4xbhYjxMgL OkEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=baibC2nB; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-170670-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170670-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p26-20020a056a000a1a00b006ee2557baecsi9798956pfh.282.2024.05.06.22.01.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 22:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170670-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=baibC2nB; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-170670-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170670-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BCC812825F4 for ; Tue, 7 May 2024 04:59:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6D767603A; Tue, 7 May 2024 04:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="baibC2nB" Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 596726EB6E for ; Tue, 7 May 2024 04:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057859; cv=none; b=UTMCD8tBV6CQ3iyx/b/uo5YRykMC7b4m7zj+GF4kk9lbY7LRV07b18W1CXFrosiTA1Qq91KUzC33FtvUfKKECY+dUFLeRrnpJpCiyrrM7Drww2/HvAPtN3SflkHpLzC4yOekhQ58K6owhqpiyR3Kt8BtR7ZoRdpl5ezUU32yhbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057859; c=relaxed/simple; bh=OUFR3qpXcXj7TePvrKOEf7IaTgZBtQzS5Gcb0JSxYYc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JhDpQwMIvNKFB4d+4FQb+bPtmdXATJZ8U7m5YRxma4H3cOxz8Dv3vMkO91Rrg9m51uz6wDUPIwz4Mj1rVMux+sRXwPEahq9QH4hq7f7WTW/kUzGY/2UPHjPu49MvMgB4ZlensA0tHmkG6I9rFtiNTAKioWEUn/3UEGFGY7kqoUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=baibC2nB; arc=none smtp.client-ip=209.85.161.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5aa20adda1dso1911811eaf.1 for ; Mon, 06 May 2024 21:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1715057856; x=1715662656; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ja0fFObIKrPPvbAU5aagsD2alb53+cRkDTlbcB+NuL8=; b=baibC2nBlF1ga6nvLwEJTJHjMXkSog88arQJkUsK4p82Ew/2XeRIWBBjP8QE4i5aMm Je3HTsGaegI2c75nrbiRlvECeFUywaQ3RmtUbpBMs0UZ5gJIFQBN5CzbY+meMLvIWq8W mmc5fhSMRFImTd09RwD4FzdcYkKarrUfwUtMC0+ztlQSClehgPMI8EAFTUFqHVe+lfN4 EM7CXY4K56fKPzBZl7bcZOjnfnTIoM0JZkVst0+KE+v87TXV2V3YoFqIhrhCC+BFrfsy qxFJ/fClbiwxY1iWWrhPZeKYZKM6H86ml79gadFzhP/A6eeDQ7VyXgv5Rf/ij4/BDOrr o6Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715057856; x=1715662656; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ja0fFObIKrPPvbAU5aagsD2alb53+cRkDTlbcB+NuL8=; b=ldhG8Zj7zNsCx/QFTqrW6Q8pKGAb9piAJk8tkwAhmGUrSaB4krDXTWu/cqOVK3PGRS l+xw80hHt82Te0GOsVQbZ0XTDix84mnxoaLyn/bI3HBWchuxcYx6YuNB8SGYwR28+wof j2ZD7i67ezFE06HvPoP6IWrsif1YOCoCvHFiyJMJoOECaMNgzgm97J5+Kamt0Karg+HB HMH4IZQWD97gyIRiqWhbrlvuDubxE9ho1xwxv4UZC26sd/NmO2XnhMSbb1MbuU0z+PoE D6vzYLDvx9sCqn7sr2dJa2XYvm+fKwzaQx6bpB7NfK+foMjyST6H7o7Ode22s3vfVkmr cWRQ== X-Forwarded-Encrypted: i=1; AJvYcCXxnDFZw0yCwBaIWQ5tIV8R5QbpKnD6jOla5UiBxkwLfDZDAT4Shh3xDap0ilfTqlggKeMhwqtkT60lC9QkeSppRua2skseyCzBg4H0 X-Gm-Message-State: AOJu0YwifpBlVbPS0FBB8GXiYEh5fJGGg4d+HIE6fdrlprtKVLDbQj+Q xpBO2VVDJYCrLVbYR2WQi4aJfCbOVbcD+JCr1kGS9nnoYQo0blcs0KFy3R5o4xk= X-Received: by 2002:a05:6359:f8a:b0:18a:8e58:b992 with SMTP id hx10-20020a0563590f8a00b0018a8e58b992mr20617603rwb.28.1715057856455; Mon, 06 May 2024 21:57:36 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1802:170:6870:7119:e255:c3a0]) by smtp.gmail.com with ESMTPSA id o14-20020a637e4e000000b005f80aced5f3sm8987249pgn.0.2024.05.06.21.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:57:36 -0700 (PDT) From: Drew Fustini Date: Mon, 06 May 2024 21:55:19 -0700 Subject: [PATCH RFC v3 6/7] riscv: dts: thead: change TH1520 mmc nodes to use clock controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240506-th1520-clk-v3-6-085a18a23a7f@tenstorrent.com> References: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> In-Reply-To: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Yangtao Li , Thomas Bonnefille , Emil Renner Berthing , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715057849; l=2852; i=dfustini@tenstorrent.com; s=20230430; h=from:subject:message-id; bh=OUFR3qpXcXj7TePvrKOEf7IaTgZBtQzS5Gcb0JSxYYc=; b=iNarSOopWZV22F1WTSuygcpwGBUXFmpXfraZzMxIY0BKPrRyPthQNT34GelMdfKFz4c4M4PLj e+PrCy1ghpfDUt8tgw2ezv2sWsYMcU8xsnYX8yVasA66jKVcOZZeh0f X-Developer-Key: i=dfustini@tenstorrent.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Change the clock property in the TH1520 mmc controller nodes to a clock provided by AP_SYS clock controller. Remove sdhci fixed clock reference from BeagleV Ahead and LPI4a dts. Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 4 ---- arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi | 4 ---- arch/riscv/boot/dts/thead/th1520.dtsi | 13 +++---------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index 164afd18b56c..55f1ed0cb433 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -48,10 +48,6 @@ &apb_clk { clock-frequency = <62500000>; }; -&sdhci_clk { - clock-frequency = <198000000>; -}; - &dmac0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index 1b7ede570994..762eceb415f8 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -29,10 +29,6 @@ &apb_clk { clock-frequency = <62500000>; }; -&sdhci_clk { - clock-frequency = <198000000>; -}; - &dmac0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index 963c786f3c53..cf2141c3976f 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -141,13 +141,6 @@ apb_clk: apb-clk-clock { #clock-cells = <0>; }; - sdhci_clk: sdhci-clock { - compatible = "fixed-clock"; - clock-frequency = <198000000>; - clock-output-names = "sdhci_clk"; - #clock-cells = <0>; - }; - soc { compatible = "simple-bus"; interrupt-parent = <&plic>; @@ -201,7 +194,7 @@ emmc: mmc@ffe7080000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe7080000 0x0 0x10000>; interrupts = <62 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&sdhci_clk>; + clocks = <&clk CLK_EMMC_SDIO>; clock-names = "core"; status = "disabled"; }; @@ -210,7 +203,7 @@ sdio0: mmc@ffe7090000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe7090000 0x0 0x10000>; interrupts = <64 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&sdhci_clk>; + clocks = <&clk CLK_EMMC_SDIO>; clock-names = "core"; status = "disabled"; }; @@ -219,7 +212,7 @@ sdio1: mmc@ffe70a0000 { compatible = "thead,th1520-dwcmshc"; reg = <0xff 0xe70a0000 0x0 0x10000>; interrupts = <71 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&sdhci_clk>; + clocks = <&clk CLK_EMMC_SDIO>; clock-names = "core"; status = "disabled"; }; -- 2.34.1