[PATCH v6 09/11] dt-bindings: power: rockchip: Convert to json-schema

2021-03-26 Thread Elaine Zhang
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Signed-off-by: Elaine Zhang From: Enric Balletbo i Serra Link:https://patchwork.kernel.org/project/linux-rockchip/patch/20210225102643.653095-1-enric.balle...@collabora.com

[PATCH v6 07/11] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-03-26 Thread Elaine Zhang
Add the power domains names to the power domain info struct so we have meaningful name for every power domain. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 221 +++--- 1 file changed, 114 insertions(+), 107 deletions(-) diff --git a/drivers/soc

[PATCH v6 08/11] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-26 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568

[PATCH v6 10/11] dt-bindings: power: rockchip: Add bindings for RK3568 Soc

2021-03-26 Thread Elaine Zhang
Add the compatible string for RK3568 SoC. Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- .../devicetree/bindings/power/rockchip,power-controller.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/rockchip,power

[PATCH v6 11/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 1d39ad92470a..940504cfb0f1

[PATCH v6 06/11] arm64: dts: rockchip: Fix power-controller node names for rk3399

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 40 1 file changed, 20 insertions(+), 20 deletions

[PATCH v6 05/11] arm64: dts: rockchip: Fix power-controller node names for rk3328

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH v6 00/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
up yaml code styles. [PATCH v2 3/3]: No change. Elaine Zhang (11): arm: dts: rockchip: Fix power-controller node names for rk3066a arm: dts: rockchip: Fix power-controller node names for rk3188 arm: dts: rockchip: Fix power-controller node names for rk3288 arm64: dts: rockchip: Fix po

[PATCH v6 04/11] arm64: dts: rockchip: Fix power-controller node names for px30

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/px30.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v6 03/11] arm: dts: rockchip: Fix power-controller node names for rk3288

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v6 01/11] arm: dts: rockchip: Fix power-controller node names for rk3066a

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3066a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v6 02/11] arm: dts: rockchip: Fix power-controller node names for rk3188

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3188.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts

[RESEND PATCH v5 07/11] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-03-26 Thread Elaine Zhang
Add the power domains names to the power domain info struct so we have meaningful name for every power domain. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 221 +++--- 1 file changed, 114 insertions(+), 107 deletions(-) diff --git a/drivers/soc

