aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamal Dasu <kdasu.kdev@gmail.com>2016-08-24 18:04:28 -0400
committerFlorian Fainelli <f.fainelli@gmail.com>2016-10-19 09:38:25 -0400
commitff73917d38a691067fd4fddd90c8dfc0e97935d2 (patch)
tree36aa546e39af4ebd5b4c456ff02ce69a3b1dc7be
parent1001354ca34179f3db924eb66672442a173147dc (diff)
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>
-rw-r--r--arch/arm64/boot/dts/broadcom/ns2-svk.dts34
-rw-r--r--arch/arm64/boot/dts/broadcom/ns2.dtsi18
2 files changed, 52 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts
index 2d7872a36b91..730848740f74 100644
--- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts
+++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts
@@ -185,3 +185,37 @@
185 groups = "nand_grp"; 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};
diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi
index d95dc408629a..ae6c920da56c 100644
--- a/arch/arm64/boot/dts/broadcom/ns2.dtsi
+++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi
@@ -565,5 +565,23 @@
565 565
566 brcm,nand-has-wp; 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};