Skip to content

RFC MIPS: ralink: peripheral clock gating driver

NOGUCHI Hiroshi linux-clk linux-mips 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 6 repliesIn review
  2. v1 RFC5 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- moves ralink gating clock driver to drivers/clk/
- describes the resources of gating clocks in devicetree and removes resource tables in source code
- changes gating clock provider to platform_driver
- changes PLL clock provider to platform_driver
- replaces clk_* API calls to clk_hw_* APIs
- uses BIT() macro
- uses IS_ENABLED(CONFIG_COMMON_CLK) macro

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5clk: mips: ralink: add Ralink MIPS gating clock driverdrivers/clk/Kconfig drivers/clk/Makefile drivers/clk/clk-rt2880.c+206 -02 replies
2/5dt-bindings: clk: add document for ralink clock driverDocumentation/devicetree/bindings/clock/ralink,rt2880-clock.txt+58 -03 replies
3/5mips: ralink: mt7620/76x8 use common clk frameworkarch/mips/ralink/Kconfig arch/mips/ralink/clk.c arch/mips/ralink/common.h +2 more+113 -251 reply
4/5mips: ralink: mt76x8: add nodes for clocksarch/mips/boot/dts/ralink/mt7628a.dtsi+52 -00 replies
5/5mips: ralink: mt7620: add nodes for clocksarch/mips/boot/dts/ralink/mt7620a.dtsi+43 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 0/5] MIPS: ralink: peripheral clock gating driver

Changelog:

v2:
- moves ralink gating clock driver to drivers/clk/
- describes the resources of gating clocks in devicetree and removes resource tables in source code
- changes gating clock provider to platform_driver
- changes PLL clock provider to platform_driver
- replaces clk_* API calls to clk_hw_* APIs
- uses BIT() macro
- uses IS_ENABLED(CONFIG_COMMON_CLK) macro

------
This series introduce Mediatek/Ralink SoC's clock gating driver and rework PLL clks as clock provider.

The gating clocks are different at individual SoCs. Their resources are described with devicetree.

NOGUCHI Hiroshi (5):
clk: ralink: add rt2880-clock driver
dt-bindings: clk: add document for ralink clock driver
mips: ralink: mt7620/76x8 use common clk framework
mips: ralink: mt76x8: add nodes for PLL clocks and gating clocks
mips: ralink: mt7620: add nodes for PLL clocks and gating clocks

 .../bindings/clock/ralink,rt2880-clock.txt    |  58 +++++
 arch/mips/boot/dts/ralink/mt7620a.dtsi        |  46 +++-
 arch/mips/boot/dts/ralink/mt7628a.dtsi        |  52 +++++
 arch/mips/ralink/Kconfig                      |   2 +
 arch/mips/ralink/clk.c                        |  33 +++
 arch/mips/ralink/common.h                     |   4 +
 arch/mips/ralink/mt7620.c                     |  82 +++++---
 drivers/clk/Kconfig                           |   6 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-rt2880.c                      | 199 ++++++++++++++++++
 include/dt-bindings/clock/mt7620-clk.h        |  17 ++
 11 files changed, 472 insertions(+), 28 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/ralink,rt2880-clock.txt
 create mode 100644 drivers/clk/clk-rt2880.c
 create mode 100644 include/dt-bindings/clock/mt7620-clk.h
Signature · 1 line
2.20.1