v1->v2: 1.Use two fields (pll_reg & bypass_reg) instead of the 2-values array (reg[2]). 2.Remove the "pll_info->version" and add a "pll_info->rate_multiplier". 3.Fix the coding style and add more detailed commit message. 4.Remove [4/5] and [5/5] in v1, because some problems were found in subsequent tests. 5.Remove unnecessary spinlock as Paul Burton and Paul Cercueil's suggestion. 6.Change my Signed-off-by from "Zhou Yanjie <zhouyanjie@xxxxxxxx>" to "周琰杰 (Zhou Yanjie) <zhouyanjie@xxxxxxxxxxxxxx>" because the old mailbox is in an unstable state. v2-v3: Adjust the order of patches. 周琰杰 (Zhou Yanjie) (5): clk: Ingenic: Remove unnecessary spinlock when reading registers. clk: Ingenic: Adjust cgu code to make it compatible with X1830. clk: Ingenic: Adjust code to make it compatible with new cgu code. dt-bindings: clock: Add X1830 bindings. clk: Ingenic: Add CGU driver for X1830. .../devicetree/bindings/clock/ingenic,cgu.txt | 1 + drivers/clk/ingenic/Kconfig | 10 + drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/cgu.c | 36 +-- drivers/clk/ingenic/cgu.h | 8 +- drivers/clk/ingenic/jz4725b-cgu.c | 4 +- drivers/clk/ingenic/jz4740-cgu.c | 4 +- drivers/clk/ingenic/jz4770-cgu.c | 8 +- drivers/clk/ingenic/jz4780-cgu.c | 4 +- drivers/clk/ingenic/x1000-cgu.c | 8 +- drivers/clk/ingenic/x1830-cgu.c | 340 +++++++++++++++++++++ include/dt-bindings/clock/x1830-cgu.h | 46 +++ 12 files changed, 444 insertions(+), 26 deletions(-) create mode 100644 drivers/clk/ingenic/x1830-cgu.c create mode 100644 include/dt-bindings/clock/x1830-cgu.h -- 2.7.4