Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kamal Dasu and committed by
Florian Fainelli
ff73917d 1001354c

+52
+34
arch/arm64/boot/dts/broadcom/ns2-svk.dts
··· 185 185 groups = "nand_grp"; 186 186 }; 187 187 }; 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 + };
+18
arch/arm64/boot/dts/broadcom/ns2.dtsi
··· 565 565 566 566 brcm,nand-has-wp; 567 567 }; 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 + 568 586 }; 569 587 };