From: "Jaehoon Chung" <jh80.chung@samsung.com>
To: <bigunclemax@gmail.com>
Cc: "'Rick Chen'" <rick@andestech.com>,
"'Leo'" <ycliang@andestech.com>,
"'Tom Rini'" <trini@konsulko.com>, "'Wei Fu'" <wefu@redhat.com>,
"'Yixun Lan'" <dlan@gentoo.org>, "'Peng Fan'" <peng.fan@nxp.com>,
"'Ilias Apalodimas'" <ilias.apalodimas@linaro.org>,
"'Simon Glass'" <sjg@chromium.org>,
"'Jerome Forissier'" <jerome.forissier@linaro.org>,
"'Sughosh Ganu'" <sughosh.ganu@linaro.org>,
"'Greg Malysa'" <greg.malysa@timesys.com>,
"'Linus Walleij'" <linus.walleij@linaro.org>,
"'Raymond Mao'" <raymond.mao@linaro.org>,
"'Heinrich Schuchardt'" <xypron.glpk@gmx.de>,
"'Kongyang Liu'" <seashell11234455@gmail.com>,
"'Marek Vasut'" <marek.vasut+renesas@mailbox.org>,
"'Jonas Karlman'" <jonas@kwiboo.se>,
"'Wei Liang Lim'" <weiliang.lim@starfivetech.com>,
"'Kuan Lim Lee'" <kuanlim.lee@starfivetech.com>,
<u-boot@lists.denx.de>
Subject: RE: [PATCH v1 2/3] riscv: dts: t-head: Add sdhci and emmc nodes
Date: Wed, 4 Dec 2024 09:18:34 +0900 [thread overview]
Message-ID: <000701db45e2$0e92aaa0$2bb7ffe0$@samsung.com> (raw)
In-Reply-To: <20241201150704.44462-3-bigunclemax@gmail.com>
> -----Original Message-----
> From: bigunclemax@gmail.com <bigunclemax@gmail.com>
> Sent: Monday, December 2, 2024 12:07 AM
>
> From: Maksim Kiselev <bigunclemax@gmail.com>
>
> Add SDHCI and EMMC controlles nodes on TH-1520 SoC. And enable them for
> Lichee module 4A.
>
> Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung>
Best Regards,
Jaehoon Chung
> ---
> arch/riscv/dts/th1520-lichee-module-4a.dtsi | 18 +++++++++++
> arch/riscv/dts/th1520.dtsi | 34 +++++++++++++++++++++
> 2 files changed, 52 insertions(+)
>
> diff --git a/arch/riscv/dts/th1520-lichee-module-4a.dtsi b/arch/riscv/dts/th1520-lichee-module-4a.dtsi
> index dc00e3dfa0..86a81bdcf7 100644
> --- a/arch/riscv/dts/th1520-lichee-module-4a.dtsi
> +++ b/arch/riscv/dts/th1520-lichee-module-4a.dtsi
> @@ -32,3 +32,21 @@
> &uart_sclk {
> clock-frequency = <100000000>;
> };
> +
> +&emmc {
> + bus-width = <8>;
> + max-frequency = <198000000>;
> + mmc-ddr-1_8v;
> + mmc-hs400-1_8v;
> + mmc-hs400-enhanced-strobe;
> + non-removable;
> + no-sdio;
> + no-sd;
> + status = "okay";
> +};
> +
> +&sdio0 {
> + bus-width = <4>;
> + max-frequency = <198000000>;
> + status = "okay";
> +};
> diff --git a/arch/riscv/dts/th1520.dtsi b/arch/riscv/dts/th1520.dtsi
> index d68c446a6b..9378de89c5 100644
> --- a/arch/riscv/dts/th1520.dtsi
> +++ b/arch/riscv/dts/th1520.dtsi
> @@ -141,6 +141,13 @@
> #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>;
> @@ -206,6 +213,33 @@
> status = "disabled";
> };
>
> + emmc: mmc@ffe7080000 {
> + compatible = "thead,th1520-dwcmshc";
> + reg = <0xff 0xe7080000 0x0 0x10000>;
> + interrupts = <62 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&sdhci_clk>;
> + clock-names = "core";
> + status = "disabled";
> + };
> +
> + sdio0: mmc@ffe7090000 {
> + compatible = "thead,th1520-dwcmshc";
> + reg = <0xff 0xe7090000 0x0 0x10000>;
> + interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&sdhci_clk>;
> + clock-names = "core";
> + status = "disabled";
> + };
> +
> + sdio1: mmc@ffe70a0000 {
> + compatible = "thead,th1520-dwcmshc";
> + reg = <0xff 0xe70a0000 0x0 0x10000>;
> + interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&sdhci_clk>;
> + clock-names = "core";
> + status = "disabled";
> + };
> +
> uart1: serial@ffe7f00000 {
> compatible = "snps,dw-apb-uart";
> reg = <0xff 0xe7f00000 0x0 0x100>;
> --
> 2.45.2
next prev parent reply other threads:[~2024-12-04 0:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-01 15:06 [PATCH v1 0/3] Add sdhci driver support for TH1520 SoC bigunclemax
2024-12-01 15:06 ` [PATCH v1 1/3] mmc: snps_sdhci: " bigunclemax
2024-12-04 23:36 ` Jaehoon Chung
2024-12-09 10:15 ` Maxim Kiselev
2024-12-01 15:06 ` [PATCH v1 2/3] riscv: dts: t-head: Add sdhci and emmc nodes bigunclemax
2024-12-04 0:18 ` Jaehoon Chung [this message]
2024-12-01 15:06 ` [PATCH v1 3/3] configs: th1520_lpi4a: enable mmc controller support bigunclemax
2024-12-04 0:26 ` Jaehoon Chung
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='000701db45e2$0e92aaa0$2bb7ffe0$@samsung.com' \
--to=jh80.chung@samsung.com \
--cc=bigunclemax@gmail.com \
--cc=dlan@gentoo.org \
--cc=greg.malysa@timesys.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=jonas@kwiboo.se \
--cc=kuanlim.lee@starfivetech.com \
--cc=linus.walleij@linaro.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=peng.fan@nxp.com \
--cc=raymond.mao@linaro.org \
--cc=rick@andestech.com \
--cc=seashell11234455@gmail.com \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wefu@redhat.com \
--cc=weiliang.lim@starfivetech.com \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox