Skip to content

add support for clocks on MT7981 SoC

Daniel Golle linux-arm-kernel linux-clk linux-devicetree linux-mediatek lkml 5 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. v5 Latest3 patches 5 repliesApplied
  2. v43 patches 8 repliesApplied
  3. v33 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches3 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

* add compatible string also for 'mediatek,apmixedsys', 'mediatek,ethsys' as well as 'mediatek,sgmiisys' bindings

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: clock: Add compatibles for MT7981Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt +2 more+6 -01 reply
2/3dt-bindings: clock: mediatek: add mt7981 clock IDsinclude/dt-bindings/clock/mediatek,mt7981-clk.h+215 -02 replies
3/3clk: mediatek: add MT7981 clock supportdrivers/clk/mediatek/Kconfig drivers/clk/mediatek/Makefile drivers/clk/mediatek/clk-mt7981-apmixed.c +3 more+869 -02 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiAngeloGioacchino Del Regno
1/3
2/3A-b R-b
3/3R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/3] add support for clocks on MT7981 SoC

The MediaTek MT7981 SoC is quite similar to its big sibling, the MT7986. Hence most drivers can be reused and not much is missing the get also this SoC working on mainline Linux.

Start with a cleaned-up version of the clock drivers, based on what can also be found in MediaTek's SDK[1].

Upon request of AngeloGioacchino Del Regno this series has been rebased and adapted to be applied on top of the pending series "MediaTek clocks cleanups and improvements"[2]

The complete tree used for testing (with still some to-be-cleaned-up changes, esp. for the Ethernet driver) can be found on Github[3].

[1]: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/refs/heads/master/target/linux/mediatek/files-5.4/drivers/clk/mediatek/clk-mt7981.c
[2]: https://patchwork.kernel.org/project/linux-clk/list/?series=714057
[3]: https://github.com/dangowrt/linux

Changes since v4:
* add compatible string also for 'mediatek,apmixedsys', 'mediatek,ethsys' as well as 'mediatek,sgmiisys' bindings

Changes since v3:
* fixed typos in commit descriptions

Changes since v2:
* rebase on top of next-20230120 with v4 of AngeloGioacchino's series[2]
* fix titles of dt-bindings commits (this time for real)
* convert clk-mt7981-infracfg to use mtk_clk_simple_probe
* make use of PLL_AO flag in clk-mt7981-apmixed
* convert clk-mt7981-ethsys into platform driver, also using the generic probe function, allow building as module

Changes since v1:
* rebase and adapt on top of [2]
* split-off addition of dt-bindings header, fix filename
* changed commit title as requested

Daniel Golle (3):
dt-bindings: clock: Add compatibles for MT7981
dt-bindings: clock: mediatek: add mt7981 clock IDs
clk: mediatek: add MT7981 clock support

 .../bindings/arm/mediatek/mediatek,ethsys.txt |   1 +
 .../arm/mediatek/mediatek,infracfg.yaml       |   1 +
 .../arm/mediatek/mediatek,sgmiisys.txt        |   2 +
 .../bindings/clock/mediatek,apmixedsys.yaml   |   1 +
 .../bindings/clock/mediatek,topckgen.yaml     |   1 +
 drivers/clk/mediatek/Kconfig                  |  17 +
 drivers/clk/mediatek/Makefile                 |   4 +
 drivers/clk/mediatek/clk-mt7981-apmixed.c     | 102 +++++
 drivers/clk/mediatek/clk-mt7981-eth.c         | 117 +++++
 drivers/clk/mediatek/clk-mt7981-infracfg.c    | 207 +++++++++
 drivers/clk/mediatek/clk-mt7981-topckgen.c    | 422 ++++++++++++++++++
 .../dt-bindings/clock/mediatek,mt7981-clk.h   | 215 +++++++++
 12 files changed, 1090 insertions(+)
 create mode 100644 drivers/clk/mediatek/clk-mt7981-apmixed.c
 create mode 100644 drivers/clk/mediatek/clk-mt7981-eth.c
 create mode 100644 drivers/clk/mediatek/clk-mt7981-infracfg.c
 create mode 100644 drivers/clk/mediatek/clk-mt7981-topckgen.c
 create mode 100644 include/dt-bindings/clock/mediatek,mt7981-clk.h

base-commit: 9fbee811e479aca2f3523787cae1f46553141b40

Signature · 1 line
2.39.1