Skip to content

Commit 2ac5ac0

Browse files
committed
ARM: dts: sama5d27_wlsom1: add support for QSPI1
Add support for the QSPI memory which is connected to the QSPI1 controller on the WLSOM module. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent 2700893 commit 2ac5ac0

2 files changed

Lines changed: 66 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,54 @@
4141
atmel,osc-bypass;
4242
};
4343

44+
&qspi1 {
45+
pinctrl-names = "default";
46+
pinctrl-0 = <&pinctrl_qspi1_default>;
47+
status = "disabled";
48+
49+
qspi1_flash: spi_flash@0 {
50+
#address-cells = <1>;
51+
#size-cells = <1>;
52+
compatible = "jedec,spi-nor";
53+
reg = <0>;
54+
spi-max-frequency = <80000000>;
55+
spi-rx-bus-width = <4>;
56+
spi-tx-bus-width = <4>;
57+
m25p,fast-read;
58+
status = "disabled";
59+
60+
at91bootstrap@0 {
61+
label = "at91bootstrap";
62+
reg = <0x0 0x40000>;
63+
};
64+
65+
bootloader@40000 {
66+
label = "bootloader";
67+
reg = <0x40000 0xc0000>;
68+
};
69+
70+
bootloaderenvred@100000 {
71+
label = "bootloader env redundant";
72+
reg = <0x100000 0x40000>;
73+
};
74+
75+
bootloaderenv@140000 {
76+
label = "bootloader env";
77+
reg = <0x140000 0x40000>;
78+
};
79+
80+
dtb@180000 {
81+
label = "device tree";
82+
reg = <0x180000 0x80000>;
83+
};
84+
85+
kernel@200000 {
86+
label = "kernel";
87+
reg = <0x200000 0x600000>;
88+
};
89+
};
90+
};
91+
4492
&i2c1 {
4593
dmas = <0>, <0>;
4694
pinctrl-names = "default";
@@ -203,6 +251,16 @@
203251
bias-disable;
204252
};
205253

254+
pinctrl_qspi1_default: qspi1_default {
255+
pinmux = <PIN_PB5__QSPI1_SCK>,
256+
<PIN_PB6__QSPI1_CS>,
257+
<PIN_PB7__QSPI1_IO0>,
258+
<PIN_PB8__QSPI1_IO1>,
259+
<PIN_PB9__QSPI1_IO2>,
260+
<PIN_PB10__QSPI1_IO3>;
261+
bias-pull-up;
262+
};
263+
206264
pinctrl_sdmmc1_default: sdmmc1_default {
207265
cmd-data {
208266
pinmux = <PIN_PA28__SDMMC1_CMD>,

arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@
110110
status = "okay";
111111
};
112112

113+
&qspi1 {
114+
status = "okay";
115+
116+
qspi1_flash: spi_flash@0 {
117+
status = "okay";
118+
};
119+
};
120+
113121
&pioA {
114122
/*
115123
* There is no real pinmux for ADC, if the pin

0 commit comments

Comments
 (0)