ramips: add proper system clock and reset driver support for legacy SoCs
authorShiji Yang <yangshiji66@qq.com>
Sat, 17 Jun 2023 11:30:59 +0000 (19:30 +0800)
committerNick Hainke <vincent@systemli.org>
Sun, 30 Jul 2023 11:09:23 +0000 (13:09 +0200)
commit1f818b09f8ae1cbb4a2ae7ddaccaa9ce0c12ca93
tree35d4de6bee938f6a0e090c13d249f3fda0a4f84b
parent8cacf2bda8009f07715a9617be6b26e53c5443bd
ramips: add proper system clock and reset driver support for legacy SoCs

This series of upstream patches properly implement a clock and reset
driver for old ralink SoCs[1]. And it includes some related fixes[2] and
improvements[3][4]. All patches have been merged into linux-next. They
will be part of upcoming Linux 6.5. In order to switch to the new system
controller driver, all clocks and resets properties in SoC dtsi have been
updated, and kernel symbol "CONFIG_CLK_MTMIPS" have been added to the
kernel config files.

[1] https://lore.kernel.org/all/20230619040941.1340372-1-sergio.paracuellos@gmail.com
[2] https://lore.kernel.org/all/20230622-mips-ralink-clk-wuninitialized-v1-1-ea9041240d10@kernel.org
[3] https://lore.kernel.org/all/OSYP286MB03120BABB25900E113ED42B7BC5CA@OSYP286MB0312.JPNP286.PROD.OUTLOOK.COM
[4] https://lore.kernel.org/all/TYAP286MB03151148AF8C054621DD55C3BC23A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM

Tested on Motorola MWR03 (MT7628)
Tested on Haier HW-L1W (MT7620)

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
27 files changed:
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt2880.dtsi
target/linux/ramips/dts/rt3050.dtsi
target/linux/ramips/dts/rt3352.dtsi
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt5350.dtsi
target/linux/ramips/mt7620/config-5.15
target/linux/ramips/mt76x8/config-5.15
target/linux/ramips/patches-5.15/005-v6.5-01-dt-bindings-clock-add-mtmips-SoCs-system-controller.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-02-clk-ralink-add-clock-and-reset-driver-for-MTMIPS-SoC.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-03-mips-ralink-rt288x-remove-clock-related-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-04-mips-ralink-rt305x-remove-clock-related-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-05-mips-ralink-rt3883-remove-clock-related-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-06-mips-ralink-mt7620-remove-clock-related-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-07-mips-ralink-remove-reset-related-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-08-mips-ralink-get-cpu-rate-from-new-driver-code.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/005-v6.5-09-MAINTAINERS-add-Mediatek-MTMIPS-Clock-maintainer.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/006-v6.5-mips-ralink-introduce-commonly-used-remap-node-funct.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/007-v6.5-clk-ralink-mtmips-Fix-uninitialized-use-of-ret-in-mt.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/008-v6.5-mips-ralink-match-all-supported-system-controller-co.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/110-reset_controller_driver.patch [deleted file]
target/linux/ramips/patches-5.15/300-mt7620-export-chip-version-and-pkg.patch
target/linux/ramips/rt288x/config-5.15
target/linux/ramips/rt305x/config-5.15
target/linux/ramips/rt3883/config-5.15