Skip to content

ARM: mstar: Basic MPLL support

Daniel Palmer linux-arm-kernel linux-clk linux-devicetree lkml 2 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 8 repliesApplied
  2. v16 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- The clock output name related parts of the binding description are gone. Clock names are generated inside the driver. I dropped Rob's reviewed-by because of these changes.
- A devm helper has been added for clk_hw_register_fixed_factor() to allow drivers to register multiple fixed factor clks without having to handle all of the clean up.
- Numerous clean ups to the mpll driver itself based on Stephen's feedback.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7dt-bindings: clk: mstar msc313 mpll binding headerMAINTAINERS include/dt-bindings/clock/mstar-msc313-mpll.h+20 -01 reply
2/7dt-bindings: clk: mstar msc313 mpll binding descriptionDocumentation/devicetree/bindings/clock/mstar,msc313-mpll.yaml MAINTAINERS+47 -01 reply
3/7clk: fixed: add devm helper for clk_hw_register_fixed_factor()drivers/clk/clk-fixed-factor.c include/linux/clk-provider.h+36 -71 reply
4/7clk: mstar: MStar/SigmaStar MPLL driverMAINTAINERS drivers/clk/Kconfig drivers/clk/Makefile +3 more+169 -03 replies
5/7ARM: mstar: Select MSTAR_MSC313_MPLLarch/arm/mach-mstar/Kconfig+1 -00 replies
6/7ARM: mstar: Add the external clocks to the base dstiarch/arm/boot/dts/mstar-v7.dtsi+15 -00 replies
7/7ARM: mstar: Add mpll to base dtsiarch/arm/boot/dts/mstar-v7.dtsi+8 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/7A-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] ARM: mstar: Basic MPLL support

This series adds support for the MPLL block that is present in MStar/SigmaStar ARMv7 SoCs.

This block is intended to be set and forgotten about before Linux is running so all it actually does it read the registers and calculate what the output frequencies should be.

We only care about this block because there are upstream dividers, gates, muxes etc that need something between the input crystal and themselves to calculate their own rates.

Changes since v1:
- The clock output name related parts of the binding description are gone. Clock names are generated inside the driver. I dropped Rob's reviewed-by because of these changes.
- A devm helper has been added for clk_hw_register_fixed_factor() to allow drivers to register multiple fixed factor clks without having to handle all of the clean up.
- Numerous clean ups to the mpll driver itself based on Stephen's feedback.

Daniel Palmer (7):
dt-bindings: clk: mstar msc313 mpll binding header
dt-bindings: clk: mstar msc313 mpll binding description
clk: fixed: add devm helper for clk_hw_register_fixed_factor()
clk: mstar: MStar/SigmaStar MPLL driver
ARM: mstar: Select MSTAR_MSC313_MPLL
ARM: mstar: Add the external clocks to the base dsti
ARM: mstar: Add mpll to base dtsi

 .../bindings/clock/mstar,msc313-mpll.yaml     |  46 ++++++
 MAINTAINERS                                   |   3 +
 arch/arm/boot/dts/mstar-v7.dtsi               |  23 +++
 arch/arm/mach-mstar/Kconfig                   |   1 +
 drivers/clk/Kconfig                           |   1 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-fixed-factor.c                |  39 ++++-
 drivers/clk/mstar/Kconfig                     |   5 +
 drivers/clk/mstar/Makefile                    |   6 +
 drivers/clk/mstar/clk-msc313-mpll.c           | 155 ++++++++++++++++++
 include/dt-bindings/clock/mstar-msc313-mpll.h |  19 +++
 include/linux/clk-provider.h                  |   4 +-
 12 files changed, 296 insertions(+), 7 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/mstar,msc313-mpll.yaml
 create mode 100644 drivers/clk/mstar/Kconfig
 create mode 100644 drivers/clk/mstar/Makefile
 create mode 100644 drivers/clk/mstar/clk-msc313-mpll.c
 create mode 100644 include/dt-bindings/clock/mstar-msc313-mpll.h
Signature · 1 line
2.30.0.rc2