[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1416833572-6880-1-git-send-email-amit.daniel@samsung.com>
Date: Mon, 24 Nov 2014 18:22:40 +0530
From: Amit Daniel Kachhap <amit.daniel@...sung.com>
To: linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org
Cc: kgene.kim@...sung.com, linux-kernel@...r.kernel.org,
s.nawrocki@...sung.com, pankaj.dubey@...sung.com,
ulf.hansson@...aro.org, khilman@...nel.org,
linux-pm@...r.kernel.org, geert@...ux-m68k.org, rjw@...ysocki.net,
devicetree@...r.kernel.org,
Amit Daniel Kachhap <amit.daniel@...sung.com>
Subject: [PATCH RFC v2 00/12] soc: samsung: Modify and enhance power domain
driver
Posting this series as RFC to get more clarity as lot of power domain related
discussion is happening in mailing lists.
This patch series[1 - 12] performs several implementations as listed below,
1) Converts power domain driver to platform driver.
2) Registers this driver as MFD client driver.
3) Moves them into driver/soc/samsung folder.
4) Add parent power domain parsing code.
5) Updates the reparenting feature to make it more generic.
6) A feature to turn clocks on during pm domain off/on. There can be
different set of clocks to be turned on. The patches in Rafael's tree allows
a single list only.
7) Code added to preserve the clocks rates during power domain on/off
sequence.
8) Restructured the exynos PD on/off handlers and added exynos7 support.
The power domain DT node may look something like,
mfc_pd: power-domain@...44060 {
compatible = "samsung,exynos4210-pd", "samsung,exynos7-pd-mfc";
reg = <0x10044060 0x20>;
pd-parent-clock-names = "tclk0", "pclk0", "clk0";
pd-parent-clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_SW_ACLK333>,
<&clock CLK_MOUT_USER_ACLK333>;
pd-on-en-clock-names = "clk0", "clk1";
pd-on-en-clocks = <&clock CLK_IP1>, <&clock CLK_IP2>,
pd-off-en-clock-names = "clk0", "clk1", "clk3";
pd-off-en-clocks = <&clock CLK_IP1>, <&clock CLK_IP2>, <&clock CLK_IP3>;
pd-rate-clock-names = "clk0", "clk1";
pd-rate-clocks = <&clock CLK_IP1>, <&clock CLK_IP2>,
parents = <&pd_top>;
#power-domain-cells = <0>;
};
Changes from v1:
* Removed PM domain notifier features.
* Removed clock save/restore through those notifiers.
* link for v1 is http://www.spinics.net/lists/linux-samsung-soc/msg38442.html.
This patch series depends on exynos pmu patches posted earlier.
http://lkml.org/lkml/2014/11/23/221
Amit Daniel Kachhap (12):
arm: exynos: Add platform driver support for power domain driver
soc: exynos: Move exynos power domain file to driver/soc/samsung
folder
soc: samsung: exynos-pmu: Register exynos pd driver as a mfd client
soc: samsung: Re-structure PMU driver to create pd on/off handlers
soc: samsung: pm_domain: Use unique compatible name for power domain
driver: soc: exynos-pmu: Add exynos7 power domain on/off ops
PM / Domains: export pm_genpd_lookup_name
soc: samsung: pm_domain: Add support for parent power domain
drivers: soc: pm_domain: Modify the parent clocks bindings
drivers: soc: samsung: Add support for clock enabling in power domain
drivers: soc: samsung: Add support for clock rate save/restore in
power domain
arm64: Kconfig: Enable PM_GENERIC_DOMAINS for exynos7
.../bindings/arm/exynos/power_domain.txt | 45 +-
arch/arm/mach-exynos/Makefile | 1 -
arch/arm/mach-exynos/pm_domains.c | 166 -------
arch/arm64/Kconfig | 1 +
drivers/base/power/domain.c | 3 +-
drivers/soc/samsung/Kconfig | 9 +
drivers/soc/samsung/Makefile | 3 +-
drivers/soc/samsung/exynos-pmu.c | 185 +++++++
drivers/soc/samsung/pm_domains.c | 510 ++++++++++++++++++++
include/linux/pm_domain.h | 7 +
include/linux/soc/samsung/exynos-pmu.h | 15 +
include/linux/soc/samsung/exynos-regs-pmu.h | 26 +
12 files changed, 794 insertions(+), 177 deletions(-)
delete mode 100644 arch/arm/mach-exynos/pm_domains.c
create mode 100644 drivers/soc/samsung/pm_domains.c
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists