bcm53xx: backport DTS 5.13 changes
[openwrt/staging/rmilecki.git] / target / linux / bcm53xx / patches-5.4 / 130-ARM-dts-BCM5301X-Describe-NVMEM-NVRAM-on-Linksys-Lux.patch
1 From bb8f1a03430422593ce12216f91fb7a5df43f722 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 10 Mar 2021 15:37:54 +0100
4 Subject: [PATCH] ARM: dts: BCM5301X: Describe NVMEM NVRAM on Linksys & Luxul
5 routers
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Provide access to NVRAM which contains device environment variables.
11
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 ---
14 This validates cleanly (dtbs_check) with:
15 dt-bindings: nvmem: add Broadcom's NVRAM
16 from the git://git.kernel.org/pub/scm/linux/kernel/git/srini/nvmem.git
17 ---
18 arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts | 5 +++++
19 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 5 +++++
20 arch/arm/boot/dts/bcm4709-linksys-ea9200.dts | 5 +++++
21 arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 5 +++++
22 arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts | 5 +++++
23 arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts | 5 +++++
24 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 5 +++++
25 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 5 +++++
26 8 files changed, 40 insertions(+)
27
28 diff --git a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
29 index 41548d6d479a..5bac1e15775a 100644
30 --- a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
31 +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
32 @@ -21,6 +21,11 @@ memory@0 {
33 reg = <0x00000000 0x08000000>;
34 };
35
36 + nvram@1c080000 {
37 + compatible = "brcm,nvram";
38 + reg = <0x1c080000 0x180000>;
39 + };
40 +
41 gpio-keys {
42 compatible = "gpio-keys";
43
44 diff --git a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
45 index 432254383769..9316a36434f7 100644
46 --- a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
47 +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
48 @@ -21,6 +21,11 @@ memory@0 {
49 reg = <0x00000000 0x08000000>;
50 };
51
52 + nvram@1eff0000 {
53 + compatible = "brcm,nvram";
54 + reg = <0x1eff0000 0x10000>;
55 + };
56 +
57 leds {
58 compatible = "gpio-leds";
59
60 diff --git a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
61 index 38fbefdf2e4e..9b6887d477d8 100644
62 --- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
63 +++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
64 @@ -22,6 +22,11 @@ memory {
65 <0x88000000 0x08000000>;
66 };
67
68 + nvram@1c080000 {
69 + compatible = "brcm,nvram";
70 + reg = <0x1c080000 0x180000>;
71 + };
72 +
73 gpio-keys {
74 compatible = "gpio-keys";
75 #address-cells = <1>;
76 diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
77 index 4b24b25389b5..1dc0cb0fae22 100644
78 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
79 +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
80 @@ -22,6 +22,11 @@ memory@0 {
81 <0x88000000 0x08000000>;
82 };
83
84 + nvram@1c080000 {
85 + compatible = "brcm,nvram";
86 + reg = <0x1c080000 0x100000>;
87 + };
88 +
89 gpio-keys {
90 compatible = "gpio-keys";
91
92 diff --git a/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
93 index a6dc99955e19..4b8117f32d26 100644
94 --- a/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
95 +++ b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
96 @@ -22,6 +22,11 @@ memory@0 {
97 <0x88000000 0x18000000>;
98 };
99
100 + nvram@1eff0000 {
101 + compatible = "brcm,nvram";
102 + reg = <0x1eff0000 0x10000>;
103 + };
104 +
105 leds {
106 compatible = "gpio-leds";
107
108 diff --git a/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
109 index ff98837bc0db..5fecce0422c7 100644
110 --- a/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
111 +++ b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
112 @@ -22,6 +22,11 @@ memory@0 {
113 <0x88000000 0x18000000>;
114 };
115
116 + nvram@1eff0000 {
117 + compatible = "brcm,nvram";
118 + reg = <0x1eff0000 0x10000>;
119 + };
120 +
121 leds {
122 compatible = "gpio-leds";
123
124 diff --git a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
125 index b76bfe6efcd4..cbe8c8e4a301 100644
126 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
127 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
128 @@ -22,6 +22,11 @@ memory@0 {
129 <0x88000000 0x08000000>;
130 };
131
132 + nvram@1eff0000 {
133 + compatible = "brcm,nvram";
134 + reg = <0x1eff0000 0x10000>;
135 + };
136 +
137 leds {
138 compatible = "gpio-leds";
139
140 diff --git a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
141 index 32d5a50578ec..24ae3c8a3e09 100644
142 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
143 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
144 @@ -22,6 +22,11 @@ memory@0 {
145 <0x88000000 0x18000000>;
146 };
147
148 + nvram@1eff0000 {
149 + compatible = "brcm,nvram";
150 + reg = <0x1eff0000 0x10000>;
151 + };
152 +
153 leds {
154 compatible = "gpio-leds";
155
156 --
157 2.26.2
158