clk: rockchip: add support for the clock-tree of the rk3368 (part1)
From: Heiko Stuebner <heiko@...> Date: Thu, 18 Jun 2015 15:02:21 +0200
This series adds support for the clock controller of rk3368 ARM64 socs. The first 3 patches are fixes for small issues I found while building the clocktree. The first one fixes an issue if a rmii phy is used on the rk3288 and the later two do not harm the functionality of the older socs, as there is no camera interface driver in them anyway and the issue with the defines only surfaced on the rk3368. Patch 4 then adds a new definition for a branch-type. Some clocks (mainly the hsadc and camera interfaces) have a phase inverter connected to the clock that makes it possible to adjust the clock phase by 180 degrees. Patches 5 and 6 finally add support for these inverters and add the currently missing definitions to the already present clock drivers. Patches 7, 8 and 9 finally add the shared dt-binding header and the rk3368 clock tree itself. The cpu-clocks in there where tested sucessfully with the big_little_cpufreq driver. changes since v1: - add CLK_SET_RATE_PARENT to sclk_mac to provide sane rates when using a rmii phy with soc-side clock generation. Both as fix for the 3288 and in the newly added rk3368. ################################################ ## patches 5-9 moved to a second patch series ## ################################################ Heiko Stuebner (9): clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac clk: rockchip: fix faulty vip parent name on rk3288 clk: rockchip: protect register macros against multipart values clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant clk: rockchip: add support for phase inverters clk: rockchip: define the inverters of rk3066/rk3188 and rk3288 dt-bindings: add documentation of rk3668 clock controller clk: rockchip: add dt-binding header for rk3368 clk: rockchip: add rk3368 clock controller .../bindings/clock/rockchip,rk3368-cru.txt | 61 ++ drivers/clk/rockchip/Makefile | 2 + drivers/clk/rockchip/clk-inverter.c | 126 +++ drivers/clk/rockchip/clk-rk3188.c | 9 +- drivers/clk/rockchip/clk-rk3288.c | 13 +- drivers/clk/rockchip/clk-rk3368.c | 881 +++++++++++++++++++++ drivers/clk/rockchip/clk.c | 7 + drivers/clk/rockchip/clk.h | 72 +- include/dt-bindings/clock/rk3368-cru.h | 379 +++++++++ 9 files changed, 1537 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3368-cru.txt create mode 100644 drivers/clk/rockchip/clk-inverter.c create mode 100644 drivers/clk/rockchip/clk-rk3368.c create mode 100644 include/dt-bindings/clock/rk3368-cru.h -- 2.1.4
Patches in this set
- [0001] clk: rockchip: rk3288: add CLK_SET_RATE_PARENT to sclk_mac (raw)
- [0002] clk: rockchip: fix faulty vip parent name on rk3288 (raw)
- [0003] clk: rockchip: protect register macros against multipart values (raw)
- [0004] clk: rockchip: add COMPOSITE_NOGATE_DIVTBL variant (raw)
Statistics
- 4 individual patches
- 31 lines added
- 11 lines removed