Thomas Abraham | 91cfbd4 | 2012-01-27 15:25:00 +0900 | [diff] [blame] | 1 | * Samsung Exynos Power Domains |
| 2 | |
| 3 | Exynos processors include support for multiple power domains which are used |
| 4 | to gate power to one or more peripherals on the processor. |
| 5 | |
| 6 | Required Properties: |
Tomasz Figa | 8a65d23 | 2012-11-22 00:21:17 +0900 | [diff] [blame] | 7 | - compatible: should be one of the following. |
Thomas Abraham | 91cfbd4 | 2012-01-27 15:25:00 +0900 | [diff] [blame] | 8 | * samsung,exynos4210-pd - for exynos4210 type power domain. |
| 9 | - reg: physical base address of the controller and length of memory mapped |
| 10 | region. |
Tomasz Figa | a4a8c2c | 2014-09-19 20:27:43 +0200 | [diff] [blame] | 11 | - #power-domain-cells: number of cells in power domain specifier; |
| 12 | must be 0. |
Thomas Abraham | 91cfbd4 | 2012-01-27 15:25:00 +0900 | [diff] [blame] | 13 | |
Prathyush K | c760569 | 2014-07-11 08:02:15 +0900 | [diff] [blame] | 14 | Optional Properties: |
| 15 | - clocks: List of clock handles. The parent clocks of the input clocks to the |
| 16 | devices in this power domain are set to oscclk before power gating |
| 17 | and restored back after powering on a domain. This is required for |
| 18 | all domains which are powered on and off and not required for unused |
| 19 | domains. |
| 20 | - clock-names: The following clocks can be specified: |
| 21 | - oscclk: Oscillator clock. |
| 22 | - pclkN, clkN: Pairs of parent of input clock and input clock to the |
| 23 | devices in this power domain. Maximum of 4 pairs (N = 0 to 3) |
| 24 | are supported currently. |
Marek Szyprowski | 0f78075 | 2015-02-04 23:44:15 +0900 | [diff] [blame^] | 25 | - power-domains: phandle pointing to the parent power domain, for more details |
| 26 | see Documentation/devicetree/bindings/power/power_domain.txt |
Prathyush K | c760569 | 2014-07-11 08:02:15 +0900 | [diff] [blame] | 27 | |
Marek Szyprowski | 0da6587 | 2015-01-24 13:16:15 +0900 | [diff] [blame] | 28 | Node of a device using power domains must have a power-domains property |
Tomasz Figa | 8a65d23 | 2012-11-22 00:21:17 +0900 | [diff] [blame] | 29 | defined with a phandle to respective power domain. |
| 30 | |
Thomas Abraham | 91cfbd4 | 2012-01-27 15:25:00 +0900 | [diff] [blame] | 31 | Example: |
| 32 | |
| 33 | lcd0: power-domain-lcd0 { |
| 34 | compatible = "samsung,exynos4210-pd"; |
| 35 | reg = <0x10023C00 0x10>; |
Tomasz Figa | a4a8c2c | 2014-09-19 20:27:43 +0200 | [diff] [blame] | 36 | #power-domain-cells = <0>; |
Thomas Abraham | 91cfbd4 | 2012-01-27 15:25:00 +0900 | [diff] [blame] | 37 | }; |
Tomasz Figa | 8a65d23 | 2012-11-22 00:21:17 +0900 | [diff] [blame] | 38 | |
Prathyush K | c760569 | 2014-07-11 08:02:15 +0900 | [diff] [blame] | 39 | mfc_pd: power-domain@10044060 { |
| 40 | compatible = "samsung,exynos4210-pd"; |
| 41 | reg = <0x10044060 0x20>; |
| 42 | clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_SW_ACLK333>, |
| 43 | <&clock CLK_MOUT_USER_ACLK333>; |
| 44 | clock-names = "oscclk", "pclk0", "clk0"; |
Tomasz Figa | a4a8c2c | 2014-09-19 20:27:43 +0200 | [diff] [blame] | 45 | #power-domain-cells = <0>; |
Prathyush K | c760569 | 2014-07-11 08:02:15 +0900 | [diff] [blame] | 46 | }; |
| 47 | |
Tomasz Figa | a4a8c2c | 2014-09-19 20:27:43 +0200 | [diff] [blame] | 48 | See Documentation/devicetree/bindings/power/power_domain.txt for description |
| 49 | of consumer-side bindings. |