[PATCH] clk: rockchip: rk3368: fix section mismatches with new child-clocks

2016-02-23 Thread Elaine Zhang
there may be some way to also set that missing property in the inline notation I didn't find it, so to actually fix the issue for now move the sub-definitions into separate declarations that can have their own __initdata properties. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- d

[RESEND PATCH] clk: rockchip: include downstream muxes into fractional dividers on rk3368

2016-02-23 Thread Elaine Zhang
During the initial conversion to the newly introduced combined fractional dividers+muxes the rk3368 clocks were left out, so convert them now. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3368.c | 97 --- 1 file c

[PATCH v4 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-02-25 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v4 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-02-25 Thread Elaine Zhang
fix some idle handling support sub-power domain add rk3399-power.h modify document for RK3399 Soc modify power domain for RK3399 SoC Elaine Zhang (6): rockchip: power-domain: make idle handling optional power-domain: allow domains only handling idle requests rockchip: power-domain: add

[PATCH v4 1/6] rockchip: power-domain: make idle handling optional

2016-02-25 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v4 3/6] rockchip: power-domain: add support for sub-power domains

2016-02-25 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v4 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-02-25 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 41 ++ 1 file changed, 41 insertions(+) diff --git a/Documentation/devi

[PATCH v4 6/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-02-25 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v4 2/6] power-domain: allow domains only handling idle requests

2016-02-25 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drive

[PATCH v3 3/6] rockchip: power-domain: add support for sub-power domains

2016-02-24 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v3 1/6] rockchip: power-domain: make idle handling optional

2016-02-24 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v3 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-02-24 Thread Elaine Zhang
fix some idle handling support sub-power domain add rk3399-power.h modify power domain for RK3399 SoC modify document for RK3399 Soc Elaine Zhang (6): rockchip: power-domain: make idle handling optional rockchip: power-domain: allow domains only handling idle requests rockchip: power-domain

[PATCH v3 2/6] power-domain: allow domains only handling idle requests

2016-02-24 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drive

