* [PATCH 0/2] ARM: dts: BCM5301X: QSPI and NAND
@ 2017-02-08 20:45 Jon Mason
2017-02-08 20:45 ` [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k Jon Mason
2017-02-08 20:45 ` [PATCH 2/2] ARM: dts: BCM5301X: convert to iProc QSPI Jon Mason
0 siblings, 2 replies; 4+ messages in thread
From: Jon Mason @ 2017-02-08 20:45 UTC (permalink / raw)
To: Hauke Mehrtens, zajec5
Cc: Mark Rutland, devicetree, Florian Fainelli, linux-kernel,
Rob Herring, bcm-kernel-feedback-list, linux-arm-kernel
Change the default SPI of the BCM5301X to be the new(-ish) iProc QSPI
driver. Testing limited to internal Broadcom systems. So, this might\
need extended testing (though I epxect it to work).
Also, Add NAND to bcm953012k
Jon Mason (2):
ARM: dts: BCM5301X: Add NAND entries to bcm953012k
ARM: dts: BCM5301X: convert to iProc QSPI
arch/arm/boot/dts/bcm5301x.dtsi | 50 ++++++++++++++++++++++++----------
arch/arm/boot/dts/bcm953012k.dts | 58 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+), 14 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k
2017-02-08 20:45 [PATCH 0/2] ARM: dts: BCM5301X: QSPI and NAND Jon Mason
@ 2017-02-08 20:45 ` Jon Mason
2017-02-28 20:24 ` Florian Fainelli
2017-02-08 20:45 ` [PATCH 2/2] ARM: dts: BCM5301X: convert to iProc QSPI Jon Mason
1 sibling, 1 reply; 4+ messages in thread
From: Jon Mason @ 2017-02-08 20:45 UTC (permalink / raw)
To: Hauke Mehrtens, zajec5
Cc: Mark Rutland, devicetree, Florian Fainelli, linux-kernel,
Rob Herring, bcm-kernel-feedback-list, linux-arm-kernel
Add the NAND entry in the DTS
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
---
arch/arm/boot/dts/bcm953012k.dts | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/bcm953012k.dts b/arch/arm/boot/dts/bcm953012k.dts
index ae31a58..cb673c7 100644
--- a/arch/arm/boot/dts/bcm953012k.dts
+++ b/arch/arm/boot/dts/bcm953012k.dts
@@ -52,6 +52,38 @@
};
};
+&nand {
+ nandcs@0 {
+ compatible = "brcm,nandcs";
+ reg = <0>;
+ nand-on-flash-bbt;
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ nand-ecc-strength = <4>;
+ nand-ecc-step-size = <512>;
+
+ partition@0 {
+ label = "nboot";
+ reg = <0x00000000 0x00200000>;
+ read-only;
+ };
+ partition@200000 {
+ label = "nenv";
+ reg = <0x00200000 0x00400000>;
+ };
+ partition@600000 {
+ label = "nsystem";
+ reg = <0x00600000 0x00a00000>;
+ };
+ partition@1000000 {
+ label = "nrootfs";
+ reg = <0x01000000 0x07000000>;
+ };
+ };
+};
+
&uart0 {
status = "okay";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: BCM5301X: convert to iProc QSPI
2017-02-08 20:45 [PATCH 0/2] ARM: dts: BCM5301X: QSPI and NAND Jon Mason
2017-02-08 20:45 ` [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k Jon Mason
@ 2017-02-08 20:45 ` Jon Mason
1 sibling, 0 replies; 4+ messages in thread
From: Jon Mason @ 2017-02-08 20:45 UTC (permalink / raw)
To: Hauke Mehrtens, zajec5
Cc: Mark Rutland, devicetree, Florian Fainelli, linux-kernel,
Rob Herring, bcm-kernel-feedback-list, linux-arm-kernel
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>
---
arch/arm/boot/dts/bcm5301x.dtsi | 50 +++++++++++++++++++++++++++++-----------
arch/arm/boot/dts/bcm953012k.dts | 26 +++++++++++++++++++++
2 files changed, 62 insertions(+), 14 deletions(-)
diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index a4614c9..0acc02f 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -290,20 +290,6 @@
};
};
- spi@29000 {
- reg = <0x00029000 0x1000>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- spi_nor: spi-nor@0 {
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <20000000>;
- linux,part-probe = "ofpart", "bcm47xxpart";
- status = "disabled";
- };
- };
-
gmac0: ethernet@24000 {
reg = <0x24000 0x800>;
};
@@ -367,4 +353,40 @@
brcm,nand-has-wp;
};
+
+ spi@18029200 {
+ compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
+ reg = <0x18029200 0x184>,
+ <0x18029000 0x124>,
+ <0x1811b408 0x004>,
+ <0x180293a0 0x01c>;
+ reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
+ interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "spi_lr_fullness_reached",
+ "spi_lr_session_aborted",
+ "spi_lr_impatient",
+ "spi_lr_session_done",
+ "spi_lr_overhead",
+ "mspi_done",
+ "mspi_halted";
+ clocks = <&iprocmed>;
+ clock-names = "iprocmed";
+ num-cs = <2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ spi_nor: spi-nor@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <20000000>;
+ linux,part-probe = "ofpart", "bcm47xxpart";
+ status = "disabled";
+ };
+ };
};
diff --git a/arch/arm/boot/dts/bcm953012k.dts b/arch/arm/boot/dts/bcm953012k.dts
index cb673c7..34a7f52 100644
--- a/arch/arm/boot/dts/bcm953012k.dts
+++ b/arch/arm/boot/dts/bcm953012k.dts
@@ -84,6 +84,32 @@
};
};
+&spi_nor {
+ status = "okay";
+ spi-max-frequency = <62500000>;
+ m25p,default-addr-width = <3>;
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "boot";
+ reg = <0x00000000 0x000d0000>;
+ };
+ partition@d000 {
+ label = "env";
+ reg = <0x000d0000 0x00030000>;
+ };
+ partition@100000 {
+ label = "system";
+ reg = <0x00100000 0x00600000>;
+ };
+ partition@700000 {
+ label = "rootfs";
+ reg = <0x00700000 0x00900000>;
+ };
+};
+
&uart0 {
status = "okay";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k
2017-02-08 20:45 ` [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k Jon Mason
@ 2017-02-28 20:24 ` Florian Fainelli
0 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2017-02-28 20:24 UTC (permalink / raw)
To: Jon Mason, Hauke Mehrtens, zajec5
Cc: Mark Rutland, devicetree, Florian Fainelli, linux-kernel,
Rob Herring, bcm-kernel-feedback-list, linux-arm-kernel
On 02/08/2017 12:45 PM, Jon Mason wrote:
> Add the NAND entry in the DTS
>
> Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Applied, thanks!
--
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-28 20:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 20:45 [PATCH 0/2] ARM: dts: BCM5301X: QSPI and NAND Jon Mason
2017-02-08 20:45 ` [PATCH 1/2] ARM: dts: BCM5301X: Add NAND entries to bcm953012k Jon Mason
2017-02-28 20:24 ` Florian Fainelli
2017-02-08 20:45 ` [PATCH 2/2] ARM: dts: BCM5301X: convert to iProc QSPI Jon Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).