kernel: update kernel 4.4 to version 4.4.7
[openwrt.git] / target / linux / mediatek / patches-4.4 / 0057-mtd-mediatek-device-tree-docs-for-MTK-Smart-Device-G.patch
1 From 5f0a1fa77e5d53b8dbb751fcfc59c7ef3d78ddf2 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/81] 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 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
20 @@ -0,0 +1,38 @@
21 +MTK Smart Device SoCs NAND controller DT binding
22 +
23 +Required properties:
24 +- compatible:          Should be "mediatek,mt2701-nfc".
25 +- reg:                 The first contains base physical address and size of
26 +                       NAND controller's registers. The second contains base
27 +                       physical address and size of NAND ECC engine.
28 +- interrupts:          the NFC NFI interrupt, and the NFC ECC interrupt
29 +- clocks:              NAND controller clocks.
30 +- clock-names:         NAND controller clocks internal name.
31 +- vmch-supply:         NAND power supply.
32 +- #address-cells:      Partition address, should be set 1.
33 +- #size-cells:         Partition size, should be set 1.
34 +
35 +Optional properties:
36 +
37 +nand-on-flash-bbt:  Use a flash based bad block table.
38 +
39 +Optional subnodes:
40 +- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
41 +
42 +Example:
43 +
44 +       nand: nand@1100d000 {
45 +               compatible = "mediatek,mt2701-nfc";
46 +               reg = <0 0x1100d000 0 0x1000>, <0 0x1100e000 0 0x1000>;
47 +               interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>,
48 +                       <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
49 +               clocks = <&pericfg CLK_PERI_NFI>, <&pericfg CLK_PERI_NFI_ECC>,
50 +                       <&pericfg CLK_PERI_NFI_PAD>;
51 +               clock-names = "nfi_ck", "nfi_ecc_ck", "nfi_pad_ck";
52 +               vmch-supply = <&mt6323_vmch_reg>;
53 +               status = "disabled";
54 +               #address-cells = <1>;
55 +               #size-cells = <1>;
56 +
57 +               ...
58 +       };