Thread (11 messages) 11 messages, 3 authors, 2018-07-30
STALE2891d
Revisions (2)
  1. v1 [diff vs current]
  2. v3 current

[PATCH v3 5/5] mips: dts: mscc: enable spi and NOR flash support on ocelot PCB123

From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2018-07-27 19:55:02
Also in: linux-mips, linux-spi, lkml
Subsystem: microsemi mips socs, mips, the rest · Maintainers: Alexandre Belloni, Thomas Bogendoerfer, Linus Torvalds

Ocelot PCB123 has a SPI NOR connected on its SPI bus.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts b/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
index 4ccd65379059..2266027759f9 100644
--- a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
+++ b/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
@@ -26,6 +26,16 @@
 	status = "okay";
 };
 
+&spi {
+	status = "okay";
+
+	flash@0 {
+		compatible = "macronix,mx25l25635f", "jedec,spi-nor";
+		spi-max-frequency = <20000000>;
+		reg = <0>;
+	};
+};
+
 &mdio0 {
 	status = "okay";
 };
-- 
2.18.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help