@@ -93,6 +93,21 @@
0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
>;
};
+
+ qspi1_pins: pinmux_qspi1_pins {
+ pinctrl-single,pins = <
+ 0x4c 0x40001 /* gpmc_a3.qspi1_cs2 */
+ 0x50 0x40001 /* gpmc_a4.qspi1_cs3 */
+ 0x74 0x40001 /* gpmc_a13.qspi1_rtclk */
+ 0x78 0x40001 /* gpmc_a14.qspi1_d3 */
+ 0x7c 0x40001 /* gpmc_a15.qspi1_d2 */
+ 0x80 0x40001 /* gpmc_a16.qspi1_d1 */
+ 0x84 0x40001 /* gpmc_a17.qspi1_d0 */
+ 0x88 0x40001 /* qpmc_a18.qspi1_sclk */
+ 0xb8 0x60001 /* gpmc_cs2.qspi1_cs0 */
+ 0xbc 0x60001 /* gpmc_cs3.qspi1_cs1 */
+ >;
+ };
};
&i2c1 {
@@ -273,3 +288,20 @@
&cpu0 {
cpu0-supply = <&smps123_reg>;
};
+
+&qspi {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&qspi1_pins>;
+
+ spi-max-frequency = <48000000>;
+ m25p80@0 {
+ compatible = "s25fl256s1";
+ spi-max-frequency = <48000000>;
+ reg = <0>;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <4>;
+ spi-cpol;
+ spi-cpha;
+ };
+};
@@ -582,6 +582,19 @@
dma-names = "tx0", "rx0";
status = "disabled";
};
+
+ qspi: qspi@4b300000 {
+ compatible = "ti,dra7xxx-qspi";
+ reg = <0x4b300000 0x100>, <0x4a002558 0x4>,
+ <0x5c000000 0x3ffffff>;
+ reg-names = "qspi_base", "qspi_ctrlmod", "qspi_mmap";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "qspi";
+ num-cs = <4>;
+ interrupts = <0 124 0x4>;
+ status = "disabled";
+ };
};
clocks {
These add device tree entry for qspi controller driver on dra7. Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> --- arch/arm/boot/dts/dra7-evm.dts | 32 ++++++++++++++++++++++++++++++++ arch/arm/boot/dts/dra7.dtsi | 13 +++++++++++++ 2 files changed, 45 insertions(+), 0 deletions(-)