mediatek: backport upstream mediatek patches
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.14 / 0135-dt-bindings-mtd-add-new-compatible-strings-and-impro.patch
1 From 2af9a8582cb28e786a8cbd913f41e6db9adcf3dc Mon Sep 17 00:00:00 2001
2 From: Guochun Mao <guochun.mao@mediatek.com>
3 Date: Thu, 21 Sep 2017 20:45:05 +0800
4 Subject: [PATCH 135/224] dt-bindings: mtd: add new compatible strings and
5 improve description
6
7 Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor"
8 for nor flash node's compatible strings.
9 Explicate the fallback compatible.
10
11 Acked-by: Rob Herring <robh@kernel.org>
12 Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
13 Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
14 ---
15 Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 15 +++++++++------
16 1 file changed, 9 insertions(+), 6 deletions(-)
17
18 diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
19 index 840f9405dcf0..56d3668e2c50 100644
20 --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
21 +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
22 @@ -1,13 +1,16 @@
23 * Serial NOR flash controller for MTK MT81xx (and similar)
24
25 Required properties:
26 -- compatible: The possible values are:
27 - "mediatek,mt2701-nor"
28 - "mediatek,mt7623-nor"
29 +- compatible: For mt8173, compatible should be "mediatek,mt8173-nor",
30 + and it's the fallback compatible for other Soc.
31 + For every other SoC, should contain both the SoC-specific compatible
32 + string and "mediatek,mt8173-nor".
33 + The possible values are:
34 + "mediatek,mt2701-nor", "mediatek,mt8173-nor"
35 + "mediatek,mt2712-nor", "mediatek,mt8173-nor"
36 + "mediatek,mt7622-nor", "mediatek,mt8173-nor"
37 + "mediatek,mt7623-nor", "mediatek,mt8173-nor"
38 "mediatek,mt8173-nor"
39 - For mt8173, compatible should be "mediatek,mt8173-nor".
40 - For every other SoC, should contain both the SoC-specific compatible string
41 - and "mediatek,mt8173-nor".
42 - reg: physical base address and length of the controller's register
43 - clocks: the phandle of the clocks needed by the nor controller
44 - clock-names: the names of the clocks
45 --
46 2.11.0
47