1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
|
From 3f7bbc703820266e75c079e5553289d969fe0ed7 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 30 May 2019 16:44:24 +0100
Subject: [PATCH 640/703] overlays: Add i2c3-6 and uart2-5 overlays
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
---
arch/arm/boot/dts/overlays/Makefile | 8 +++
arch/arm/boot/dts/overlays/README | 52 ++++++++++++++++++++
arch/arm/boot/dts/overlays/i2c3-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/i2c4-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/i2c5-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/i2c6-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/uart2-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/uart3-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/uart4-overlay.dts | 27 ++++++++++
arch/arm/boot/dts/overlays/uart5-overlay.dts | 27 ++++++++++
10 files changed, 276 insertions(+)
create mode 100644 arch/arm/boot/dts/overlays/i2c3-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/i2c4-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/i2c5-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/i2c6-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/uart2-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/uart3-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/uart4-overlay.dts
create mode 100644 arch/arm/boot/dts/overlays/uart5-overlay.dts
--- a/arch/arm/boot/dts/overlays/Makefile
+++ b/arch/arm/boot/dts/overlays/Makefile
@@ -65,6 +65,10 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
i2c-sensor.dtbo \
i2c0-bcm2708.dtbo \
i2c1-bcm2708.dtbo \
+ i2c3.dtbo \
+ i2c4.dtbo \
+ i2c5.dtbo \
+ i2c6.dtbo \
i2s-gpio28-31.dtbo \
ilitek251x.dtbo \
iqaudio-codec.dtbo \
@@ -149,6 +153,10 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
tpm-slb9670.dtbo \
uart0.dtbo \
uart1.dtbo \
+ uart2.dtbo \
+ uart3.dtbo \
+ uart4.dtbo \
+ uart5.dtbo \
udrc.dtbo \
upstream.dtbo \
vc4-fkms-v3d.dtbo \
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -1137,6 +1137,34 @@ Params: sda1_pin GPIO pin
"yes")
+Name: i2c3
+Info: Enable the i2c3 bus
+Load: dtoverlay=i2c3,<param>
+Params: pins_2_3 Use GPIOs 2 and 3
+ pins_4_5 Use GPIOs 4 and 5 (default)
+
+
+Name: i2c4
+Info: Enable the i2c4 bus
+Load: dtoverlay=i2c4,<param>
+Params: pins_6_7 Use GPIOs 6 and 7
+ pins_8_9 Use GPIOs 8 and 9 (default)
+
+
+Name: i2c5
+Info: Enable the i2c5 bus
+Load: dtoverlay=i2c5,<param>
+Params: pins_10_11 Use GPIOs 10 and 11
+ pins_12_13 Use GPIOs 12 and 13 (default)
+
+
+Name: i2c6
+Info: Enable the i2c6 bus
+Load: dtoverlay=i2c6,<param>
+Params: pins_0_1 Use GPIOs 0 and 1
+ pins_22_23 Use GPIOs 22 and 23 (default)
+
+
Name: i2s-gpio28-31
Info: move I2S function block to GPIO 28 to 31
Load: dtoverlay=i2s-gpio28-31
@@ -2199,6 +2227,30 @@ Params: txd1_pin GPIO pin
rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
+Name: uart2
+Info: Enable uart 2 on GPIOs 0-3
+Load: dtoverlay=uart2,<param>
+Params: ctsrts Enable CTS/RTS on GPIOs 2-3 (default off)
+
+
+Name: uart3
+Info: Enable uart 3 on GPIOs 4-7
+Load: dtoverlay=uart3,<param>
+Params: ctsrts Enable CTS/RTS on GPIOs 6-7 (default off)
+
+
+Name: uart4
+Info: Enable uart 4 on GPIOs 8-11
+Load: dtoverlay=uart4,<param>
+Params: ctsrts Enable CTS/RTS on GPIOs 10-11 (default off)
+
+
+Name: uart5
+Info: Enable uart 5 on GPIOs 12-15
+Load: dtoverlay=uart5,<param>
+Params: ctsrts Enable CTS/RTS on GPIOs 14-15 (default off)
+
+
Name: udrc
Info: Configures the NW Digital Radio UDRC Hat
Load: dtoverlay=udrc,<param>=<val>
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/i2c3-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&i2c3>;
+ __overlay__ {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c3_pins>;
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c3_pins>;
+ __dormant__ {
+ brcm,pins = <2 3>;
+ };
+ };
+
+ __overrides__ {
+ pins_2_3 = <0>,"=1";
+ pins_4_5 = <0>,"!1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/i2c4-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&i2c4>;
+ __overlay__ {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c4_pins>;
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c4_pins>;
+ __dormant__ {
+ brcm,pins = <6 7>;
+ };
+ };
+
+ __overrides__ {
+ pins_6_7 = <0>,"=1";
+ pins_8_9 = <0>,"!1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/i2c5-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&i2c5>;
+ __overlay__ {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c5_pins>;
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c5_pins>;
+ __dormant__ {
+ brcm,pins = <10 11>;
+ };
+ };
+
+ __overrides__ {
+ pins_10_11 = <0>,"=1";
+ pins_12_13 = <0>,"!1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/i2c6-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&i2c6>;
+ __overlay__ {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c6_pins>;
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c6_pins>;
+ __dormant__ {
+ brcm,pins = <0 1>;
+ };
+ };
+
+ __overrides__ {
+ pins_0_1 = <0>,"=1";
+ pins_22_23 = <0>,"!1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/uart2-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&uart2>;
+ __overlay__ {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins>;
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&uart2_pins>;
+ __dormant__ {
+ brcm,pins = <0 1 2 3>;
+ brcm,pull = <0 2 2 0>;
+ };
+ };
+
+ __overrides__ {
+ ctsrts = <0>,"=1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/uart3-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&uart3>;
+ __overlay__ {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart3_pins>;
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&uart3_pins>;
+ __dormant__ {
+ brcm,pins = <4 5 6 7>;
+ brcm,pull = <0 2 2 0>;
+ };
+ };
+
+ __overrides__ {
+ ctsrts = <0>,"=1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/uart4-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&uart4>;
+ __overlay__ {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart4_pins>;
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&uart4_pins>;
+ __dormant__ {
+ brcm,pins = <8 9 10 11>;
+ brcm,pull = <0 2 2 0>;
+ };
+ };
+
+ __overrides__ {
+ ctsrts = <0>,"=1";
+ };
+};
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/uart5-overlay.dts
@@ -0,0 +1,27 @@
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "brcm,bcm2838";
+
+ fragment@0 {
+ target = <&uart5>;
+ __overlay__ {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart5_pins>;
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&uart5_pins>;
+ __dormant__ {
+ brcm,pins = <12 13 14 15>;
+ brcm,pull = <0 2 2 0>;
+ };
+ };
+
+ __overrides__ {
+ ctsrts = <0>,"=1";
+ };
+};
|