mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
1f818b09f8
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>
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
From 670f77f76f650b1b341d31d009cc2fb03a4d1fcf Mon Sep 17 00:00:00 2001
|
|
From: Shiji Yang <yangshiji66@outlook.com>
|
|
Date: Fri, 23 Jun 2023 08:17:48 +0800
|
|
Subject: mips: ralink: match all supported system controller compatible
|
|
strings
|
|
|
|
Recently, A new clock and reset controller driver has been introduced to
|
|
the ralink mips target[1]. It provides proper system control and adds more
|
|
SoC specific compatible strings. In order to better initialize CPUs, this
|
|
patch removes the outdated "ralink,mt7620a-sysc" and add all dt-binding
|
|
documented compatible strings to the system controller match table.
|
|
|
|
[1] https://lore.kernel.org/all/20230619040941.1340372-1-sergio.paracuellos@gmail.com/
|
|
|
|
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
|
|
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
|
|
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
|
|
---
|
|
arch/mips/ralink/of.c | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/mips/ralink/of.c
|
|
+++ b/arch/mips/ralink/of.c
|
|
@@ -40,10 +40,15 @@ static const struct of_device_id mtmips_
|
|
|
|
static const struct of_device_id mtmips_sysc_match[] = {
|
|
{ .compatible = "mediatek,mt7621-sysc" },
|
|
- { .compatible = "ralink,mt7620a-sysc" },
|
|
+ { .compatible = "ralink,mt7620-sysc" },
|
|
+ { .compatible = "ralink,mt7628-sysc" },
|
|
+ { .compatible = "ralink,mt7688-sysc" },
|
|
{ .compatible = "ralink,rt2880-sysc" },
|
|
{ .compatible = "ralink,rt3050-sysc" },
|
|
+ { .compatible = "ralink,rt3052-sysc" },
|
|
+ { .compatible = "ralink,rt3352-sysc" },
|
|
{ .compatible = "ralink,rt3883-sysc" },
|
|
+ { .compatible = "ralink,rt5350-sysc" },
|
|
{}
|
|
};
|
|
|