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. |
| 6 | - compatible : Should be the manufacturer and the name of the chip. Bear in mind |
| 7 | the DT binding is not Linux-only, but in case of Linux, see the |
| 8 | "m25p_ids" table in drivers/mtd/devices/m25p80.c for the list of |
| 9 | supported chips. |
| 10 | - reg : Chip-Select number |
| 11 | - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at |
| 12 | |
| 13 | Optional properties: |
| 14 | - m25p,fast-read : Use the "fast read" opcode to read data from the chip instead |
| 15 | of the usual "read" opcode. This opcode is not supported by |
| 16 | all chips and support for it can not be detected at runtime. |
| 17 | Refer to your chips' datasheet to check if this is supported |
| 18 | by your chip. |
| 19 | |
| 20 | Example: |
| 21 | |
| 22 | flash: m25p80@0 { |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <1>; |
| 25 | compatible = "spansion,m25p80"; |
| 26 | reg = <0>; |
| 27 | spi-max-frequency = <40000000>; |
| 28 | m25p,fast-read; |
| 29 | }; |