Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700804 > unrolled thread

[PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622

Started by<sean.wang@mediatek.com>
First post2017-08-01 12:10 +0200
Last post2017-08-03 18:10 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622 <sean.wang@mediatek.com> - 2017-08-01 12:10 +0200
    [PATCH v2 2/3] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding <sean.wang@mediatek.com> - 2017-08-01 12:10 +0200
    [PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC <sean.wang@mediatek.com> - 2017-08-01 12:10 +0200
      Re: [PATCH v2 1/3] dt-bindings: soc: update the binding document for  SCPSYS on MediaTek MT7622 SoC Rob Herring <robh@kernel.org> - 2017-08-03 18:10 +0200

#1700804 — [PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622

From<sean.wang@mediatek.com>
Date2017-08-01 12:10 +0200
Subject[PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622
Message-ID<u9ChI-2n4-7@gated-at.bofh.it>
From: Sean Wang <sean.wang@mediatek.com>

Changes since v1:
- rebase to Linux v4.13-rc1

There are four power domains on MediaTek MT7622 SoC which are respectively
ETHSYS for Ethernet including extra embedded switch, HIF0SYS for PCI-E and
SATA, HIF1SYS for USB and WBSYS for WIFI and Bluetooth.

Those functions could be selectively powered gated when the corresponding
function is no longer to use in order to reach more minimal power
dissipation through the patch series introduced here.

Chen Zhong (2):
  soc: mediatek: add header files required for MT7622 SCPSYS dt-binding
  soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

Sean Wang (1):
  dt-bindings: soc: update the binding document for SCPSYS on MediaTek
    MT7622 SoC

 .../devicetree/bindings/soc/mediatek/scpsys.txt    |  3 +
 drivers/soc/mediatek/mtk-scpsys.c                  | 81 ++++++++++++++++++++++
 include/dt-bindings/power/mt7622-power.h           | 22 ++++++
 include/linux/soc/mediatek/infracfg.h              |  8 ++-
 4 files changed, 113 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/power/mt7622-power.h

-- 
2.7.4

[toc] | [next] | [standalone]


#1700806 — [PATCH v2 2/3] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding

From<sean.wang@mediatek.com>
Date2017-08-01 12:10 +0200
Subject[PATCH v2 2/3] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding
Message-ID<u9ChJ-2n4-23@gated-at.bofh.it>
In reply to#1700804
From: Chen Zhong <chen.zhong@mediatek.com>

Add relevant header files required for dt-bindings of SCPSYS power domain
control for all subsystems found on MT7622 SoC.

Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 include/dt-bindings/power/mt7622-power.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 include/dt-bindings/power/mt7622-power.h

diff --git a/include/dt-bindings/power/mt7622-power.h b/include/dt-bindings/power/mt7622-power.h
new file mode 100644
index 0000000..1b63926
--- /dev/null
+++ b/include/dt-bindings/power/mt7622-power.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2017 MediaTek Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
+ */
+
+#ifndef _DT_BINDINGS_POWER_MT7622_POWER_H
+#define _DT_BINDINGS_POWER_MT7622_POWER_H
+
+#define MT7622_POWER_DOMAIN_ETHSYS	0
+#define MT7622_POWER_DOMAIN_HIF0	1
+#define MT7622_POWER_DOMAIN_HIF1	2
+#define MT7622_POWER_DOMAIN_WB		3
+
+#endif /* _DT_BINDINGS_POWER_MT7622_POWER_H */
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1700808 — [PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

From<sean.wang@mediatek.com>
Date2017-08-01 12:10 +0200
Subject[PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC
Message-ID<u9ChJ-2n4-27@gated-at.bofh.it>
In reply to#1700804
From: Sean Wang <sean.wang@mediatek.com>

Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
---
 Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
index b1d165b..40056f7 100644
--- a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
+++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
@@ -12,11 +12,13 @@ power/power_domain.txt. It provides the power domains defined in
 - include/dt-bindings/power/mt8173-power.h
 - include/dt-bindings/power/mt6797-power.h
 - include/dt-bindings/power/mt2701-power.h
+- include/dt-bindings/power/mt7622-power.h
 
 Required properties:
 - compatible: Should be one of:
 	- "mediatek,mt2701-scpsys"
 	- "mediatek,mt6797-scpsys"
+	- "mediatek,mt7622-scpsys"
 	- "mediatek,mt8173-scpsys"
 - #power-domain-cells: Must be 1
 - reg: Address range of the SCPSYS unit
@@ -26,6 +28,7 @@ Required properties:
                       enabled before enabling certain power domains.
 	Required clocks for MT2701: "mm", "mfg", "ethif"
 	Required clocks for MT6797: "mm", "mfg", "vdec"
+	Required clocks for MT7622: "hif_sel"
 	Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"
 
 Optional properties:
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1703227 — Re: [PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

FromRob Herring <robh@kernel.org>
Date2017-08-03 18:10 +0200
SubjectRe: [PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC
Message-ID<uaqRc-2ml-19@gated-at.bofh.it>
In reply to#1700808
On Tue, Aug 01, 2017 at 06:06:11PM +0800, sean.wang@mediatek.com wrote:
> From: Sean Wang <sean.wang@mediatek.com>
> 
> Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC.
> 
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
> ---
>  Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web