Marek Vasut | 12ad2be | 2012-09-24 03:39:39 +0200 | [diff] [blame] | 1 | * MTD SPI driver for ST M25Pxx (and similar) serial flash chips |
| 2 | |
| 3 | Required properties: |
| 4 | - #address-cells, #size-cells : Must be present if the device has sub-nodes |
| 5 | representing partitions. |
Brian Norris | 8ff16cf | 2015-03-27 10:29:49 -0700 | [diff] [blame] | 6 | - compatible : May include a device-specific string consisting of the |
| 7 | manufacturer and name of the chip. Bear in mind the DT binding |
| 8 | is not Linux-only, but in case of Linux, see the "m25p_ids" |
| 9 | table in drivers/mtd/devices/m25p80.c for the list of supported |
| 10 | chips. |
Brian Norris | 8947e39 | 2015-05-14 10:32:53 -0700 | [diff] [blame] | 11 | Must also include "jedec,spi-nor" for any SPI NOR flash that can |
| 12 | be identified by the JEDEC READ ID opcode (0x9F). |
Marek Vasut | 12ad2be | 2012-09-24 03:39:39 +0200 | [diff] [blame] | 13 | - reg : Chip-Select number |
| 14 | - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at |
| 15 | |
| 16 | Optional properties: |
| 17 | - m25p,fast-read : Use the "fast read" opcode to read data from the chip instead |
| 18 | of the usual "read" opcode. This opcode is not supported by |
| 19 | all chips and support for it can not be detected at runtime. |
| 20 | Refer to your chips' datasheet to check if this is supported |
| 21 | by your chip. |
| 22 | |
| 23 | Example: |
| 24 | |
| 25 | flash: m25p80@0 { |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <1>; |
Brian Norris | 8947e39 | 2015-05-14 10:32:53 -0700 | [diff] [blame] | 28 | compatible = "spansion,m25p80", "jedec,spi-nor"; |
Marek Vasut | 12ad2be | 2012-09-24 03:39:39 +0200 | [diff] [blame] | 29 | reg = <0>; |
| 30 | spi-max-frequency = <40000000>; |
| 31 | m25p,fast-read; |
| 32 | }; |