Merge branch 'topic/namespace' of git://git.kernel.org/pub/scm/linux/kernel/git/broon...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mtd / mtk-quadspi.txt
1 * Serial NOR flash controller for MTK MT81xx (and similar)
2
3 Required properties:
4 - compatible:     The possible values are:
5                   "mediatek,mt2701-nor"
6                   "mediatek,mt7623-nor"
7                   "mediatek,mt8173-nor"
8                   For mt8173, compatible should be "mediatek,mt8173-nor".
9                   For every other SoC, should contain both the SoC-specific compatible string
10                   and "mediatek,mt8173-nor".
11 - reg:            physical base address and length of the controller's register
12 - clocks:         the phandle of the clocks needed by the nor controller
13 - clock-names:    the names of the clocks
14                   the clocks should be named "spi" and "sf". "spi" is used for spi bus,
15                   and "sf" is used for controller, these are the clocks witch
16                   hardware needs to enabling nor flash and nor flash controller.
17                   See Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
18 - #address-cells: should be <1>
19 - #size-cells:    should be <0>
20
21 The SPI flash must be a child of the nor_flash node and must have a
22 compatible property. Also see jedec,spi-nor.txt.
23
24 Required properties:
25 - compatible:     May include a device-specific string consisting of the manufacturer
26                   and name of the chip. Must also include "jedec,spi-nor" for any
27                   SPI NOR flash that can be identified by the JEDEC READ ID opcode (0x9F).
28 - reg :           Chip-Select number
29
30 Example:
31
32 nor_flash: spi@1100d000 {
33         compatible = "mediatek,mt8173-nor";
34         reg = <0 0x1100d000 0 0xe0>;
35         clocks = <&pericfg CLK_PERI_SPI>,
36                  <&topckgen CLK_TOP_SPINFI_IFR_SEL>;
37         clock-names = "spi", "sf";
38         #address-cells = <1>;
39         #size-cells = <0>;
40
41         flash@0 {
42                 compatible = "jedec,spi-nor";
43                 reg = <0>;
44         };
45 };
46