From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Brunet Subject: [PATCH v2 0/8] clk: meson: gxbb: more clock controller update for audio support Date: Fri, 31 Mar 2017 15:04:03 +0200 Message-ID: <20170331130411.4781-1-jbrunet@baylibre.com> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Neil Armstrong , Michael Turquette , Stephen Boyd , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org The patchset is the 2nd round of update to the meson gxbb clock controller to add initial audio support. The patchset is based on clk-next. There is not much out of the ordinary here (adding new clocks and exposing them) except maybe for 2 patches: Patch #2: Adds a safety check while registering clocks to protect against holes in clk_hw_onecell_data, if it ever happens. Same thing is done for the meson8b clock controller. Patch #3: Adds a new clock divider driver to implement the necessary policy for the i2s master clock (see patch changelog) This patchset has been test on the gxbb p200 and gxl p230. Changes since v1 [0]: - fix typo and use clamp function in patch #3 [0]: https://lkml.kernel.org/r/20170328144605.25278-1-jbrunet@baylibre.com Jerome Brunet (8): dt-bindings: clock: gxbb: expose spdif clock gates clk: meson: gxbb: protect against holes in the onecell_data array clk: meson: add audio clock divider support clk: meson: gxbb: add cts_amclk clk: meson: gxbb: add cts_mclk_i958 clk: meson: gxbb: add cts_i958 clock dt-bindings: clock: gxbb: expose i2s master clock dt-bindings: clock: gxbb: expose spdif master clock drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clk-audio-divider.c | 144 ++++++++++++++++++++++++++++++++++ drivers/clk/meson/clkc.h | 10 +++ drivers/clk/meson/gxbb.c | 144 ++++++++++++++++++++++++++++++++++ drivers/clk/meson/gxbb.h | 13 ++- include/dt-bindings/clock/gxbb-clkc.h | 5 ++ 6 files changed, 314 insertions(+), 4 deletions(-) create mode 100644 drivers/clk/meson/clk-audio-divider.c -- 2.9.3