[0/3,v2] add support for clocks on MT7981 SoC

Message ID cover.1674152610.git.daniel@makrotopia.org
Headers
Series add support for clocks on MT7981 SoC |

Message

Daniel Golle Jan. 20, 2023, 1:24 a.m. UTC
  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]

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

[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-mediatek/list/?series=711734

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

 .../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     | 103 +++++
 drivers/clk/mediatek/clk-mt7981-eth.c         | 138 ++++++
 drivers/clk/mediatek/clk-mt7981-infracfg.c    | 236 ++++++++++
 drivers/clk/mediatek/clk-mt7981-topckgen.c    | 423 ++++++++++++++++++
 .../dt-bindings/clock/mediatek,mt7981-clk.h   | 215 +++++++++
 9 files changed, 1138 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
  

Comments

AngeloGioacchino Del Regno Jan. 20, 2023, 8:49 a.m. UTC | #1
Il 20/01/23 02:24, Daniel Golle ha scritto:
> 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]
> 
> Changes since v1:
>   * rebase and adapt on top of [2]
>   * split-off addition of dt-bindings header, fix filename
>   * changed commit title as requested

You didn't change it as requested :-P

> 
> [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-mediatek/list/?series=711734
> 
> Daniel Golle (3):
>    dt-bindings: clk: Add apmixedsys/topckgen compatibles for MT7981
>    dt-bindings: clk: mediatek: add mt7981 clock IDs

s/clk/clock/g :-)

Regards,
Angelo