]> git.baikalelectronics.ru Git - uboot.git/commitdiff
riscv: dts: Add QSPI NAND device node
authorPadmarao Begari <padmarao.begari@microchip.com>
Thu, 27 Oct 2022 06:02:00 +0000 (11:32 +0530)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 3 Nov 2022 05:27:56 +0000 (13:27 +0800)
Add QSPI NAND device node to the Microchip PolarFire SoC
Icicle kit device tree.

The Winbond NAND flash memory can be connected to the
Icicle Kit by using the Mikroe Flash 5 click board and
the Pi 3 Click shield.

Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/dts/microchip-mpfs-icicle-kit.dts

index 48fc2bf06ad043684364dbf78ba856878fc48ef6..762dcfc69447e947f48499fe8fcf66734a25a93c 100644 (file)
@@ -19,6 +19,7 @@
        aliases {
                serial1 = &uart1;
                ethernet0 = &mac1;
+               spi0 = &qspi;
        };
 
        chosen {
                ti,fifo-depth = <0x1>;
        };
 };
+
+&qspi {
+       status = "okay";
+       num-cs = <1>;
+
+       flash0: flash@0 {
+               compatible = "spi-nand";
+               reg = <0x0>;
+               spi-tx-bus-width = <4>;
+               spi-rx-bus-width = <4>;
+               spi-max-frequency = <20000000>;
+               spi-cpol;
+               spi-cpha;
+       };
+};