Commit Graph
8 Commits
Author SHA1 Message Date
Marek Szyprowski 0f7807518f ARM: EXYNOS: add support for sub-power domains
This patch adds support for making one power domain a sub-domain of
other domain. This is useful for modeling power dependences for devices
like TV Mixer or Camera ISP, which needs to have more than one power
domain enabled to be operational.

Based on previous work by Amit Daniel Kachhap <[email protected]>.

Signed-off-by: Marek Szyprowski <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2015-02-27 05:26:57 +09:00
Marek Szyprowski 0da6587041 ARM: dts: convert to generic power domain bindings for exynos DT
This patch replaces all custom samsung,power-domain dt
properties with generic power domain bindings and updates
documentation Samsung's devices referring to old binding.

Suggested-by: Kevin Hilman <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
[[email protected]: tested on the Exynos5800 Peach Pi Chromebook]
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2015-01-24 13:24:05 +09:00
Tomasz Figa a4a8c2c496 ARM: exynos: Move to generic PM domain DT bindings
This patch moves Exynos PM domain code to use the new generic PM domain
look-up framework introduced in previous patches, thus also allowing
the new code to be compiled with CONFIG_ARCH_EXYNOS.

This patch was originally submitted by Tomasz Figa when he was employed
by Samsung.

Link: http://marc.info/?l=linux-pm&m=139955336002083&w=2
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Kevin Hilman <[email protected]>
Reviewed-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
2014-09-22 15:57:40 +02:00
Prathyush K c760569d0e ARM: EXYNOS: Add support for clock handling in power domain
While powering on/off a local powerdomain in exynos5 chipsets, the
input clocks to each device gets modified. This behaviour is based
on the SYSCLK_SYS_PWR_REG registers.
E.g. SYSCLK_MFC_SYS_PWR_REG = 0x0, the parent of input clock to MFC
                             (aclk333) gets modified to oscclk
                            = 0x1, no change in clocks.
The recommended value of SYSCLK_SYS_PWR_REG before power gating any
domain is 0x0. So we must also restore the clocks while powering on
a domain everytime.

This patch adds the framework for getting the required mux and parent
clocks through a power domain device node. With this patch, while
powering off a domain, parent is set to oscclk and while powering back
on, its re-set to the correct parent which is as per the recommended
pd on/off sequence.

Signed-off-by: Prathyush K <[email protected]>
Signed-off-by: Andrew Bresticker <[email protected]>
Signed-off-by: Arun Kumar K <[email protected]>
Signed-off-by: Shaik Ameer Basha <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2014-07-11 08:03:19 +09:00
Sachin Kamat d7067f1c5f devicetree: bindings: document SYSRAM binding
Add SRAM binding documentation.

Signed-off-by: Sachin Kamat <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
[[email protected]: changed name SRAM to SYSRAM]
Signed-off-by: Kukjin Kim <[email protected]>
2014-05-15 03:30:29 +09:00
Tomasz Figa 8a65d2365d ARM: EXYNOS: Bind devices to power domains using DT
This patch adds a way to specify bindings between devices and power
domains using device tree.

A device can be bound to particular power domain by adding a
power-domain property containing a phandle to the domain. The device
will be bound to the domain before binding a driver to it and unbound
after unbinding a driver from it.

Signed-off-by: Tomasz Figa <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2012-11-22 00:38:59 +09:00
Tomasz Figa 2ed5f23671 ARM: EXYNOS: Detect power domain state on registration from DT
Initial state of power domains might vary on different boards and with
different bootloaders.

This patch adds detection of initial state of power domains when being
registered from DT.

Signed-off-by: Tomasz Figa <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2012-11-22 00:38:57 +09:00
Thomas Abraham 91cfbd4ee0 ARM: EXYNOS: Hook up power domains to generic power domain infrastructure
Add support for generic power domain for Exynos4 platforms and remove the
Samsung specific power domain control for Exynos4.

The generic power domain infrastructure is used to control the power domains
available on Exynos4. For non-dt platforms, the power domains are statically
instantiated. For dt platforms, the power domain nodes found in the device
tree are instantiated.

Cc: Kyungmin Park <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Grant Likely <[email protected]>
Signed-off-by: Thomas Abraham <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
2012-01-27 15:25:49 +09:00