diff options
| author | Stefan Roese <sr@denx.de> | 2012-03-16 06:42:11 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 20:01:21 -0400 |
| commit | 6551ab5d30d6bf0cea0c6cb294686ce3c7fc6042 (patch) | |
| tree | ba88add42bc6bf9d72feeb142afd601782051cdc /Documentation/devicetree/bindings/mtd | |
| parent | f7e3dd8f48faad24334f7bea048ea59a2c766587 (diff) | |
mtd: add device-tree support to spear_smi
This patch adds support to configure the SPEAr SMI driver via
device-tree instead of platform_data.
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'Documentation/devicetree/bindings/mtd')
| -rw-r--r-- | Documentation/devicetree/bindings/mtd/spear_smi.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mtd/spear_smi.txt b/Documentation/devicetree/bindings/mtd/spear_smi.txt new file mode 100644 index 00000000000..7248aadd89e --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/spear_smi.txt | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | * SPEAr SMI | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible : "st,spear600-smi" | ||
| 5 | - reg : Address range of the mtd chip | ||
| 6 | - #address-cells, #size-cells : Must be present if the device has sub-nodes | ||
| 7 | representing partitions. | ||
| 8 | - interrupt-parent: Should be the phandle for the interrupt controller | ||
| 9 | that services interrupts for this device | ||
| 10 | - interrupts: Should contain the STMMAC interrupts | ||
| 11 | - clock-rate : Functional clock rate of SMI in Hz | ||
| 12 | |||
| 13 | Optional properties: | ||
| 14 | - st,smi-fast-mode : Flash supports read in fast mode | ||
| 15 | |||
| 16 | Example: | ||
| 17 | |||
| 18 | smi: flash@fc000000 { | ||
| 19 | compatible = "st,spear600-smi"; | ||
| 20 | #address-cells = <1>; | ||
| 21 | #size-cells = <1>; | ||
| 22 | reg = <0xfc000000 0x1000>; | ||
| 23 | interrupt-parent = <&vic1>; | ||
| 24 | interrupts = <12>; | ||
| 25 | clock-rate = <50000000>; /* 50MHz */ | ||
| 26 | |||
| 27 | flash@f8000000 { | ||
| 28 | st,smi-fast-mode; | ||
| 29 | ... | ||
| 30 | }; | ||
| 31 | }; | ||
