All of lore.kernel.org
 help / color / mirror / Atom feed
From: Drew Fustini <dfustini@baylibre.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jisheng Zhang <jszhang@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Guo Ren <guoren@kernel.org>, Fu Wei <wefu@redhat.com>,
	Paul Walmsley <paul.walmsley@sifive.com>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	Conor Dooley <conor@kernel.org>
Cc: Robert Nelson <robertcnelson@beagleboard.org>,
	Jason Kridner <jkridner@beagleboard.org>,
	Xi Ruoyao <xry111@xry111.site>, Han Gao <gaohan@iscas.ac.cn>,
	Icenowy Zheng <uwu@icenowy.me>,
	linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
	Drew Fustini <dfustini@baylibre.com>
Subject: [PATCH v2 6/7] riscv: dts: thead: Enable BeagleV Ahead eMMC controller
Date: Tue, 17 Oct 2023 13:43:52 -0700	[thread overview]
Message-ID: <20231017-th1520-mmc-v2-6-4678c8cc4048@baylibre.com> (raw)
In-Reply-To: <20231017-th1520-mmc-v2-0-4678c8cc4048@baylibre.com>

Add properties to the emmc node and enable it and set the frequency for
the sdhci clock.

Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
index 70e8042c8304..bf55319ba950 100644
--- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
+++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
@@ -52,6 +52,10 @@ &uart_sclk {
 	clock-frequency = <100000000>;
 };
 
+&sdhci_clk {
+	clock-frequency = <198000000>;
+};
+
 &dmac0 {
 	status = "okay";
 };
@@ -59,3 +63,13 @@ &dmac0 {
 &uart0 {
 	status = "okay";
 };
+
+&mmc0 {
+	bus-width = <8>;
+	max-frequency = <198000000>;
+	mmc-hs400-1_8v;
+	non-removable;
+	no-sdio;
+	no-sd;
+	status = "okay";
+};

-- 
2.34.1


WARNING: multiple messages have this Message-ID (diff)
From: Drew Fustini <dfustini@baylibre.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	 Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Jisheng Zhang <jszhang@kernel.org>,
	 Adrian Hunter <adrian.hunter@intel.com>,
	Guo Ren <guoren@kernel.org>,  Fu Wei <wefu@redhat.com>,
	Paul Walmsley <paul.walmsley@sifive.com>,
	 Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	 Conor Dooley <conor@kernel.org>
Cc: devicetree@vger.kernel.org, Drew Fustini <dfustini@baylibre.com>,
	Han Gao <gaohan@iscas.ac.cn>,
	linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
	Robert Nelson <robertcnelson@beagleboard.org>,
	Jason Kridner <jkridner@beagleboard.org>,
	Xi Ruoyao <xry111@xry111.site>,
	linux-riscv@lists.infradead.org
Subject: [PATCH v2 6/7] riscv: dts: thead: Enable BeagleV Ahead eMMC controller
Date: Tue, 17 Oct 2023 13:43:52 -0700	[thread overview]
Message-ID: <20231017-th1520-mmc-v2-6-4678c8cc4048@baylibre.com> (raw)
In-Reply-To: <20231017-th1520-mmc-v2-0-4678c8cc4048@baylibre.com>

Add properties to the emmc node and enable it and set the frequency for
the sdhci clock.

Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
index 70e8042c8304..bf55319ba950 100644
--- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
+++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
@@ -52,6 +52,10 @@ &uart_sclk {
 	clock-frequency = <100000000>;
 };
 
+&sdhci_clk {
+	clock-frequency = <198000000>;
+};
+
 &dmac0 {
 	status = "okay";
 };
@@ -59,3 +63,13 @@ &dmac0 {
 &uart0 {
 	status = "okay";
 };
+
+&mmc0 {
+	bus-width = <8>;
+	max-frequency = <198000000>;
+	mmc-hs400-1_8v;
+	non-removable;
+	no-sdio;
+	no-sd;
+	status = "okay";
+};

-- 
2.34.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  parent reply	other threads:[~2023-10-17 20:45 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-17 20:43 [PATCH v2 0/7] RISC-V: Add eMMC support for TH1520 boards Drew Fustini
2023-10-17 20:43 ` Drew Fustini
2023-10-17 20:43 ` [PATCH v2 1/7] dt-bindings: mmc: sdhci-of-dwcmhsc: Add T-Head TH1520 support Drew Fustini
2023-10-17 20:43   ` Drew Fustini
2023-10-18  6:25   ` Krzysztof Kozlowski
2023-10-18  6:25     ` Krzysztof Kozlowski
2023-10-19  8:34   ` Guo Ren
2023-10-19  8:34     ` Guo Ren
2023-10-17 20:43 ` [PATCH v2 2/7] mmc: sdhci: add __sdhci_execute_tuning() to header Drew Fustini
2023-10-17 20:43   ` Drew Fustini
2023-10-17 20:43 ` [PATCH v2 3/7] mmc: sdhci-of-dwcmshc: Add support for T-Head TH1520 Drew Fustini
2023-10-17 20:43   ` Drew Fustini
2023-10-18 15:46   ` Jisheng Zhang
2023-10-18 15:46     ` Jisheng Zhang
2023-10-18 18:27     ` Drew Fustini
2023-10-18 18:27       ` Drew Fustini
2023-10-18 23:24       ` Jisheng Zhang
2023-10-18 23:24         ` Jisheng Zhang
2023-10-20 12:31   ` Adrian Hunter
2023-10-20 12:31     ` Adrian Hunter
2023-10-17 20:43 ` [PATCH v2 4/7] riscv: defconfig: Enable mmc and dma drivers " Drew Fustini
2023-10-17 20:43   ` Drew Fustini
2023-10-19  8:37   ` Guo Ren
2023-10-19  8:37     ` Guo Ren
2023-10-17 20:43 ` [PATCH v2 5/7] riscv: dts: thead: Add TH1520 mmc controller and sdhci clock Drew Fustini
2023-10-17 20:43   ` Drew Fustini
2023-10-17 20:43 ` Drew Fustini [this message]
2023-10-17 20:43   ` [PATCH v2 6/7] riscv: dts: thead: Enable BeagleV Ahead eMMC controller Drew Fustini
2023-10-18 13:57   ` Conor Dooley
2023-10-18 13:57     ` Conor Dooley
2023-10-18 17:59     ` Drew Fustini
2023-10-18 17:59       ` Drew Fustini
2023-10-17 20:43 ` [PATCH v2 7/7] riscv: dts: thead: Enable LicheePi 4A " Drew Fustini
2023-10-17 20:43   ` Drew Fustini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231017-th1520-mmc-v2-6-4678c8cc4048@baylibre.com \
    --to=dfustini@baylibre.com \
    --cc=adrian.hunter@intel.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gaohan@iscas.ac.cn \
    --cc=guoren@kernel.org \
    --cc=jkridner@beagleboard.org \
    --cc=jszhang@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=robertcnelson@beagleboard.org \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=uwu@icenowy.me \
    --cc=wefu@redhat.com \
    --cc=xry111@xry111.site \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.