diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2017-05-25 01:49:12 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2017-06-01 20:28:53 +0200 |
commit | 4db4d35ebda390b5287d758fdd51b26c24fbc26b (patch) | |
tree | e4039fb8f37619fb311eab40bdaec32e27ab7bca /Documentation/devicetree | |
parent | Merge MTD fixes into -next (diff) | |
download | linux-4db4d35ebda390b5287d758fdd51b26c24fbc26b.tar.xz linux-4db4d35ebda390b5287d758fdd51b26c24fbc26b.zip |
mtd: mchp23k256: Add OF device ID table
This allows registering of this device via a Device Tree.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt b/Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt new file mode 100644 index 000000000000..25e5ad38b0f0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt @@ -0,0 +1,18 @@ +* 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 "microchip,mchp23k256" +- 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>; + }; |