xref: /rk3399_rockchip-uboot/doc/device-tree-bindings/mtd/spi/spi-flash.txt (revision 2d221489df021393654805536be7effcb9d39702)
10b304a24SSimon Glass* MTD SPI driver for serial flash chips
20b304a24SSimon Glass
30b304a24SSimon GlassRequired properties:
40b304a24SSimon Glass- #address-cells, #size-cells : Must be present if the device has sub-nodes
50b304a24SSimon Glass  representing partitions.
60b304a24SSimon Glass- compatible : Should be the manufacturer and the name of the chip. Bear in
70b304a24SSimon Glass               mind that the DT binding is not U-Boot-only, but in case of
80b304a24SSimon Glass               U-Boot, see spi_flash_params_table table in
9*6645fd2cSJagan Teki               drivers/mtd/spi/spi_flash_ids.c for the list of supported chips.
100b304a24SSimon Glass- reg : Chip-Select number
110b304a24SSimon Glass- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
120b304a24SSimon Glass
130b304a24SSimon GlassOptional properties:
140b304a24SSimon Glass - memory-map : Address and size of the flash, if memory mapped. This may
150b304a24SSimon Glass                apply to Intel chipsets, which tend to memory-map flash.
160b304a24SSimon Glass
170b304a24SSimon GlassExample:
180b304a24SSimon Glass
190b304a24SSimon Glass	flash: m25p80@0 {
200b304a24SSimon Glass		#address-cells = <1>;
210b304a24SSimon Glass		#size-cells = <1>;
220b304a24SSimon Glass		compatible = "spansion,m25p80";
230b304a24SSimon Glass		reg = <0>;
240b304a24SSimon Glass		spi-max-frequency = <40000000>;
250b304a24SSimon Glass	};
26