]> Git Repo - J-linux.git/commitdiff
riscv: dts: sophgo: Add emmc support for Huashan Pi
authorInochi Amaoto <[email protected]>
Fri, 25 Oct 2024 11:29:00 +0000 (19:29 +0800)
committerInochi Amaoto <[email protected]>
Sat, 2 Nov 2024 11:19:08 +0000 (19:19 +0800)
Add emmc node configuration for Huashan Pi.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Inochi Amaoto <[email protected]>
Signed-off-by: Chen Wang <[email protected]>
arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts
arch/riscv/boot/dts/sophgo/cv1812h.dtsi
arch/riscv/boot/dts/sophgo/cv181x.dtsi [new file with mode: 0644]
arch/riscv/boot/dts/sophgo/sg2002.dtsi

index 4ea27cd357dc3896e09033cdfbb963c8ab1380f3..26b57e15adc123281a990f142ccef30bc3611ea8 100644 (file)
        clock-frequency = <25000000>;
 };
 
+&emmc {
+       status = "okay";
+       bus-width = <4>;
+       max-frequency = <200000000>;
+       mmc-ddr-1_8v;
+       mmc-ddr-3_3v;
+       mmc-hs200-1_8v;
+       no-sd;
+       no-sdio;
+       non-removable;
+};
+
 &sdhci0 {
        status = "okay";
        bus-width = <4>;
index 815114db54edd7a056948a0a99405481449f383e..8a1b95c5116bf60eb3082c80b114acb17fc48257 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/pinctrl/pinctrl-cv1812h.h>
 #include "cv18xx.dtsi"
+#include "cv181x.dtsi"
 
 / {
        compatible = "sophgo,cv1812h";
diff --git a/arch/riscv/boot/dts/sophgo/cv181x.dtsi b/arch/riscv/boot/dts/sophgo/cv181x.dtsi
new file mode 100644 (file)
index 0000000..5fd14dd
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Inochi Amaoto <[email protected]>
+ */
+
+#include <dt-bindings/clock/sophgo,cv1800.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+       soc {
+               emmc: mmc@4300000 {
+                       compatible = "sophgo,cv1800b-dwcmshc";
+                       reg = <0x4300000 0x1000>;
+                       interrupts = <34 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk CLK_AXI4_EMMC>,
+                                <&clk CLK_EMMC>;
+                       clock-names = "core", "bus";
+                       status = "disabled";
+               };
+       };
+};
index 6616f578d190f7aa2a82b233fa9c55267b41ee0e..7f79de33163c86d7000916ac4f1a406673ad482b 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/pinctrl/pinctrl-sg2002.h>
 #include "cv18xx.dtsi"
+#include "cv181x.dtsi"
 
 / {
        compatible = "sophgo,sg2002";
This page took 0.05837 seconds and 4 git commands to generate.