Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754850AbbEKTXn (ORCPT ); Mon, 11 May 2015 15:23:43 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:44179 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753510AbbEKTXj (ORCPT ); Mon, 11 May 2015 15:23:39 -0400 From: Sascha Hauer To: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, Kevin Hilman , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, kernel@pengutronix.de, Matthias Brugger Subject: [PATCH v2] Mediatek SCPSYS power domain support Date: Mon, 11 May 2015 21:23:21 +0200 Message-Id: <1431372206-1237-1-git-send-email-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2916 Lines: 73 This series adds support for the MediaTek SCPSYS unit. The SCPSYS unit handles several power management related tasks such as thermal measurement, DVFS, interrupt filter and low level sleep control. The initial support only contains the generic power domain handling. This is needed to turn on power to the different power domains. The driver is quite straight forward now. Due to the lack of a better place I have put it to drivers/soc/mediatek. As the SCPSYS unit has several other tasks that also do not fit into some specific subsystem this probably is a good place for this driver. Please review, any input welcome. Sascha changes since v1: - make MFG_ASYNC a subdomain of MFG_2D and MFG_2D a subdomain of MFG - Add (now hopefully properly) infracfg register handling again - Add clock handling - Fix on/off mixup in error message - Make readonly data const - Fix MODULE_LICENSE to GPL v2 changes since RFC: - add a commit log to driver patch - drop manipulating infracfg registers for now, can be added (properly) later - Add warning messages when errors occur - add NULL pointer check for kmalloc The following changes since commit 5ebe6afaf0057ac3eaeb98defd5456894b446d22: Linux 4.1-rc2 (2015-05-03 19:22:23 -0700) are available in the git repository at: git://git.pengutronix.de/git/sha/linux-2.6.git tags/v4.1-soc-mediatek-scpsys-v2 for you to fetch changes up to 455a45faa25fad4d89b8296d760048f243b72c7d: ARM64: MediaTek MT8173: Add SCPSYS device node (2015-05-11 14:32:59 +0200) ---------------------------------------------------------------- Sascha Hauer (5): soc: mediatek: Add infracfg misc driver support dt-bindings: soc: Add documentation for the MediaTek SCPSYS unit soc: Mediatek: Add SCPSYS power domain driver ARM64: MediaTek: Add generic pm domain support ARM64: MediaTek MT8173: Add SCPSYS device node .../devicetree/bindings/soc/mediatek/scpsys.txt | 34 ++ arch/arm64/Kconfig | 1 + arch/arm64/boot/dts/mediatek/mt8173.dtsi | 12 + drivers/soc/mediatek/Kconfig | 17 + drivers/soc/mediatek/Makefile | 2 + drivers/soc/mediatek/mtk-infracfg.c | 80 ++++ drivers/soc/mediatek/mtk-scpsys.c | 416 +++++++++++++++++++++ include/dt-bindings/power/mt8173-power.h | 15 + 8 files changed, 577 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/scpsys.txt create mode 100644 drivers/soc/mediatek/mtk-infracfg.c create mode 100644 drivers/soc/mediatek/mtk-scpsys.c create mode 100644 include/dt-bindings/power/mt8173-power.h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/