Skip to content

Commit 1c8f406

Browse files
Jon Masonffainelli
authored andcommitted
ARM: dts: BCM5301X: convert to iProc QSPI
The iproc-qspi driver is the SPI driver that should be used going forward. Modify the SPI DT entry to use this driver, and add an entry in the bcm953012k DTS file to enable the SPI. Tested on the bcm953012k board. Signed-off-by: Jon Mason <jon.mason@broadcom.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent df29920 commit 1c8f406

File tree

2 files changed

+62
-14
lines changed

2 files changed

+62
-14
lines changed

arch/arm/boot/dts/bcm5301x.dtsi

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -298,20 +298,6 @@
298298
};
299299
};
300300

301-
spi@29000 {
302-
reg = <0x00029000 0x1000>;
303-
#address-cells = <1>;
304-
#size-cells = <0>;
305-
306-
spi_nor: spi-nor@0 {
307-
compatible = "jedec,spi-nor";
308-
reg = <0>;
309-
spi-max-frequency = <20000000>;
310-
linux,part-probe = "ofpart", "bcm47xxpart";
311-
status = "disabled";
312-
};
313-
};
314-
315301
gmac0: ethernet@24000 {
316302
reg = <0x24000 0x800>;
317303
};
@@ -375,4 +361,40 @@
375361

376362
brcm,nand-has-wp;
377363
};
364+
365+
spi@18029200 {
366+
compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
367+
reg = <0x18029200 0x184>,
368+
<0x18029000 0x124>,
369+
<0x1811b408 0x004>,
370+
<0x180293a0 0x01c>;
371+
reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
372+
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
373+
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
374+
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
375+
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
376+
<GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
377+
<GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
378+
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
379+
interrupt-names = "spi_lr_fullness_reached",
380+
"spi_lr_session_aborted",
381+
"spi_lr_impatient",
382+
"spi_lr_session_done",
383+
"spi_lr_overhead",
384+
"mspi_done",
385+
"mspi_halted";
386+
clocks = <&iprocmed>;
387+
clock-names = "iprocmed";
388+
num-cs = <2>;
389+
#address-cells = <1>;
390+
#size-cells = <0>;
391+
392+
spi_nor: spi-nor@0 {
393+
compatible = "jedec,spi-nor";
394+
reg = <0>;
395+
spi-max-frequency = <20000000>;
396+
linux,part-probe = "ofpart", "bcm47xxpart";
397+
status = "disabled";
398+
};
399+
};
378400
};

arch/arm/boot/dts/bcm953012k.dts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,32 @@
8484
};
8585
};
8686

87+
&spi_nor {
88+
status = "okay";
89+
spi-max-frequency = <62500000>;
90+
m25p,default-addr-width = <3>;
91+
92+
#address-cells = <1>;
93+
#size-cells = <1>;
94+
95+
partition@0 {
96+
label = "boot";
97+
reg = <0x00000000 0x000d0000>;
98+
};
99+
partition@d000 {
100+
label = "env";
101+
reg = <0x000d0000 0x00030000>;
102+
};
103+
partition@100000 {
104+
label = "system";
105+
reg = <0x00100000 0x00600000>;
106+
};
107+
partition@700000 {
108+
label = "rootfs";
109+
reg = <0x00700000 0x00900000>;
110+
};
111+
};
112+
87113
&uart0 {
88114
clock-frequency = <62499840>;
89115
};

0 commit comments

Comments
 (0)