[PATCH v3 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-02-24 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v3 5/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-02-24 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v3 6/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-02-24 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 41 ++ 1 file changed, 41 insertions(+) diff --git a/Documentation/devi

[PATCH v2 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-02-18 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v2 1/6] rockchip: power-domain: make idle handling optional

2016-02-18 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/soc/rockchip/pm_domains.c | 11 --- 1 fil

[PATCH v2 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-02-18 Thread Elaine Zhang
fix some idle handling support sub-power domain add rk3399-power.h modify power domain for RK3399 SoC modify document for RK3399 Soc Elaine Zhang (6): rockchip: power-domain: make idle handling optional rockchip: power-domain: allow domains only handling idle requests rockchip: power-domain

[PATCH v2 3/6] rockchip: power-domain: add support for sub-power domains

2016-02-18 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v2 2/6] rockchip: power-domain: allow domains only handling idle requests

2016-02-18 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by:

[PATCH v2 6/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-02-18 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/devi

[PATCH v2 5/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-02-18 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v1 1/6] rockchip: power-domain: make idle handling optional

2016-02-15 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Heiko Stuebner <he...@sntech.de> --- drivers/soc/rockchip/pm_domains.c | 11 --- 1 fil

[PATCH v1 3/6] rockchip: power-domain: add support for sub-power domains

2016-02-15 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v1 2/6] rockchip: power-domain: allow domains only handling idle requests

2016-02-15 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by:

[PATCH v1 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-02-15 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v1 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-02-15 Thread Elaine Zhang
fix some idle handling support sub-power domain add rk3399-power.h modify power domain for RK3399 SoC modify document for RK3399 Soc Elaine Zhang (6): rockchip: power-domain: make idle handling optional rockchip: power-domain: allow domains only handling idle requests rockchip: power-domain

[PATCH v1 6/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-02-15 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/devi

[PATCH v1 5/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-02-15 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[RESEND PATCH v6 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-03-09 Thread Elaine Zhang
domian follow the TRM reg bits Elaine Zhang (6): rockchip: power-domain: make idle handling optional power-domain: allow domains only handling idle requests rockchip: power-domain: add support for sub-power domains dt/bindings: power: add RK3399 SoCs header for power-domain dt/bindings

[PATCH v6 1/6] rockchip: power-domain: make idle handling optional

2016-03-09 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v6 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-09 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v6 3/6] rockchip: power-domain: add support for sub-power domains

2016-03-09 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v6 2/6] power-domain: allow domains only handling idle requests

2016-03-09 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drive

[PATCH v6 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-09 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 37 ++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devi

[PATCH v6 6/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-03-09 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v6 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-03-09 Thread Elaine Zhang
domian follow the TRM reg bits Elaine Zhang (6): rockchip: power-domain: make idle handling optional power-domain: allow domains only handling idle requests rockchip: power-domain: add support for sub-power domains dt/bindings: power: add RK3399 SoCs header for power-domain dt/bindings

[PATCH v6 1/6] rockchip: power-domain: make idle handling optional

2016-03-09 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v6 2/6] power-domain: allow domains only handling idle requests

2016-03-09 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drive

[PATCH v6 3/6] rockchip: power-domain: add support for sub-power domains

2016-03-09 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v6 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-09 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

[PATCH v6 6/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-03-09 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v6 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-09 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_domain.txt | 37 ++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devi

[PATCH v1 0/2] rockchip: power-domain: support qos save and restore

2016-03-19 Thread Elaine Zhang
add qos document in dt-bingings. modify power domain driver to support qos save and restore. Elaine Zhang (2): dt-bindings: modify document of Rockchip power domains rockchip: power-domain: support qos save and restore .../bindings/soc/rockchip/power_domain.txt | 8 ++ drivers/soc

[PATCH v1 1/2] dt-bindings: modify document of Rockchip power domains

2016-03-19 Thread Elaine Zhang
Add qos example for power domain which found on Rockchip SoCs. These qos register description in TRMs (rk3036, rk3228, rk3288, rk3366, rk3368, rk3399) looks the same. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- Documentation/devicetree/bindings/soc/rockchip/power_domain.t

[PATCH v1 2/2] rockchip: power-domain: support qos save and restore

2016-03-19 Thread Elaine Zhang
support qos save and restore when power domain on/off. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 87 +-- 1 file changed, 84 insertions(+), 3 deletions(-) diff --git a/drivers/soc/rockchip/pm_domain

[PATCH v5 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-03 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs. RK3399 pd on/off not need to enable clk which in this pd. So remove the clocks in the rk3399 pd example. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_doma

[PATCH v5 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-03 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3399 SoCs. RK3399 pd on/off not need to enable clk which in this pd. So remove the clocks in the rk3399 pd example. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- .../bindings/soc/rockchip/power_doma

[PATCH v5 6/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-03-03 Thread Elaine Zhang
This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/ro

[PATCH v5 3/6] rockchip: power-domain: add support for sub-power domains

2016-03-03 Thread Elaine Zhang
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_dom

[PATCH v5 1/6] rockchip: power-domain: make idle handling optional

2016-03-03 Thread Elaine Zhang
Not all new socs need to handle idle states on domain state changes, so add the possibility to make them optional. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v5 2/6] power-domain: allow domains only handling idle requests

2016-03-03 Thread Elaine Zhang
special case if both idle as well power handling were set as not present, but as the domain-data is defined in the code itself, we can expect the reasonable developer to define them in a correct, without adding more checks. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drive

[PATCH v5 0/6] rockchip: power-domain: fix pm domain for support RK3399 SoC

2016-03-03 Thread Elaine Zhang
fix some idle handling support sub-power domain add rk3399-power.h modify document for RK3399 Soc modify power domain for RK3399 SoC Changes in v5: [PATCH v5 3/6]:fix up some coding style [PATCH v5 5/6]:fix up some coding style Elaine Zhang (6): rockchip: power-domain: make idle handling

[PATCH v5 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-03 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/power/rk3399-p

Re: [PATCH v5 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-09 Thread Elaine Zhang
On 03/08/2016 06:45 PM, Caesar Wang wrote: 在 2016年03月03日 16:03, Elaine Zhang 写道: According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/power/rk3399-power.h | 53 ++

Re: [PATCH v5 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-09 Thread Elaine Zhang
On 03/08/2016 07:09 PM, Caesar Wang wrote: 在 2016年03月03日 16:09, Elaine Zhang 写道: Add binding documentation for the power domains found on Rockchip RK3399 SoCs. RK3399 pd on/off not need to enable clk which in this pd. So remove the clocks in the rk3399 pd example. Signed-off-by: Elaine

Re: [PATCH v1 2/2] rockchip: power-domain: support qos save and restore

2016-04-04 Thread Elaine Zhang
hi, Heiko: Thanks for your replay. For your questions, I also have the same concerns. On 04/02/2016 12:19 AM, Heiko Stuebner wrote: Hi Elaine, Am Freitag, 1. April 2016, 10:33:45 schrieb Elaine Zhang: I agree with most of your modifications. Except, the u32 *qos_save_regs below you're

Re: [PATCH v1 2/2] rockchip: power-domain: support qos save and restore

2016-03-31 Thread Elaine Zhang
hi, Heiko I agree with most of your modifications. Except, the u32 *qos_save_regs below On 04/01/2016 12:31 AM, Heiko Stuebner wrote: Hi Elaine, Am Freitag, 18. März 2016, 15:17:24 schrieb Elaine Zhang: support qos save and restore when power domain on/off. Signed-off-by: Elaine Zhang

[PATCH v2 1/2] dt-bindings: modify document of Rockchip power domains

2016-04-14 Thread Elaine Zhang
. These qos blocks also are similar over all currently available Rockchip SoCs. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- Documentation/devicetree/bindings/soc/rockchip/power_domain.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindin

[RESEND PATCH v2 0/2] rockchip: power-domain: support qos save and restore

2016-04-14 Thread Elaine Zhang
add qos document in dt-bingings. modify power domain driver to support qos save and restore. Changes in v2: [PATCH V2 1/2]: fix up the commit message. [PATCH V2 2/2]: add some error handling. fix up the define and request space for qos_regmap and qos_save_regs. Elaine Zhang (2

[PATCH v2 2/2] rockchip: power-domain: support qos save and restore

2016-04-14 Thread Elaine Zhang
support qos save and restore when power domain on/off. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 104 -- 1 file changed, 101 insertions(+), 3 deletions(-) diff --git a/drivers/soc/rockchip/pm_domain

[PATCH v2 1/2] dt-bindings: modify document of Rockchip power domains

2016-04-13 Thread Elaine Zhang
Add qos example for power domain which found on Rockchip SoCs. These qos register description in TRMs (rk3036, rk3228, rk3288, rk3366, rk3368, rk3399) looks the same. Changes in v2: No Changes. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- Documentation/devicetree/bi

[PATCH v2 2/2] rockchip: power-domain: support qos save and restore

2016-04-13 Thread Elaine Zhang
support qos save and restore when power domain on/off. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 104 -- 1 file changed, 101 insertions(+), 3 deletions(-) diff --git a/drivers/soc/rockchip/pm_domain

[PATCH v2 0/2] rockchip: power-domain: support qos save and restore

2016-04-13 Thread Elaine Zhang
add qos document in dt-bingings. modify power domain driver to support qos save and restore. Changes in v2: [PATCH V2 2/2]: add some error handling. fix up the define and request space for qos_regmap and qos_save_regs. Elaine Zhang (2): dt-bindings: modify document

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-02-06 Thread Elaine Zhang
On 02/06/2017 08:46 PM, Ulf Hansson wrote: On 5 February 2017 at 10:34, Elaine Zhang <zhangq...@rock-chips.com> wrote: On 01/26/2017 05:30 AM, Ulf Hansson wrote: On 22 January 2017 at 04:34, Elaine Zhang <zhangq...@rock-chips.com> wrote: On 01/20/2017 09:16 PM, Ulf H

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-02-07 Thread Elaine Zhang
On 02/07/2017 04:19 PM, Ulf Hansson wrote: [...] Unfortunate, I am still not fully understanding the scenarios. As you indicate, the problem seems related to wakeup settings. Could you please try to answer the below questions, hopefully it helps me to better understand. 1) While starting

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-02-05 Thread Elaine Zhang
On 01/26/2017 05:30 AM, Ulf Hansson wrote: On 22 January 2017 at 04:34, Elaine Zhang <zhangq...@rock-chips.com> wrote: On 01/20/2017 09:16 PM, Ulf Hansson wrote: On 20 January 2017 at 03:21, Elaine Zhang <zhangq...@rock-chips.com> wrote: If a PM domain is powered off b

[PATCH v1 2/2] clk: rockchip: describe clk_gmac using the new muxgrf type on rk3328

2017-02-05 Thread Elaine Zhang
With the newly introduced clk type for muxes in the grf we now can describe some missing clocks, like the clk_gmac2io and clk_gmac2phy that selects between clk_mac2io_src and gmac_clkin based on a bit set in the general register files. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.

[PATCH v1 1/2] rockchip: clk: rk3328: add clk_mac2io_ext ID

2017-02-05 Thread Elaine Zhang
Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/clock/rk3328-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3328-cru.h b/include/dt-bindings/clock/rk3328-cru.h index ee702c8e4c09..d2b26a4b43eb 100644 --- a/include/dt-bi

[PATCH v1 0/2] clk: rockchip: describe clk_gmac2io and clk_gmac2phy on rk3328

2017-02-05 Thread Elaine Zhang
add clk_mac2io_ext ID. describe clk_gmac using the new muxgrf type on rk3328. Elaine Zhang (2): rockchip: clk: rk3328: add clk_mac2io_ext ID clk: rockchip: describe clk_gmac using the new muxgrf type on rk3328 drivers/clk/rockchip/clk-rk3328.c | 9 + include/dt-bindings/clock

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-01-21 Thread Elaine Zhang
On 01/20/2017 09:16 PM, Ulf Hansson wrote: On 20 January 2017 at 03:21, Elaine Zhang <zhangq...@rock-chips.com> wrote: If a PM domain is powered off before system suspend, we hope do nothing in system runtime suspend noirq phase and system runtime resume noirq phase. One ca

[PATCH v1] clk: rockchip: add pll_wait_lock for pll_enable

2017-02-21 Thread Elaine Zhang
If pll is power down,when power up pll need wait pll lock. The reference documents section: PLL frequency change and lock check Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/clk/rockchip/clk-pll.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive

[PATCH v1] PM / Domains: Keep the pd status during system PM phases

2017-01-18 Thread Elaine Zhang
on pd_gpu, power off pd_gpu and disable vdd_gpu. Fix up in runtime resume noirq phase power on all PDs. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/base/power/domain.c | 10 +++--- include/linux/pm_domain.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-)

[PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-01-19 Thread Elaine Zhang
on pd_gpu, power off pd_gpu and disable vdd_gpu. Fix up in runtime resume noirq phase power on all PDs. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/base/power/domain.c | 10 +++--- include/linux/pm_domain.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-)

Re: [PATCH] arm64: dts: rockchip: Explicitly set pclk_pmu_src on rk3399

2016-08-29 Thread Elaine Zhang
On 08/30/2016 02:18 AM, Brian Norris wrote: On Mon, Aug 29, 2016 at 11:11:24AM -0700, Doug Anderson wrote: On rk3399 we explicitly set ppll in the device tree to 67600. The ppll has one major child, pclk_pmu_src, that is the parent of lots of other clocks. Right now nobody is setting

Re: [RFC PATCH] clk: rockchip: rk3399: support pll setting automatically

2016-08-29 Thread Elaine Zhang
On 08/30/2016 01:54 AM, Heiko Stübner wrote: Am Montag, 29. August 2016, 10:35:44 schrieb Doug Anderson: Hi, On Sun, Aug 28, 2016 at 8:21 AM, Heiko Stübner <he...@sntech.de> wrote: Hi Xing, Elaine, Am Dienstag, 2. August 2016, 21:34:12 schrieb Xing Zheng: From: Elaine Zhang &

[PATCH 2/6] arm64: dts: rockchip: add pd_emmc power node for rk3399

2016-09-09 Thread Elaine Zhang
1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain 4.add the pd_emmc consumers node Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm6

[PATCH 0/6] arm64: dts: rockchip: added some pd nodes for rk3399 Soc

2016-09-09 Thread Elaine Zhang
1.added the edp,emmc,perihp(pcie,usb2),sd, sdioaudio(i2s,spdif,sdio,spi5),usb3 pd nodes 2.added the pd consumers node Elaine Zhang (6): arm64: dts: rockchip: add pd_edp node for rk3399 arm64: dts: rockchip: add pd_emmc power node for rk3399 arm64: dts: rockchip: add pd_perihp power node

[PATCH 5/6] arm64: dts: rockchip: add pd_sdioaudio power node for rk3399

2016-09-09 Thread Elaine Zhang
1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain 4.add the pd_sdioaudio consumers node Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 16 1 file changed, 16 insertions(+) diff --git

[PATCH 6/6] arm64: dts: rockchip: add pd_usb3 power node for rk3399

2016-09-09 Thread Elaine Zhang
1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk339

[PATCH 1/6] arm64: dts: rockchip: add pd_edp node for rk3399

2016-09-09 Thread Elaine Zhang
Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index b65c193dc64e..52b4bfb52288 100644 --- a/arch

[PATCH 3/6] arm64: dts: rockchip: add pd_perihp power node for rk3399

2016-09-09 Thread Elaine Zhang
1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain,include usb2,pcie 4.add the pd_perihp consumers node Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 34 1 file chang

[PATCH 4/6] arm64: dts: rockchip: add pd_sd power node for rk3399

2016-09-09 Thread Elaine Zhang
1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain 4.add the pd_sd consumers node Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm6

[PATCH] power-domain: rockchip: fix up the PMU_GPU_PWRDW/UP_CNT for RK3399

2016-09-26 Thread Elaine Zhang
According to the advice of the IC, setting the PMU_GPU_PWRDW/PWRUP_CNT regs 6 cycel(250ns) for RK3399 SOC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/ro

[PATCH] regmap: fix up the regmap lock error

2016-09-22 Thread Elaine Zhang
24>] (snd_soc_put_volsw) from [<8058b070>] (snd_ctl_ioctl+0x75c/0xbe8) [<8058a914>] (snd_ctl_ioctl) from [<80209d04>] (vfs_ioctl+0x30/0x44) [<80209cd4>] (vfs_ioctl) from [<8020a5ec>] (do_vfs_ioctl+0x7b0/0x884) [<80209e3c>] (do_vfs_ioctl) from [<8020a704>] (SyS

[PATCH 0/0] regmap: drop cache if the bus transfer error

2016-08-18 Thread Elaine Zhang
k the regmap should handle that gracefully, and may be my modify is not the best way. But as I described is how to slove that problem. Elaine Zhang (1): regmap: drop cache if the bus transfer error drivers/base/regmap/regmap.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH 0/1] regmap: drop cache if the bus transfer error

2016-08-18 Thread Elaine Zhang
regmap_write ->_regmap_raw_write -->regcache_write first and than use map->bus->write to wirte i2c or spi But if the i2c or spi transfer failed, But the cache is updated, So if I use regmap_read will get the cache data which is not the real register value. Signed-off-by: Elaine Z

[PATCH 0/0] regmap: drop cache if the bus transfer error

2016-08-18 Thread Elaine Zhang
k the regmap should handle that gracefully, and may be my modify is not the best way. But as I described is how to slove that problem. Elaine Zhang (1): regmap: drop cache if the bus transfer error drivers/base/regmap/regmap.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH 0/1] regmap: drop cache if the bus transfer error

2016-08-18 Thread Elaine Zhang
regmap_write ->_regmap_raw_write -->regcache_write first and than use map->bus->write to wirte i2c or spi But if the i2c or spi transfer failed, But the cache is updated, So if I use regmap_read will get the cache data which is not the real register value. Signed-off-by: Elaine Z

[PATCH] pd: rockchip: support active_wakeup for rockchip pd

2016-08-18 Thread Elaine Zhang
Register gpd_dev_ops.active_wakeup function to support keep power during suspend state. And add flag to each power domain to decide whether keep power during suspend or not. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/soc/rockchip/pm_domains.c

Re: [PATCH 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-08-28 Thread Elaine Zhang
On 08/27/2016 11:05 PM, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> It looks nice to me. But

Re: [PATCH 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-08-28 Thread Elaine Zhang
On 08/27/2016 11:05 PM, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> It looks nice to me. But

[PATCH] clk: rockchip: validity should be checked prior to clock rate change

2016-11-08 Thread Elaine Zhang
, but this error message is ignored by clock framework. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Rocky Hao <rocky@rock-chips.com> --- drivers/clk/rockchip/clk-cpu.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/rockchip/clk-cpu.c b

[PATCH v1 0/3] clk: rockchip: support clk controller for rk3328 SoC

2016-12-13 Thread Elaine Zhang
Elaine Zhang (3): clk: rockchip: add dt-binding header for rk3328 clk: rockchip: add clock controller for rk3328 clk: rockchip: add new pll-type for rk3328 and similar socs drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-pll.c | 13 +- drivers/clk

[PATCH v1 2/3] clk: rockchip: add clock controller for rk3328

2016-12-13 Thread Elaine Zhang
Add the clock tree definition for the new rk3328 SoC. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3328.c | 1068 + drivers/clk/rockchip/clk.h| 23 + 3 files c

[PATCH v1 3/3] clk: rockchip: add new pll-type for rk3328 and similar socs

2016-12-13 Thread Elaine Zhang
The rk3328's pll and clock are similar with rk3036's, it different with pll_mode_mask,there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3328s. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- drivers/clk/ro

[PATCH v1 1/3] clk: rockchip: add dt-binding header for rk3328

2016-12-13 Thread Elaine Zhang
Add the dt-bindings header for the rk3328, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3328. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/clock/rk3328-cru.h | 403 ++

[PATCH] arm: dts: rockchip: add qos node for rk3288

2016-12-06 Thread Elaine Zhang
when pd power on/off, the qos regs need to save and restore. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- arch/arm/boot/dts/rk3288.dtsi | 84 +++ 1 file changed, 84 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/bo

[PATCH v5 1/4] clk: rockchip: add dt-binding header for rk3328

2016-12-28 Thread Elaine Zhang
Add the dt-bindings header for the rk3328, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3328. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> --- include/dt-bindings/clock/rk3328-cru.h | 403 ++

  1   2   3   4   5   6   7   8   >