summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTekkamanV <tekkamanv@starfivetech.com>2021-08-23 10:30:02 +0300
committerTekkaman Ninja <tekkamanninja@163.com>2021-08-31 22:13:54 +0300
commitbbb7aaa8aa4ace13134a93e88b8cfa0ef9213e71 (patch)
treea1795a41a60adcd10a6717a07ab26232f3122996
parent82cc4fc3135815a03c4e0aad3e3dc1d99c179598 (diff)
downloadu-boot-bbb7aaa8aa4ace13134a93e88b8cfa0ef9213e71.tar.xz
starfive: fix dts(linux)
1, ccache 2, mmc This patch adds the necessary info for mmc driver: bus-width = <4>; max-frequency = <?0000000>; 3, uart0(console) 4, SPI Nor Flash 5, Switch dtb to linux dts
-rw-r--r--arch/riscv/dts/jh7100.dtsi12
-rw-r--r--configs/starfive_jh7100_starlight_smode_defconfig2
2 files changed, 9 insertions, 5 deletions
diff --git a/arch/riscv/dts/jh7100.dtsi b/arch/riscv/dts/jh7100.dtsi
index e21ab822dc..f42e8165c3 100644
--- a/arch/riscv/dts/jh7100.dtsi
+++ b/arch/riscv/dts/jh7100.dtsi
@@ -95,7 +95,7 @@
cache-sets = <2048>;
cache-size = <2097152>;
cache-unified;
- compatible = "sifive,fu540-c000-ccache", "starfive,ccache0", "cache";
+ compatible = "sifive,fu740-c000-ccache", "starfive,ccache0", "cache";
interrupts = <128 131 129 130>;
/*next-level-cache = <&L40 &L36>;*/
reg = <0x0 0x2010000 0x0 0x1000>,
@@ -197,7 +197,7 @@
};
uart3: serial@12440000 {
- compatible = "snps,dw-apb-uart";
+ compatible = "snps,dw-apb-uart", "starfive,uart0";
interrupts = <73>;
reg = <0x0 0x12440000 0x0 0x10000>;
reg-io-width = <4>;
@@ -411,7 +411,7 @@
};
qspi: spi@11860000 {
- compatible = "cdns,qspi-nor";
+ compatible = "cadence,qspi","cdns,qspi-nor";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x11860000 0x0 0x10000>,
@@ -421,7 +421,7 @@
cdns,fifo-depth = <256>;
cdns,fifo-width = <4>;
cdns,trigger-address = <0x0>;
- status = "disabled";
+ status = "okay";
spi-max-frequency = <250000000>;
};
@@ -505,6 +505,8 @@
data-addr = <0>;
fifo-depth = <32>;
fifo-watermark-aligned;
+ bus-width = <4>;
+ max-frequency = <10000000>;
status = "disabled";
};
@@ -519,6 +521,8 @@
data-addr = <0>;
fifo-depth = <32>;
fifo-watermark-aligned;
+ bus-width = <4>;
+ max-frequency = <50000000>;
status = "disabled";
};
diff --git a/configs/starfive_jh7100_starlight_smode_defconfig b/configs/starfive_jh7100_starlight_smode_defconfig
index 2210d743cb..6055cb5a02 100644
--- a/configs/starfive_jh7100_starlight_smode_defconfig
+++ b/configs/starfive_jh7100_starlight_smode_defconfig
@@ -7,7 +7,7 @@ CONFIG_ENV_SIZE=0x1f000
CONFIG_ENV_SECT_SIZE=0x1000
CONFIG_SYS_MALLOC_LEN=0x800000
# CONFIG_DM_GPIO is not set
-CONFIG_DEFAULT_DEVICE_TREE="starfive_jh7100_starlight"
+CONFIG_DEFAULT_DEVICE_TREE="jh7100-beaglev-starlight"
CONFIG_IDENT_STRING="StarFive"
CONFIG_SYS_CLK_FREQ=1000000000
CONFIG_TARGET_STARFIVE_JH7100=y