Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: mediatek: Add MT2701 power dt-bindings

Add power dt-bindings for MT2701.

Signed-off-by: Shunli Wang <shunli.wang@mediatek.com>
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Shunli Wang and committed by
Matthias Brugger
3e96c653 1001354c

+35 -5
+8 -5
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
··· 9 9 10 10 The driver implements the Generic PM domain bindings described in 11 11 power/power_domain.txt. It provides the power domains defined in 12 - include/dt-bindings/power/mt8173-power.h. 12 + include/dt-bindings/power/mt8173-power.h and mt2701-power.h. 13 13 14 14 Required properties: 15 - - compatible: Must be "mediatek,mt8173-scpsys" 15 + - compatible: Should be one of: 16 + - "mediatek,mt2701-scpsys" 17 + - "mediatek,mt8173-scpsys" 16 18 - #power-domain-cells: Must be 1 17 19 - reg: Address range of the SCPSYS unit 18 20 - infracfg: must contain a phandle to the infracfg controller 19 21 - clock, clock-names: clocks according to the common clock binding. 20 - The clocks needed "mm", "mfg", "venc" and "venc_lt". 21 - These are the clocks which hardware needs to be enabled 22 - before enabling certain power domains. 22 + These are clocks which hardware needs to be 23 + enabled before enabling certain power domains. 24 + Required clocks for MT2701: "mm", "mfg", "ethif" 25 + Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt" 23 26 24 27 Optional properties: 25 28 - vdec-supply: Power supply for the vdec power domain
+27
include/dt-bindings/power/mt2701-power.h
··· 1 + /* 2 + * Copyright (C) 2015 MediaTek Inc. 3 + * 4 + * This program is free software: you can redistribute it and/or modify 5 + * it under the terms of the GNU General Public License version 2 as 6 + * published by the Free Software Foundation. 7 + * 8 + * This program is distributed in the hope that it will be useful, 9 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + * GNU General Public License for more details. 12 + */ 13 + 14 + #ifndef _DT_BINDINGS_POWER_MT2701_POWER_H 15 + #define _DT_BINDINGS_POWER_MT2701_POWER_H 16 + 17 + #define MT2701_POWER_DOMAIN_CONN 0 18 + #define MT2701_POWER_DOMAIN_DISP 1 19 + #define MT2701_POWER_DOMAIN_MFG 2 20 + #define MT2701_POWER_DOMAIN_VDEC 3 21 + #define MT2701_POWER_DOMAIN_ISP 4 22 + #define MT2701_POWER_DOMAIN_BDP 5 23 + #define MT2701_POWER_DOMAIN_ETH 6 24 + #define MT2701_POWER_DOMAIN_HIF 7 25 + #define MT2701_POWER_DOMAIN_IFR_MSC 8 26 + 27 + #endif /* _DT_BINDINGS_POWER_MT2701_POWER_H */