From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chen Wang <unicornxw@gmail.com>,
adrian.hunter@intel.com, aou@eecs.berkeley.edu,
conor+dt@kernel.org, guoren@kernel.org, inochiama@outlook.com,
jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org,
palmer@dabbelt.com, paul.walmsley@sifive.com, robh@kernel.org,
ulf.hansson@linaro.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org,
linux-riscv@lists.infradead.org, chao.wei@sophgo.com,
haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com,
tingzhu.wang@sophgo.com
Cc: Chen Wang <unicorn_wang@outlook.com>
Subject: Re: [PATCH v4 4/4] riscv: dts: add mmc controllers for Sophgo SG2042 SoC
Date: Tue, 18 Jun 2024 11:40:48 +0200 [thread overview]
Message-ID: <bb6036e2-613c-4d36-bcbc-3a407e3c727b@linaro.org> (raw)
In-Reply-To: <e2d3b19e06fa29116b8032addc70c8dc1ec3866e.1718697954.git.unicorn_wang@outlook.com>
On 18/06/2024 10:39, Chen Wang wrote:
> From: Chen Wang <unicorn_wang@outlook.com>
>
> SG2042 has two MMC controller, one for emmc, another for sd-card.
>
> Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
> ---
> .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 17 ++++++++++
> arch/riscv/boot/dts/sophgo/sg2042.dtsi | 32 +++++++++++++++++++
> 2 files changed, 49 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> index 49b4b9c2c101..164db23586e0 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> @@ -14,6 +14,23 @@ chosen {
> };
> };
>
> +&emmc {
> + bus-width = <4>;
> + no-sdio;
> + no-sd;
> + non-removable;
> + wp-inverted;
> + status = "okay";
> +};
> +
> +&sd {
> + bus-width = <4>;
> + no-sdio;
> + no-mmc;
> + wp-inverted;
> + status = "okay";
> +};
> +
> &uart0 {
> status = "okay";
> };
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> index 81fda312f988..bfdfd6f32912 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> @@ -346,5 +346,37 @@ uart0: serial@7040000000 {
> resets = <&rstgen RST_UART0>;
> status = "disabled";
> };
> +
> + emmc: mmc@704002a000 {
> + compatible = "sophgo,sg2042-dwcmshc";
> + reg = <0x70 0x4002A000 0x0 0x1000>;
Lowercase hex.
> + interrupt-parent = <&intc>;
> + interrupts = <134 IRQ_TYPE_LEVEL_HIGH>;
> + clocks =
Odd wrapping. Don't. See DTS coding style.
> + <&clkgen GATE_CLK_AXI_EMMC>,
> + <&clkgen GATE_CLK_100K_EMMC>,
> + <&clkgen GATE_CLK_EMMC_100M>;
> + clock-names =
Ditto
> + "core",
> + "timer",
> + "card";
> + status = "disabled";
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-06-18 9:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 8:37 [PATCH v4 0/4] mmc: sdhci-of-dwcmshc: Add Sophgo SG2042 support Chen Wang
2024-06-18 8:38 ` [PATCH v4 1/4] mmc: sdhci-of-dwcmshc: add callback functions for dwcmshc Chen Wang
2024-06-26 19:13 ` Adrian Hunter
2024-07-17 8:05 ` Chen Wang
2024-06-18 8:38 ` [PATCH v4 2/4] dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2042 support Chen Wang
2024-06-18 9:39 ` Krzysztof Kozlowski
2024-07-17 8:01 ` Chen Wang
2024-07-17 13:55 ` Krzysztof Kozlowski
2024-06-20 16:15 ` Jisheng Zhang
2024-06-24 6:18 ` Chen Wang
2024-06-18 8:38 ` [PATCH v4 3/4] mmc: sdhci-of-dwcmshc: Add support for Sophgo SG2042 Chen Wang
2024-06-18 8:39 ` [PATCH v4 4/4] riscv: dts: add mmc controllers for Sophgo SG2042 SoC Chen Wang
2024-06-18 9:40 ` Krzysztof Kozlowski [this message]
2024-06-19 9:59 ` Conor Dooley
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=bb6036e2-613c-4d36-bcbc-3a407e3c727b@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=adrian.hunter@intel.com \
--cc=aou@eecs.berkeley.edu \
--cc=chao.wei@sophgo.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=guoren@kernel.org \
--cc=haijiao.liu@sophgo.com \
--cc=inochiama@outlook.com \
--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=robh@kernel.org \
--cc=tingzhu.wang@sophgo.com \
--cc=ulf.hansson@linaro.org \
--cc=unicorn_wang@outlook.com \
--cc=unicornxw@gmail.com \
--cc=xiaoguang.xing@sophgo.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;
as well as URLs for NNTP newsgroup(s).