mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
4379075a87
The mchp23lcv1024 is similar to the mchp23k256, the differences (from a software point of view) are the capacity of the chip and the size of the addresses used. There is no way to detect the specific chip so we must be told via a Device Tree or default to mchp23k256 when device tree is not used. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
* MTD SPI driver for Microchip 23K256 (and similar) serial SRAM
|
|
|
|
Required properties:
|
|
- #address-cells, #size-cells : Must be present if the device has sub-nodes
|
|
representing partitions.
|
|
- compatible : Must be one of "microchip,mchp23k256" or "microchip,mchp23lcv1024"
|
|
- reg : Chip-Select number
|
|
- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
|
|
|
|
Example:
|
|
|
|
spi-sram@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "microchip,mchp23k256";
|
|
reg = <0>;
|
|
spi-max-frequency = <20000000>;
|
|
};
|