1 // Overlay for JEDEC SPI-NOR Flash Devices (aka m25p80)
4 // flash-spi<n>-<m> - Enables flash device on SPI<n>, CS#<m>.
5 // flash-fastr-spi<n>-<m> - Enables flash device with fast read capability on SPI<n>, CS#<m>.
7 // If devices are present on SPI1 or SPI2, those interfaces must be enabled with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
9 // Example: A single flash device with fast read capability on SPI0, CS#0:
10 // dtoverlay=jedec-spi-nor:flash-fastr-spi0-0
16 compatible = "brcm,bcm2835";
18 // disable spi-dev on spi0.0
26 // disable spi-dev on spi0.1
34 // disable spi-dev on spi1.0
36 target-path = "spi1/spidev@0";
42 // disable spi-dev on spi1.1
44 target-path = "spi1/spidev@1";
50 // disable spi-dev on spi1.2
52 target-path = "spi1/spidev@2";
58 // disable spi-dev on spi2.0
60 target-path = "spi2/spidev@0";
66 // disable spi-dev on spi2.1
68 target-path = "spi2/spidev@1";
74 // disable spi-dev on spi2.2
76 target-path = "spi2/spidev@2";
82 // enable flash on spi0.0
89 spi_nor_00: spi_nor@0 {
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <500000>;
99 // enable flash on spi0.1
104 #address-cells = <1>;
106 spi_nor_01: spi_nor@1 {
107 #address-cells = <1>;
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <500000>;
116 // enable flash on spi1.0
121 #address-cells = <1>;
123 spi_nor_10: spi_nor@0 {
124 #address-cells = <1>;
126 compatible = "jedec,spi-nor";
128 spi-max-frequency = <500000>;
133 // enable flash on spi1.1
138 #address-cells = <1>;
140 spi_nor_11: spi_nor@1 {
141 #address-cells = <1>;
143 compatible = "jedec,spi-nor";
145 spi-max-frequency = <500000>;
150 // enable flash on spi1.2
155 #address-cells = <1>;
157 spi_nor_12: spi_nor@2 {
158 #address-cells = <1>;
160 compatible = "jedec,spi-nor";
162 spi-max-frequency = <500000>;
167 // enable flash on spi2.0
172 #address-cells = <1>;
174 spi_nor_20: spi_nor@0 {
175 #address-cells = <1>;
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <500000>;
184 // enable flash on spi2.1
189 #address-cells = <1>;
191 spi_nor_21: spi_nor@1 {
192 #address-cells = <1>;
194 compatible = "jedec,spi-nor";
196 spi-max-frequency = <500000>;
201 // enable flash on spi2.2
206 #address-cells = <1>;
208 spi_nor_22: spi_nor@2 {
209 #address-cells = <1>;
211 compatible = "jedec,spi-nor";
213 spi-max-frequency = <500000>;
218 // Enable fast read for device on spi0.0.
219 // Use default active low interrupt signalling.
221 target = <&spi_nor_00>;
227 // Enable fast read for device on spi0.1.
228 // Use default active low interrupt signalling.
230 target = <&spi_nor_01>;
236 // Enable fast read for device on spi1.0.
237 // Use default active low interrupt signalling.
239 target = <&spi_nor_10>;
245 // Enable fast read for device on spi1.1.
246 // Use default active low interrupt signalling.
248 target = <&spi_nor_11>;
254 // Enable fast read for device on spi1.2.
255 // Use default active low interrupt signalling.
257 target = <&spi_nor_12>;
263 // Enable fast read for device on spi2.0.
264 // Use default active low interrupt signalling.
266 target = <&spi_nor_20>;
272 // Enable fast read for device on spi2.1.
273 // Use default active low interrupt signalling.
275 target = <&spi_nor_21>;
281 // Enable fast read for device on spi2.2.
282 // Use default active low interrupt signalling.
284 target = <&spi_nor_22>;
291 flash-spi0-0 = <0>,"+0+8";
292 flash-spi0-1 = <0>,"+1+9";
293 flash-spi1-0 = <0>,"+2+10";
294 flash-spi1-1 = <0>,"+3+11";
295 flash-spi1-2 = <0>,"+4+12";
296 flash-spi2-0 = <0>,"+5+13";
297 flash-spi2-1 = <0>,"+6+14";
298 flash-spi2-2 = <0>,"+7+15";
299 flash-fastr-spi0-0 = <0>,"+0+8+16";
300 flash-fastr-spi0-1 = <0>,"+1+9+17";
301 flash-fastr-spi1-0 = <0>,"+2+10+18";
302 flash-fastr-spi1-1 = <0>,"+3+11+19";
303 flash-fastr-spi1-2 = <0>,"+4+12+20";
304 flash-fastr-spi2-0 = <0>,"+5+13+21";
305 flash-fastr-spi2-1 = <0>,"+6+14+22";
306 flash-fastr-spi2-2 = <0>,"+7+15+23";