Skip to content

Commit ff73917

Browse files
KamalDasuffainelli
authored andcommitted
ARM64: dts: Add QSPI Device Tree node for NS2
Adding QSPI node compatible with the new spi-bcm-qspi driver for the Broadcom's Northstar2 SoC. Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com> Signed-off-by: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent 1001354 commit ff73917

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

arch/arm64/boot/dts/broadcom/ns2-svk.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,37 @@
185185
groups = "nand_grp";
186186
};
187187
};
188+
189+
&qspi {
190+
bspi-sel = <0>;
191+
flash: m25p80@0 {
192+
#address-cells = <1>;
193+
#size-cells = <1>;
194+
compatible = "m25p80";
195+
reg = <0x0>;
196+
spi-max-frequency = <12500000>;
197+
m25p,fast-read;
198+
spi-cpol;
199+
spi-cpha;
200+
201+
partition@0 {
202+
label = "boot";
203+
reg = <0x00000000 0x000a0000>;
204+
};
205+
206+
partition@a0000 {
207+
label = "env";
208+
reg = <0x000a0000 0x00060000>;
209+
};
210+
211+
partition@100000 {
212+
label = "system";
213+
reg = <0x00100000 0x00600000>;
214+
};
215+
216+
partition@700000 {
217+
label = "rootfs";
218+
reg = <0x00700000 0x01900000>;
219+
};
220+
};
221+
};

arch/arm64/boot/dts/broadcom/ns2.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,5 +565,23 @@
565565

566566
brcm,nand-has-wp;
567567
};
568+
569+
qspi: spi@66470200 {
570+
compatible = "brcm,spi-bcm-qspi", "brcm,spi-ns2-qspi";
571+
reg = <0x66470200 0x184>,
572+
<0x66470000 0x124>,
573+
<0x67017408 0x004>,
574+
<0x664703a0 0x01c>;
575+
reg-names = "mspi", "bspi", "intr_regs",
576+
"intr_status_reg";
577+
interrupts = <GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH>;
578+
interrupt-names = "spi_l1_intr";
579+
clocks = <&iprocmed>;
580+
clock-names = "iprocmed";
581+
num-cs = <2>;
582+
#address-cells = <1>;
583+
#size-cells = <0>;
584+
};
585+
568586
};
569587
};

0 commit comments

Comments
 (0)