xref: /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/mtd/spi/spi-flash.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* MTD SPI driver for serial flash chips
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- #address-cells, #size-cells : Must be present if the device has sub-nodes
5*4882a593Smuzhiyun  representing partitions.
6*4882a593Smuzhiyun- compatible : Should be the manufacturer and the name of the chip. Bear in
7*4882a593Smuzhiyun               mind that the DT binding is not U-Boot-only, but in case of
8*4882a593Smuzhiyun               U-Boot, see spi_flash_params_table table in
9*4882a593Smuzhiyun               drivers/mtd/spi/spi_flash_ids.c for the list of supported chips.
10*4882a593Smuzhiyun- reg : Chip-Select number
11*4882a593Smuzhiyun- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun - memory-map : Address and size of the flash, if memory mapped. This may
15*4882a593Smuzhiyun                apply to Intel chipsets, which tend to memory-map flash.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunExample:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	flash: m25p80@0 {
20*4882a593Smuzhiyun		#address-cells = <1>;
21*4882a593Smuzhiyun		#size-cells = <1>;
22*4882a593Smuzhiyun		compatible = "spansion,m25p80";
23*4882a593Smuzhiyun		reg = <0>;
24*4882a593Smuzhiyun		spi-max-frequency = <40000000>;
25*4882a593Smuzhiyun	};
26