Skip to content

Commit 8384087

Browse files
littleqypConchuOD
authored andcommitted
riscv: dts: starfive: Add QSPI controller node for StarFive JH7110 SoC
Add the quad spi controller node for the StarFive JH7110 SoC. Co-developed-by: Ziv Xu <ziv.xu@starfivetech.com> Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com> Signed-off-by: William Qiu <william.qiu@starfivetech.com> Reviewed-by: Hal Feng <hal.feng@starfivetech.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent e7c304c commit 8384087

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,42 @@
185185
status = "okay";
186186
};
187187

188+
&qspi {
189+
#address-cells = <1>;
190+
#size-cells = <0>;
191+
status = "okay";
192+
193+
nor_flash: flash@0 {
194+
compatible = "jedec,spi-nor";
195+
reg = <0>;
196+
cdns,read-delay = <5>;
197+
spi-max-frequency = <12000000>;
198+
cdns,tshsl-ns = <1>;
199+
cdns,tsd2d-ns = <1>;
200+
cdns,tchsh-ns = <1>;
201+
cdns,tslch-ns = <1>;
202+
203+
partitions {
204+
compatible = "fixed-partitions";
205+
#address-cells = <1>;
206+
#size-cells = <1>;
207+
208+
spl@0 {
209+
reg = <0x0 0x80000>;
210+
};
211+
uboot-env@f0000 {
212+
reg = <0xf0000 0x10000>;
213+
};
214+
uboot@100000 {
215+
reg = <0x100000 0x400000>;
216+
};
217+
reserved-data@600000 {
218+
reg = <0x600000 0x1000000>;
219+
};
220+
};
221+
};
222+
};
223+
188224
&spi0 {
189225
pinctrl-names = "default";
190226
pinctrl-0 = <&spi0_pins>;

arch/riscv/boot/dts/starfive/jh7110.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,25 @@
676676
status = "disabled";
677677
};
678678

679+
qspi: spi@13010000 {
680+
compatible = "starfive,jh7110-qspi", "cdns,qspi-nor";
681+
reg = <0x0 0x13010000 0x0 0x10000>,
682+
<0x0 0x21000000 0x0 0x400000>;
683+
interrupts = <25>;
684+
clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>,
685+
<&syscrg JH7110_SYSCLK_QSPI_AHB>,
686+
<&syscrg JH7110_SYSCLK_QSPI_APB>;
687+
clock-names = "ref", "ahb", "apb";
688+
resets = <&syscrg JH7110_SYSRST_QSPI_APB>,
689+
<&syscrg JH7110_SYSRST_QSPI_AHB>,
690+
<&syscrg JH7110_SYSRST_QSPI_REF>;
691+
reset-names = "qspi", "qspi-ocp", "rstc_ref";
692+
cdns,fifo-depth = <256>;
693+
cdns,fifo-width = <4>;
694+
cdns,trigger-address = <0x0>;
695+
status = "disabled";
696+
};
697+
679698
spi3: spi@12070000 {
680699
compatible = "arm,pl022", "arm,primecell";
681700
reg = <0x0 0x12070000 0x0 0x10000>;

0 commit comments

Comments
 (0)