package: add fitblk util to release /dev/fit* devices
[openwrt/staging/jow.git] / target / linux / mediatek / patches-5.15 / 946-arm64-dts-mt7986-move-dlm-in-a-dedicated-node.patch
1 From 9f76be683a8ec498563c294bc1cc279468058302 Mon Sep 17 00:00:00 2001
2 Message-Id: <9f76be683a8ec498563c294bc1cc279468058302.1678719283.git.lorenzo@kernel.org>
3 From: Lorenzo Bianconi <lorenzo@kernel.org>
4 Date: Mon, 13 Mar 2023 15:53:30 +0100
5 Subject: [PATCH net-next] arm64: dts: mt7986: move dlm in a dedicated node
6
7 Since the dlm memory region is not part of the RAM SoC, move dlm 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 | 30 ++++++++++++-----------
16 1 file changed, 16 insertions(+), 14 deletions(-)
17
18 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
19 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
20 @@ -101,16 +101,6 @@
21 reg = <0 0x4fd80000 0 0x240000>;
22 no-map;
23 };
24 -
25 - wo_dlm0: wo-dlm@151e8000 {
26 - reg = <0 0x151e8000 0 0x2000>;
27 - no-map;
28 - };
29 -
30 - wo_dlm1: wo-dlm@151f8000 {
31 - reg = <0 0x151f8000 0 0x2000>;
32 - no-map;
33 - };
34 };
35
36 timer {
37 @@ -523,10 +513,11 @@
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_dlm0>, <&wo_data>;
42 - memory-region-names = "wo-emi", "wo-dlm", "wo-data";
43 + memory-region = <&wo_emi0>, <&wo_data>;
44 + memory-region-names = "wo-emi", "wo-data";
45 mediatek,wo-ccif = <&wo_ccif0>;
46 mediatek,wo-ilm = <&wo_ilm0>;
47 + mediatek,wo-dlm = <&wo_dlm0>;
48 mediatek,wo-cpuboot = <&wo_cpuboot>;
49 };
50
51 @@ -536,10 +527,11 @@
52 reg = <0 0x15011000 0 0x1000>;
53 interrupt-parent = <&gic>;
54 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
55 - memory-region = <&wo_emi1>, <&wo_dlm1>, <&wo_data>;
56 - memory-region-names = "wo-emi", "wo-dlm", "wo-data";
57 + memory-region = <&wo_emi1>, <&wo_data>;
58 + memory-region-names = "wo-emi", "wo-data";
59 mediatek,wo-ccif = <&wo_ccif1>;
60 mediatek,wo-ilm = <&wo_ilm1>;
61 + mediatek,wo-dlm = <&wo_dlm1>;
62 mediatek,wo-cpuboot = <&wo_cpuboot>;
63 };
64
65 @@ -567,6 +559,16 @@
66 reg = <0 0x151f0000 0 0x8000>;
67 };
68
69 + wo_dlm0: syscon@151e8000 {
70 + compatible = "mediatek,mt7986-wo-dlm", "syscon";
71 + reg = <0 0x151e8000 0 0x2000>;
72 + };
73 +
74 + wo_dlm1: syscon@151f8000 {
75 + compatible = "mediatek,mt7986-wo-dlm", "syscon";
76 + reg = <0 0x151f8000 0 0x2000>;
77 + };
78 +
79 wo_cpuboot: syscon@15194000 {
80 compatible = "mediatek,mt7986-wo-cpuboot", "syscon";
81 reg = <0 0x15194000 0 0x1000>;