MIPS: BMIPS: Add support SPI device nodes
Subsystems (3)
PATCH v3 1/1 MIPS: BMIPS: Add support SPI device nodes
Adds SPI device nodes to BCM7xxx MIPS based SoCs.
---
Hi all,
This series adds dependency with BMIPS_GENERIC for Broadcom MIPS based SoCs and device nodes.
As far as I know the boards are booting from NAND by default except BCM97358, BCM97360 and BCM97425, and therefore the SPI nodes for boot (qspi) of the boards are disabled.
Changes in v3:
- Use decimal property instead of hexadecimal.
Changes in v2:
- Use upg_clk instead of new spi_clk.
arch/mips/boot/dts/brcm/bcm7125.dtsi | 49 +++++++++++++++++++++++++++++-- arch/mips/boot/dts/brcm/bcm7346.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7358.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7360.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7362.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7420.dtsi | 49 +++++++++++++++++++++++++++++-- arch/mips/boot/dts/brcm/bcm7425.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 43 +++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97125cbmb.dts | 4 +++ arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 4 +++ arch/mips/boot/dts/brcm/bcm97358svmb.dts | 36 +++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97360svmb.dts | 36 +++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97362svmb.dts | 4 +++ arch/mips/boot/dts/brcm/bcm97420c.dts | 4 +++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 36 +++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 4 +++ 16 files changed, 478 insertions(+), 6 deletions(-)
arch/mips/boot/dts/brcm/bcm7125.dtsi +46 -3
@@ -91,15 +91,15 @@ compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>; - brcm,int-map-mask = <0x44>, <0xf000000>; + brcm,int-map-mask = <0x44>, <0xf000000>, <0x100000>; brcm,int-fwd-mask = <0x70000>; interrupt-controller; #interrupt-cells = <1>; interrupt-parent = <&periph_intc>; - interrupts = <18>, <19>; - interrupt-names = "upg_main", "upg_bsc"; + interrupts = <18>, <19>, <20>; + interrupt-names = "upg_main", "upg_bsc", "upg_spi"; }; sun_top_ctrl: syscon@404000 {
@@ -226,5 +226,48 @@ interrupts = <61>; status = "disabled"; }; + + spi_l2_intc: interrupt-controller@411d00 { + compatible = "brcm,l2-intc"; + reg = <0x411d00 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <79>; + }; + + qspi: spi@443000 { + #address-cells = <0x1>; + #size-cells = <0x0>; + compatible = "brcm,spi-bcm-qspi", + "brcm,spi-brcmstb-qspi"; + clocks = <&upg_clk>; + reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>; + reg-names = "cs_reg", "hif_mspi", "bspi"; + interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>; + interrupt-parent = <&spi_l2_intc>; + interrupt-names = "spi_lr_fullness_reached", + "spi_lr_session_aborted", + "spi_lr_impatient", + "spi_lr_session_done", + "spi_lr_overread", + "mspi_done", + "mspi_halted"; + status = "disabled"; + }; + + mspi: spi@406400 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,spi-bcm-qspi", + "brcm,spi-brcmstb-mspi"; + clocks = <&upg_clk>; + reg = <0x406400 0x180>; + reg-names = "mspi"; + interrupts = <0x14>; + interrupt-parent = <&upg_irq0_intc>; + interrupt-names = "mspi_done"; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7346.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7358.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7360.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7362.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7420.dtsi +46 -3
66 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7425.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm7435.dtsi +43 -0
48 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm97125cbmb.dts +4 -0
@@ -57,3 +57,7 @@ &ohci0 { status = "disabled"; }; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97346dbsmb.dts +4 -0
@@ -109,3 +109,7 @@ &sdhci0 { status = "okay"; }; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97358svmb.dts +36 -0
@@ -69,3 +69,39 @@ &nand { status = "okay"; }; + +&qspi { + status = "okay"; + + m25p80@0 { + compatible = "m25p80"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-cpol; + spi-cpha; + use-bspi; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash0.cfe@0 { + reg = <0x0 0x200000>; + }; + + flash0.mac@200000 { + reg = <0x200000 0x40000>; + }; + + flash0.nvram@240000 { + reg = <0x240000 0x10000>; + }; + }; + }; +}; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97360svmb.dts +36 -0
@@ -72,3 +72,39 @@ &sdhci0 { status = "okay"; }; + +&qspi { + status = "okay"; + + m25p80@0 { + compatible = "m25p80"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-cpol; + spi-cpha; + use-bspi; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash0.cfe@0 { + reg = <0x0 0x200000>; + }; + + flash0.mac@200000 { + reg = <0x200000 0x40000>; + }; + + flash0.nvram@240000 { + reg = <0x240000 0x10000>; + }; + }; + }; +}; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97362svmb.dts +4 -0
@@ -73,3 +73,7 @@ &sdhci0 { status = "okay"; }; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97420c.dts +4 -0
@@ -79,3 +79,7 @@ &ohci1 { status = "okay"; }; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97425svmb.dts +36 -0
@@ -107,3 +107,39 @@ &sdhci1 { status = "okay"; }; + +&qspi { + status = "okay"; + + m25p80@0 { + compatible = "m25p80"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-cpol; + spi-cpha; + use-bspi; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash0.cfe@0 { + reg = <0x0 0x200000>; + }; + + flash0.mac@200000 { + reg = <0x200000 0x40000>; + }; + + flash0.nvram@240000 { + reg = <0x240000 0x10000>; + }; + }; + }; +}; + +&mspi { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97435svmb.dts +4 -0
@@ -115,3 +115,7 @@ &sdhci1 { status = "okay"; }; + +&mspi { + status = "okay"; +};
Signature · 6 lines
2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html