ARM: dts: at91: sama5d27_wlsom1_ek: add support for qspi
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 26 Aug 2019 06:47:06 +0000 (06:47 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 8 Oct 2019 06:16:11 +0000 (09:16 +0300)
Add node for qspi1 memory connected on the wlsom

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
arch/arm/dts/sama5d27_wlsom1.dtsi

index 48ab217032f0d81768e42290e888ef6162adb465..dae1fba69365a3a66da588de9e499ad14606a431 100644 (file)
        };
 };
 
+&qspi1 {
+       u-boot,dm-pre-reloc;
+};
+
+&qspi1_flash {
+       u-boot,dm-pre-reloc;
+};
+
 &sdmmc0 {
        u-boot,dm-pre-reloc;
 };
@@ -36,3 +44,7 @@
 &pinctrl_uart0_default {
        u-boot,dm-pre-reloc;
 };
+
+&pinctrl_qspi1_default {
+       u-boot,dm-pre-reloc;
+};
index 21986ecd42cb823bdbd7d1c1bbbad4441dd02cd0..32d3404e20f7c79ff1b635fc29ffaf1ac00ae893 100644 (file)
                };
 
                apb {
+                       qspi1: spi@f0024000 {
+                               status = "okay";
+                       };
+
                        macb0: ethernet@f8008000 {
                                status = "okay";
                        };
index 3d2757087849279a1f9d311a842436a8cc530d83..889a0034d1b0e4f7cdda5db21edf5750154be4ba 100644 (file)
 
        ahb {
                apb {
+                       qspi1: spi@f0024000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_qspi1_default>;
+
+                               qspi1_flash: spi_flash@0 {
+                                       compatible = "jedec,spi-nor";
+                                       reg = <0>;
+                                       spi-max-frequency = <50000000>;
+                                       spi-rx-bus-width = <4>;
+                                       spi-tx-bus-width = <4>;
+                               };
+                       };
+
                        macb0: ethernet@f8008000 {
                                pinctrl-names = "default";
                                pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
                                                bias-disable;
                                        };
 
+                                       pinctrl_qspi1_default: qspi1_default {
+                                               pinmux = <PIN_PB5__QSPI1_SCK>,
+                                                        <PIN_PB6__QSPI1_CS>,
+                                                        <PIN_PB7__QSPI1_IO0>,
+                                                        <PIN_PB8__QSPI1_IO1>,
+                                                        <PIN_PB9__QSPI1_IO2>,
+                                                        <PIN_PB10__QSPI1_IO3>;
+                                               bias-pull-up;
+                                       };
                                };
                        };
                };