0ba9bd7cf0b8a424de34a2b287ebeb5f534d210b
[openwrt/staging/jow.git] / target / linux / mediatek / patches-5.15 / 945-arm64-dts-mt7986-move-ilm-in-a-dedicated-node.patch
1 From 01561065af5bf1d2a4244896d897e3a1eafbcd46 Mon Sep 17 00:00:00 2001
2 Message-Id: <01561065af5bf1d2a4244896d897e3a1eafbcd46.1678717704.git.lorenzo@kernel.org>
3 From: Lorenzo Bianconi <lorenzo@kernel.org>
4 Date: Mon, 13 Mar 2023 15:10:56 +0100
5 Subject: [PATCH net-next] arm64: dts: mt7986: move ilm in a dedicated node
6
7 Since the ilm memory region is not part of the RAM SoC, move ilm in a
8 deidicated syscon node.
9 This patch helps to keep backward-compatibility with older version of
10 uboot codebase where we have a limit of 8 reserved-memory dts child
11 nodes.
12
13 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
14 ---
15 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 34 +++++++++++------------
16 1 file changed, 16 insertions(+), 18 deletions(-)
17
18 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
19 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
20 @@ -97,16 +97,6 @@
21 no-map;
22 };
23
24 - wo_ilm0: wo-ilm@151e0000 {
25 - reg = <0 0x151e0000 0 0x8000>;
26 - no-map;
27 - };
28 -
29 - wo_ilm1: wo-ilm@151f0000 {
30 - reg = <0 0x151f0000 0 0x8000>;
31 - no-map;
32 - };
33 -
34 wo_data: wo-data@4fd80000 {
35 reg = <0 0x4fd80000 0 0x240000>;
36 no-map;
37 @@ -533,11 +523,10 @@
38 reg = <0 0x15010000 0 0x1000>;
39 interrupt-parent = <&gic>;
40 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
41 - memory-region = <&wo_emi0>, <&wo_ilm0>, <&wo_dlm0>,
42 - <&wo_data>;
43 - memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
44 - "wo-data";
45 + memory-region = <&wo_emi0>, <&wo_dlm0>, <&wo_data>;
46 + memory-region-names = "wo-emi", "wo-dlm", "wo-data";
47 mediatek,wo-ccif = <&wo_ccif0>;
48 + mediatek,wo-ilm = <&wo_ilm0>;
49 mediatek,wo-cpuboot = <&wo_cpuboot>;
50 };
51
52 @@ -547,11 +536,10 @@
53 reg = <0 0x15011000 0 0x1000>;
54 interrupt-parent = <&gic>;
55 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
56 - memory-region = <&wo_emi1>, <&wo_ilm1>, <&wo_dlm1>,
57 - <&wo_data>;
58 - memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
59 - "wo-data";
60 + memory-region = <&wo_emi1>, <&wo_dlm1>, <&wo_data>;
61 + memory-region-names = "wo-emi", "wo-dlm", "wo-data";
62 mediatek,wo-ccif = <&wo_ccif1>;
63 + mediatek,wo-ilm = <&wo_ilm1>;
64 mediatek,wo-cpuboot = <&wo_cpuboot>;
65 };
66
67 @@ -569,6 +557,16 @@
68 interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
69 };
70
71 + wo_ilm0: syscon@151e0000 {
72 + compatible = "mediatek,mt7986-wo-ilm", "syscon";
73 + reg = <0 0x151e0000 0 0x8000>;
74 + };
75 +
76 + wo_ilm1: syscon@151f0000 {
77 + compatible = "mediatek,mt7986-wo-ilm", "syscon";
78 + reg = <0 0x151f0000 0 0x8000>;
79 + };
80 +
81 wo_cpuboot: syscon@15194000 {
82 compatible = "mediatek,mt7986-wo-cpuboot", "syscon";
83 reg = <0 0x15194000 0 0x1000>;