[PATCH v5 11/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index d661d967079f..7b231cbcc17b

[PATCH v5 10/11] dt-bindings: power: rockchip: Add bindings for RK3568 Soc

2021-03-26 Thread Elaine Zhang
Add the compatible string for RK3568 SoC. Signed-off-by: Elaine Zhang --- .../devicetree/bindings/power/rockchip,power-controller.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml b/Documentation/devicetree

[PATCH v5 09/11] dt-bindings: power: rockchip: Convert to json-schema

2021-03-26 Thread Elaine Zhang
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Elaine Zhang --- .../power/rockchip,power-controller.yaml | 291 ++ .../bindings/soc/rockchip

[PATCH v5 08/11] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-26 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings

[PATCH v5 07/11] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-03-26 Thread Elaine Zhang
Add the power domains names to the power domain info struct so we have meaningful name for every power domain. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 217 +++--- 1 file changed, 112 insertions(+), 105 deletions(-) diff --git a/drivers/soc

[PATCH v5 06/11] arm64: dts: rockchip: Fix power-controller node names for rk3399

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts

[PATCH v5 05/11] arm64: dts: rockchip: Fix power-controller node names for rk3328

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b

[PATCH v5 01/11] arm: dts: rockchip: Fix power-controller node names for rk3066a

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm/boot/dts/rk3066a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts

[PATCH v5 00/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
the code styles and add rk3568 base on: https://patchwork.kernel.org/project/linux-rockchip/patch/20210225102643.653095-1-enric.balle...@collabora.com/ [PATCH v3 3/3]: No change. Change in V2: [PATCH v2 1/3]: No change. [PATCH v2 2/3]: Fix up yaml code styles. [PATCH v2 3/3]: No change. Elaine Zhang

[PATCH v5 02/11] arm: dts: rockchip: Fix power-controller node names for rk3188

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm/boot/dts/rk3188.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188

[PATCH v5 03/11] arm: dts: rockchip: Fix power-controller node names for rk3288

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts

[PATCH v5 04/11] arm64: dts: rockchip: Fix power-controller node names for px30

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang --- arch/arm64/boot/dts/rockchip/px30.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30

[PATCH v4 2/4] dt-bindings: power: rockchip: Convert to json-schema

2021-03-24 Thread Elaine Zhang
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Elaine Zhang --- .../power/rockchip,power-controller.yaml | 284 ++ .../bindings/soc/rockchip

[PATCH v4 0/4] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-24 Thread Elaine Zhang
styles. [PATCH v2 3/3]: No change. Elaine Zhang (4): dt-bindings: add power-domain header for RK3568 SoCs dt-bindings: power: rockchip: Convert to json-schema dt-bindings: power: rockchip: Add bindings for RK3568 Soc soc: rockchip: power-domain: add rk3568 powerdomains .../power/rockchip

[PATCH v4 4/4] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-24 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 54eb6cfc5d5b..a2c19c845cf2

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

2021-03-24 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings

[PATCH v4 3/4] dt-bindings: power: rockchip: Add bindings for RK3568 Soc

2021-03-24 Thread Elaine Zhang
Add the compatible string for RK3568 SoC. Signed-off-by: Elaine Zhang --- .../devicetree/bindings/power/rockchip,power-controller.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/rockchip,power-controller.yaml b/Documentation/devicetree

[PATCH v3 0/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-23 Thread Elaine Zhang
in V2: [PATCH v2 1/3]: No change. [PATCH v2 2/3]: Fix up yaml code styles. [PATCH v2 3/3]: No change. Elaine Zhang (3): dt-bindings: add power-domain header for RK3568 SoCs dt-bindings: Convert the rockchip power_domain to YAML and extend soc: rockchip: power-domain: add rk3568 powerdomains

[PATCH v3 3/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-23 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 54eb6cfc5d5b..a2c19c845cf2

[PATCH v3 2/3] dt-bindings: power: rockchip: Convert to json-schema and extend

2021-03-23 Thread Elaine Zhang
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Add RK3568 SoCs for rockchip power binding document. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Elaine Zhang --- .../power/rockchip,power-controller.yaml | 286

[PATCH v3 1/3] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-23 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings

[PATCH v2 0/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-23 Thread Elaine Zhang
Support power domain function for RK3568 Soc. Change in V2: [PATCH v2 1/3]: No change. [PATCH v2 2/3]: Fix up yaml code styles. [PATCH v2 3/3]: No change. Elaine Zhang (3): dt-bindings: add power-domain header for RK3568 SoCs dt-bindings: Convert the rockchip power_domain to YAML and extend

[PATCH v2 2/3] dt-bindings: Convert the rockchip power_domain to YAML and extend

2021-03-23 Thread Elaine Zhang
This converts the rockchip power domain family bindings to YAML schema, and add binding documentation for the power domains found on Rockchip RK3568 SoCs. Signed-off-by: Elaine Zhang --- .../bindings/soc/rockchip/power_domain.txt| 136 - .../rockchip/rockchip,power-controller.yaml

[PATCH v2 3/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-23 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 54eb6cfc5d5b..a2c19c845cf2

[PATCH v2 1/3] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-23 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings

[PATCH v1 0/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-16 Thread Elaine Zhang
Support power domain function for RK3568 Soc. Elaine Zhang (3): dt-bindings: add power-domain header for RK3568 SoCs dt-bindings: Convert the rockchip power_domain to YAML and extend soc: rockchip: power-domain: add rk3568 powerdomains .../bindings/soc/rockchip/power_domain.txt| 136

[PATCH v1 1/3] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-16 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings

[PATCH v1 2/3] dt-bindings: Convert the rockchip power_domain to YAML and extend

2021-03-16 Thread Elaine Zhang
This converts the rockchip power domain family bindings to YAML schema, and add binding documentation for the power domains found on Rockchip RK3568 SoCs. Signed-off-by: Elaine Zhang --- .../bindings/soc/rockchip/power_domain.txt| 136 .../rockchip/rockchip,power

[PATCH v1 3/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-16 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 54eb6cfc5d5b..a2c19c845cf2

[PATCH v5 3/4] clk: rockchip: support more core div setting

2021-03-15 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-cpu.c| 53

[PATCH v5 4/4] clk: rockchip: add clock controller for rk3568

2021-03-15 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1725 + drivers/clk/rockchip

[PATCH v5 0/4] clk: rockchip: add clock controller for rk3568

2021-03-15 Thread Elaine Zhang
s to support more core independent div settings. [PATCH v2 4/4]: Adapter [PATCH v2 3/4] changes. Elaine Zhang (4): dt-binding: clock: Document rockchip,rk3568-cru bindings clk: rockchip: add dt-binding header for rk3568 clk: rockchip: support more core div setting clk: rockchip: add cloc

[PATCH v5 2/4] clk: rockchip: add dt-binding header for rk3568

2021-03-15 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Reviewed-by: Rob Herring --- include/dt-bindings/clock/rk3568-cru.h | 926

[PATCH v5 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-03-15 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Reviewed-by: Rob Herring --- .../bindings/clock/rockchip,rk3568-cru.yaml | 60

[PATCH v4 3/4] clk: rockchip: support more core div setting

2021-03-15 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-cpu.c| 53

[PATCH v4 4/4] clk: rockchip: add clock controller for rk3568

2021-03-15 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1725 + drivers/clk/rockchip

[PATCH v4 2/4] clk: rockchip: add dt-binding header for rk3568

2021-03-15 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Reviewed-by: Rob Herring --- include/dt-bindings/clock/rk3568-cru.h | 926

[PATCH v4 0/4] clk: rockchip: add clock controller for rk3568

2021-03-15 Thread Elaine Zhang
. Elaine Zhang (4): dt-binding: clock: Document rockchip,rk3568-cru bindings clk: rockchip: add dt-binding header for rk3568 clk: rockchip: support more core div setting clk: rockchip: add clock controller for rk3568 .../bindings/clock/rockchip,rk3568-cru.yaml | 60 + drivers/clk

[PATCH v4 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-03-15 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Reviewed-by: Rob Herring --- .../bindings/clock/rockchip,rk3568-cru.yaml | 60

[PATCH v3 4/4] clk: rockchip: add clock controller for rk3568

2021-02-28 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1726 + drivers/clk/rockchip/clk.h| 30 +- 4

[PATCH v3 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-28 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions

[PATCH v3 3/4] clk: rockchip: support more core div setting

2021-02-28 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c| 53 +-- drivers/clk/rockchip/clk

[PATCH v3 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-02-28 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.yaml | 60 +++ 1 file changed, 60 insertions(+) create mode

[PATCH v3 0/4] clk: rockchip: add clock controller for rk3568

2021-02-28 Thread Elaine Zhang
message. [PATCH v2 2/4]: No change. [PATCH v2 3/4]: Use arrays to support more core independent div settings. [PATCH v2 4/4]: Adapter [PATCH v2 3/4] changes. Elaine Zhang (4): dt-binding: clock: Document rockchip,rk3568-cru bindings clk: rockchip: add dt-binding header for rk3568 clk: rockchip

[PATCH v2 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-02-26 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode

[PATCH v2 3/4] clk: rockchip: support more core div setting

2021-02-26 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c| 53 +-- drivers/clk/rockchip/clk

[PATCH v2 0/4] clk: rockchip: add clock controller for rk3568

2021-02-26 Thread Elaine Zhang
[PATCH v2 3/4] changes. Elaine Zhang (4): dt-binding: clock: Document rockchip,rk3568-cru bindings clk: rockchip: add dt-binding header for rk3568 clk: rockchip: support more core div setting clk: rockchip: add clock controller for rk3568 .../bindings/clock/rockchip,rk3568-cru.yaml | 55

[PATCH v2 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-26 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions

[PATCH v2 4/4] clk: rockchip: add clock controller for rk3568

2021-02-26 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1726 + drivers/clk/rockchip/clk.h| 30 +- 4

[PATCH v1 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-23 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions

[PATCH v1 4/4] clk: rockchip: add clock controller for rk3568

2021-02-23 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1724 + drivers/clk/rockchip/clk.h| 28 + 4

[PATCH v1 3/4] clk: rockchip: support more core div setting

2021-02-23 Thread Elaine Zhang
A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c | 25 + drivers/clk/rockchip/clk.h | 17 - 2 files changed, 41 insertions(+), 1

[PATCH v1 0/4] clk: rockchip: add clock controller for rk3568

2021-02-23 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC Elaine Zhang (4): dt-bindings: add bindings for rk3568 clock controller clk: rockchip: add dt-binding header for rk3568 clk: rockchip: support more core div setting clk: rockchip: add clock controller for rk3568 .../bindings/clock

[PATCH v1 1/4] dt-bindings: add bindings for rk3568 clock controller

2021-02-23 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.txt| 66 +++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.txt

[PATCH v4 0/5] clk: rockchip: Support for some new features

2020-10-13 Thread Elaine Zhang
delay. Elaine Zhang (5): clk: rockchip: Add supprot to limit input rate for fractional divider clk: rockchip: fix up the frac clk get rate error clk: rockchip: add a clock-type for muxes based in the pmugrf clk: rockchip: add pll up and down when change pll freq clk: rockchip: support pll

[PATCH v4 2/5] clk: rockchip: fix up the frac clk get rate error

2020-10-13 Thread Elaine Zhang
] |--[GATE]--[FRACDIV]--| / |--/ The special fractional divider, there are two levels of clock between FRACDIV and PLL. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 19

[PATCH v4 5/5] clk: rockchip: support pll setting by auto

2020-10-13 Thread Elaine Zhang
If setting freq is not support in rockchip_pll_rate_table, It can calculate and set pll params by auto. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-pll.c | 215 ++--- 1 file changed, 200 insertions(+), 15 deletions(-) diff --git a/drivers/clk/rockchip

[PATCH v4 3/5] clk: rockchip: add a clock-type for muxes based in the pmugrf

2020-10-13 Thread Elaine Zhang
Rockchip socs often have some tiny number of muxes not controlled from the core clock controller but through bits set in the pmugrf. Use MUXPMUGRF() to cover this special clock-type. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 9 + drivers/clk/rockchip/clk.h | 17

[PATCH v4 4/5] clk: rockchip: add pll up and down when change pll freq

2020-10-13 Thread Elaine Zhang
params: pll update unsucessful, trying to restore old params Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-pll.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/clk/rockchip/clk-pll.c b/drivers/clk/rockchip/clk-pll.c index 4c6c9167

[PATCH v4 1/5] clk: rockchip: Add supprot to limit input rate for fractional divider

2020-10-13 Thread Elaine Zhang
SOC implementations are different).But the GPLL or CPLL may be 1200M. Must be added to limit to ensure that the design is not exceeded. Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-px30.c | 29 +-- drivers/clk/rockchip/clk-rk3036.c | 13 + driv

[PATCH v4 6/6] clk: rockchip: rk3399: Support module build

2020-09-13 Thread Elaine Zhang
support CLK_OF_DECLARE and builtin_platform_driver_probe double clk init method. add module author, description and license to support building Soc Rk3399 clock driver as module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-rk3399.c | 56

[PATCH v4 0/6] clk: rockchip: Support module build

2020-09-13 Thread Elaine Zhang
CLK_xxx to "bool". [PATCH v4 6/6]: add .suppress_bind_attrs = true Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls clk: rockchip: Export rockchip_clk_register_ddrclk() clk: rockchip: Export rockchip_register_softrst() cl

[PATCH v4 5/6] clk: rockchip: fix the clk config to support module build

2020-09-13 Thread Elaine Zhang
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers. use CONFIG_CLK_RKXX for Rk soc clk driver. Mark CONFIG_CLK_RK3399 to "tristate", to support building Rk3399 SoC clock driver as module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/Kconfig

[PATCH v4 2/6] clk: rockchip: Export rockchip_clk_register_ddrclk()

2020-09-13 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-ddr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-ddr.c b/drivers/clk/rockchip

[PATCH v4 1/6] clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls

2020-09-13 Thread Elaine Zhang
clk_hw_register_composite it's already exported. Preparation for compilation of rK common clock drivers into modules. Signed-off-by: Elaine Zhang Reported-by: kernel test robot Reviewed-by: Kever Yang Reviewed-by: Heiko Stuebner --- drivers/clk/rockchip/clk-half-divider.c | 18

[PATCH v4 4/6] clk: rockchip: Export some clock common APIs for module drivers

2020-09-13 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk.c | 52 ++ 1 file changed, 30 insertions(+), 22 deletions(-) diff --git

[PATCH v4 3/6] clk: rockchip: Export rockchip_register_softrst()

2020-09-13 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/softrst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/softrst.c

[PATCH v3 6/6] clk: rockchip: rk3399: Support module build

2020-09-04 Thread Elaine Zhang
support CLK_OF_DECLARE and builtin_platform_driver_probe double clk init method. add module author, description and license to support building Soc Rk3399 clock driver as module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-rk3399.c | 55

[PATCH v3 1/6] clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls

2020-09-04 Thread Elaine Zhang
clk_hw_register_composite it's already exported. Preparation for compilation of rK common clock drivers into modules. Signed-off-by: Elaine Zhang Reported-by: kernel test robot Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-half-divider.c | 18 drivers/clk/rockchip/clk.c

[PATCH v3 4/6] clk: rockchip: Export some clock common APIs for module drivers

2020-09-04 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk.c | 52 ++ 1 file changed, 30 insertions(+), 22 deletions(-) diff --git

[PATCH v3 5/6] clk: rockchip: fix the clk config to support module build

2020-09-04 Thread Elaine Zhang
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers. use CONFIG_CLK_RKXX for Rk soc clk driver. Mark configuration to "tristate", to support building Rk SoCs clock driver as module. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/Kconfig | 1 + d

[PATCH v3 3/6] clk: rockchip: Export rockchip_register_softrst()

2020-09-04 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/softrst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/softrst.c

[PATCH v3 2/6] clk: rockchip: Export rockchip_clk_register_ddrclk()

2020-09-04 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk-ddr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-ddr.c b/drivers/clk/rockchip

[PATCH v3 0/6] clk: rockchip: Support module build

2020-09-04 Thread Elaine Zhang
nused-but-set-variable] 52 | int ret; | ^~~ Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls clk: rockchip: Export rockchip_clk_register_ddrclk() clk: rockchip: Export rockchip_register_softrst() clk: rockchi

[PATCH v2 3/6] clk: rockchip: Export rockchip_register_softrst()

2020-09-03 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/softrst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/softrst.c b/drivers/clk/rockchip

[PATCH v2 4/6] clk: rockchip: Export some clock common APIs for module drivers

2020-09-03 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 52 ++ 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/drivers/clk/rockchip/clk.c

[PATCH v2 1/6] clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls

2020-09-03 Thread Elaine Zhang
clk_hw_register_composite it's already exported. Preparation for compilation of rK common clock drivers into modules. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-half-divider.c | 18 drivers/clk/rockchip/clk.c | 58 - 2 files changed

[PATCH v2 6/6] clk: rockchip: rk3399: Support module build

2020-09-03 Thread Elaine Zhang
support CLK_OF_DECLARE and builtin_platform_driver_probe double clk init method. add module author, description and license to support building Soc Rk3399 clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3399.c | 55 +++ 1 file

[PATCH v2 2/6] clk: rockchip: Export rockchip_clk_register_ddrclk()

2020-09-03 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-ddr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-ddr.c b/drivers/clk/rockchip/clk-ddr.c index

[PATCH v2 0/6] clk: rockchip: Support module build

2020-09-03 Thread Elaine Zhang
r value. [PATCH v2 6/6]: store a function pointer in the match data. Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls clk: rockchip: Export rockchip_clk_register_ddrclk() clk: rockchip: Export rockchip_register_softrst() clk: rockchi

[PATCH v2 5/6] clk: rockchip: fix the clk config to support module build

2020-09-03 Thread Elaine Zhang
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers. use CONFIG_CLK_RKXX for Rk soc clk driver. Mark configuration to "tristate", to support building Rk SoCs clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 1 + drivers/clk/rockchip/Kco

[PATCH v1 0/6] clk: rockchip: Support module build

2020-09-02 Thread Elaine Zhang
Export some APIs for module drivers. Fix the clock config to support module build. Fix the clk driver init, add module author, description and license to support building RK3399 SoC clock driver as module. Elaine Zhang (6): clk: rockchip: Use clk_hw_register_composite instead

[PATCH v1 5/6] clk: rockchip: fix the clk config to support module build

2020-09-02 Thread Elaine Zhang
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers. use CONFIG_CLK_RKXX for Rk soc clk driver. Mark configuration to "tristate", to support building Rk SoCs clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 1 + drivers/clk/rockchip/Kco

[PATCH v1 6/6] clk: rockchip: rk3399: Support module build

2020-09-02 Thread Elaine Zhang
support CLK_OF_DECLARE and builtin_platform_driver_probe double clk init method. add module author, description and license to support building Soc Rk3399 clock driver as module. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3399.c | 40 +++ 1 file

[PATCH v1 2/6] clk: rockchip: Export rockchip_clk_register_ddrclk()

2020-09-02 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-ddr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-ddr.c b/drivers/clk/rockchip/clk-ddr.c index

[PATCH v1 3/6] clk: rockchip: Export rockchip_register_softrst()

2020-09-02 Thread Elaine Zhang
This is used by the Rockchip clk driver, export it to allow that driver to be compiled as a module.. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/softrst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/softrst.c b/drivers/clk/rockchip

[PATCH v1 1/6] clk: rockchip: Use clk_hw_register_composite instead of clk_register_composite calls

2020-09-02 Thread Elaine Zhang
clk_hw_register_composite it's already exported. Preparation for compilation of rK common clock drivers into modules. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-half-divider.c | 12 + drivers/clk/rockchip/clk.c | 35 ++--- 2 files changed

  1   2   3   4   5   6   7   8   >