[U-Boot] [RFC PATCH 20/20] mips: dts: ocelot: add the SPI NAND node
    Miquel Raynal 
    miquel.raynal at bootlin.com
       
    Wed Jun  6 15:30:40 UTC 2018
    
    
  
Declare the SPI NAND device accessible on the SPI bus with CS1.
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
---
 arch/mips/dts/mscc,ocelot_pcb.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/arch/mips/dts/mscc,ocelot_pcb.dtsi b/arch/mips/dts/mscc,ocelot_pcb.dtsi
index 4e532363c3..2f37ef92f9 100644
--- a/arch/mips/dts/mscc,ocelot_pcb.dtsi
+++ b/arch/mips/dts/mscc,ocelot_pcb.dtsi
@@ -25,11 +25,20 @@
 
 &spi0 {
 	status = "okay";
+	pinctrl-0 = <&spi_cs1_pin>;
+	pinctrl-names = "default";
+
 	spi-flash at 0 {
 		compatible = "spi-flash";
                 spi-max-frequency = <18000000>; /* input clock */
                 reg = <0>; /* CS0 */
 	};
+
+	spi-nand at 1 {
+		compatible = "spi-nand";
+		spi-max-frequency = <18000000>; /* input clock */
+		reg = <1>; /* CS1 */
+	};
 };
 
 ðernet {
-- 
2.14.1
    
    
More information about the U-Boot
mailing list