edeeb968500c23cd0d969e57ef09c53ca4ba4bd7
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.4 / 0057-mtd-mediatek-device-tree-docs-for-MTK-Smart-Device-G.patch
1 From 0fe612b501f1d56d76b2858d2ae779c1e766d064 Mon Sep 17 00:00:00 2001
2 From: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
3 Date: Wed, 2 Mar 2016 12:00:11 -0500
4 Subject: [PATCH 57/91] mtd: mediatek: device tree docs for MTK Smart Device
5 Gen1 NAND
6
7 This patch adds documentation support for Smart Device Gen1 type of
8 NAND controllers.
9
10 Mediatek's SoC 2701 is one of the SoCs that implements this controller.
11
12 Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
13 ---
14 .../devicetree/bindings/mtd/mtksdg1-nand.txt | 38 ++++++++++++++++++++
15 1 file changed, 38 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
17
18 diff --git a/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
19 new file mode 100644
20 index 0000000..129d17b
21 --- /dev/null
22 +++ b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
23 @@ -0,0 +1,38 @@
24 +MTK Smart Device SoCs NAND controller DT binding
25 +
26 +Required properties:
27 +- compatible: Should be "mediatek,mt2701-nfc".
28 +- reg: The first contains base physical address and size of
29 + NAND controller's registers. The second contains base
30 + physical address and size of NAND ECC engine.
31 +- interrupts: the NFC NFI interrupt, and the NFC ECC interrupt
32 +- clocks: NAND controller clocks.
33 +- clock-names: NAND controller clocks internal name.
34 +- vmch-supply: NAND power supply.
35 +- #address-cells: Partition address, should be set 1.
36 +- #size-cells: Partition size, should be set 1.
37 +
38 +Optional properties:
39 +
40 +nand-on-flash-bbt: Use a flash based bad block table.
41 +
42 +Optional subnodes:
43 +- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
44 +
45 +Example:
46 +
47 + nand: nand@1100d000 {
48 + compatible = "mediatek,mt2701-nfc";
49 + reg = <0 0x1100d000 0 0x1000>, <0 0x1100e000 0 0x1000>;
50 + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>,
51 + <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
52 + clocks = <&pericfg CLK_PERI_NFI>, <&pericfg CLK_PERI_NFI_ECC>,
53 + <&pericfg CLK_PERI_NFI_PAD>;
54 + clock-names = "nfi_ck", "nfi_ecc_ck", "nfi_pad_ck";
55 + vmch-supply = <&mt6323_vmch_reg>;
56 + status = "disabled";
57 + #address-cells = <1>;
58 + #size-cells = <1>;
59 +
60 + ...
61 + };
62 --
63 1.7.10.4
64