mips: dts: mscc: enable spi and NOR flash support on ocelot PCB123
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 31 Jul 2018 14:38:55 +0000 (16:38 +0200)
committerPaul Burton <paul.burton@mips.com>
Tue, 31 Jul 2018 17:34:34 +0000 (10:34 -0700)
Ocelot PCB123 has a SPI NOR connected on its SPI bus.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20103/
Cc: Mark Brown <broonie@kernel.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-spi@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Allan Nielsen <allan.nielsen@microsemi.com>
arch/mips/boot/dts/mscc/ocelot_pcb123.dts

index 4ccd65379059910f3a142f8e69ffdf9a1c811f31..2266027759f989fe1187ddc4be42ec5ccf08cf1a 100644 (file)
        status = "okay";
 };
 
+&spi {
+       status = "okay";
+
+       flash@0 {
+               compatible = "macronix,mx25l25635f", "jedec,spi-nor";
+               spi-max-frequency = <20000000>;
+               reg = <0>;
+       };
+};
+
 &mdio0 {
        status = "okay";
 };