This patchset adds clock support for Actions Semi OWL series S900 SoC with relevant clock bindings and device tree info. Driver has been validated on Bubblegum-96 board. Thanks, Mani Changes in V7: * Fixed gate clock function naming issue reported by Kbuild bot Changes in V6: (https://lkml.org/lkml/2018/3/17/43) * Fixed warnings generated by Kbuild bot * Reused generic fixed factor clk ops for owl-fixed-factor.c * Moved S900 register definitions to owl-s900.c * Dropped dt-bindings since it got applied * Addressed Stephen's comments on whole Changes in V5: * Changed I2C clocks to fixed factor clocks * Fixed minor issue in S900 PLL clock names * Fixed S900 Kconfig * Rebased on top of 4.16-rc5 Changes in V4: * Moved to SPDX license tag for dt-bindings * Fixed a warning in owl-common.h * Rebased on top of 4.16-rc3 Changes in V3: * Completely refactored the clock driver based on sunxi-ng clock structure * Removed all owl_ prefixed functions for registering the clock driver and used the registration functions directly * Moved to SPDX based license tag * Removed module dependencies from the driver * Made I2C clocks as simple gate clocks due to the lack of information about factor rates * Added Ack from Rob for DT bindings * Sourced CMU clock for UART5 Changes in V2: (https://lkml.org/lkml/2017/11/6/840) * Changed the directory structure to actions/ and used owl- prefix for sources. * Fixed MAINTAINERS and added Andreas as Designated Reviewer (R:). * Introduced new Kconfig for S900 code part (CONFIG_CLK_OWL_S900). * Changed the license from GPLv2 to GPLv2+. * Moved fixed clock sources to DT * Changed clock-controller node name to cmu in DT * Added clocks property to cmu node in DT * Changed compatible property value to "actions,s900-cmu" * Fixed example UART controller node in documentation * Fixed tab vs space issue Changes in V1: (https://lkml.org/lkml/2017/10/31/808) * Addressed last year's review comments from Stephen * https://patchwork.kernel.org/patch/9254471/ Manivannan Sadhasivam (11): arm64: dts: actions: Add S900 clock management unit nodes arm64: dts: actions: Source CMU clock for UART5 clk: actions: Add common clock driver support clk: actions: Add gate clock support clk: actions: Add mux clock support clk: actions: Add divider clock support clk: actions: Add factor clock support clk: actions: Add fixed factor clock support clk: actions: Add composite clock support clk: actions: Add pll clock support clk: actions: Add S900 SoC clock support arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 8 +- arch/arm64/boot/dts/actions/s900.dtsi | 20 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/actions/Kconfig | 14 + drivers/clk/actions/Makefile | 12 + drivers/clk/actions/owl-common.c | 89 +++ drivers/clk/actions/owl-common.h | 41 ++ drivers/clk/actions/owl-composite.c | 199 ++++++ drivers/clk/actions/owl-composite.h | 124 ++++ drivers/clk/actions/owl-divider.c | 94 +++ drivers/clk/actions/owl-divider.h | 75 +++ drivers/clk/actions/owl-factor.c | 222 +++++++ drivers/clk/actions/owl-factor.h | 83 +++ drivers/clk/actions/owl-fixed-factor.h | 28 + drivers/clk/actions/owl-gate.c | 77 +++ drivers/clk/actions/owl-gate.h | 73 +++ drivers/clk/actions/owl-mux.c | 60 ++ drivers/clk/actions/owl-mux.h | 61 ++ drivers/clk/actions/owl-pll.c | 194 ++++++ drivers/clk/actions/owl-pll.h | 92 +++ drivers/clk/actions/owl-s900.c | 721 ++++++++++++++++++++++ 22 files changed, 2282 insertions(+), 7 deletions(-) create mode 100644 drivers/clk/actions/Kconfig create mode 100644 drivers/clk/actions/Makefile create mode 100644 drivers/clk/actions/owl-common.c create mode 100644 drivers/clk/actions/owl-common.h create mode 100644 drivers/clk/actions/owl-composite.c create mode 100644 drivers/clk/actions/owl-composite.h create mode 100644 drivers/clk/actions/owl-divider.c create mode 100644 drivers/clk/actions/owl-divider.h create mode 100644 drivers/clk/actions/owl-factor.c create mode 100644 drivers/clk/actions/owl-factor.h create mode 100644 drivers/clk/actions/owl-fixed-factor.h create mode 100644 drivers/clk/actions/owl-gate.c create mode 100644 drivers/clk/actions/owl-gate.h create mode 100644 drivers/clk/actions/owl-mux.c create mode 100644 drivers/clk/actions/owl-mux.h create mode 100644 drivers/clk/actions/owl-pll.c create mode 100644 drivers/clk/actions/owl-pll.h create mode 100644 drivers/clk/actions/owl-s900.c -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html