Simon Glass | fd91fc9 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 1 | * MTD SPI driver for 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 |
| 7 | mind that the DT binding is not U-Boot-only, but in case of |
| 8 | U-Boot, see spi_flash_params_table table in |
| 9 | drivers/mtd/spi/sf_params.c for the list of 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 | - memory-map : Address and size of the flash, if memory mapped. This may |
| 15 | apply to Intel chipsets, which tend to memory-map flash. |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | flash: m25p80@0 { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <1>; |
| 22 | compatible = "spansion,m25p80"; |
| 23 | reg = <0>; |
| 24 | spi-max-frequency = <40000000>; |
| 25 | }; |