mediatek: update to latest kernel patchset from v4.13-rc
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.9 / 0004-soc-mediatek-Add-MT2701-power-dt-bindings.patch
1 From 2f47c01fe3015f4c649849ddffe04f12a122abe2 Mon Sep 17 00:00:00 2001
2 From: Shunli Wang <shunli.wang@mediatek.com>
3 Date: Thu, 20 Oct 2016 16:56:37 +0800
4 Subject: [PATCH 04/57] soc: mediatek: Add MT2701 power dt-bindings
5
6 Add power dt-bindings for MT2701.
7
8 Signed-off-by: Shunli Wang <shunli.wang@mediatek.com>
9 Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
10 Acked-by: Rob Herring <robh@kernel.org>
11 Reviewed-by: Kevin Hilman <khilman@baylibre.com>
12 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
13 ---
14 .../devicetree/bindings/soc/mediatek/scpsys.txt | 13 ++++++-----
15 include/dt-bindings/power/mt2701-power.h | 26 ++++++++++++++++++++++
16 2 files changed, 34 insertions(+), 5 deletions(-)
17 create mode 100644 include/dt-bindings/power/mt2701-power.h
18
19 --- a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
20 +++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
21 @@ -9,17 +9,20 @@ domain control.
22
23 The driver implements the Generic PM domain bindings described in
24 power/power_domain.txt. It provides the power domains defined in
25 -include/dt-bindings/power/mt8173-power.h.
26 +include/dt-bindings/power/mt8173-power.h and mt2701-power.h.
27
28 Required properties:
29 -- compatible: Must be "mediatek,mt8173-scpsys"
30 +- compatible: Should be one of:
31 + - "mediatek,mt2701-scpsys"
32 + - "mediatek,mt8173-scpsys"
33 - #power-domain-cells: Must be 1
34 - reg: Address range of the SCPSYS unit
35 - infracfg: must contain a phandle to the infracfg controller
36 - clock, clock-names: clocks according to the common clock binding.
37 - The clocks needed "mm", "mfg", "venc" and "venc_lt".
38 - These are the clocks which hardware needs to be enabled
39 - before enabling certain power domains.
40 + These are clocks which hardware needs to be
41 + enabled before enabling certain power domains.
42 + Required clocks for MT2701: "mm", "mfg", "ethif"
43 + Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"
44
45 Optional properties:
46 - vdec-supply: Power supply for the vdec power domain
47 --- /dev/null
48 +++ b/include/dt-bindings/power/mt2701-power.h
49 @@ -0,0 +1,26 @@
50 +/*
51 + * Copyright (C) 2015 MediaTek Inc.
52 + *
53 + * This program is free software: you can redistribute it and/or modify
54 + * it under the terms of the GNU General Public License version 2 as
55 + * published by the Free Software Foundation.
56 + *
57 + * This program is distributed in the hope that it will be useful,
58 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
59 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60 + * GNU General Public License for more details.
61 + */
62 +
63 +#ifndef _DT_BINDINGS_POWER_MT2701_POWER_H
64 +#define _DT_BINDINGS_POWER_MT2701_POWER_H
65 +
66 +#define MT2701_POWER_DOMAIN_CONN 0
67 +#define MT2701_POWER_DOMAIN_DISP 1
68 +#define MT2701_POWER_DOMAIN_IFR_MSC 2
69 +#define MT2701_POWER_DOMAIN_VDEC 3
70 +#define MT2701_POWER_DOMAIN_ISP 4
71 +#define MT2701_POWER_DOMAIN_BDP 5
72 +#define MT2701_POWER_DOMAIN_ETH 6
73 +#define MT2701_POWER_DOMAIN_HIF 7
74 +
75 +#endif /* _DT_BINDINGS_POWER_MT2701_POWER_H */