mbox series

[RESEND,v3,0/4] clk: qcom : add sm8250 LPASS GFM drivers

Message ID 20201026120221.18984-1-srinivas.kandagatla@linaro.org
Headers show
Series clk: qcom : add sm8250 LPASS GFM drivers | expand

Message

Srinivas Kandagatla Oct. 26, 2020, 12:02 p.m. UTC
This is resend of v3, due to dt_bindings check failure as
rc1 was not out when previous v3 was sent!

This patchset adds support for GFM Muxes found in LPASS
(Low Power Audio SubSystem) IP in Audio Clock Controller
and Always ON clock controller.

Clocks derived from these muxes are consumed by LPASS Digital Codec.
Currently the driver for Audio and Always ON clock controller only
supports GFM Muxes, however it should be easy to add more clock
support when required

Changes since v2:
- updated Kconfig text and help as suggested by Stephen
- removed unnecessary header file include
- use fw_name instead of name for parents
- use devm_platform_ioremap_resource

verified dt_binding_check to pass on rc1,

Srinivas Kandagatla (4):
  dt-bindings: clock: Add support for LPASS Audio Clock Controller
  dt-bindings: clock: Add support for LPASS Always ON Controller
  clk: qcom: Add support to LPASS AUDIO_CC Glitch Free Mux clocks
  clk: qcom: Add support to LPASS AON_CC Glitch Free Mux clocks

 .../bindings/clock/qcom,aoncc-sm8250.yaml     |  58 ++++
 .../bindings/clock/qcom,audiocc-sm8250.yaml   |  58 ++++
 drivers/clk/qcom/Kconfig                      |   6 +
 drivers/clk/qcom/Makefile                     |   1 +
 drivers/clk/qcom/lpass-gfm-sm8250.c           | 320 ++++++++++++++++++
 .../clock/qcom,sm8250-lpass-aoncc.h           |  11 +
 .../clock/qcom,sm8250-lpass-audiocc.h         |  13 +
 7 files changed, 467 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,aoncc-sm8250.yaml
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,audiocc-sm8250.yaml
 create mode 100644 drivers/clk/qcom/lpass-gfm-sm8250.c
 create mode 100644 include/dt-bindings/clock/qcom,sm8250-lpass-aoncc.h
 create mode 100644 include/dt-bindings/clock/qcom,sm8250-lpass-audiocc.h

-- 
2.21.0

Comments

Rob Herring Oct. 30, 2020, 1:51 p.m. UTC | #1
On Mon, Oct 26, 2020 at 12:02:18PM +0000, Srinivas Kandagatla wrote:
> Audio Clock controller is a block inside LPASS which controls

> 2 Glitch free muxes to LPASS codec Macros.

> 

> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> ---

>  .../bindings/clock/qcom,audiocc-sm8250.yaml   | 58 +++++++++++++++++++

>  .../clock/qcom,sm8250-lpass-audiocc.h         | 13 +++++

>  2 files changed, 71 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/clock/qcom,audiocc-sm8250.yaml

>  create mode 100644 include/dt-bindings/clock/qcom,sm8250-lpass-audiocc.h


Reviewed-by: Rob Herring <robh@kernel.org>
Stephen Boyd Nov. 5, 2020, 2:40 a.m. UTC | #2
Quoting Srinivas Kandagatla (2020-10-26 05:02:19)
> Always ON Clock controller is a block inside LPASS which controls
> 1 Glitch free muxes to LPASS codec Macros.
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---

Applied to clk-next
Stephen Boyd Nov. 5, 2020, 2:40 a.m. UTC | #3
Quoting Srinivas Kandagatla (2020-10-26 05:02:18)
> Audio Clock controller is a block inside LPASS which controls
> 2 Glitch free muxes to LPASS codec Macros.
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---

Applied to clk-next