1 From 89e5d6fae1a69dc41d9f1ba54dd20b2d994e3632 Mon Sep 17 00:00:00 2001
2 From: notro <notro@tronnes.org>
3 Date: Wed, 9 Jul 2014 14:46:08 +0200
4 Subject: [PATCH 054/454] BCM2708: Add core Device Tree support
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Add the bare minimum needed to boot BCM2708 from a Device Tree.
11 Signed-off-by: Noralf Tronnes <notro@tronnes.org>
13 BCM2708: DT: change 'axi' nodename to 'soc'
15 Change DT node named 'axi' to 'soc' so it matches ARCH_BCM2835.
16 The VC4 bootloader fills in certain properties in the 'axi' subtree,
17 but since this is part of an upstreaming effort, the name is changed.
19 Signed-off-by: Noralf Tronnes notro@tronnes.org
21 BCM2708_DT: Correct length of the peripheral space
23 Use dts-dirs feature for overlays.
25 The kernel makefiles have a dts-dirs target that is for vendor subdirectories.
27 Using this fixes the install_dtbs target, which previously did not install the overlays.
29 BCM270X_DT: configure I2S DMA channels
31 Signed-off-by: Matthias Reichl <hias@horus.com>
33 BCM270X_DT: switch to bcm2835-i2s
35 I2S soundcard drivers with proper devicetree support (i.e. not linking
36 to the cpu_dai/platform via name but to cpu/platform via of_node)
37 will work out of the box without any modifications.
39 When the kernel is compiled without devicetree support the platform
40 code will instantiate the bcm2708-i2s driver and I2S soundcard drivers
41 will link to it via name, as before.
43 Signed-off-by: Matthias Reichl <hias@horus.com>
45 SDIO-overlay: add poll_once-boolean parameter
47 Add paramter to toggle sdio-device-polling
48 done every second or once at boot-time.
50 Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de>
52 BCM270X_DT: Make mmc overlay compatible with current firmware
54 The original DT overlay logic followed a merge-then-patch procedure,
55 i.e. parameters are applied to the loaded overlay before the overlay
56 is merged into the base DTB. This sequence has been changed to
57 patch-then-merge, in order to support parameterised node names, and
58 to protect against bad overlays. As a result, overrides (parameters)
59 must only target labels in the overlay, but the overlay can obviously target nodes in the base DTB.
61 mmc-overlay.dts (that switches back to the original mmc sdcard
62 driver) is the only overlay violating that rule, and this patch
65 bcm270x_dt: Use the sdhost MMC controller by default
67 The "mmc" overlay reverts to using the other controller.
69 squash: Add cprman to dt
71 BCM270X_DT: Use clk_core for I2C interfaces
73 BCM270X_DT: Use bcm283x.dtsi, bcm2835.dtsi and bcm2836.dtsi
75 The mainline Device Tree files are quite close to downstream now.
76 Let's use bcm283x.dtsi, bcm2835.dtsi and bcm2836.dtsi as base files
79 Mainline dts files are based on these files:
82 bcm2835.dtsi bcm2836.dtsi
85 Current downstream are based on these:
87 bcm2708.dtsi bcm2709.dtsi bcm2710.dtsi
90 This patch introduces this dependency:
92 bcm2708.dtsi bcm2709.dtsi
95 bcm2835.dtsi bcm2836.dtsi
104 bcm270x.dtsi contains the downstream bcm283x.dtsi diff.
105 bcm2708-rpi.dtsi is the downstream version of bcm2835-rpi.dtsi.
108 - The led node has moved from /soc/leds to /leds. This is not a problem
109 since the label is used to reference it.
110 - The clk_osc reg property changes from 6 to 3.
111 - The gpu nodes has their interrupt property set in the base file.
112 - the clocks label does not point to the /clocks node anymore, but
113 points to the cprman node. This is not a problem since the overlays
114 that use the clock node refer to it directly: target-path = "/clocks";
115 - some nodes now have 2 labels since mainline and downstream differs in
116 this respect: cprman/clocks, spi0/spi, gpu/vc4.
117 - some nodes doesn't have an explicit status = "okay" since they're not
118 disabled in the base file: watchdog and random.
119 - gpiomem doesn't need an explicit status = "okay".
120 - bcm2708-rpi-cm.dts got the hpd-gpios property from bcm2708_common.dtsi,
121 it's now set directly in that file.
122 - bcm2709-rpi-2-b.dts has the timer node moved from /soc/timer to /timer.
123 - Removed clock-frequency property on the bcm{2709,2710}.dtsi timer nodes.
125 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
127 BCM270X_DT: Use raspberrypi-power to turn on USB power
129 Use the raspberrypi-power driver to turn on USB power.
131 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
133 BCM270X_DT: Add a .dtbo target, use for overlays
135 Change the filenames and extensions to keep the pre-DDT style of
136 overlay (<name>-overlay.dtb) distinct from new ones that use a
137 different style of local fixups (<name>.dtbo), and to match other
140 The RPi firmware uses the DDTK trailer atom to choose which type of
141 overlay to use for each kernel.
143 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
145 BCM270X_DT: Don't generate "linux,phandle" props
147 The EPAPR standard says to use "phandle" properties to store phandles,
148 rather than the deprecated "linux,phandle" version. By default, dtc
149 generates both, but adding "-H epapr" causes it to only generate
150 "phandle"s, saving some space and clutter.
152 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
154 BCM270X_DT: Add overlay for enc28j60 on SPI2
156 Works on SPI2 for compute module
158 BCM270X_DT: Add midi-uart0 overlay
160 MIDI requires 31.25kbaud, a baudrate unsupported by Linux. The
161 midi-uart0 overlay configures uart0 (ttyAMA0) to use a fake clock
162 so that requesting 38.4kbaud actually gets 31.25kbaud.
164 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
166 BCM270X_DT: Add i2c-sensor overlay
168 The i2c-sensor overlay is a container for various pressure and
169 temperature sensors, currently bmp085 and bmp280. The standalone
170 bmp085_i2c-sensor overlay is now deprecated.
172 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
174 BCM270X_DT: overlays/*-overlay.dtb -> overlays/*.dtbo (#1752)
176 We now create overlays as .dtbo files.
178 build: support for .dtbo files for dtb overlays
180 Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb.
181 Patch the kernel, which has faulty rules to generate .dtbo the way yocto does
183 Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
184 Signed-off-by: Khem Raj <raj.khem@gmail.com>
186 BCM270X: Drop position requirement for CMA in VC4 overlay.
188 No longer necessary since 2aefcd576195a739a7a256099571c9c4a401005f,
189 and will probably let peeople that want to choose a larger CMA
190 allocation (particularly on pi0/1).
192 Signed-off-by: Eric Anholt <eric@anholt.net>
194 BCM270X_DT: RPi Device Tree tidy
196 Use the upstream sdhost node, add thermal-zones, and factor out some
199 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
201 arch/arm/Makefile | 2 +
202 arch/arm/boot/.gitignore | 1 +
203 arch/arm/boot/dts/Makefile | 20 +
204 arch/arm/boot/dts/bcm2708-rpi-0-w.dts | 165 ++
205 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 122 ++
206 arch/arm/boot/dts/bcm2708-rpi-b.dts | 112 ++
207 arch/arm/boot/dts/bcm2708-rpi-cm.dts | 95 +
208 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 17 +
209 arch/arm/boot/dts/bcm2708-rpi.dtsi | 162 ++
210 arch/arm/boot/dts/bcm2708.dtsi | 20 +
211 arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 122 ++
212 arch/arm/boot/dts/bcm2709.dtsi | 22 +
213 arch/arm/boot/dts/bcm270x.dtsi | 181 ++
214 arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 194 ++
215 arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 129 ++
216 arch/arm/boot/dts/bcm2710.dtsi | 32 +
217 arch/arm/boot/dts/overlays/Makefile | 128 ++
218 arch/arm/boot/dts/overlays/README | 1678 +++++++++++++++++
219 .../dts/overlays/adau1977-adc-overlay.dts | 40 +
220 .../dts/overlays/adau7002-simple-overlay.dts | 52 +
221 .../arm/boot/dts/overlays/ads1015-overlay.dts | 98 +
222 .../arm/boot/dts/overlays/ads1115-overlay.dts | 103 +
223 .../arm/boot/dts/overlays/ads7846-overlay.dts | 89 +
224 .../overlays/akkordion-iqdacplus-overlay.dts | 49 +
225 .../allo-boss-dac-pcm512x-audio-overlay.dts | 59 +
226 .../dts/overlays/allo-digione-overlay.dts | 44 +
227 .../allo-piano-dac-pcm512x-audio-overlay.dts | 54 +
228 ...o-piano-dac-plus-pcm512x-audio-overlay.dts | 55 +
229 .../boot/dts/overlays/at86rf233-overlay.dts | 57 +
230 .../overlays/audioinjector-addons-overlay.dts | 55 +
231 .../audioinjector-wm8731-audio-overlay.dts | 39 +
232 .../boot/dts/overlays/audremap-overlay.dts | 19 +
233 .../overlays/bmp085_i2c-sensor-overlay.dts | 23 +
234 arch/arm/boot/dts/overlays/dht11-overlay.dts | 39 +
235 .../dts/overlays/dionaudio-loco-overlay.dts | 39 +
236 .../overlays/dionaudio-loco-v2-overlay.dts | 49 +
237 arch/arm/boot/dts/overlays/dpi18-overlay.dts | 31 +
238 arch/arm/boot/dts/overlays/dpi24-overlay.dts | 31 +
239 .../arm/boot/dts/overlays/dwc-otg-overlay.dts | 20 +
240 arch/arm/boot/dts/overlays/dwc2-overlay.dts | 28 +
241 .../boot/dts/overlays/enc28j60-overlay.dts | 53 +
242 .../dts/overlays/enc28j60-spi2-overlay.dts | 47 +
243 .../boot/dts/overlays/fe-pi-audio-overlay.dts | 70 +
244 arch/arm/boot/dts/overlays/goodix-overlay.dts | 46 +
245 .../googlevoicehat-soundcard-overlay.dts | 49 +
246 .../arm/boot/dts/overlays/gpio-ir-overlay.dts | 44 +
247 .../boot/dts/overlays/gpio-ir-tx-overlay.dts | 34 +
248 .../dts/overlays/gpio-poweroff-overlay.dts | 34 +
249 .../dts/overlays/gpio-shutdown-overlay.dts | 80 +
250 .../dts/overlays/hifiberry-amp-overlay.dts | 39 +
251 .../dts/overlays/hifiberry-dac-overlay.dts | 34 +
252 .../overlays/hifiberry-dacplus-overlay.dts | 59 +
253 .../dts/overlays/hifiberry-digi-overlay.dts | 41 +
254 .../overlays/hifiberry-digi-pro-overlay.dts | 43 +
255 arch/arm/boot/dts/overlays/hy28a-overlay.dts | 93 +
256 arch/arm/boot/dts/overlays/hy28b-overlay.dts | 148 ++
257 .../boot/dts/overlays/i2c-bcm2708-overlay.dts | 13 +
258 .../boot/dts/overlays/i2c-gpio-overlay.dts | 43 +
259 .../arm/boot/dts/overlays/i2c-mux-overlay.dts | 139 ++
260 .../dts/overlays/i2c-pwm-pca9685a-overlay.dts | 26 +
261 .../dts/overlays/i2c-rtc-gpio-overlay.dts | 183 ++
262 .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 181 ++
263 .../boot/dts/overlays/i2c-sensor-overlay.dts | 206 ++
264 .../dts/overlays/i2c0-bcm2708-overlay.dts | 61 +
265 .../dts/overlays/i2c1-bcm2708-overlay.dts | 34 +
266 .../dts/overlays/i2s-gpio28-31-overlay.dts | 18 +
267 .../boot/dts/overlays/iqaudio-dac-overlay.dts | 46 +
268 .../dts/overlays/iqaudio-dacplus-overlay.dts | 49 +
269 .../iqaudio-digi-wm8804-audio-overlay.dts | 47 +
270 .../dts/overlays/justboom-dac-overlay.dts | 46 +
271 .../dts/overlays/justboom-digi-overlay.dts | 41 +
272 .../boot/dts/overlays/lirc-rpi-overlay.dts | 57 +
273 .../boot/dts/overlays/mcp23017-overlay.dts | 54 +
274 .../boot/dts/overlays/mcp23s17-overlay.dts | 732 +++++++
275 .../dts/overlays/mcp2515-can0-overlay.dts | 73 +
276 .../dts/overlays/mcp2515-can1-overlay.dts | 73 +
277 .../arm/boot/dts/overlays/mcp3008-overlay.dts | 205 ++
278 .../boot/dts/overlays/midi-uart0-overlay.dts | 36 +
279 .../boot/dts/overlays/midi-uart1-overlay.dts | 43 +
280 arch/arm/boot/dts/overlays/mmc-overlay.dts | 39 +
281 .../arm/boot/dts/overlays/mpu6050-overlay.dts | 28 +
282 .../arm/boot/dts/overlays/mz61581-overlay.dts | 117 ++
283 .../arm/boot/dts/overlays/papirus-overlay.dts | 89 +
284 .../boot/dts/overlays/pi3-act-led-overlay.dts | 27 +
285 .../dts/overlays/pi3-disable-bt-overlay.dts | 46 +
286 .../dts/overlays/pi3-disable-wifi-overlay.dts | 13 +
287 .../dts/overlays/pi3-miniuart-bt-overlay.dts | 74 +
288 .../boot/dts/overlays/piscreen-overlay.dts | 102 +
289 .../boot/dts/overlays/piscreen2r-overlay.dts | 106 ++
290 .../arm/boot/dts/overlays/pisound-overlay.dts | 120 ++
291 .../arm/boot/dts/overlays/pitft22-overlay.dts | 69 +
292 .../overlays/pitft28-capacitive-overlay.dts | 91 +
293 .../overlays/pitft28-resistive-overlay.dts | 121 ++
294 .../overlays/pitft35-resistive-overlay.dts | 121 ++
295 .../boot/dts/overlays/pps-gpio-overlay.dts | 35 +
296 .../boot/dts/overlays/pwm-2chan-overlay.dts | 47 +
297 .../boot/dts/overlays/pwm-ir-tx-overlay.dts | 40 +
298 arch/arm/boot/dts/overlays/pwm-overlay.dts | 43 +
299 .../arm/boot/dts/overlays/qca7000-overlay.dts | 52 +
300 .../boot/dts/overlays/raspidac3-overlay.dts | 49 +
301 .../dts/overlays/rotary-encoder-overlay.dts | 43 +
302 .../dts/overlays/rpi-backlight-overlay.dts | 21 +
303 .../overlays/rpi-cirrus-wm5102-overlay.dts | 146 ++
304 .../arm/boot/dts/overlays/rpi-dac-overlay.dts | 34 +
305 .../boot/dts/overlays/rpi-display-overlay.dts | 89 +
306 .../boot/dts/overlays/rpi-ft5406-overlay.dts | 30 +
307 .../boot/dts/overlays/rpi-proto-overlay.dts | 39 +
308 .../boot/dts/overlays/rpi-sense-overlay.dts | 47 +
309 arch/arm/boot/dts/overlays/rpi-tv-overlay.dts | 31 +
310 .../rra-digidac1-wm8741-audio-overlay.dts | 49 +
311 .../dts/overlays/sc16is750-i2c-overlay.dts | 37 +
312 .../dts/overlays/sc16is752-spi1-overlay.dts | 61 +
313 arch/arm/boot/dts/overlays/sdhost-overlay.dts | 31 +
314 .../boot/dts/overlays/sdio-1bit-overlay.dts | 37 +
315 arch/arm/boot/dts/overlays/sdio-overlay.dts | 37 +
316 .../arm/boot/dts/overlays/sdtweak-overlay.dts | 23 +
317 .../arm/boot/dts/overlays/smi-dev-overlay.dts | 18 +
318 .../boot/dts/overlays/smi-nand-overlay.dts | 69 +
319 arch/arm/boot/dts/overlays/smi-overlay.dts | 37 +
320 .../dts/overlays/spi-gpio35-39-overlay.dts | 31 +
321 .../arm/boot/dts/overlays/spi-rtc-overlay.dts | 33 +
322 .../arm/boot/dts/overlays/spi0-cs-overlay.dts | 29 +
323 .../boot/dts/overlays/spi0-hw-cs-overlay.dts | 26 +
324 .../boot/dts/overlays/spi1-1cs-overlay.dts | 57 +
325 .../boot/dts/overlays/spi1-2cs-overlay.dts | 69 +
326 .../boot/dts/overlays/spi1-3cs-overlay.dts | 81 +
327 .../boot/dts/overlays/spi2-1cs-overlay.dts | 57 +
328 .../boot/dts/overlays/spi2-2cs-overlay.dts | 69 +
329 .../boot/dts/overlays/spi2-3cs-overlay.dts | 81 +
330 .../boot/dts/overlays/tinylcd35-overlay.dts | 224 +++
331 arch/arm/boot/dts/overlays/uart1-overlay.dts | 38 +
332 .../dts/overlays/vc4-fkms-v3d-overlay.dts | 89 +
333 .../boot/dts/overlays/vc4-kms-v3d-overlay.dts | 151 ++
334 arch/arm/boot/dts/overlays/vga666-overlay.dts | 30 +
335 .../arm/boot/dts/overlays/w1-gpio-overlay.dts | 41 +
336 .../dts/overlays/w1-gpio-pullup-overlay.dts | 43 +
337 .../arm/boot/dts/overlays/wittypi-overlay.dts | 44 +
338 scripts/Makefile.dtbinst | 8 +-
339 scripts/Makefile.lib | 11 +
340 139 files changed, 11113 insertions(+), 2 deletions(-)
341 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-0-w.dts
342 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
343 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b.dts
344 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dts
345 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
346 create mode 100644 arch/arm/boot/dts/bcm2708-rpi.dtsi
347 create mode 100644 arch/arm/boot/dts/bcm2708.dtsi
348 create mode 100644 arch/arm/boot/dts/bcm2709-rpi-2-b.dts
349 create mode 100644 arch/arm/boot/dts/bcm2709.dtsi
350 create mode 100644 arch/arm/boot/dts/bcm270x.dtsi
351 create mode 100644 arch/arm/boot/dts/bcm2710-rpi-3-b.dts
352 create mode 100644 arch/arm/boot/dts/bcm2710-rpi-cm3.dts
353 create mode 100644 arch/arm/boot/dts/bcm2710.dtsi
354 create mode 100644 arch/arm/boot/dts/overlays/Makefile
355 create mode 100644 arch/arm/boot/dts/overlays/README
356 create mode 100644 arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
357 create mode 100644 arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts
358 create mode 100644 arch/arm/boot/dts/overlays/ads1015-overlay.dts
359 create mode 100644 arch/arm/boot/dts/overlays/ads1115-overlay.dts
360 create mode 100644 arch/arm/boot/dts/overlays/ads7846-overlay.dts
361 create mode 100644 arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
362 create mode 100644 arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts
363 create mode 100644 arch/arm/boot/dts/overlays/allo-digione-overlay.dts
364 create mode 100644 arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
365 create mode 100644 arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts
366 create mode 100644 arch/arm/boot/dts/overlays/at86rf233-overlay.dts
367 create mode 100644 arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
368 create mode 100644 arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
369 create mode 100644 arch/arm/boot/dts/overlays/audremap-overlay.dts
370 create mode 100644 arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
371 create mode 100644 arch/arm/boot/dts/overlays/dht11-overlay.dts
372 create mode 100644 arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
373 create mode 100644 arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts
374 create mode 100644 arch/arm/boot/dts/overlays/dpi18-overlay.dts
375 create mode 100644 arch/arm/boot/dts/overlays/dpi24-overlay.dts
376 create mode 100644 arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
377 create mode 100644 arch/arm/boot/dts/overlays/dwc2-overlay.dts
378 create mode 100644 arch/arm/boot/dts/overlays/enc28j60-overlay.dts
379 create mode 100644 arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
380 create mode 100644 arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts
381 create mode 100644 arch/arm/boot/dts/overlays/goodix-overlay.dts
382 create mode 100644 arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts
383 create mode 100644 arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
384 create mode 100644 arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts
385 create mode 100644 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
386 create mode 100644 arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts
387 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
388 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
389 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
390 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
391 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
392 create mode 100644 arch/arm/boot/dts/overlays/hy28a-overlay.dts
393 create mode 100644 arch/arm/boot/dts/overlays/hy28b-overlay.dts
394 create mode 100644 arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
395 create mode 100644 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
396 create mode 100644 arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
397 create mode 100644 arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
398 create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
399 create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
400 create mode 100644 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
401 create mode 100644 arch/arm/boot/dts/overlays/i2c0-bcm2708-overlay.dts
402 create mode 100644 arch/arm/boot/dts/overlays/i2c1-bcm2708-overlay.dts
403 create mode 100644 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
404 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
405 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
406 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
407 create mode 100644 arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
408 create mode 100644 arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
409 create mode 100644 arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
410 create mode 100644 arch/arm/boot/dts/overlays/mcp23017-overlay.dts
411 create mode 100644 arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
412 create mode 100755 arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
413 create mode 100644 arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
414 create mode 100755 arch/arm/boot/dts/overlays/mcp3008-overlay.dts
415 create mode 100644 arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
416 create mode 100644 arch/arm/boot/dts/overlays/midi-uart1-overlay.dts
417 create mode 100644 arch/arm/boot/dts/overlays/mmc-overlay.dts
418 create mode 100644 arch/arm/boot/dts/overlays/mpu6050-overlay.dts
419 create mode 100644 arch/arm/boot/dts/overlays/mz61581-overlay.dts
420 create mode 100644 arch/arm/boot/dts/overlays/papirus-overlay.dts
421 create mode 100644 arch/arm/boot/dts/overlays/pi3-act-led-overlay.dts
422 create mode 100644 arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
423 create mode 100644 arch/arm/boot/dts/overlays/pi3-disable-wifi-overlay.dts
424 create mode 100644 arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
425 create mode 100644 arch/arm/boot/dts/overlays/piscreen-overlay.dts
426 create mode 100644 arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
427 create mode 100644 arch/arm/boot/dts/overlays/pisound-overlay.dts
428 create mode 100644 arch/arm/boot/dts/overlays/pitft22-overlay.dts
429 create mode 100644 arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
430 create mode 100644 arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
431 create mode 100644 arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
432 create mode 100644 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
433 create mode 100644 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
434 create mode 100644 arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts
435 create mode 100644 arch/arm/boot/dts/overlays/pwm-overlay.dts
436 create mode 100644 arch/arm/boot/dts/overlays/qca7000-overlay.dts
437 create mode 100644 arch/arm/boot/dts/overlays/raspidac3-overlay.dts
438 create mode 100644 arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
439 create mode 100644 arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
440 create mode 100644 arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts
441 create mode 100644 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
442 create mode 100644 arch/arm/boot/dts/overlays/rpi-display-overlay.dts
443 create mode 100644 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
444 create mode 100644 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
445 create mode 100644 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
446 create mode 100644 arch/arm/boot/dts/overlays/rpi-tv-overlay.dts
447 create mode 100644 arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
448 create mode 100644 arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
449 create mode 100644 arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
450 create mode 100644 arch/arm/boot/dts/overlays/sdhost-overlay.dts
451 create mode 100644 arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
452 create mode 100644 arch/arm/boot/dts/overlays/sdio-overlay.dts
453 create mode 100644 arch/arm/boot/dts/overlays/sdtweak-overlay.dts
454 create mode 100644 arch/arm/boot/dts/overlays/smi-dev-overlay.dts
455 create mode 100644 arch/arm/boot/dts/overlays/smi-nand-overlay.dts
456 create mode 100644 arch/arm/boot/dts/overlays/smi-overlay.dts
457 create mode 100644 arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
458 create mode 100644 arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
459 create mode 100644 arch/arm/boot/dts/overlays/spi0-cs-overlay.dts
460 create mode 100644 arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
461 create mode 100644 arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
462 create mode 100644 arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
463 create mode 100644 arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
464 create mode 100644 arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
465 create mode 100644 arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
466 create mode 100644 arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
467 create mode 100644 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
468 create mode 100644 arch/arm/boot/dts/overlays/uart1-overlay.dts
469 create mode 100644 arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
470 create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
471 create mode 100644 arch/arm/boot/dts/overlays/vga666-overlay.dts
472 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
473 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
474 create mode 100644 arch/arm/boot/dts/overlays/wittypi-overlay.dts
476 --- a/arch/arm/Makefile
477 +++ b/arch/arm/Makefile
478 @@ -341,6 +341,8 @@ $(INSTALL_TARGETS):
481 $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
483 + $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
485 PHONY += dtbs dtbs_install
487 --- a/arch/arm/boot/.gitignore
488 +++ b/arch/arm/boot/.gitignore
489 @@ -3,3 +3,4 @@ zImage
494 --- a/arch/arm/boot/dts/Makefile
495 +++ b/arch/arm/boot/dts/Makefile
497 # SPDX-License-Identifier: GPL-2.0
498 ifeq ($(CONFIG_OF),y)
500 +dtb-$(CONFIG_ARCH_BCM2835) += \
501 + bcm2708-rpi-b.dtb \
502 + bcm2708-rpi-b-plus.dtb \
503 + bcm2708-rpi-cm.dtb \
504 + bcm2708-rpi-0-w.dtb \
505 + bcm2709-rpi-2-b.dtb \
506 + bcm2710-rpi-3-b.dtb \
507 + bcm2710-rpi-cm3.dtb
509 dtb-$(CONFIG_ARCH_ALPINE) += \
511 dtb-$(CONFIG_MACH_ARTPEC6) += \
512 @@ -1069,10 +1078,21 @@ dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dt
513 dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
514 aspeed-bmc-opp-romulus.dtb \
515 aspeed-ast2500-evb.dtb
517 +targets += dtbs dtbs_install
522 dtstree := $(srctree)/$(src)
523 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
526 +subdir-y := overlays
529 +# Enable fixups to support overlays on BCM2835 platforms
530 +ifeq ($(CONFIG_ARCH_BCM2835),y)
531 + DTC_FLAGS ?= -@ -H epapr
532 + dts-dirs += overlays
535 +++ b/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
539 +#include "bcm2708.dtsi"
542 + model = "Raspberry Pi Zero W";
545 + bootargs = "8250.nr_uarts=1";
555 + spi0_pins: spi0_pins {
556 + brcm,pins = <9 10 11>;
557 + brcm,function = <4>; /* alt0 */
560 + spi0_cs_pins: spi0_cs_pins {
562 + brcm,function = <1>; /* output */
567 + brcm,function = <4>;
572 + brcm,function = <4>;
576 + brcm,pins = <18 19 20 21>;
577 + brcm,function = <4>; /* alt0 */
580 + sdio_pins: sdio_pins {
581 + brcm,pins = <34 35 36 37 38 39>;
582 + brcm,function = <7>; /* ALT3 = SD1 */
583 + brcm,pull = <0 2 2 2 2 2>;
588 + brcm,function = <4>; /* alt0:GPCLK2 */
589 + brcm,pull = <0>; /* none */
592 + uart0_pins: uart0_pins {
593 + brcm,pins = <30 31 32 33>;
594 + brcm,function = <7>; /* alt3=UART0 */
595 + brcm,pull = <2 0 0 2>; /* up none none up */
598 + uart1_pins: uart1_pins {
604 + audio_pins: audio_pins {
606 + brcm,function = <>;
611 + pinctrl-names = "default";
612 + pinctrl-0 = <&sdio_pins>;
619 + pinctrl-names = "default";
620 + pinctrl-0 = <&uart0_pins &bt_pins>;
625 + pinctrl-names = "default";
626 + pinctrl-0 = <&uart1_pins>;
631 + pinctrl-names = "default";
632 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
633 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
636 + compatible = "spidev";
637 + reg = <0>; /* CE0 */
638 + #address-cells = <1>;
640 + spi-max-frequency = <125000000>;
644 + compatible = "spidev";
645 + reg = <1>; /* CE1 */
646 + #address-cells = <1>;
648 + spi-max-frequency = <125000000>;
653 + pinctrl-names = "default";
654 + pinctrl-0 = <&i2c0_pins>;
655 + clock-frequency = <100000>;
659 + pinctrl-names = "default";
660 + pinctrl-0 = <&i2c1_pins>;
661 + clock-frequency = <100000>;
665 + clock-frequency = <100000>;
669 + #sound-dai-cells = <0>;
670 + pinctrl-names = "default";
671 + pinctrl-0 = <&i2s_pins>;
681 + linux,default-trigger = "mmc0";
682 + gpios = <&gpio 47 0>;
687 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
691 + pinctrl-names = "default";
692 + pinctrl-0 = <&audio_pins>;
697 + act_led_gpio = <&act_led>,"gpios:4";
698 + act_led_activelow = <&act_led>,"gpios:8";
699 + act_led_trigger = <&act_led>,"linux,default-trigger";
703 +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
707 +#include "bcm2708.dtsi"
708 +#include "bcm283x-rpi-smsc9514.dtsi"
711 + model = "Raspberry Pi Model B+";
715 + spi0_pins: spi0_pins {
716 + brcm,pins = <9 10 11>;
717 + brcm,function = <4>; /* alt0 */
720 + spi0_cs_pins: spi0_cs_pins {
722 + brcm,function = <1>; /* output */
727 + brcm,function = <4>;
732 + brcm,function = <4>;
736 + brcm,pins = <18 19 20 21>;
737 + brcm,function = <4>; /* alt0 */
740 + audio_pins: audio_pins {
741 + brcm,pins = <40 45>;
742 + brcm,function = <4>;
751 + pinctrl-names = "default";
752 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
753 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
756 + compatible = "spidev";
757 + reg = <0>; /* CE0 */
758 + #address-cells = <1>;
760 + spi-max-frequency = <125000000>;
764 + compatible = "spidev";
765 + reg = <1>; /* CE1 */
766 + #address-cells = <1>;
768 + spi-max-frequency = <125000000>;
773 + pinctrl-names = "default";
774 + pinctrl-0 = <&i2c0_pins>;
775 + clock-frequency = <100000>;
779 + pinctrl-names = "default";
780 + pinctrl-0 = <&i2c1_pins>;
781 + clock-frequency = <100000>;
785 + clock-frequency = <100000>;
789 + pinctrl-names = "default";
790 + pinctrl-0 = <&i2s_pins>;
796 + linux,default-trigger = "mmc0";
797 + gpios = <&gpio 47 0>;
802 + linux,default-trigger = "input";
803 + gpios = <&gpio 35 0>;
808 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
812 + pinctrl-names = "default";
813 + pinctrl-0 = <&audio_pins>;
818 + act_led_gpio = <&act_led>,"gpios:4";
819 + act_led_activelow = <&act_led>,"gpios:8";
820 + act_led_trigger = <&act_led>,"linux,default-trigger";
822 + pwr_led_gpio = <&pwr_led>,"gpios:4";
823 + pwr_led_activelow = <&pwr_led>,"gpios:8";
824 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
828 +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
832 +#include "bcm2708.dtsi"
833 +#include "bcm283x-rpi-smsc9512.dtsi"
836 + model = "Raspberry Pi Model B";
840 + spi0_pins: spi0_pins {
841 + brcm,pins = <9 10 11>;
842 + brcm,function = <4>; /* alt0 */
845 + spi0_cs_pins: spi0_cs_pins {
847 + brcm,function = <1>; /* output */
852 + brcm,function = <4>;
857 + brcm,function = <4>;
861 + brcm,pins = <28 29 30 31>;
862 + brcm,function = <6>; /* alt2 */
865 + audio_pins: audio_pins {
866 + brcm,pins = <40 45>;
867 + brcm,function = <4>;
876 + pinctrl-names = "default";
877 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
878 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
881 + compatible = "spidev";
882 + reg = <0>; /* CE0 */
883 + #address-cells = <1>;
885 + spi-max-frequency = <125000000>;
889 + compatible = "spidev";
890 + reg = <1>; /* CE1 */
891 + #address-cells = <1>;
893 + spi-max-frequency = <125000000>;
898 + pinctrl-names = "default";
899 + pinctrl-0 = <&i2c0_pins>;
900 + clock-frequency = <100000>;
904 + pinctrl-names = "default";
905 + pinctrl-0 = <&i2c1_pins>;
906 + clock-frequency = <100000>;
910 + clock-frequency = <100000>;
914 + pinctrl-names = "default";
915 + pinctrl-0 = <&i2s_pins>;
921 + linux,default-trigger = "mmc0";
922 + gpios = <&gpio 16 1>;
927 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
931 + pinctrl-names = "default";
932 + pinctrl-0 = <&audio_pins>;
937 + act_led_gpio = <&act_led>,"gpios:4";
938 + act_led_activelow = <&act_led>,"gpios:8";
939 + act_led_trigger = <&act_led>,"linux,default-trigger";
943 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
947 +#include "bcm2708-rpi-cm.dtsi"
950 + model = "Raspberry Pi Compute Module";
958 + spi0_pins: spi0_pins {
959 + brcm,pins = <9 10 11>;
960 + brcm,function = <4>; /* alt0 */
963 + spi0_cs_pins: spi0_cs_pins {
965 + brcm,function = <1>; /* output */
970 + brcm,function = <4>;
975 + brcm,function = <4>;
979 + brcm,pins = <18 19 20 21>;
980 + brcm,function = <4>; /* alt0 */
983 + audio_pins: audio_pins {
990 + pinctrl-names = "default";
991 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
992 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
995 + compatible = "spidev";
996 + reg = <0>; /* CE0 */
997 + #address-cells = <1>;
999 + spi-max-frequency = <125000000>;
1002 + spidev1: spidev@1{
1003 + compatible = "spidev";
1004 + reg = <1>; /* CE1 */
1005 + #address-cells = <1>;
1006 + #size-cells = <0>;
1007 + spi-max-frequency = <125000000>;
1012 + pinctrl-names = "default";
1013 + pinctrl-0 = <&i2c0_pins>;
1014 + clock-frequency = <100000>;
1018 + pinctrl-names = "default";
1019 + pinctrl-0 = <&i2c1_pins>;
1020 + clock-frequency = <100000>;
1024 + clock-frequency = <100000>;
1028 + pinctrl-names = "default";
1029 + pinctrl-0 = <&i2s_pins>;
1033 + pinctrl-names = "default";
1034 + pinctrl-0 = <&audio_pins>;
1038 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
1041 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
1043 +#include "bcm2708.dtsi"
1048 + linux,default-trigger = "mmc0";
1049 + gpios = <&gpio 47 0>;
1055 + act_led_gpio = <&act_led>,"gpios:4";
1056 + act_led_activelow = <&act_led>,"gpios:8";
1057 + act_led_trigger = <&act_led>,"linux,default-trigger";
1061 +++ b/arch/arm/boot/dts/bcm2708-rpi.dtsi
1063 +/* Downstream version of bcm2835-rpi.dtsi */
1065 +#include <dt-bindings/power/raspberrypi-power.h>
1069 + device_type = "memory";
1080 + watchdog = &watchdog;
1082 + mailbox = &mailbox;
1101 + thermal = &thermal;
1102 + axiperf = &axiperf;
1106 + compatible = "gpio-leds";
1111 + compatible = "brcm,bcm2835-gpiomem";
1112 + reg = <0x7e200000 0x1000>;
1115 + firmware: firmware {
1116 + compatible = "raspberrypi,bcm2835-firmware";
1117 + mboxes = <&mailbox>;
1121 + compatible = "raspberrypi,bcm2835-power";
1122 + firmware = <&firmware>;
1123 + #power-domain-cells = <1>;
1127 + compatible = "brcm,bcm2708-fb";
1128 + firmware = <&firmware>;
1129 + status = "disabled";
1133 + compatible = "brcm,bcm2835-vchiq";
1134 + reg = <0x7e00b840 0xf>;
1135 + interrupts = <0 2>;
1136 + cache-line-size = <32>;
1137 + firmware = <&firmware>;
1141 + compatible = "raspberrypi,bcm2835-vcsm";
1142 + firmware = <&firmware>;
1146 + thermal: thermal@7e212000 {
1147 + #thermal-sensor-cells = <0>;
1151 + /* Onboard audio */
1153 + compatible = "brcm,bcm2835-audio";
1154 + brcm,pwm-channels = <8>;
1155 + status = "disabled";
1158 + /* External sound card */
1160 + status = "disabled";
1165 + cache_line_size = <&vchiq>, "cache-line-size:0";
1167 + uart0 = <&uart0>,"status";
1168 + uart1 = <&uart1>,"status";
1169 + i2s = <&i2s>,"status";
1170 + spi = <&spi0>,"status";
1171 + i2c0 = <&i2c0>,"status";
1172 + i2c1 = <&i2c1>,"status";
1173 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1174 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1175 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1176 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1178 + audio = <&audio>,"status";
1179 + watchdog = <&watchdog>,"status";
1180 + random = <&random>,"status";
1181 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
1182 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
1183 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
1184 + sd_debug = <&sdhost>,"brcm,debug";
1185 + axiperf = <&axiperf>,"status";
1190 + brcm,dma-channel-mask = <0x7f34>;
1194 + power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
1198 + power-domains = <&power RPI_POWER_DOMAIN_USB>;
1202 + firmware = <&firmware>;
1205 +sdhost_pins: &sdhost_gpio48 {
1210 + pinctrl-names = "default";
1211 + pinctrl-0 = <&sdhost_gpio48>;
1213 + brcm,overclock-50 = <0>;
1214 + brcm,pio-limit = <1>;
1223 + /delete-node/ trips;
1226 +++ b/arch/arm/boot/dts/bcm2708.dtsi
1228 +#include "bcm2835.dtsi"
1229 +#include "bcm270x.dtsi"
1230 +#include "bcm2708-rpi.dtsi"
1235 + compatible = "brcm,bcm2835-system-timer";
1236 + reg = <0x7e003000 0x1000>;
1237 + interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
1238 + clock-frequency = <1000000>;
1242 + /delete-node/ cpus;
1249 +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
1253 +#include "bcm2709.dtsi"
1254 +#include "bcm283x-rpi-smsc9514.dtsi"
1257 + model = "Raspberry Pi 2 Model B";
1261 + spi0_pins: spi0_pins {
1262 + brcm,pins = <9 10 11>;
1263 + brcm,function = <4>; /* alt0 */
1266 + spi0_cs_pins: spi0_cs_pins {
1267 + brcm,pins = <8 7>;
1268 + brcm,function = <1>; /* output */
1272 + brcm,pins = <0 1>;
1273 + brcm,function = <4>;
1277 + brcm,pins = <2 3>;
1278 + brcm,function = <4>;
1282 + brcm,pins = <18 19 20 21>;
1283 + brcm,function = <4>; /* alt0 */
1286 + audio_pins: audio_pins {
1287 + brcm,pins = <40 45>;
1288 + brcm,function = <4>;
1297 + pinctrl-names = "default";
1298 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1299 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1301 + spidev0: spidev@0{
1302 + compatible = "spidev";
1303 + reg = <0>; /* CE0 */
1304 + #address-cells = <1>;
1305 + #size-cells = <0>;
1306 + spi-max-frequency = <125000000>;
1309 + spidev1: spidev@1{
1310 + compatible = "spidev";
1311 + reg = <1>; /* CE1 */
1312 + #address-cells = <1>;
1313 + #size-cells = <0>;
1314 + spi-max-frequency = <125000000>;
1319 + pinctrl-names = "default";
1320 + pinctrl-0 = <&i2c0_pins>;
1321 + clock-frequency = <100000>;
1325 + pinctrl-names = "default";
1326 + pinctrl-0 = <&i2c1_pins>;
1327 + clock-frequency = <100000>;
1331 + clock-frequency = <100000>;
1335 + pinctrl-names = "default";
1336 + pinctrl-0 = <&i2s_pins>;
1342 + linux,default-trigger = "mmc0";
1343 + gpios = <&gpio 47 0>;
1348 + linux,default-trigger = "input";
1349 + gpios = <&gpio 35 0>;
1354 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
1358 + pinctrl-names = "default";
1359 + pinctrl-0 = <&audio_pins>;
1364 + act_led_gpio = <&act_led>,"gpios:4";
1365 + act_led_activelow = <&act_led>,"gpios:8";
1366 + act_led_trigger = <&act_led>,"linux,default-trigger";
1368 + pwr_led_gpio = <&pwr_led>,"gpios:4";
1369 + pwr_led_activelow = <&pwr_led>,"gpios:8";
1370 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
1374 +++ b/arch/arm/boot/dts/bcm2709.dtsi
1376 +#include "bcm2836.dtsi"
1377 +#include "bcm270x.dtsi"
1378 +#include "bcm2708-rpi.dtsi"
1382 + ranges = <0x7e000000 0x3f000000 0x01000000>,
1383 + <0x40000000 0x40000000 0x00040000>;
1386 + compatible = "brcm,bcm2836-arm-local", "syscon";
1387 + reg = <0x40000000 0x100>;
1392 + arm_freq = <&v7_cpu0>, "clock-frequency:0",
1393 + <&v7_cpu1>, "clock-frequency:0",
1394 + <&v7_cpu2>, "clock-frequency:0",
1395 + <&v7_cpu3>, "clock-frequency:0";
1399 +++ b/arch/arm/boot/dts/bcm270x.dtsi
1401 +/* Downstream bcm283x.dtsi diff */
1402 +#include "dt-bindings/power/raspberrypi-power.h"
1411 + /delete-node/ timer@7e003000;
1413 + watchdog: watchdog@7e100000 {
1417 + cprman: cprman@7e101000 {
1421 + random: rng@7e104000 {
1425 + gpio@7e200000 { /* gpio */
1426 + interrupts = <2 17>, <2 18>;
1429 + serial@7e201000 { /* uart0 */
1430 + /* Enable CTS bug workaround */
1431 + cts-event-workaround;
1434 + i2s@7e203000 { /* i2s */
1435 + #sound-dai-cells = <0>;
1436 + reg = <0x7e203000 0x24>;
1437 + clocks = <&clocks BCM2835_CLOCK_PCM>;
1440 + spi0: spi@7e204000 {
1442 + dmas = <&dma 6>, <&dma 7>;
1443 + dma-names = "tx", "rx";
1446 + pixelvalve0: pixelvalve@7e206000 {
1448 + status = "disabled";
1451 + pixelvalve1: pixelvalve@7e207000 {
1453 + status = "disabled";
1456 + dpi: dpi@7e208000 {
1457 + compatible = "brcm,bcm2835-dpi";
1458 + reg = <0x7e208000 0x8c>;
1459 + clocks = <&clocks BCM2835_CLOCK_VPU>,
1460 + <&clocks BCM2835_CLOCK_DPI>;
1461 + clock-names = "core", "pixel";
1462 + #address-cells = <1>;
1463 + #size-cells = <0>;
1464 + status = "disabled";
1467 + /delete-node/ sdhci@7e300000;
1469 + mmc: mmc@7e300000 {
1470 + compatible = "brcm,bcm2835-mmc";
1471 + reg = <0x7e300000 0x100>;
1472 + interrupts = <2 30>;
1473 + clocks = <&clocks BCM2835_CLOCK_EMMC>;
1475 + dma-names = "rx-tx";
1476 + brcm,overclock-50 = <0>;
1477 + status = "disabled";
1480 + hvs: hvs@7e400000 {
1482 + status = "disabled";
1485 + firmwarekms: firmwarekms@7e600000 {
1486 + compatible = "raspberrypi,rpi-firmware-kms";
1487 + /* SMI interrupt reg */
1488 + reg = <0x7e600000 0x100>;
1489 + interrupts = <2 16>;
1490 + brcm,firmware = <&firmware>;
1491 + status = "disabled";
1494 + smi: smi@7e600000 {
1495 + compatible = "brcm,bcm2835-smi";
1496 + reg = <0x7e600000 0x100>;
1497 + interrupts = <2 16>;
1498 + clocks = <&clocks BCM2835_CLOCK_SMI>;
1499 + assigned-clocks = <&cprman BCM2835_CLOCK_SMI>;
1500 + assigned-clock-rates = <125000000>;
1502 + dma-names = "rx-tx";
1503 + status = "disabled";
1506 + pixelvalve2: pixelvalve@7e807000 {
1508 + status = "disabled";
1511 + hdmi@7e902000 { /* hdmi */
1512 + status = "disabled";
1515 + usb@7e980000 { /* usb */
1516 + compatible = "brcm,bcm2708-usb";
1517 + reg = <0x7e980000 0x10000>,
1518 + <0x7e006000 0x1000>;
1519 + interrupts = <2 0>,
1523 + v3d@7ec00000 { /* vd3 */
1524 + compatible = "brcm,vc4-v3d";
1525 + power-domains = <&power RPI_POWER_DOMAIN_V3D>;
1526 + status = "disabled";
1531 + status = "disabled";
1534 + axiperf: axiperf {
1535 + compatible = "brcm,bcm2835-axiperf";
1536 + reg = <0x7e009800 0x100>,
1537 + <0x7ee08000 0x100>;
1538 + firmware = <&firmware>;
1539 + status = "disabled";
1543 + vdd_5v0_reg: fixedregulator_5v0 {
1544 + compatible = "regulator-fixed";
1545 + regulator-name = "5v0";
1546 + regulator-min-microvolt = <5000000>;
1547 + regulator-max-microvolt = <5000000>;
1548 + regulator-always-on;
1551 + vdd_3v3_reg: fixedregulator_3v3 {
1552 + compatible = "regulator-fixed";
1553 + regulator-name = "3v3";
1554 + regulator-min-microvolt = <3300000>;
1555 + regulator-max-microvolt = <3300000>;
1556 + regulator-always-on;
1560 +/* Configure and use the auxilliary interrupt controller */
1563 + interrupts = <1 29>;
1564 + interrupt-controller;
1565 + #interrupt-cells = <1>;
1569 + interrupt-parent = <&aux>;
1574 + interrupt-parent = <&aux>;
1579 + interrupt-parent = <&aux>;
1583 +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
1588 +/memreserve/ 0x00000000 0x00001000;
1591 +#include "bcm2710.dtsi"
1592 +#include "bcm283x-rpi-smsc9514.dtsi"
1595 + model = "Raspberry Pi 3 Model B";
1598 + bootargs = "8250.nr_uarts=1";
1608 + spi0_pins: spi0_pins {
1609 + brcm,pins = <9 10 11>;
1610 + brcm,function = <4>; /* alt0 */
1613 + spi0_cs_pins: spi0_cs_pins {
1614 + brcm,pins = <8 7>;
1615 + brcm,function = <1>; /* output */
1619 + brcm,pins = <0 1>;
1620 + brcm,function = <4>;
1624 + brcm,pins = <2 3>;
1625 + brcm,function = <4>;
1629 + brcm,pins = <18 19 20 21>;
1630 + brcm,function = <4>; /* alt0 */
1633 + sdio_pins: sdio_pins {
1634 + brcm,pins = <34 35 36 37 38 39>;
1635 + brcm,function = <7>; // alt3 = SD1
1636 + brcm,pull = <0 2 2 2 2 2>;
1639 + bt_pins: bt_pins {
1641 + brcm,function = <4>; /* alt0:GPCLK2 */
1645 + uart0_pins: uart0_pins {
1646 + brcm,pins = <32 33>;
1647 + brcm,function = <7>; /* alt3=UART0 */
1648 + brcm,pull = <0 2>;
1651 + uart1_pins: uart1_pins {
1657 + audio_pins: audio_pins {
1658 + brcm,pins = <40 41>;
1659 + brcm,function = <4>;
1664 + pinctrl-names = "default";
1665 + pinctrl-0 = <&sdio_pins>;
1669 + brcm,overclock-50 = <0>;
1673 + virtgpio: virtgpio {
1674 + compatible = "brcm,bcm2835-virtgpio";
1676 + #gpio-cells = <2>;
1677 + firmware = <&firmware>;
1681 + expgpio: expgpio {
1682 + compatible = "brcm,bcm2835-expgpio";
1684 + #gpio-cells = <2>;
1685 + firmware = <&firmware>;
1691 + pinctrl-names = "default";
1692 + pinctrl-0 = <&uart0_pins &bt_pins>;
1697 + pinctrl-names = "default";
1698 + pinctrl-0 = <&uart1_pins>;
1703 + pinctrl-names = "default";
1704 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1705 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1707 + spidev0: spidev@0{
1708 + compatible = "spidev";
1709 + reg = <0>; /* CE0 */
1710 + #address-cells = <1>;
1711 + #size-cells = <0>;
1712 + spi-max-frequency = <125000000>;
1715 + spidev1: spidev@1{
1716 + compatible = "spidev";
1717 + reg = <1>; /* CE1 */
1718 + #address-cells = <1>;
1719 + #size-cells = <0>;
1720 + spi-max-frequency = <125000000>;
1725 + pinctrl-names = "default";
1726 + pinctrl-0 = <&i2c0_pins>;
1727 + clock-frequency = <100000>;
1731 + pinctrl-names = "default";
1732 + pinctrl-0 = <&i2c1_pins>;
1733 + clock-frequency = <100000>;
1737 + clock-frequency = <100000>;
1741 + pinctrl-names = "default";
1742 + pinctrl-0 = <&i2s_pins>;
1748 + linux,default-trigger = "mmc0";
1749 + gpios = <&virtgpio 0 0>;
1754 + linux,default-trigger = "input";
1755 + gpios = <&expgpio 7 0>;
1760 + hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>;
1764 + pinctrl-names = "default";
1765 + pinctrl-0 = <&audio_pins>;
1770 + act_led_gpio = <&act_led>,"gpios:4";
1771 + act_led_activelow = <&act_led>,"gpios:8";
1772 + act_led_trigger = <&act_led>,"linux,default-trigger";
1774 + pwr_led_gpio = <&pwr_led>,"gpios:4";
1775 + pwr_led_activelow = <&pwr_led>,"gpios:8";
1776 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
1780 +++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
1784 +#include "bcm2710.dtsi"
1787 + model = "Raspberry Pi Compute Module 3";
1795 + spi0_pins: spi0_pins {
1796 + brcm,pins = <9 10 11>;
1797 + brcm,function = <4>; /* alt0 */
1800 + spi0_cs_pins: spi0_cs_pins {
1801 + brcm,pins = <8 7>;
1802 + brcm,function = <1>; /* output */
1806 + brcm,pins = <0 1>;
1807 + brcm,function = <4>;
1811 + brcm,pins = <2 3>;
1812 + brcm,function = <4>;
1816 + brcm,pins = <18 19 20 21>;
1817 + brcm,function = <4>; /* alt0 */
1820 + audio_pins: audio_pins {
1827 + virtgpio: virtgpio {
1828 + compatible = "brcm,bcm2835-virtgpio";
1830 + #gpio-cells = <2>;
1831 + firmware = <&firmware>;
1835 + expgpio: expgpio {
1836 + compatible = "brcm,bcm2835-expgpio";
1838 + #gpio-cells = <2>;
1839 + firmware = <&firmware>;
1845 + pinctrl-names = "default";
1846 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1847 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1849 + spidev0: spidev@0{
1850 + compatible = "spidev";
1851 + reg = <0>; /* CE0 */
1852 + #address-cells = <1>;
1853 + #size-cells = <0>;
1854 + spi-max-frequency = <125000000>;
1857 + spidev1: spidev@1{
1858 + compatible = "spidev";
1859 + reg = <1>; /* CE1 */
1860 + #address-cells = <1>;
1861 + #size-cells = <0>;
1862 + spi-max-frequency = <125000000>;
1867 + pinctrl-names = "default";
1868 + pinctrl-0 = <&i2c0_pins>;
1869 + clock-frequency = <100000>;
1873 + pinctrl-names = "default";
1874 + pinctrl-0 = <&i2c1_pins>;
1875 + clock-frequency = <100000>;
1879 + clock-frequency = <100000>;
1883 + pinctrl-names = "default";
1884 + pinctrl-0 = <&i2s_pins>;
1890 + linux,default-trigger = "mmc0";
1891 + gpios = <&virtgpio 0 0>;
1896 + hpd-gpios = <&expgpio 0 GPIO_ACTIVE_LOW>;
1900 + pinctrl-names = "default";
1901 + pinctrl-0 = <&audio_pins>;
1906 + act_led_gpio = <&act_led>,"gpios:4";
1907 + act_led_activelow = <&act_led>,"gpios:8";
1908 + act_led_trigger = <&act_led>,"linux,default-trigger";
1912 +++ b/arch/arm/boot/dts/bcm2710.dtsi
1914 +#include "bcm2837.dtsi"
1915 +#include "bcm270x.dtsi"
1916 +#include "bcm2708-rpi.dtsi"
1919 + compatible = "brcm,bcm2837", "brcm,bcm2836";
1925 + compatible = "arm,armv8-pmuv3", "arm,cortex-a7-pmu";
1927 + compatible = "arm,cortex-a7-pmu";
1929 + interrupt-parent = <&local_intc>;
1934 + compatible = "brcm,bcm2836-arm-local", "syscon";
1935 + reg = <0x40000000 0x100>;
1940 + arm_freq = <&cpu0>, "clock-frequency:0",
1941 + <&cpu1>, "clock-frequency:0",
1942 + <&cpu2>, "clock-frequency:0",
1943 + <&cpu3>, "clock-frequency:0";
1947 +++ b/arch/arm/boot/dts/overlays/Makefile
1949 +# Overlays for the Raspberry Pi platform
1951 +dtbo-$(CONFIG_ARCH_BCM2835) += \
1952 + adau1977-adc.dtbo \
1953 + adau7002-simple.dtbo \
1957 + akkordion-iqdacplus.dtbo \
1958 + allo-boss-dac-pcm512x-audio.dtbo \
1959 + allo-digione.dtbo \
1960 + allo-piano-dac-pcm512x-audio.dtbo \
1961 + allo-piano-dac-plus-pcm512x-audio.dtbo \
1963 + audioinjector-addons.dtbo \
1964 + audioinjector-wm8731-audio.dtbo \
1966 + bmp085_i2c-sensor.dtbo \
1968 + dionaudio-loco.dtbo \
1969 + dionaudio-loco-v2.dtbo \
1975 + enc28j60-spi2.dtbo \
1976 + fe-pi-audio.dtbo \
1978 + googlevoicehat-soundcard.dtbo \
1981 + gpio-poweroff.dtbo \
1982 + gpio-shutdown.dtbo \
1983 + hifiberry-amp.dtbo \
1984 + hifiberry-dac.dtbo \
1985 + hifiberry-dacplus.dtbo \
1986 + hifiberry-digi.dtbo \
1987 + hifiberry-digi-pro.dtbo \
1990 + i2c-bcm2708.dtbo \
1993 + i2c-pwm-pca9685a.dtbo \
1995 + i2c-rtc-gpio.dtbo \
1997 + i2c0-bcm2708.dtbo \
1998 + i2c1-bcm2708.dtbo \
1999 + i2s-gpio28-31.dtbo \
2000 + iqaudio-dac.dtbo \
2001 + iqaudio-dacplus.dtbo \
2002 + iqaudio-digi-wm8804-audio.dtbo \
2003 + justboom-dac.dtbo \
2004 + justboom-digi.dtbo \
2008 + mcp2515-can0.dtbo \
2009 + mcp2515-can1.dtbo \
2017 + pi3-act-led.dtbo \
2018 + pi3-disable-bt.dtbo \
2019 + pi3-disable-wifi.dtbo \
2020 + pi3-miniuart-bt.dtbo \
2025 + pitft28-capacitive.dtbo \
2026 + pitft28-resistive.dtbo \
2027 + pitft35-resistive.dtbo \
2034 + rotary-encoder.dtbo \
2035 + rpi-backlight.dtbo \
2036 + rpi-cirrus-wm5102.dtbo \
2038 + rpi-display.dtbo \
2043 + rra-digidac1-wm8741-audio.dtbo \
2044 + sc16is750-i2c.dtbo \
2045 + sc16is752-spi1.dtbo \
2053 + spi-gpio35-39.dtbo \
2065 + vc4-fkms-v3d.dtbo \
2066 + vc4-kms-v3d.dtbo \
2069 + w1-gpio-pullup.dtbo \
2072 +targets += dtbs dtbs_install
2073 +targets += $(dtbo-y)
2075 +always := $(dtbo-y)
2076 +clean-files := *.dtbo
2078 +++ b/arch/arm/boot/dts/overlays/README
2083 +This directory contains Device Tree overlays. Device Tree makes it possible
2084 +to support many hardware configurations with a single kernel and without the
2085 +need to explicitly load or blacklist kernel modules. Note that this isn't a
2086 +"pure" Device Tree configuration (c.f. MACH_BCM2835) - some on-board devices
2087 +are still configured by the board support code, but the intention is to
2088 +eventually reach that goal.
2090 +On Raspberry Pi, Device Tree usage is controlled from /boot/config.txt. By
2091 +default, the Raspberry Pi kernel boots with device tree enabled. You can
2092 +completely disable DT usage (for now) by adding:
2096 +to your config.txt, which should cause your Pi to revert to the old way of
2097 +doing things after a reboot.
2099 +In /boot you will find a .dtb for each base platform. This describes the
2100 +hardware that is part of the Raspberry Pi board. The loader (start.elf and its
2101 +siblings) selects the .dtb file appropriate for the platform by name, and reads
2102 +it into memory. At this point, all of the optional interfaces (i2c, i2s, spi)
2103 +are disabled, but they can be enabled using Device Tree parameters:
2105 + dtparam=i2c=on,i2s=on,spi=on
2107 +However, this shouldn't be necessary in many use cases because loading an
2108 +overlay that requires one of those interfaces will cause it to be enabled
2109 +automatically, and it is advisable to only enable interfaces if they are
2112 +Configuring additional, optional hardware is done using Device Tree overlays
2115 +GPIO numbering uses the hardware pin numbering scheme (aka BCM scheme) and
2116 +not the physical pin numbers.
2121 +The Advanced Options section of the raspi-config utility can enable and disable
2122 +Device Tree use, as well as toggling the I2C and SPI interfaces. Note that it
2123 +is possible to both enable an interface and blacklist the driver, if for some
2124 +reason you should want to defer the loading.
2129 +As well as describing the hardware, Device Tree also gives enough information
2130 +to allow suitable driver modules to be located and loaded, with the corollary
2131 +that unneeded modules are not loaded. As a result it should be possible to
2132 +remove lines from /etc/modules, and /etc/modprobe.d/raspi-blacklist.conf can
2133 +have its contents deleted (or commented out).
2138 +Overlays are loaded using the "dtoverlay" directive. As an example, consider
2139 +the popular lirc-rpi module, the Linux Infrared Remote Control driver. In the
2140 +pre-DT world this would be loaded from /etc/modules, with an explicit
2141 +"modprobe lirc-rpi" command, or programmatically by lircd. With DT enabled,
2142 +this becomes a line in config.txt:
2144 + dtoverlay=lirc-rpi
2146 +This causes the file /boot/overlays/lirc-rpi.dtbo to be loaded. By
2147 +default it will use GPIOs 17 (out) and 18 (in), but this can be modified using
2150 + dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=13
2152 +Parameters always have default values, although in some cases (e.g. "w1-gpio")
2153 +it is necessary to provided multiple overlays in order to get the desired
2154 +behaviour. See the list of overlays below for a description of the parameters
2155 +and their defaults.
2157 +The Overlay and Parameter Reference
2158 +===================================
2160 +N.B. When editing this file, please preserve the indentation levels to make it
2161 +simple to parse programmatically. NO HARD TABS.
2164 +Name: <The base DTB>
2165 +Info: Configures the base Raspberry Pi hardware
2166 +Load: <loaded automatically>
2168 + audio Set to "on" to enable the onboard ALSA audio
2169 + interface (default "off")
2171 + i2c_arm Set to "on" to enable the ARM's i2c interface
2174 + i2c_vc Set to "on" to enable the i2c interface
2175 + usually reserved for the VideoCore processor
2178 + i2c An alias for i2c_arm
2180 + i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
2181 + (default "100000")
2183 + i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
2184 + (default "100000")
2186 + i2c_baudrate An alias for i2c_arm_baudrate
2188 + i2s Set to "on" to enable the i2s interface
2191 + spi Set to "on" to enable the spi interfaces
2194 + random Set to "on" to enable the hardware random
2195 + number generator (default "on")
2197 + sd_overclock Clock (in MHz) to use when the MMC framework
2200 + sd_force_pio Disable DMA support for SD driver (default off)
2202 + sd_pio_limit Number of blocks above which to use DMA for
2203 + SD card (default 1)
2205 + sd_debug Enable debug output from SD driver (default off)
2207 + uart0 Set to "off" to disable uart0 (default "on")
2209 + uart1 Set to "on" or "off" to enable or disable uart1
2212 + watchdog Set to "on" to enable the hardware watchdog
2215 + act_led_trigger Choose which activity the LED tracks.
2216 + Use "heartbeat" for a nice load indicator.
2219 + act_led_activelow Set to "on" to invert the sense of the LED
2221 + N.B. For Pi3 see pi3-act-led overlay.
2223 + act_led_gpio Set which GPIO to use for the activity LED
2224 + (in case you want to connect it to an external
2226 + (default "16" on a non-Plus board, "47" on a
2228 + N.B. For Pi3 see pi3-act-led overlay.
2233 + As for act_led_*, but using the PWR LED.
2234 + Not available on Model A/B boards.
2236 + N.B. It is recommended to only enable those interfaces that are needed.
2237 + Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
2238 + interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
2239 + Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
2240 + interfaces i2c0 and i2c1. Use of the numeric variants is still possible
2241 + but deprecated because the ARM/VC assignments differ between board
2242 + revisions. The same board-specific mapping applies to i2c_baudrate,
2243 + and the other i2c baudrate parameters.
2247 +Info: Overlay for activation of ADAU1977 ADC codec over I2C for control
2249 +Load: dtoverlay=adau1977-adc
2253 +Name: adau7002-simple
2254 +Info: Overlay for the activation of ADAU7002 stereo PDM to I2S converter.
2255 +Load: dtoverlay=adau7002-simple,<param>=<val>
2256 +Params: card-name Override the default, "adau7002", card name.
2260 +Info: Overlay for activation of Texas Instruments ADS1015 ADC over I2C
2261 +Load: dtoverlay=ads1015,<param>=<val>
2262 +Params: addr I2C bus address of device. Set based on how the
2263 + addr pin is wired. (default=0x48 assumes addr
2265 + cha_enable Enable virtual channel a. (default=true)
2266 + cha_cfg Set the configuration for virtual channel a.
2267 + (default=4 configures this channel for the
2268 + voltage at A0 with respect to GND)
2269 + cha_datarate Set the datarate (samples/sec) for this channel.
2270 + (default=4 sets 1600 sps)
2271 + cha_gain Set the gain of the Programmable Gain
2272 + Amplifier for this channel. (default=2 sets the
2273 + full scale of the channel to 2.048 Volts)
2275 + Channel (ch) parameters can be set for each enabled channel.
2276 + A maximum of 4 channels can be enabled (letters a thru d).
2277 + For more information refer to the device datasheet at:
2278 + http://www.ti.com/lit/ds/symlink/ads1015.pdf
2282 +Info: Texas Instruments ADS1115 ADC
2283 +Load: dtoverlay=ads1115,<param>[=<val>]
2284 +Params: addr I2C bus address of device. Set based on how the
2285 + addr pin is wired. (default=0x48 assumes addr
2287 + cha_enable Enable virtual channel a.
2288 + cha_cfg Set the configuration for virtual channel a.
2289 + (default=4 configures this channel for the
2290 + voltage at A0 with respect to GND)
2291 + cha_datarate Set the datarate (samples/sec) for this channel.
2292 + (default=7 sets 860 sps)
2293 + cha_gain Set the gain of the Programmable Gain
2294 + Amplifier for this channel. (Default 1 sets the
2295 + full scale of the channel to 4.096 Volts)
2297 + Channel parameters can be set for each enabled channel.
2298 + A maximum of 4 channels can be enabled (letters a thru d).
2299 + For more information refer to the device datasheet at:
2300 + http://www.ti.com/lit/ds/symlink/ads1115.pdf
2304 +Info: ADS7846 Touch controller
2305 +Load: dtoverlay=ads7846,<param>=<val>
2306 +Params: cs SPI bus Chip Select (default 1)
2307 + speed SPI bus speed (default 2MHz, max 3.25MHz)
2308 + penirq GPIO used for PENIRQ. REQUIRED
2309 + penirq_pull Set GPIO pull (default 0=none, 2=pullup)
2310 + swapxy Swap x and y axis
2311 + xmin Minimum value on the X axis (default 0)
2312 + ymin Minimum value on the Y axis (default 0)
2313 + xmax Maximum value on the X axis (default 4095)
2314 + ymax Maximum value on the Y axis (default 4095)
2315 + pmin Minimum reported pressure value (default 0)
2316 + pmax Maximum reported pressure value (default 65535)
2317 + xohms Touchpanel sensitivity (X-plate resistance)
2320 + penirq is required and usually xohms (60-100) has to be set as well.
2321 + Apart from that, pmax (255) and swapxy are also common.
2322 + The rest of the calibration can be done with xinput-calibrator.
2323 + See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian
2324 + Device Tree binding document:
2325 + www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
2328 +Name: akkordion-iqdacplus
2329 +Info: Configures the Digital Dreamtime Akkordion Music Player (based on the
2330 + OEM IQAudIO DAC+ or DAC Zero module).
2331 +Load: dtoverlay=akkordion-iqdacplus,<param>=<val>
2332 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2333 + Digital volume control. Enable with
2334 + dtoverlay=akkordion-iqdacplus,24db_digital_gain
2335 + (The default behaviour is that the Digital
2336 + volume control is limited to a maximum of
2337 + 0dB. ie. it can attenuate but not provide
2338 + gain. For most users, this will be desired
2339 + as it will prevent clipping. By appending
2340 + the 24db_digital_gain parameter, the Digital
2341 + volume control will allow up to 24dB of
2342 + gain. If this parameter is enabled, it is the
2343 + responsibility of the user to ensure that
2344 + the Digital volume control is set to a value
2345 + that does not result in clipping/distortion!)
2348 +Name: allo-boss-dac-pcm512x-audio
2349 +Info: Configures the Allo Boss DAC audio cards.
2350 +Load: dtoverlay=allo-boss-dac-pcm512x-audio,<param>
2351 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2352 + Digital volume control. Enable with
2353 + "dtoverlay=allo-boss-dac-pcm512x-audio,
2354 + 24db_digital_gain"
2355 + (The default behaviour is that the Digital
2356 + volume control is limited to a maximum of
2357 + 0dB. ie. it can attenuate but not provide
2358 + gain. For most users, this will be desired
2359 + as it will prevent clipping. By appending
2360 + the 24db_digital_gain parameter, the Digital
2361 + volume control will allow up to 24dB of
2362 + gain. If this parameter is enabled, it is the
2363 + responsibility of the user to ensure that
2364 + the Digital volume control is set to a value
2365 + that does not result in clipping/distortion!)
2366 + slave Force Boss DAC into slave mode, using Pi a
2367 + master for bit clock and frame clock. Enable
2368 + with "dtoverlay=allo-boss-dac-pcm512x-audio,
2373 +Info: Configures the Allo Digione audio card
2374 +Load: dtoverlay=allo-digione
2378 +Name: allo-piano-dac-pcm512x-audio
2379 +Info: Configures the Allo Piano DAC (2.0/2.1) audio cards.
2380 + (NB. This initial support is for 2.0 channel audio ONLY! ie. stereo.
2381 + The subwoofer outputs on the Piano 2.1 are not currently supported!)
2382 +Load: dtoverlay=allo-piano-dac-pcm512x-audio,<param>
2383 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2384 + Digital volume control.
2385 + (The default behaviour is that the Digital
2386 + volume control is limited to a maximum of
2387 + 0dB. ie. it can attenuate but not provide
2388 + gain. For most users, this will be desired
2389 + as it will prevent clipping. By appending
2390 + the 24db_digital_gain parameter, the Digital
2391 + volume control will allow up to 24dB of
2392 + gain. If this parameter is enabled, it is the
2393 + responsibility of the user to ensure that
2394 + the Digital volume control is set to a value
2395 + that does not result in clipping/distortion!)
2398 +Name: allo-piano-dac-plus-pcm512x-audio
2399 +Info: Configures the Allo Piano DAC (2.1) audio cards.
2400 +Load: dtoverlay=allo-piano-dac-plus-pcm512x-audio,<param>
2401 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2402 + Digital volume control.
2403 + (The default behaviour is that the Digital
2404 + volume control is limited to a maximum of
2405 + 0dB. ie. it can attenuate but not provide
2406 + gain. For most users, this will be desired
2407 + as it will prevent clipping. By appending
2408 + the 24db_digital_gain parameter, the Digital
2409 + volume control will allow up to 24dB of
2410 + gain. If this parameter is enabled, it is the
2411 + responsibility of the user to ensure that
2412 + the Digital volume control is set to a value
2413 + that does not result in clipping/distortion!)
2414 + glb_mclk This option is only with Kali board. If enabled,
2415 + MCLK for Kali is used and PLL is disabled for
2416 + better voice quality. (default Off)
2420 +Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
2421 + connected to spi0.0
2422 +Load: dtoverlay=at86rf233,<param>=<val>
2423 +Params: interrupt GPIO used for INT (default 23)
2424 + reset GPIO used for Reset (default 24)
2425 + sleep GPIO used for Sleep (default 25)
2426 + speed SPI bus speed in Hz (default 3000000)
2427 + trim Fine tuning of the internal capacitance
2428 + arrays (0=+0pF, 15=+4.5pF, default 15)
2431 +Name: audioinjector-addons
2432 +Info: Configures the audioinjector.net audio add on soundcards
2433 +Load: dtoverlay=audioinjector-addons
2437 +Name: audioinjector-wm8731-audio
2438 +Info: Configures the audioinjector.net audio add on soundcard
2439 +Load: dtoverlay=audioinjector-wm8731-audio
2444 +Info: Switches PWM sound output to pins 12 (Right) & 13 (Left)
2445 +Load: dtoverlay=audremap,<param>=<val>
2446 +Params: swap_lr Reverse the channel allocation, which will also
2447 + swap the audio jack outputs (default off)
2448 + enable_jack Don't switch off the audio jack output
2452 +Name: bmp085_i2c-sensor
2453 +Info: This overlay is now deprecated - see i2c-sensor
2454 +Load: dtoverlay=bmp085_i2c-sensor
2459 +Info: Overlay for the DHT11/DHT21/DHT22 humidity/temperature sensors
2460 + Also sometimes found with the part number(s) AM230x.
2461 +Load: dtoverlay=dht11,<param>=<val>
2462 +Params: gpiopin GPIO connected to the sensor's DATA output.
2466 +Name: dionaudio-loco
2467 +Info: Configures the Dion Audio LOCO DAC-AMP
2468 +Load: dtoverlay=dionaudio-loco
2472 +Name: dionaudio-loco-v2
2473 +Info: Configures the Dion Audio LOCO-V2 DAC-AMP
2474 +Load: dtoverlay=dionaudio-loco-v2,<param>=<val>
2475 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2476 + Digital volume control. Enable with
2477 + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
2478 + (The default behaviour is that the Digital
2479 + volume control is limited to a maximum of
2480 + 0dB. ie. it can attenuate but not provide
2481 + gain. For most users, this will be desired
2482 + as it will prevent clipping. By appending
2483 + the 24dB_digital_gain parameter, the Digital
2484 + volume control will allow up to 24dB of
2485 + gain. If this parameter is enabled, it is the
2486 + responsibility of the user to ensure that
2487 + the Digital volume control is set to a value
2488 + that does not result in clipping/distortion!)
2492 +Info: Overlay for a generic 18-bit DPI display
2493 + This uses GPIOs 0-21 (so no I2C, uart etc.), and activates the output
2494 + 2-3 seconds after the kernel has started.
2495 +Load: dtoverlay=dpi18
2500 +Info: Overlay for a generic 24-bit DPI display
2501 + This uses GPIOs 0-27 (so no I2C, uart etc.), and activates the output
2502 + 2-3 seconds after the kernel has started.
2503 +Load: dtoverlay=dpi24
2508 +Info: Selects the dwc_otg USB controller driver which has fiq support. This
2509 + is the default on all except the Pi Zero which defaults to dwc2.
2510 +Load: dtoverlay=dwc-otg
2515 +Info: Selects the dwc2 USB controller driver
2516 +Load: dtoverlay=dwc2,<param>=<val>
2517 +Params: dr_mode Dual role mode: "host", "peripheral" or "otg"
2519 + g-rx-fifo-size Size of rx fifo size in gadget mode
2521 + g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget
2525 +[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]
2529 +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI0
2530 +Load: dtoverlay=enc28j60,<param>=<val>
2531 +Params: int_pin GPIO used for INT (default 25)
2533 + speed SPI bus speed (default 12000000)
2536 +Name: enc28j60-spi2
2537 +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI2
2538 +Load: dtoverlay=enc28j60-spi2,<param>=<val>
2539 +Params: int_pin GPIO used for INT (default 39)
2541 + speed SPI bus speed (default 12000000)
2545 +Info: Configures the Fe-Pi Audio Sound Card
2546 +Load: dtoverlay=fe-pi-audio
2551 +Info: Enables I2C connected Goodix gt9271 multiple touch controller using
2552 + GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset.
2553 +Load: dtoverlay=goodix,<param>=<val>
2554 +Params: interrupt GPIO used for interrupt (default 4)
2555 + reset GPIO used for reset (default 17)
2558 +Name: googlevoicehat-soundcard
2559 +Info: Configures the Google voiceHAT soundcard
2560 +Load: dtoverlay=googlevoicehat-soundcard
2565 +Info: Use GPIO pin as rc-core style infrared receiver input. The rc-core-
2566 + based gpio_ir_recv driver maps received keys directly to a
2567 + /dev/input/event* device, all decoding is done by the kernel - LIRC is
2568 + not required! The key mapping and other decoding parameters can be
2569 + configured by "ir-keytable" tool.
2570 +Load: dtoverlay=gpio-ir,<param>=<val>
2571 +Params: gpio_pin Input pin number. Default is 18.
2573 + gpio_pull Desired pull-up/down state (off, down, up)
2574 + Default is "down".
2576 + rc-map-name Default rc keymap (can also be changed by
2577 + ir-keytable), defaults to "rc-rc6-mce"
2581 +Info: Use GPIO pin as bit-banged infrared transmitter output.
2582 + This is an alternative to "pwm-ir-tx". gpio-ir-tx doesn't require
2583 + a PWM so it can be used together with onboard analog audio.
2584 +Load: dtoverlay=gpio-ir-tx,<param>=<val>
2585 +Params: gpio_pin Output GPIO (default 18)
2587 + invert "1" = invert the output (make it active-low).
2588 + Default is "0" (active-high).
2591 +Name: gpio-poweroff
2592 +Info: Drives a GPIO high or low on poweroff (including halt). Enabling this
2593 + overlay will prevent the ability to boot by driving GPIO3 low.
2594 +Load: dtoverlay=gpio-poweroff,<param>=<val>
2595 +Params: gpiopin GPIO for signalling (default 26)
2597 + active_low Set if the power control device requires a
2598 + high->low transition to trigger a power-down.
2599 + Note that this will require the support of a
2600 + custom dt-blob.bin to prevent a power-down
2601 + during the boot process, and that a reboot
2602 + will also cause the pin to go low.
2605 +Name: gpio-shutdown
2606 +Info: Initiates a shutdown when GPIO pin changes. The given GPIO pin
2607 + is configured as an input key that generates KEY_POWER events.
2608 + This event is handled by systemd-logind by initiating a
2609 + shutdown. Systemd versions older than 225 need an udev rule
2610 + enable listening to the input device:
2612 + ACTION!="REMOVE", SUBSYSTEM=="input", KERNEL=="event*", \
2613 + SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", \
2614 + ATTRS{keys}=="116", TAG+="power-switch"
2616 + This overlay only handles shutdown. After shutdown, the system
2617 + can be powered up again by driving GPIO3 low. The default
2618 + configuration uses GPIO3 with a pullup, so if you connect a
2619 + button between GPIO3 and GND (pin 5 and 6 on the 40-pin header),
2620 + you get a shutdown and power-up button.
2621 +Load: dtoverlay=gpio-shutdown,<param>=<val>
2622 +Params: gpio_pin GPIO pin to trigger on (default 3)
2624 + active_low When this is 1 (active low), a falling
2625 + edge generates a key down event and a
2626 + rising edge generates a key up event.
2627 + When this is 0 (active high), this is
2628 + reversed. The default is 1 (active low).
2630 + gpio_pull Desired pull-up/down state (off, down, up)
2633 + Note that the default pin (GPIO3) has an
2637 +Name: hifiberry-amp
2638 +Info: Configures the HifiBerry Amp and Amp+ audio cards
2639 +Load: dtoverlay=hifiberry-amp
2643 +Name: hifiberry-dac
2644 +Info: Configures the HifiBerry DAC audio card
2645 +Load: dtoverlay=hifiberry-dac
2649 +Name: hifiberry-dacplus
2650 +Info: Configures the HifiBerry DAC+ audio card
2651 +Load: dtoverlay=hifiberry-dacplus,<param>=<val>
2652 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2653 + Digital volume control. Enable with
2654 + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
2655 + (The default behaviour is that the Digital
2656 + volume control is limited to a maximum of
2657 + 0dB. ie. it can attenuate but not provide
2658 + gain. For most users, this will be desired
2659 + as it will prevent clipping. By appending
2660 + the 24dB_digital_gain parameter, the Digital
2661 + volume control will allow up to 24dB of
2662 + gain. If this parameter is enabled, it is the
2663 + responsibility of the user to ensure that
2664 + the Digital volume control is set to a value
2665 + that does not result in clipping/distortion!)
2666 + slave Force DAC+ Pro into slave mode, using Pi as
2667 + master for bit clock and frame clock.
2670 +Name: hifiberry-digi
2671 +Info: Configures the HifiBerry Digi and Digi+ audio card
2672 +Load: dtoverlay=hifiberry-digi
2676 +Name: hifiberry-digi-pro
2677 +Info: Configures the HifiBerry Digi+ Pro audio card
2678 +Load: dtoverlay=hifiberry-digi-pro
2683 +Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics
2684 + Default values match Texy's display shield
2685 +Load: dtoverlay=hy28a,<param>=<val>
2686 +Params: speed Display SPI bus speed
2688 + rotate Display rotation {0,90,180,270}
2690 + fps Delay between frame updates
2692 + debug Debug output level {0-7}
2694 + xohms Touchpanel sensitivity (X-plate resistance)
2696 + resetgpio GPIO used to reset controller
2698 + ledgpio GPIO used to control backlight
2702 +Info: HY28B - 2.8" TFT LCD Display Module by HAOYU Electronics
2703 + Default values match Texy's display shield
2704 +Load: dtoverlay=hy28b,<param>=<val>
2705 +Params: speed Display SPI bus speed
2707 + rotate Display rotation {0,90,180,270}
2709 + fps Delay between frame updates
2711 + debug Debug output level {0-7}
2713 + xohms Touchpanel sensitivity (X-plate resistance)
2715 + resetgpio GPIO used to reset controller
2717 + ledgpio GPIO used to control backlight
2721 +Info: Fall back to the i2c_bcm2708 driver for the i2c_arm bus.
2722 +Load: dtoverlay=i2c-bcm2708
2727 +Info: Adds support for software i2c controller on gpio pins
2728 +Load: dtoverlay=i2c-gpio,<param>=<val>
2729 +Params: i2c_gpio_sda GPIO used for I2C data (default "23")
2731 + i2c_gpio_scl GPIO used for I2C clock (default "24")
2733 + i2c_gpio_delay_us Clock delay in microseconds
2734 + (default "2" = ~100kHz)
2738 +Info: Adds support for a number of I2C bus multiplexers on i2c_arm
2739 +Load: dtoverlay=i2c-mux,<param>=<val>
2740 +Params: pca9542 Select the NXP PCA9542 device
2742 + pca9545 Select the NXP PCA9545 device
2744 + pca9548 Select the NXP PCA9548 device
2746 + addr Change I2C address of the device (default 0x70)
2749 +[ The i2c-mux-pca9548a overlay has been deleted. See i2c-mux. ]
2752 +Name: i2c-pwm-pca9685a
2753 +Info: Adds support for an NXP PCA9685A I2C PWM controller on i2c_arm
2754 +Load: dtoverlay=i2c-pwm-pca9685a,<param>=<val>
2755 +Params: addr I2C address of PCA9685A (default 0x40)
2759 +Info: Adds support for a number of I2C Real Time Clock devices
2760 +Load: dtoverlay=i2c-rtc,<param>=<val>
2761 +Params: abx80x Select one of the ABx80x family:
2762 + AB0801, AB0803, AB0804, AB0805,
2763 + AB1801, AB1803, AB1804, AB1805
2765 + ds1307 Select the DS1307 device
2767 + ds1339 Select the DS1339 device
2769 + ds3231 Select the DS3231 device
2771 + m41t62 Select the M41T62 device
2773 + mcp7940x Select the MCP7940x device
2775 + mcp7941x Select the MCP7941x device
2777 + pcf2127 Select the PCF2127 device
2779 + pcf8523 Select the PCF8523 device
2781 + pcf8563 Select the PCF8563 device
2783 + trickle-diode-type Diode type for trickle charge - "standard" or
2784 + "schottky" (ABx80x only)
2786 + trickle-resistor-ohms Resistor value for trickle charge (DS1339,
2789 + wakeup-source Specify that the RTC can be used as a wakeup
2794 +Info: Adds support for a number of I2C Real Time Clock devices
2795 + using the software i2c controller
2796 +Load: dtoverlay=i2c-rtc-gpio,<param>=<val>
2797 +Params: abx80x Select one of the ABx80x family:
2798 + AB0801, AB0803, AB0804, AB0805,
2799 + AB1801, AB1803, AB1804, AB1805
2801 + ds1307 Select the DS1307 device
2803 + ds1339 Select the DS1339 device
2805 + ds3231 Select the DS3231 device
2807 + mcp7940x Select the MCP7940x device
2809 + mcp7941x Select the MCP7941x device
2811 + pcf2127 Select the PCF2127 device
2813 + pcf8523 Select the PCF8523 device
2815 + pcf8563 Select the PCF8563 device
2817 + trickle-diode-type Diode type for trickle charge - "standard" or
2818 + "schottky" (ABx80x only)
2820 + trickle-resistor-ohms Resistor value for trickle charge (DS1339,
2823 + wakeup-source Specify that the RTC can be used as a wakeup
2826 + i2c_gpio_sda GPIO used for I2C data (default "23")
2828 + i2c_gpio_scl GPIO used for I2C clock (default "24")
2830 + i2c_gpio_delay_us Clock delay in microseconds
2831 + (default "2" = ~100kHz)
2835 +Info: Adds support for a number of I2C barometric pressure and temperature
2836 + sensors on i2c_arm
2837 +Load: dtoverlay=i2c-sensor,<param>=<val>
2838 +Params: addr Set the address for the BME280, BMP280, TMP102,
2839 + HDC100X, LM75 or SHT3x
2841 + bme280 Select the Bosch Sensortronic BME280
2842 + Valid addresses 0x76-0x77, default 0x76
2844 + bmp085 Select the Bosch Sensortronic BMP085
2846 + bmp180 Select the Bosch Sensortronic BMP180
2848 + bmp280 Select the Bosch Sensortronic BMP280
2849 + Valid addresses 0x76-0x77, default 0x76
2851 + hdc100x Select the Texas Instruments HDC100x temp sensor
2852 + Valid addresses 0x40-0x43, default 0x40
2854 + htu21 Select the HTU21 temperature and humidity sensor
2856 + lm75 Select the Maxim LM75 temperature sensor
2857 + Valid addresses 0x48-0x4f, default 0x4f
2859 + lm75addr Deprecated - use addr parameter instead
2861 + si7020 Select the Silicon Labs Si7013/20/21 humidity/
2862 + temperature sensor
2864 + tmp102 Select the Texas Instruments TMP102 temp sensor
2865 + Valid addresses 0x48-0x4b, default 0x48
2867 + tsl4531 Select the AMS TSL4531 digital ambient light
2870 + veml6070 Select the Vishay VEML6070 ultraviolet light
2873 + sht3x Select the Sensiron SHT3x temperature and
2874 + humidity sensor. Valid addresses 0x44-0x45,
2879 +Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
2880 + are usable on all platforms.
2881 +Load: dtoverlay=i2c0-bcm2708,<param>=<val>
2882 +Params: sda0_pin GPIO pin for SDA0 (deprecated - use pins_*)
2883 + scl0_pin GPIO pin for SCL0 (deprecated - use pins_*)
2884 + pins_0_1 Use pins 0 and 1 (default)
2885 + pins_28_29 Use pins 28 and 29
2886 + pins_44_45 Use pins 44 and 45
2887 + pins_46_47 Use pins 46 and 47
2891 +Info: Enable the i2c_bcm2708 driver for the i2c1 bus
2892 +Load: dtoverlay=i2c1-bcm2708,<param>=<val>
2893 +Params: sda1_pin GPIO pin for SDA1 (2 or 44 - default 2)
2894 + scl1_pin GPIO pin for SCL1 (3 or 45 - default 3)
2895 + pin_func Alternative pin function (4 (alt0), 6 (alt2) -
2899 +Name: i2s-gpio28-31
2900 +Info: move I2S function block to GPIO 28 to 31
2901 +Load: dtoverlay=i2s-gpio28-31
2906 +Info: Configures the IQaudio DAC audio card
2907 +Load: dtoverlay=iqaudio-dac,<param>
2908 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2909 + Digital volume control. Enable with
2910 + "dtoverlay=iqaudio-dac,24db_digital_gain"
2911 + (The default behaviour is that the Digital
2912 + volume control is limited to a maximum of
2913 + 0dB. ie. it can attenuate but not provide
2914 + gain. For most users, this will be desired
2915 + as it will prevent clipping. By appending
2916 + the 24db_digital_gain parameter, the Digital
2917 + volume control will allow up to 24dB of
2918 + gain. If this parameter is enabled, it is the
2919 + responsibility of the user to ensure that
2920 + the Digital volume control is set to a value
2921 + that does not result in clipping/distortion!)
2924 +Name: iqaudio-dacplus
2925 +Info: Configures the IQaudio DAC+ audio card
2926 +Load: dtoverlay=iqaudio-dacplus,<param>=<val>
2927 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2928 + Digital volume control. Enable with
2929 + "dtoverlay=iqaudio-dacplus,24db_digital_gain"
2930 + (The default behaviour is that the Digital
2931 + volume control is limited to a maximum of
2932 + 0dB. ie. it can attenuate but not provide
2933 + gain. For most users, this will be desired
2934 + as it will prevent clipping. By appending
2935 + the 24db_digital_gain parameter, the Digital
2936 + volume control will allow up to 24dB of
2937 + gain. If this parameter is enabled, it is the
2938 + responsibility of the user to ensure that
2939 + the Digital volume control is set to a value
2940 + that does not result in clipping/distortion!)
2941 + auto_mute_amp If specified, unmute/mute the IQaudIO amp when
2942 + starting/stopping audio playback.
2943 + unmute_amp If specified, unmute the IQaudIO amp once when
2944 + the DAC driver module loads.
2947 +Name: iqaudio-digi-wm8804-audio
2948 +Info: Configures the IQAudIO Digi WM8804 audio card
2949 +Load: dtoverlay=iqaudio-digi-wm8804-audio,<param>=<val>
2950 +Params: card_name Override the default, "IQAudIODigi", card name.
2951 + dai_name Override the default, "IQAudIO Digi", dai name.
2952 + dai_stream_name Override the default, "IQAudIO Digi HiFi",
2957 +Info: Configures the JustBoom DAC HAT, Amp HAT, DAC Zero and Amp Zero audio
2959 +Load: dtoverlay=justboom-dac,<param>=<val>
2960 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2961 + Digital volume control. Enable with
2962 + "dtoverlay=justboom-dac,24db_digital_gain"
2963 + (The default behaviour is that the Digital
2964 + volume control is limited to a maximum of
2965 + 0dB. ie. it can attenuate but not provide
2966 + gain. For most users, this will be desired
2967 + as it will prevent clipping. By appending
2968 + the 24dB_digital_gain parameter, the Digital
2969 + volume control will allow up to 24dB of
2970 + gain. If this parameter is enabled, it is the
2971 + responsibility of the user to ensure that
2972 + the Digital volume control is set to a value
2973 + that does not result in clipping/distortion!)
2976 +Name: justboom-digi
2977 +Info: Configures the JustBoom Digi HAT and Digi Zero audio cards
2978 +Load: dtoverlay=justboom-digi
2983 +Info: Configures lirc-rpi (Linux Infrared Remote Control for Raspberry Pi)
2984 + Consult the module documentation for more details.
2985 +Load: dtoverlay=lirc-rpi,<param>=<val>
2986 +Params: gpio_out_pin GPIO for output (default "17")
2988 + gpio_in_pin GPIO for input (default "18")
2990 + gpio_in_pull Pull up/down/off on the input pin
2993 + sense Override the IR receive auto-detection logic:
2994 + "0" = force active-high
2995 + "1" = force active-low
2996 + "-1" = use auto-detection
2999 + softcarrier Turn the software carrier "on" or "off"
3002 + invert "on" = invert the output pin (default "off")
3004 + debug "on" = enable additional debug messages
3009 +Info: Configures the MCP23017 I2C GPIO expander
3010 +Load: dtoverlay=mcp23017,<param>=<val>
3011 +Params: gpiopin Gpio pin connected to the INTA output of the
3012 + MCP23017 (default: 4)
3014 + addr I2C address of the MCP23017 (default: 0x20)
3018 +Info: Configures the MCP23S08/17 SPI GPIO expanders.
3019 + If devices are present on SPI1 or SPI2, those interfaces must be enabled
3020 + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
3021 + If interrupts are enabled for a device on a given CS# on a SPI bus, that
3022 + device must be the only one present on that SPI bus/CS#.
3023 +Load: dtoverlay=mcp23s17,<param>=<val>
3024 +Params: s08-spi<n>-<m>-present 4-bit integer, bitmap indicating MCP23S08
3025 + devices present on SPI<n>, CS#<m>
3027 + s17-spi<n>-<m>-present 8-bit integer, bitmap indicating MCP23S17
3028 + devices present on SPI<n>, CS#<m>
3030 + s08-spi<n>-<m>-int-gpio integer, enables interrupts on a single
3031 + MCP23S08 device on SPI<n>, CS#<m>, specifies
3032 + the GPIO pin to which INT output of MCP23S08
3035 + s17-spi<n>-<m>-int-gpio integer, enables mirrored interrupts on a
3036 + single MCP23S17 device on SPI<n>, CS#<m>,
3037 + specifies the GPIO pin to which either INTA
3038 + or INTB output of MCP23S17 is connected.
3042 +Info: Configures the MCP2515 CAN controller on spi0.0
3043 +Load: dtoverlay=mcp2515-can0,<param>=<val>
3044 +Params: oscillator Clock frequency for the CAN controller (Hz)
3046 + spimaxfrequency Maximum SPI frequence (Hz)
3048 + interrupt GPIO for interrupt signal
3052 +Info: Configures the MCP2515 CAN controller on spi0.1
3053 +Load: dtoverlay=mcp2515-can1,<param>=<val>
3054 +Params: oscillator Clock frequency for the CAN controller (Hz)
3056 + spimaxfrequency Maximum SPI frequence (Hz)
3058 + interrupt GPIO for interrupt signal
3062 +Info: Configures MCP3008 A/D converters
3063 + For devices on spi1 or spi2, the interfaces should be enabled
3064 + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
3065 +Load: dtoverlay=mcp3008,<param>[=<val>]
3066 +Params: spi<n>-<m>-present boolean, configure device at spi<n>, cs<m>
3067 + spi<n>-<m>-speed integer, set the spi bus speed for this device
3071 +Info: Configures UART0 (ttyAMA0) so that a requested 38.4kbaud actually gets
3072 + 31.25kbaud, the frequency required for MIDI
3073 +Load: dtoverlay=midi-uart0
3078 +Info: Configures UART1 (ttyS0) so that a requested 38.4kbaud actually gets
3079 + 31.25kbaud, the frequency required for MIDI
3080 +Load: dtoverlay=midi-uart1
3085 +Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
3086 +Load: dtoverlay=mmc,<param>=<val>
3087 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
3092 +Info: Overlay for i2c connected mpu6050 imu
3093 +Load: dtoverlay=mpu6050,<param>=<val>
3094 +Params: interrupt GPIO pin for interrupt (default 4)
3098 +Info: MZ61581 display by Tontec
3099 +Load: dtoverlay=mz61581,<param>=<val>
3100 +Params: speed Display SPI bus speed
3102 + rotate Display rotation {0,90,180,270}
3104 + fps Delay between frame updates
3106 + txbuflen Transmit buffer length (default 32768)
3108 + debug Debug output level {0-7}
3110 + xohms Touchpanel sensitivity (X-plate resistance)
3114 +Info: PaPiRus ePaper Screen by Pi Supply (both HAT and pHAT)
3115 +Load: dtoverlay=papirus,<param>=<val>
3116 +Params: panel Display panel (required):
3121 + speed Display SPI bus speed
3124 +[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
3127 +[ The pcf8523-rtc overlay has been deleted. See i2c-rtc. ]
3130 +[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
3134 +Info: Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
3135 + from the VPU. There is a special driver for this with a separate DT
3136 + node, which has the unfortunate consequence of breaking the
3137 + act_led_gpio and act_led_activelow dtparams.
3138 + This overlay changes the GPIO controller back to the standard one and
3139 + restores the dtparams.
3140 +Load: dtoverlay=pi3-act-led,<param>=<val>
3141 +Params: activelow Set to "on" to invert the sense of the LED
3144 + gpio Set which GPIO to use for the activity LED
3145 + (in case you want to connect it to an external
3150 +Name: pi3-disable-bt
3151 +Info: Disable Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15
3152 + N.B. To disable the systemd service that initialises the modem so it
3153 + doesn't use the UART, use 'sudo systemctl disable hciuart'.
3154 +Load: dtoverlay=pi3-disable-bt
3158 +Name: pi3-disable-wifi
3159 +Info: Disable Pi3 onboard WiFi
3160 +Load: dtoverlay=pi3-disable-wifi
3164 +Name: pi3-miniuart-bt
3165 +Info: Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
3166 + UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
3168 + N.B. It is also necessary to edit /lib/systemd/system/hciuart.service
3169 + and replace ttyAMA0 with ttyS0, unless you have a system with udev rules
3170 + that create /dev/serial0 and /dev/serial1, in which case use
3171 + /dev/serial1 instead because it will always be correct. Furthermore,
3172 + you must also set core_freq=250 in config.txt or the miniuart will not
3174 +Load: dtoverlay=pi3-miniuart-bt
3179 +Info: PiScreen display by OzzMaker.com
3180 +Load: dtoverlay=piscreen,<param>=<val>
3181 +Params: speed Display SPI bus speed
3183 + rotate Display rotation {0,90,180,270}
3185 + fps Delay between frame updates
3187 + debug Debug output level {0-7}
3189 + xohms Touchpanel sensitivity (X-plate resistance)
3193 +Info: PiScreen 2 with resistive TP display by OzzMaker.com
3194 +Load: dtoverlay=piscreen2r,<param>=<val>
3195 +Params: speed Display SPI bus speed
3197 + rotate Display rotation {0,90,180,270}
3199 + fps Delay between frame updates
3201 + debug Debug output level {0-7}
3203 + xohms Touchpanel sensitivity (X-plate resistance)
3207 +Info: Configures the Blokas Labs pisound card
3208 +Load: dtoverlay=pisound
3213 +Info: Adafruit PiTFT 2.2" screen
3214 +Load: dtoverlay=pitft22,<param>=<val>
3215 +Params: speed Display SPI bus speed
3217 + rotate Display rotation {0,90,180,270}
3219 + fps Delay between frame updates
3221 + debug Debug output level {0-7}
3224 +Name: pitft28-capacitive
3225 +Info: Adafruit PiTFT 2.8" capacitive touch screen
3226 +Load: dtoverlay=pitft28-capacitive,<param>=<val>
3227 +Params: speed Display SPI bus speed
3229 + rotate Display rotation {0,90,180,270}
3231 + fps Delay between frame updates
3233 + debug Debug output level {0-7}
3235 + touch-sizex Touchscreen size x (default 240)
3237 + touch-sizey Touchscreen size y (default 320)
3239 + touch-invx Touchscreen inverted x axis
3241 + touch-invy Touchscreen inverted y axis
3243 + touch-swapxy Touchscreen swapped x y axis
3246 +Name: pitft28-resistive
3247 +Info: Adafruit PiTFT 2.8" resistive touch screen
3248 +Load: dtoverlay=pitft28-resistive,<param>=<val>
3249 +Params: speed Display SPI bus speed
3251 + rotate Display rotation {0,90,180,270}
3253 + fps Delay between frame updates
3255 + debug Debug output level {0-7}
3258 +Name: pitft35-resistive
3259 +Info: Adafruit PiTFT 3.5" resistive touch screen
3260 +Load: dtoverlay=pitft35-resistive,<param>=<val>
3261 +Params: speed Display SPI bus speed
3263 + rotate Display rotation {0,90,180,270}
3265 + fps Delay between frame updates
3267 + debug Debug output level {0-7}
3271 +Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
3272 +Load: dtoverlay=pps-gpio,<param>=<val>
3273 +Params: gpiopin Input GPIO (default "18")
3274 + assert_falling_edge When present, assert is indicated by a falling
3275 + edge, rather than by a rising edge
3279 +Info: Configures a single PWM channel
3280 + Legal pin,function combinations for each channel:
3281 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
3282 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
3284 + 1) Pin 18 is the only one available on all platforms, and
3285 + it is the one used by the I2S audio interface.
3286 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
3287 + 2) The onboard analogue audio output uses both PWM channels.
3288 + 3) So be careful mixing audio and PWM.
3289 + 4) Currently the clock must have been enabled and configured
3291 +Load: dtoverlay=pwm,<param>=<val>
3292 +Params: pin Output pin (default 18) - see table
3293 + func Pin function (default 2 = Alt5) - see above
3294 + clock PWM clock frequency (informational)
3298 +Info: Configures both PWM channels
3299 + Legal pin,function combinations for each channel:
3300 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
3301 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
3303 + 1) Pin 18 is the only one available on all platforms, and
3304 + it is the one used by the I2S audio interface.
3305 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
3306 + 2) The onboard analogue audio output uses both PWM channels.
3307 + 3) So be careful mixing audio and PWM.
3308 + 4) Currently the clock must have been enabled and configured
3310 +Load: dtoverlay=pwm-2chan,<param>=<val>
3311 +Params: pin Output pin (default 18) - see table
3312 + pin2 Output pin for other channel (default 19)
3313 + func Pin function (default 2 = Alt5) - see above
3314 + func2 Function for pin2 (default 2 = Alt5)
3315 + clock PWM clock frequency (informational)
3319 +Info: Use GPIO pin as pwm-assisted infrared transmitter output.
3320 + This is an alternative to "gpio-ir-tx". pwm-ir-tx makes use
3321 + of PWM0 to reduce the CPU load during transmission compared to
3322 + gpio-ir-tx which uses bit-banging.
3323 + Legal pin,function combinations are:
3324 + 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
3325 +Load: dtoverlay=pwm-ir-tx,<param>=<val>
3326 +Params: gpio_pin Output GPIO (default 18)
3328 + func Pin function (default 2 = Alt5)
3332 +Info: I2SE's Evaluation Board for PLC Stamp micro
3333 +Load: dtoverlay=qca7000,<param>=<val>
3334 +Params: int_pin GPIO pin for interrupt signal (default 23)
3336 + speed SPI bus speed (default 12 MHz)
3340 +Info: Configures the RaspiDAV Rev.3x audio card
3341 +Load: dtoverlay=raspidac3
3345 +Name: rotary-encoder
3346 +Info: Overlay for GPIO connected rotary encoder.
3347 +Load: dtoverlay=rotary-encoder,<param>=<val>
3348 +Params: rotary0_pin_a GPIO connected to rotary encoder channel A
3350 + rotary0_pin_b GPIO connected to rotary encoder channel B
3354 +Name: rpi-backlight
3355 +Info: Raspberry Pi official display backlight driver
3356 +Load: dtoverlay=rpi-backlight
3360 +Name: rpi-cirrus-wm5102
3361 +Info: Configures the Cirrus Logic Audio Card
3362 +Load: dtoverlay=rpi-cirrus-wm5102
3367 +Info: Configures the RPi DAC audio card
3368 +Load: dtoverlay=rpi-dac
3373 +Info: RPi-Display - 2.8" Touch Display by Watterott
3374 +Load: dtoverlay=rpi-display,<param>=<val>
3375 +Params: speed Display SPI bus speed
3376 + rotate Display rotation {0,90,180,270}
3377 + fps Delay between frame updates
3378 + debug Debug output level {0-7}
3379 + xohms Touchpanel sensitivity (X-plate resistance)
3380 + swapxy Swap x and y axis
3384 +Info: Official Raspberry Pi display touchscreen
3385 +Load: dtoverlay=rpi-ft5406,<param>=<val>
3386 +Params: touchscreen-size-x Touchscreen X resolution (default 800)
3387 + touchscreen-size-y Touchscreen Y resolution (default 600);
3388 + touchscreen-inverted-x Invert touchscreen X coordinates (default 0);
3389 + touchscreen-inverted-y Invert touchscreen Y coordinates (default 0);
3390 + touchscreen-swapped-x-y Swap X and Y cordinates (default 0);
3394 +Info: Configures the RPi Proto audio card
3395 +Load: dtoverlay=rpi-proto
3400 +Info: Raspberry Pi Sense HAT
3401 +Load: dtoverlay=rpi-sense
3406 +Info: Raspberry Pi TV HAT
3407 +Load: dtoverlay=rpi-tv
3411 +Name: rra-digidac1-wm8741-audio
3412 +Info: Configures the Red Rocks Audio DigiDAC1 soundcard
3413 +Load: dtoverlay=rra-digidac1-wm8741-audio
3417 +Name: sc16is750-i2c
3418 +Info: Overlay for the NXP SC16IS750 UART with I2C Interface
3419 + Enables the chip on I2C1 at 0x48. To select another address,
3420 + please refer to table 10 in reference manual.
3422 +Load: dtoverlay=sc16is750-i2c,<param>=<val>
3423 +Params: int_pin GPIO used for IRQ (default 24)
3424 + addr Address (default 0x48)
3427 +Name: sc16is752-spi1
3428 +Info: Overlay for the NXP SC16IS752 Dual UART with SPI Interface
3429 + Enables the chip on SPI1.
3430 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3431 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3433 +Load: dtoverlay=sc16is752-spi1,<param>=<val>
3434 +Params: int_pin GPIO used for IRQ (default 24)
3438 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock.
3439 + N.B. This overlay is designed for situations where the mmc driver is
3440 + the default, so it disables the other (mmc) interface - this will kill
3441 + WiFi on a Pi3. If this isn't what you want, either use the sdtweak
3442 + overlay or the new sd_* dtparams of the base DTBs.
3443 +Load: dtoverlay=sdhost,<param>=<val>
3444 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
3447 + force_pio Disable DMA support (default off)
3449 + pio_limit Number of blocks above which to use DMA
3452 + debug Enable debug output (default off)
3456 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
3457 + and enables SDIO via GPIOs 22-27.
3458 +Load: dtoverlay=sdio,<param>=<val>
3459 +Params: sdio_overclock SDIO Clock (in MHz) to use when the MMC
3460 + framework requests 50MHz
3462 + poll_once Disable SDIO-device polling every second
3463 + (default on: polling once at boot-time)
3465 + bus_width Set the SDIO host bus width (default 4 bits)
3469 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
3470 + and enables 1-bit SDIO via GPIOs 22-25.
3471 +Load: dtoverlay=sdio-1bit,<param>=<val>
3472 +Params: sdio_overclock SDIO Clock (in MHz) to use when the MMC
3473 + framework requests 50MHz
3475 + poll_once Disable SDIO-device polling every second
3476 + (default on: polling once at boot-time)
3480 +Info: Tunes the bcm2835-sdhost SD/MMC driver
3481 + N.B. This functionality is now available via the sd_* dtparams in the
3483 +Load: dtoverlay=sdtweak,<param>=<val>
3484 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
3487 + force_pio Disable DMA support (default off)
3489 + pio_limit Number of blocks above which to use DMA
3492 + debug Enable debug output (default off)
3496 +Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!
3497 +Load: dtoverlay=smi
3502 +Info: Enables the userspace interface for the SMI driver
3503 +Load: dtoverlay=smi-dev
3508 +Info: Enables access to NAND flash via the SMI interface
3509 +Load: dtoverlay=smi-nand
3513 +Name: spi-gpio35-39
3514 +Info: Move SPI function block to GPIO 35 to 39
3515 +Load: dtoverlay=spi-gpio35-39
3520 +Info: Adds support for a number of SPI Real Time Clock devices
3521 +Load: dtoverlay=spi-rtc,<param>=<val>
3522 +Params: pcf2123 Select the PCF2123 device
3526 +Info: Allows the (software) CS pins for SPI0 to be changed
3527 +Load: dtoverlay=spi0-cs,<param>=<val>
3528 +Params: cs0_pin GPIO pin for CS0 (default 8)
3529 + cs1_pin GPIO pin for CS1 (default 7)
3533 +Info: Re-enables hardware CS/CE (chip selects) for SPI0
3534 +Load: dtoverlay=spi0-hw-cs
3539 +Info: Enables spi1 with a single chip select (CS) line and associated spidev
3540 + dev node. The gpio pin number for the CS line and spidev device node
3541 + creation are configurable.
3542 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3543 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3544 +Load: dtoverlay=spi1-1cs,<param>=<val>
3545 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3546 + cs0_spidev Set to 'disabled' to stop the creation of a
3547 + userspace device node /dev/spidev1.0 (default
3548 + is 'okay' or enabled).
3552 +Info: Enables spi1 with two chip select (CS) lines and associated spidev
3553 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3554 + creation are configurable.
3555 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3556 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3557 +Load: dtoverlay=spi1-2cs,<param>=<val>
3558 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3559 + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
3560 + cs0_spidev Set to 'disabled' to stop the creation of a
3561 + userspace device node /dev/spidev1.0 (default
3562 + is 'okay' or enabled).
3563 + cs1_spidev Set to 'disabled' to stop the creation of a
3564 + userspace device node /dev/spidev1.1 (default
3565 + is 'okay' or enabled).
3569 +Info: Enables spi1 with three chip select (CS) lines and associated spidev
3570 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3571 + creation are configurable.
3572 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3573 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3574 +Load: dtoverlay=spi1-3cs,<param>=<val>
3575 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3576 + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
3577 + cs2_pin GPIO pin for CS2 (default 16 - BCM SPI1_CE2).
3578 + cs0_spidev Set to 'disabled' to stop the creation of a
3579 + userspace device node /dev/spidev1.0 (default
3580 + is 'okay' or enabled).
3581 + cs1_spidev Set to 'disabled' to stop the creation of a
3582 + userspace device node /dev/spidev1.1 (default
3583 + is 'okay' or enabled).
3584 + cs2_spidev Set to 'disabled' to stop the creation of a
3585 + userspace device node /dev/spidev1.2 (default
3586 + is 'okay' or enabled).
3590 +Info: Enables spi2 with a single chip select (CS) line and associated spidev
3591 + dev node. The gpio pin number for the CS line and spidev device node
3592 + creation are configurable.
3593 + N.B.: spi2 is only accessible with the Compute Module.
3594 +Load: dtoverlay=spi2-1cs,<param>=<val>
3595 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3596 + cs0_spidev Set to 'disabled' to stop the creation of a
3597 + userspace device node /dev/spidev2.0 (default
3598 + is 'okay' or enabled).
3602 +Info: Enables spi2 with two chip select (CS) lines and associated spidev
3603 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3604 + creation are configurable.
3605 + N.B.: spi2 is only accessible with the Compute Module.
3606 +Load: dtoverlay=spi2-2cs,<param>=<val>
3607 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3608 + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
3609 + cs0_spidev Set to 'disabled' to stop the creation of a
3610 + userspace device node /dev/spidev2.0 (default
3611 + is 'okay' or enabled).
3612 + cs1_spidev Set to 'disabled' to stop the creation of a
3613 + userspace device node /dev/spidev2.1 (default
3614 + is 'okay' or enabled).
3618 +Info: Enables spi2 with three chip select (CS) lines and associated spidev
3619 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3620 + creation are configurable.
3621 + N.B.: spi2 is only accessible with the Compute Module.
3622 +Load: dtoverlay=spi2-3cs,<param>=<val>
3623 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3624 + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
3625 + cs2_pin GPIO pin for CS2 (default 45 - BCM SPI2_CE2).
3626 + cs0_spidev Set to 'disabled' to stop the creation of a
3627 + userspace device node /dev/spidev2.0 (default
3628 + is 'okay' or enabled).
3629 + cs1_spidev Set to 'disabled' to stop the creation of a
3630 + userspace device node /dev/spidev2.1 (default
3631 + is 'okay' or enabled).
3632 + cs2_spidev Set to 'disabled' to stop the creation of a
3633 + userspace device node /dev/spidev2.2 (default
3634 + is 'okay' or enabled).
3638 +Info: 3.5" Color TFT Display by www.tinylcd.com
3639 + Options: Touch, RTC, keypad
3640 +Load: dtoverlay=tinylcd35,<param>=<val>
3641 +Params: speed Display SPI bus speed
3643 + rotate Display rotation {0,90,180,270}
3645 + fps Delay between frame updates
3647 + debug Debug output level {0-7}
3649 + touch Enable touch panel
3651 + touchgpio Touch controller IRQ GPIO
3653 + xohms Touchpanel: Resistance of X-plate in ohms
3655 + rtc-pcf PCF8563 Real Time Clock
3657 + rtc-ds DS1307 Real Time Clock
3659 + keypad Enable keypad
3662 + Display with touchpanel, PCF8563 RTC and keypad:
3663 + dtoverlay=tinylcd35,touch,rtc-pcf,keypad
3664 + Old touch display:
3665 + dtoverlay=tinylcd35,touch,touchgpio=3
3669 +Info: Enable uart1 in place of uart0
3670 +Load: dtoverlay=uart1,<param>=<val>
3671 +Params: txd1_pin GPIO pin for TXD1 (14, 32 or 40 - default 14)
3673 + rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
3677 +Info: Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
3679 +Load: dtoverlay=vc4-fkms-v3d,<param>
3680 +Params: cma-256 CMA is 256MB, 256MB-aligned (needs 1GB)
3681 + cma-192 CMA is 192MB, 256MB-aligned (needs 1GB)
3682 + cma-128 CMA is 128MB, 128MB-aligned
3683 + cma-96 CMA is 96MB, 128MB-aligned
3684 + cma-64 CMA is 64MB, 64MB-aligned
3688 +Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver. Running startx or
3689 + booting to GUI while this overlay is in use will cause interesting
3691 +Load: dtoverlay=vc4-kms-v3d,<param>
3692 +Params: cma-256 CMA is 256MB, 256MB-aligned (needs 1GB)
3693 + cma-192 CMA is 192MB, 256MB-aligned (needs 1GB)
3694 + cma-128 CMA is 128MB, 128MB-aligned
3695 + cma-96 CMA is 96MB, 128MB-aligned
3696 + cma-64 CMA is 64MB, 64MB-aligned
3700 +Info: Overlay for the Fen Logic VGA666 board
3701 + This uses GPIOs 2-21 (so no I2C), and activates the output 2-3 seconds
3702 + after the kernel has started.
3703 +Load: dtoverlay=vga666
3708 +Info: Configures the w1-gpio Onewire interface module.
3709 + Use this overlay if you *don't* need a GPIO to drive an external pullup.
3710 +Load: dtoverlay=w1-gpio,<param>=<val>
3711 +Params: gpiopin GPIO for I/O (default "4")
3713 + pullup Non-zero, "on", or "y" to enable the parasitic
3714 + power (2-wire, power-on-data) feature
3717 +Name: w1-gpio-pullup
3718 +Info: Configures the w1-gpio Onewire interface module.
3719 + Use this overlay if you *do* need a GPIO to drive an external pullup.
3720 +Load: dtoverlay=w1-gpio-pullup,<param>=<val>
3721 +Params: gpiopin GPIO for I/O (default "4")
3723 + pullup Non-zero, "on", or "y" to enable the parasitic
3724 + power (2-wire, power-on-data) feature
3726 + extpullup GPIO for external pullup (default "5")
3730 +Info: Configures the wittypi RTC module.
3731 +Load: dtoverlay=wittypi,<param>=<val>
3732 +Params: led_gpio GPIO for LED (default "17")
3733 + led_trigger Choose which activity the LED tracks (default
3740 +If you are experiencing problems that you think are DT-related, enable DT
3741 +diagnostic output by adding this to /boot/config.txt:
3745 +and rebooting. Then run:
3747 + sudo vcdbg log msg
3749 +and look for relevant messages.
3754 +This is only meant to be a quick introduction to the subject of Device Tree on
3755 +Raspberry Pi. There is a more complete explanation here:
3757 +http://www.raspberrypi.org/documentation/configuration/device-tree.md
3759 +++ b/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
3761 +// Definitions for ADAU1977 ADC
3766 + compatible = "brcm,bcm2708";
3772 + #address-cells = <1>;
3773 + #size-cells = <0>;
3776 + adau1977: codec@11 {
3777 + compatible = "adi,adau1977";
3779 + reset-gpios = <&gpio 5 0>;
3780 + AVDD-supply = <&vdd_3v3_reg>;
3793 + target = <&sound>;
3795 + compatible = "adi,adau1977-adc";
3796 + i2s-controller = <&i2s>;
3802 +++ b/arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts
3808 + compatible = "brcm,bcm2708";
3818 + target-path = "/";
3820 + adau7002_codec: adau7002-codec {
3821 + #sound-dai-cells = <0>;
3822 + compatible = "adi,adau7002";
3823 +/* IOVDD-supply = <&supply>;*/
3830 + target = <&sound>;
3831 + sound_overlay: __overlay__ {
3832 + compatible = "simple-audio-card";
3833 + simple-audio-card,format = "i2s";
3834 + simple-audio-card,name = "adau7002";
3835 + simple-audio-card,bitclock-slave = <&dailink0_slave>;
3836 + simple-audio-card,frame-slave = <&dailink0_slave>;
3837 + simple-audio-card,widgets =
3838 + "Microphone", "Microphone Jack";
3839 + simple-audio-card,routing =
3840 + "PDM_DAT", "Microphone Jack";
3842 + simple-audio-card,cpu {
3843 + sound-dai = <&i2s>;
3845 + dailink0_slave: simple-audio-card,codec {
3846 + sound-dai = <&adau7002_codec>;
3853 + card-name = <&sound_overlay>,"simple-audio-card,name";
3857 +++ b/arch/arm/boot/dts/overlays/ads1015-overlay.dts
3860 + * 2016 - Erik Sejr
3866 + compatible = "brcm,bcm2708";
3867 + /* ----------- ADS1015 ------------ */
3869 + target = <&i2c_arm>;
3871 + #address-cells = <1>;
3872 + #size-cells = <0>;
3874 + ads1015: ads1015 {
3875 + compatible = "ti,ads1015";
3877 + #address-cells = <1>;
3878 + #size-cells = <0>;
3885 + target-path = "i2c_arm/ads1015";
3887 + #address-cells = <1>;
3888 + #size-cells = <0>;
3889 + channel_a: channel_a {
3892 + ti,datarate = <4>;
3898 + target-path = "i2c_arm/ads1015";
3900 + #address-cells = <1>;
3901 + #size-cells = <0>;
3902 + channel_b: channel_b {
3905 + ti,datarate = <4>;
3911 + target-path = "i2c_arm/ads1015";
3913 + #address-cells = <1>;
3914 + #size-cells = <0>;
3915 + channel_c: channel_c {
3918 + ti,datarate = <4>;
3924 + target-path = "i2c_arm/ads1015";
3926 + #address-cells = <1>;
3927 + #size-cells = <0>;
3928 + channel_d: channel_d {
3931 + ti,datarate = <4>;
3937 + addr = <&ads1015>,"reg:0";
3938 + cha_enable = <0>,"=1";
3939 + cha_cfg = <&channel_a>,"reg:0";
3940 + cha_gain = <&channel_a>,"ti,gain:0";
3941 + cha_datarate = <&channel_a>,"ti,datarate:0";
3942 + chb_enable = <0>,"=2";
3943 + chb_cfg = <&channel_b>,"reg:0";
3944 + chb_gain = <&channel_b>,"ti,gain:0";
3945 + chb_datarate = <&channel_b>,"ti,datarate:0";
3946 + chc_enable = <0>,"=3";
3947 + chc_cfg = <&channel_c>,"reg:0";
3948 + chc_gain = <&channel_c>,"ti,gain:0";
3949 + chc_datarate = <&channel_c>,"ti,datarate:0";
3950 + chd_enable = <0>,"=4";
3951 + chd_cfg = <&channel_d>,"reg:0";
3952 + chd_gain = <&channel_d>,"ti,gain:0";
3953 + chd_datarate = <&channel_d>,"ti,datarate:0";
3958 +++ b/arch/arm/boot/dts/overlays/ads1115-overlay.dts
3961 + * TI ADS1115 multi-channel ADC overlay
3968 + compatible = "brcm,bcm2708";
3971 + target = <&i2c_arm>;
3973 + #address-cells = <1>;
3974 + #size-cells = <0>;
3977 + ads1115: ads1115 {
3978 + compatible = "ti,ads1115";
3980 + #address-cells = <1>;
3981 + #size-cells = <0>;
3988 + target-path = "i2c_arm/ads1115";
3990 + #address-cells = <1>;
3991 + #size-cells = <0>;
3993 + channel_a: channel_a {
3996 + ti,datarate = <7>;
4002 + target-path = "i2c_arm/ads1115";
4004 + #address-cells = <1>;
4005 + #size-cells = <0>;
4007 + channel_b: channel_b {
4010 + ti,datarate = <7>;
4016 + target-path = "i2c_arm/ads1115";
4018 + #address-cells = <1>;
4019 + #size-cells = <0>;
4021 + channel_c: channel_c {
4024 + ti,datarate = <7>;
4030 + target-path = "i2c_arm/ads1115";
4032 + #address-cells = <1>;
4033 + #size-cells = <0>;
4035 + channel_d: channel_d {
4038 + ti,datarate = <7>;
4044 + addr = <&ads1115>,"reg:0";
4045 + cha_enable = <0>,"=1";
4046 + cha_cfg = <&channel_a>,"reg:0";
4047 + cha_gain = <&channel_a>,"ti,gain:0";
4048 + cha_datarate = <&channel_a>,"ti,datarate:0";
4049 + chb_enable = <0>,"=2";
4050 + chb_cfg = <&channel_b>,"reg:0";
4051 + chb_gain = <&channel_b>,"ti,gain:0";
4052 + chb_datarate = <&channel_b>,"ti,datarate:0";
4053 + chc_enable = <0>,"=3";
4054 + chc_cfg = <&channel_c>,"reg:0";
4055 + chc_gain = <&channel_c>,"ti,gain:0";
4056 + chc_datarate = <&channel_c>,"ti,datarate:0";
4057 + chd_enable = <0>,"=4";
4058 + chd_cfg = <&channel_d>,"reg:0";
4059 + chd_gain = <&channel_d>,"ti,gain:0";
4060 + chd_datarate = <&channel_d>,"ti,datarate:0";
4064 +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
4067 + * Generic Device Tree overlay for the ADS7846 touch controller
4075 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
4085 + target = <&spidev0>;
4087 + status = "disabled";
4092 + target = <&spidev1>;
4094 + status = "disabled";
4101 + ads7846_pins: ads7846_pins {
4102 + brcm,pins = <255>; /* illegal default value */
4103 + brcm,function = <0>; /* in */
4104 + brcm,pull = <0>; /* none */
4112 + /* needed to avoid dtc warning */
4113 + #address-cells = <1>;
4114 + #size-cells = <0>;
4116 + ads7846: ads7846@1 {
4117 + compatible = "ti,ads7846";
4119 + pinctrl-names = "default";
4120 + pinctrl-0 = <&ads7846_pins>;
4122 + spi-max-frequency = <2000000>;
4123 + interrupts = <255 2>; /* high-to-low edge triggered */
4124 + interrupt-parent = <&gpio>;
4125 + pendown-gpio = <&gpio 255 0>;
4127 + /* driver defaults */
4128 + ti,x-min = /bits/ 16 <0>;
4129 + ti,y-min = /bits/ 16 <0>;
4130 + ti,x-max = /bits/ 16 <0x0FFF>;
4131 + ti,y-max = /bits/ 16 <0x0FFF>;
4132 + ti,pressure-min = /bits/ 16 <0>;
4133 + ti,pressure-max = /bits/ 16 <0xFFFF>;
4134 + ti,x-plate-ohms = /bits/ 16 <400>;
4139 + cs = <&ads7846>,"reg:0";
4140 + speed = <&ads7846>,"spi-max-frequency:0";
4141 + penirq = <&ads7846_pins>,"brcm,pins:0", /* REQUIRED */
4142 + <&ads7846>,"interrupts:0",
4143 + <&ads7846>,"pendown-gpio:4";
4144 + penirq_pull = <&ads7846_pins>,"brcm,pull:0";
4145 + swapxy = <&ads7846>,"ti,swap-xy?";
4146 + xmin = <&ads7846>,"ti,x-min;0";
4147 + ymin = <&ads7846>,"ti,y-min;0";
4148 + xmax = <&ads7846>,"ti,x-max;0";
4149 + ymax = <&ads7846>,"ti,y-max;0";
4150 + pmin = <&ads7846>,"ti,pressure-min;0";
4151 + pmax = <&ads7846>,"ti,pressure-max;0";
4152 + xohms = <&ads7846>,"ti,x-plate-ohms;0";
4156 +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
4158 +// Definitions for Digital Dreamtime Akkordion using IQaudIO DAC+ or DACZero
4163 + compatible = "brcm,bcm2708";
4175 + #address-cells = <1>;
4176 + #size-cells = <0>;
4180 + #sound-dai-cells = <0>;
4181 + compatible = "ti,pcm5122";
4183 + AVDD-supply = <&vdd_3v3_reg>;
4184 + DVDD-supply = <&vdd_3v3_reg>;
4185 + CPVDD-supply = <&vdd_3v3_reg>;
4192 + target = <&sound>;
4193 + frag2: __overlay__ {
4194 + compatible = "iqaudio,iqaudio-dac";
4195 + card_name = "Akkordion";
4196 + dai_name = "IQaudIO DAC";
4197 + dai_stream_name = "IQaudIO DAC HiFi";
4198 + i2s-controller = <&i2s>;
4204 + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
4208 +++ b/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts
4211 + * Definitions for Allo Boss DAC board
4218 + compatible = "brcm,bcm2708";
4221 + target-path = "/clocks";
4223 + boss_osc: boss_osc {
4224 + compatible = "allo,dac-clk";
4225 + #clock-cells = <0>;
4240 + #address-cells = <1>;
4241 + #size-cells = <0>;
4245 + #sound-dai-cells = <0>;
4246 + compatible = "ti,pcm5122";
4247 + clocks = <&boss_osc>;
4255 + target = <&sound>;
4256 + boss_dac: __overlay__ {
4257 + compatible = "allo,boss-dac";
4258 + i2s-controller = <&i2s>;
4259 + mute-gpios = <&gpio 6 1>;
4265 + 24db_digital_gain = <&boss_dac>,"allo,24db_digital_gain?";
4266 + slave = <&boss_dac>,"allo,slave?";
4270 +++ b/arch/arm/boot/dts/overlays/allo-digione-overlay.dts
4272 +// Definitions for Allo DigiOne
4277 + compatible = "brcm,bcm2708";
4289 + #address-cells = <1>;
4290 + #size-cells = <0>;
4294 + #sound-dai-cells = <0>;
4295 + compatible = "wlf,wm8804";
4297 + PVDD-supply = <&vdd_3v3_reg>;
4298 + DVDD-supply = <&vdd_3v3_reg>;
4300 + wlf,reset-gpio = <&gpio 17 0>;
4306 + target = <&sound>;
4308 + compatible = "allo,allo-digione";
4309 + i2s-controller = <&i2s>;
4311 + clock44-gpio = <&gpio 5 0>;
4312 + clock48-gpio = <&gpio 6 0>;
4317 +++ b/arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
4320 + * Definitions for Allo Piano DAC (2.0/2.1) boards
4322 + * NB. The Piano DAC 2.1 board contains 2x TI PCM5142 DAC's. One DAC is stereo
4323 + * (left/right) and the other provides a subwoofer output, using DSP on the
4324 + * chip for digital high/low pass crossover.
4325 + * The initial support for this hardware, that doesn't require any codec driver
4326 + * modifications, uses only one DAC chip for stereo (left/right) output, the
4327 + * chip with 0x4c slave address. The other chip at 0x4d is currently ignored!
4334 + compatible = "brcm,bcm2708";
4346 + #address-cells = <1>;
4347 + #size-cells = <0>;
4351 + #sound-dai-cells = <0>;
4352 + compatible = "ti,pcm5142";
4360 + target = <&sound>;
4361 + piano_dac: __overlay__ {
4362 + compatible = "allo,piano-dac";
4363 + i2s-controller = <&i2s>;
4369 + 24db_digital_gain =
4370 + <&piano_dac>,"allo,24db_digital_gain?";
4374 +++ b/arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts
4376 +// Definitions for Piano DAC
4381 + compatible = "brcm,bcm2708";
4393 + #address-cells = <1>;
4394 + #size-cells = <0>;
4397 + allo_pcm5122_4c: pcm5122@4c {
4398 + #sound-dai-cells = <0>;
4399 + compatible = "ti,pcm5122";
4403 + allo_pcm5122_4d: pcm5122@4d {
4404 + #sound-dai-cells = <0>;
4405 + compatible = "ti,pcm5122";
4413 + target = <&sound>;
4414 + piano_dac: __overlay__ {
4415 + compatible = "allo,piano-dac-plus";
4416 + audio-codec = <&allo_pcm5122_4c &allo_pcm5122_4d>;
4417 + i2s-controller = <&i2s>;
4418 + mute1-gpios = <&gpio 6 1>;
4419 + mute2-gpios = <&gpio 25 1>;
4425 + 24db_digital_gain =
4426 + <&piano_dac>,"allo,24db_digital_gain?";
4428 + <&piano_dac>,"allo,glb_mclk?";
4432 +++ b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
4437 +/* Overlay for Atmel AT86RF233 IEEE 802.15.4 WPAN transceiver on spi0.0 */
4440 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
4445 + #address-cells = <1>;
4446 + #size-cells = <0>;
4450 + lowpan0: at86rf233@0 {
4451 + compatible = "atmel,at86rf233";
4453 + interrupt-parent = <&gpio>;
4454 + interrupts = <23 4>; /* active high */
4455 + reset-gpio = <&gpio 24 1>;
4456 + sleep-gpio = <&gpio 25 1>;
4457 + spi-max-frequency = <3000000>;
4458 + xtal-trim = /bits/ 8 <0xf>;
4464 + target = <&spidev0>;
4466 + status = "disabled";
4473 + lowpan0_pins: lowpan0_pins {
4474 + brcm,pins = <23 24 25>;
4475 + brcm,function = <0 1 1>; /* in out out */
4481 + interrupt = <&lowpan0>, "interrupts:0",
4482 + <&lowpan0_pins>, "brcm,pins:0";
4483 + reset = <&lowpan0>, "reset-gpio:4",
4484 + <&lowpan0_pins>, "brcm,pins:4";
4485 + sleep = <&lowpan0>, "sleep-gpio:4",
4486 + <&lowpan0_pins>, "brcm,pins:8";
4487 + speed = <&lowpan0>, "spi-max-frequency:0";
4488 + trim = <&lowpan0>, "xtal-trim.0";
4492 +++ b/arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
4494 +// Definitions for audioinjector.net audio add on soundcard
4499 + compatible = "brcm,bcm2708";
4511 + #address-cells = <1>;
4512 + #size-cells = <0>;
4515 + cs42448: cs42448@48 {
4516 + #sound-dai-cells = <0>;
4517 + compatible = "cirrus,cs42448";
4519 + clocks = <&cs42448_mclk>;
4520 + clock-names = "mclk";
4521 + VA-supply = <&vdd_5v0_reg>;
4522 + VD-supply = <&vdd_3v3_reg>;
4523 + VLS-supply = <&vdd_3v3_reg>;
4524 + VLC-supply = <&vdd_3v3_reg>;
4528 + cs42448_mclk: codec-mclk {
4529 + compatible = "fixed-clock";
4530 + #clock-cells = <0>;
4531 + clock-frequency = <49152000>;
4537 + target = <&sound>;
4539 + compatible = "ai,audioinjector-octo-soundcard";
4540 + mult-gpios = <&gpio 27 0>, <&gpio 22 0>, <&gpio 23 0>,
4542 + reset-gpios = <&gpio 5 0>;
4543 + i2s-controller = <&i2s>;
4544 + codec = <&cs42448>;
4550 +++ b/arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
4552 +// Definitions for audioinjector.net audio add on soundcard
4557 + compatible = "brcm,bcm2708";
4569 + #address-cells = <1>;
4570 + #size-cells = <0>;
4574 + #sound-dai-cells = <0>;
4575 + compatible = "wlf,wm8731";
4583 + target = <&sound>;
4585 + compatible = "ai,audioinjector-pi-soundcard";
4586 + i2s-controller = <&i2s>;
4592 +++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
4598 + compatible = "brcm,bcm2708";
4601 + target = <&audio_pins>;
4602 + frag0: __overlay__ {
4603 + brcm,pins = < 12 13 >;
4604 + brcm,function = < 4 >; /* alt0 alt0 */
4609 + swap_lr = <&frag0>, "swap_lr?";
4610 + enable_jack = <&frag0>, "enable_jack?";
4614 +++ b/arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
4616 +// Definitions for BMP085/BMP180 digital barometric pressure and temperature sensors from Bosch Sensortec
4621 + compatible = "brcm,bcm2708";
4624 + target = <&i2c_arm>;
4626 + #address-cells = <1>;
4627 + #size-cells = <0>;
4631 + compatible = "bosch,bmp085";
4633 + default-oversampling = <3>;
4640 +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
4643 + * Overlay for the DHT11/21/22 humidity/temperature sensor modules.
4649 + compatible = "brcm,bcm2708";
4652 + target-path = "/";
4656 + compatible = "dht11";
4657 + pinctrl-names = "default";
4658 + pinctrl-0 = <&dht11_pins>;
4659 + gpios = <&gpio 4 0>;
4668 + dht11_pins: dht11_pins {
4670 + brcm,function = <0>; // in
4671 + brcm,pull = <0>; // off
4677 + gpiopin = <&dht11_pins>,"brcm,pins:0",
4678 + <&dht11>,"gpios:4";
4682 +++ b/arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
4684 +// Definitions for Dion Audio LOCO DAC-AMP
4687 + * PCM5242 DAC (in hardware mode) and TPA3118 AMP.
4694 + compatible = "brcm,bcm2708";
4704 + target-path = "/";
4707 + #sound-dai-cells = <0>;
4708 + compatible = "ti,pcm5102a";
4715 + target = <&sound>;
4717 + compatible = "dionaudio,loco-pcm5242-tpa3118";
4718 + i2s-controller = <&i2s>;
4724 +++ b/arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts
4727 + * Definitions for Dion Audio LOCO-V2 DAC-AMP
4728 + * eg. dtoverlay=dionaudio-loco-v2
4730 + * PCM5242 DAC (in software mode) and TPA3255 AMP.
4737 + compatible = "brcm,bcm2708";
4740 + target = <&sound>;
4741 + frag0: __overlay__ {
4742 + compatible = "dionaudio,dionaudio-loco-v2";
4743 + i2s-controller = <&i2s>;
4758 + #address-cells = <1>;
4759 + #size-cells = <0>;
4763 + #sound-dai-cells = <0>;
4764 + compatible = "ti,pcm5122";
4772 + 24db_digital_gain = <&frag0>,"dionaudio,24db_digital_gain?";
4776 +++ b/arch/arm/boot/dts/overlays/dpi18-overlay.dts
4782 + compatible = "brcm,bcm2708";
4784 + // There is no DPI driver module, but we need a platform device
4785 + // node (that doesn't already use pinctrl) to hang the pinctrl
4786 + // reference on - leds will do
4791 + pinctrl-names = "default";
4792 + pinctrl-0 = <&dpi18_pins>;
4799 + dpi18_pins: dpi18_pins {
4800 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
4801 + 12 13 14 15 16 17 18 19 20
4803 + brcm,function = <6>; /* alt2 */
4804 + brcm,pull = <0>; /* no pull */
4810 +++ b/arch/arm/boot/dts/overlays/dpi24-overlay.dts
4816 + compatible = "brcm,bcm2708";
4818 + // There is no DPI driver module, but we need a platform device
4819 + // node (that doesn't already use pinctrl) to hang the pinctrl
4820 + // reference on - leds will do
4825 + pinctrl-names = "default";
4826 + pinctrl-0 = <&dpi24_pins>;
4833 + dpi24_pins: dpi24_pins {
4834 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
4835 + 12 13 14 15 16 17 18 19 20
4836 + 21 22 23 24 25 26 27>;
4837 + brcm,function = <6>; /* alt2 */
4838 + brcm,pull = <0>; /* no pull */
4844 +++ b/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
4850 + compatible = "brcm,bcm2708";
4854 + #address-cells = <1>;
4855 + #size-cells = <1>;
4857 + compatible = "brcm,bcm2708-usb";
4858 + reg = <0x7e980000 0x10000>,
4859 + <0x7e006000 0x1000>;
4860 + interrupts = <2 0>,
4867 +++ b/arch/arm/boot/dts/overlays/dwc2-overlay.dts
4873 + compatible = "brcm,bcm2708";
4877 + #address-cells = <1>;
4878 + #size-cells = <1>;
4879 + dwc2_usb: __overlay__ {
4880 + compatible = "brcm,bcm2835-usb";
4881 + reg = <0x7e980000 0x10000>;
4882 + interrupts = <1 9>;
4884 + g-np-tx-fifo-size = <32>;
4885 + g-rx-fifo-size = <256>;
4886 + g-tx-fifo-size = <512 512 512 512 512 768>;
4892 + dr_mode = <&dwc2_usb>, "dr_mode";
4893 + g-np-tx-fifo-size = <&dwc2_usb>,"g-np-tx-fifo-size:0";
4894 + g-rx-fifo-size = <&dwc2_usb>,"g-rx-fifo-size:0";
4898 +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
4900 +// Overlay for the Microchip ENC28J60 Ethernet Controller
4905 + compatible = "brcm,bcm2708";
4910 + /* needed to avoid dtc warning */
4911 + #address-cells = <1>;
4912 + #size-cells = <0>;
4917 + compatible = "microchip,enc28j60";
4918 + reg = <0>; /* CE0 */
4919 + pinctrl-names = "default";
4920 + pinctrl-0 = <ð1_pins>;
4921 + interrupt-parent = <&gpio>;
4922 + interrupts = <25 0x2>; /* falling edge */
4923 + spi-max-frequency = <12000000>;
4930 + target = <&spidev0>;
4932 + status = "disabled";
4939 + eth1_pins: eth1_pins {
4941 + brcm,function = <0>; /* in */
4942 + brcm,pull = <0>; /* none */
4948 + int_pin = <ð1>, "interrupts:0",
4949 + <ð1_pins>, "brcm,pins:0";
4950 + speed = <ð1>, "spi-max-frequency:0";
4954 +++ b/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
4956 +// Overlay for the Microchip ENC28J60 Ethernet Controller - SPI2 Compute Module
4957 +// Interrupt pin: 39
4962 + compatible = "brcm,bcm2708";
4967 + /* needed to avoid dtc warning */
4968 + #address-cells = <1>;
4969 + #size-cells = <0>;
4974 + compatible = "microchip,enc28j60";
4975 + reg = <0>; /* CE0 */
4976 + pinctrl-names = "default";
4977 + pinctrl-0 = <ð1_pins>;
4978 + interrupt-parent = <&gpio>;
4979 + interrupts = <39 0x2>; /* falling edge */
4980 + spi-max-frequency = <12000000>;
4989 + eth1_pins: eth1_pins {
4991 + brcm,function = <0>; /* in */
4992 + brcm,pull = <0>; /* none */
4998 + int_pin = <ð1>, "interrupts:0",
4999 + <ð1_pins>, "brcm,pins:0";
5000 + speed = <ð1>, "spi-max-frequency:0";
5004 +++ b/arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts
5006 +// Definitions for Fe-Pi Audio
5011 + compatible = "brcm,bcm2708";
5014 + target = <&clocks>;
5016 + sgtl5000_mclk: sgtl5000_mclk {
5017 + compatible = "fixed-clock";
5018 + #clock-cells = <0>;
5019 + clock-frequency = <12288000>;
5020 + clock-output-names = "sgtl5000-mclk";
5028 + reg_1v8: reg_1v8@0 {
5029 + compatible = "regulator-fixed";
5030 + regulator-name = "1V8";
5031 + regulator-min-microvolt = <1800000>;
5032 + regulator-max-microvolt = <1800000>;
5033 + regulator-always-on;
5041 + #address-cells = <1>;
5042 + #size-cells = <0>;
5046 + #sound-dai-cells = <0>;
5047 + compatible = "fepi,sgtl5000";
5049 + clocks = <&sgtl5000_mclk>;
5050 + micbias-resistor-k-ohms = <2>;
5051 + micbias-voltage-m-volts = <3000>;
5052 + VDDA-supply = <&vdd_3v3_reg>;
5053 + VDDIO-supply = <&vdd_3v3_reg>;
5054 + VDDD-supply = <®_1v8>;
5068 + target = <&sound>;
5070 + compatible = "fe-pi,fe-pi-audio";
5071 + i2s-controller = <&i2s>;
5077 +++ b/arch/arm/boot/dts/overlays/goodix-overlay.dts
5079 +// Device tree overlay for I2C connected Goodix gt9271 multiple touch controller
5084 + compatible = "brcm,bcm2708";
5089 + goodix_pins: goodix_pins {
5090 + brcm,pins = <4 17>; // interrupt and reset
5091 + brcm,function = <0 0>; // in
5092 + brcm,pull = <2 2>; // pull-up
5100 + #address-cells = <1>;
5101 + #size-cells = <0>;
5104 + gt9271: gt9271@14 {
5105 + compatible = "goodix,gt9271";
5107 + pinctrl-names = "default";
5108 + pinctrl-0 = <&goodix_pins>;
5109 + interrupt-parent = <&gpio>;
5110 + interrupts = <4 2>; // high-to-low edge triggered
5111 + irq-gpios = <&gpio 4 0>; // Pin7 on GPIO header
5112 + reset-gpios = <&gpio 17 0>; // Pin11 on GPIO header
5118 + interrupt = <&goodix_pins>,"brcm,pins:0",
5119 + <>9271>,"interrupts:0",
5120 + <>9271>,"irq-gpios:4";
5121 + reset = <&goodix_pins>,"brcm,pins:4",
5122 + <>9271>,"reset-gpios:4";
5126 +++ b/arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts
5128 +// Definitions for Google voiceHAT v1 soundcard overlay
5133 + compatible = "brcm,bcm2708";
5145 + googlevoicehat_pins: googlevoicehat_pins {
5147 + brcm,function = <1>; /* out */
5148 + brcm,pull = <0>; /* up */
5155 + target-path = "/";
5158 + #sound-dai-cells = <0>;
5159 + compatible = "google,voicehat";
5160 + pinctrl-names = "default";
5161 + pinctrl-0 = <&googlevoicehat_pins>;
5162 + sdmode-gpios= <&gpio 16 0>;
5169 + target = <&sound>;
5171 + compatible = "googlevoicehat,googlevoicehat-soundcard";
5172 + i2s-controller = <&i2s>;
5178 +++ b/arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
5180 +// Definitions for ir-gpio module
5185 + compatible = "brcm,bcm2708";
5188 + target-path = "/";
5190 + gpio_ir: ir-receiver {
5191 + compatible = "gpio-ir-receiver";
5193 + // pin number, high or low
5194 + gpios = <&gpio 18 1>;
5196 + // parameter for keymap name
5197 + linux,rc-map-name = "rc-rc6-mce";
5207 + gpio_ir_pins: gpio_ir_pins {
5208 + brcm,pins = <18>; // pin 18
5209 + brcm,function = <0>; // in
5210 + brcm,pull = <1>; // down
5217 + gpio_pin = <&gpio_ir>,"gpios:4",
5218 + <&gpio_ir_pins>,"brcm,pins:0"; // pin number
5219 + gpio_pull = <&gpio_ir_pins>,"brcm,pull:0"; // pull-up/down state
5221 + rc-map-name = <&gpio_ir>,"linux,rc-map-name"; // default rc map
5225 +++ b/arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts
5231 + compatible = "brcm,bcm2708";
5236 + gpio_ir_tx_pins: gpio_ir_tx_pins {
5238 + brcm,function = <1>; // out
5244 + target-path = "/";
5246 + gpio_ir_tx: gpio-ir-transmitter {
5247 + compatible = "gpio-ir-tx";
5248 + pinctrl-names = "default";
5249 + pinctrl-0 = <&gpio_ir_tx_pins>;
5250 + gpios = <&gpio 18 0>;
5256 + gpio_pin = <&gpio_ir_tx>, "gpios:4",
5257 + <&gpio_ir_tx_pins>, "brcm,pins:0"; // pin number
5258 + invert = <&gpio_ir_tx>, "gpios:8"; // 1 = active low
5262 +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
5264 +// Definitions for gpio-poweroff module
5269 + compatible = "brcm,bcm2708";
5272 + target-path = "/";
5274 + power_ctrl: power_ctrl {
5275 + compatible = "gpio-poweroff";
5276 + gpios = <&gpio 26 0>;
5285 + power_ctrl_pins: power_ctrl_pins {
5287 + brcm,function = <1>; // out
5293 + gpiopin = <&power_ctrl>,"gpios:4",
5294 + <&power_ctrl_pins>,"brcm,pins:0";
5295 + active_low = <&power_ctrl>,"gpios:8";
5299 +++ b/arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts
5301 +// Definitions for gpio-poweroff module
5305 +// This overlay sets up an input device that generates KEY_POWER events
5306 +// when a given GPIO pin changes. It defaults to using GPIO3, which can
5307 +// also be used to wake up (start) the Rpi again after shutdown. Since
5308 +// wakeup is active-low, this defaults to active-low with a pullup
5309 +// enabled, but all of this can be changed using overlay parameters (but
5310 +// note that GPIO3 has an external pullup on at least some boards).
5313 + compatible = "brcm,bcm2708";
5316 + // Configure the gpio pin controller
5319 + // Define a pinctrl state, that sets up the gpio
5320 + // as an input with a pullup enabled. This does
5321 + // not take effect by itself, only when referenced
5322 + // by a "pinctrl client", as is done below. See:
5323 + // https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
5324 + // https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt
5325 + pin_state: shutdown_button_pins {
5326 + brcm,pins = <3>; // gpio number
5327 + brcm,function = <0>; // 0 = input, 1 = output
5328 + brcm,pull = <2>; // 0 = none, 1 = pull down, 2 = pull up
5333 + // Add a new device to the /soc devicetree node
5334 + target-path = "/soc";
5337 + // Let the gpio-keys driver handle this device. See:
5338 + // https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt
5339 + compatible = "gpio-keys";
5341 + // Declare a single pinctrl state (referencing the one declared above) and name it
5342 + // default, so it is activated automatically.
5343 + pinctrl-names = "default";
5344 + pinctrl-0 = <&pin_state>;
5346 + // Enable this device
5349 + // Define a single key, called "shutdown" that monitors the gpio and sends KEY_POWER
5350 + // (keycode 116, see
5351 + // https://github.com/torvalds/linux/blob/v4.12/include/uapi/linux/input-event-codes.h#L190)
5352 + button: shutdown {
5353 + label = "shutdown";
5354 + linux,code = <116>; // KEY_POWER
5355 + gpios = <&gpio 3 1>;
5361 + // This defines parameters that can be specified when loading
5362 + // the overlay. Each foo = line specifies one parameter, named
5363 + // foo. The rest of the specification gives properties where the
5364 + // parameter value is inserted into (changing the values above
5365 + // or adding new ones).
5367 + // Allow overriding the GPIO number.
5368 + gpio_pin = <&button>,"gpios:4",
5369 + <&pin_state>,"brcm,pins:0";
5371 + // Allow changing the internal pullup/down state. 0 = none, 1 = pulldown, 2 = pullup
5372 + // Note that GPIO3 and GPIO2 are the I2c pins and have an external pullup (at least
5373 + // on some boards).
5374 + gpio_pull = <&pin_state>,"brcm,pull:0";
5376 + // Allow setting the active_low flag. 0 = active high, 1 = active low
5377 + active_low = <&button>,"gpios:8";
5382 +++ b/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
5384 +// Definitions for HiFiBerry Amp/Amp+
5389 + compatible = "brcm,bcm2708";
5401 + #address-cells = <1>;
5402 + #size-cells = <0>;
5406 + #sound-dai-cells = <0>;
5407 + compatible = "ti,tas5713";
5415 + target = <&sound>;
5417 + compatible = "hifiberry,hifiberry-amp";
5418 + i2s-controller = <&i2s>;
5424 +++ b/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
5426 +// Definitions for HiFiBerry DAC
5431 + compatible = "brcm,bcm2708";
5441 + target-path = "/";
5444 + #sound-dai-cells = <0>;
5445 + compatible = "ti,pcm5102a";
5452 + target = <&sound>;
5454 + compatible = "hifiberry,hifiberry-dac";
5455 + i2s-controller = <&i2s>;
5461 +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
5463 +// Definitions for HiFiBerry DAC+
5468 + compatible = "brcm,bcm2708";
5471 + target-path = "/clocks";
5473 + dacpro_osc: dacpro_osc {
5474 + compatible = "hifiberry,dacpro-clk";
5475 + #clock-cells = <0>;
5490 + #address-cells = <1>;
5491 + #size-cells = <0>;
5495 + #sound-dai-cells = <0>;
5496 + compatible = "ti,pcm5122";
5498 + clocks = <&dacpro_osc>;
5499 + AVDD-supply = <&vdd_3v3_reg>;
5500 + DVDD-supply = <&vdd_3v3_reg>;
5501 + CPVDD-supply = <&vdd_3v3_reg>;
5508 + target = <&sound>;
5509 + hifiberry_dacplus: __overlay__ {
5510 + compatible = "hifiberry,hifiberry-dacplus";
5511 + i2s-controller = <&i2s>;
5517 + 24db_digital_gain =
5518 + <&hifiberry_dacplus>,"hifiberry,24db_digital_gain?";
5519 + slave = <&hifiberry_dacplus>,"hifiberry-dacplus,slave?";
5523 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
5525 +// Definitions for HiFiBerry Digi
5530 + compatible = "brcm,bcm2708";
5542 + #address-cells = <1>;
5543 + #size-cells = <0>;
5547 + #sound-dai-cells = <0>;
5548 + compatible = "wlf,wm8804";
5550 + PVDD-supply = <&vdd_3v3_reg>;
5551 + DVDD-supply = <&vdd_3v3_reg>;
5558 + target = <&sound>;
5560 + compatible = "hifiberry,hifiberry-digi";
5561 + i2s-controller = <&i2s>;
5567 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
5569 +// Definitions for HiFiBerry Digi Pro
5574 + compatible = "brcm,bcm2708";
5586 + #address-cells = <1>;
5587 + #size-cells = <0>;
5591 + #sound-dai-cells = <0>;
5592 + compatible = "wlf,wm8804";
5594 + PVDD-supply = <&vdd_3v3_reg>;
5595 + DVDD-supply = <&vdd_3v3_reg>;
5602 + target = <&sound>;
5604 + compatible = "hifiberry,hifiberry-digi";
5605 + i2s-controller = <&i2s>;
5607 + clock44-gpio = <&gpio 5 0>;
5608 + clock48-gpio = <&gpio 6 0>;
5613 +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
5616 + * Device Tree overlay for HY28A display
5624 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
5634 + target = <&spidev0>;
5636 + status = "disabled";
5641 + target = <&spidev1>;
5643 + status = "disabled";
5650 + hy28a_pins: hy28a_pins {
5651 + brcm,pins = <17 25 18>;
5652 + brcm,function = <0 1 1>; /* in out out */
5660 + /* needed to avoid dtc warning */
5661 + #address-cells = <1>;
5662 + #size-cells = <0>;
5665 + compatible = "ilitek,ili9320";
5667 + pinctrl-names = "default";
5668 + pinctrl-0 = <&hy28a_pins>;
5670 + spi-max-frequency = <32000000>;
5677 + startbyte = <0x70>;
5678 + reset-gpios = <&gpio 25 0>;
5679 + led-gpios = <&gpio 18 1>;
5683 + hy28a_ts: hy28a-ts@1 {
5684 + compatible = "ti,ads7846";
5687 + spi-max-frequency = <2000000>;
5688 + interrupts = <17 2>; /* high-to-low edge triggered */
5689 + interrupt-parent = <&gpio>;
5690 + pendown-gpio = <&gpio 17 0>;
5691 + ti,x-plate-ohms = /bits/ 16 <100>;
5692 + ti,pressure-max = /bits/ 16 <255>;
5697 + speed = <&hy28a>,"spi-max-frequency:0";
5698 + rotate = <&hy28a>,"rotate:0";
5699 + fps = <&hy28a>,"fps:0";
5700 + debug = <&hy28a>,"debug:0";
5701 + xohms = <&hy28a_ts>,"ti,x-plate-ohms;0";
5702 + resetgpio = <&hy28a>,"reset-gpios:4",
5703 + <&hy28a_pins>, "brcm,pins:1";
5704 + ledgpio = <&hy28a>,"led-gpios:4",
5705 + <&hy28a_pins>, "brcm,pins:2";
5709 +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
5712 + * Device Tree overlay for HY28b display shield by Texy
5720 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
5730 + target = <&spidev0>;
5732 + status = "disabled";
5737 + target = <&spidev1>;
5739 + status = "disabled";
5746 + hy28b_pins: hy28b_pins {
5747 + brcm,pins = <17 25 18>;
5748 + brcm,function = <0 1 1>; /* in out out */
5756 + /* needed to avoid dtc warning */
5757 + #address-cells = <1>;
5758 + #size-cells = <0>;
5761 + compatible = "ilitek,ili9325";
5763 + pinctrl-names = "default";
5764 + pinctrl-0 = <&hy28b_pins>;
5766 + spi-max-frequency = <48000000>;
5773 + startbyte = <0x70>;
5774 + reset-gpios = <&gpio 25 0>;
5775 + led-gpios = <&gpio 18 1>;
5777 + gamma = "04 1F 4 7 7 0 7 7 6 0\n0F 00 1 7 4 0 0 0 6 7";
5779 + init = <0x10000e7 0x0010
5834 + hy28b_ts: hy28b-ts@1 {
5835 + compatible = "ti,ads7846";
5838 + spi-max-frequency = <2000000>;
5839 + interrupts = <17 2>; /* high-to-low edge triggered */
5840 + interrupt-parent = <&gpio>;
5841 + pendown-gpio = <&gpio 17 0>;
5842 + ti,x-plate-ohms = /bits/ 16 <100>;
5843 + ti,pressure-max = /bits/ 16 <255>;
5848 + speed = <&hy28b>,"spi-max-frequency:0";
5849 + rotate = <&hy28b>,"rotate:0";
5850 + fps = <&hy28b>,"fps:0";
5851 + debug = <&hy28b>,"debug:0";
5852 + xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
5853 + resetgpio = <&hy28b>,"reset-gpios:4",
5854 + <&hy28b_pins>, "brcm,pins:1";
5855 + ledgpio = <&hy28b>,"led-gpios:4",
5856 + <&hy28b_pins>, "brcm,pins:2";
5860 +++ b/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
5866 + compatible = "brcm,bcm2708";
5869 + target = <&i2c_arm>;
5871 + compatible = "brcm,bcm2708-i2c";
5876 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
5878 +// Overlay for i2c_gpio bitbanging host bus.
5883 + compatible = "brcm,bcm2708";
5886 + target-path = "/";
5889 + compatible = "i2c-gpio";
5890 + gpios = <&gpio 23 0 /* sda */
5891 + &gpio 24 0 /* scl */
5893 + i2c-gpio,delay-us = <2>; /* ~100 kHz */
5894 + #address-cells = <1>;
5895 + #size-cells = <0>;
5901 + target-path = "/aliases";
5903 + i2c_gpio = "/i2c@0";
5908 + target-path = "/__symbols__";
5910 + i2c_gpio = "/i2c@0";
5915 + i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
5916 + i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
5917 + i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
5922 +++ b/arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
5924 +// Umbrella I2C Mux overlay
5930 + compatible = "brcm,bcm2708";
5933 + target = <&i2c_arm>;
5935 + #address-cells = <1>;
5936 + #size-cells = <0>;
5940 + compatible = "nxp,pca9542";
5942 + #address-cells = <1>;
5943 + #size-cells = <0>;
5946 + #address-cells = <1>;
5947 + #size-cells = <0>;
5951 + #address-cells = <1>;
5952 + #size-cells = <0>;
5960 + target = <&i2c_arm>;
5962 + #address-cells = <1>;
5963 + #size-cells = <0>;
5967 + compatible = "nxp,pca9545";
5969 + #address-cells = <1>;
5970 + #size-cells = <0>;
5973 + #address-cells = <1>;
5974 + #size-cells = <0>;
5978 + #address-cells = <1>;
5979 + #size-cells = <0>;
5983 + #address-cells = <1>;
5984 + #size-cells = <0>;
5988 + #address-cells = <1>;
5989 + #size-cells = <0>;
5997 + target = <&i2c_arm>;
5999 + #address-cells = <1>;
6000 + #size-cells = <0>;
6004 + compatible = "nxp,pca9548";
6006 + #address-cells = <1>;
6007 + #size-cells = <0>;
6010 + #address-cells = <1>;
6011 + #size-cells = <0>;
6015 + #address-cells = <1>;
6016 + #size-cells = <0>;
6020 + #address-cells = <1>;
6021 + #size-cells = <0>;
6025 + #address-cells = <1>;
6026 + #size-cells = <0>;
6030 + #address-cells = <1>;
6031 + #size-cells = <0>;
6035 + #address-cells = <1>;
6036 + #size-cells = <0>;
6040 + #address-cells = <1>;
6041 + #size-cells = <0>;
6045 + #address-cells = <1>;
6046 + #size-cells = <0>;
6054 + pca9542 = <0>, "+0";
6055 + pca9545 = <0>, "+1";
6056 + pca9548 = <0>, "+2";
6058 + addr = <&pca9542>,"reg:0",
6059 + <&pca9545>,"reg:0",
6060 + <&pca9548>,"reg:0";
6064 +++ b/arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
6066 +// Definitions for NXP PCA9685A I2C PWM controller on ARM I2C bus.
6071 + compatible = "brcm,bcm2708";
6074 + target = <&i2c_arm>;
6076 + #address-cells = <1>;
6077 + #size-cells = <0>;
6081 + compatible = "nxp,pca9685";
6089 + addr = <&pca>,"reg:0";
6093 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
6095 +// Definitions for several I2C based Real Time Clocks
6096 +// Available through i2c-gpio
6101 + compatible = "brcm,bcm2708";
6104 + target-path = "/";
6106 + i2c_gpio: i2c-gpio-rtc@0 {
6107 + compatible = "i2c-gpio";
6108 + gpios = <&gpio 23 0 /* sda */
6109 + &gpio 24 0 /* scl */
6111 + i2c-gpio,delay-us = <2>; /* ~100 kHz */
6112 + #address-cells = <1>;
6113 + #size-cells = <0>;
6119 + target = <&i2c_gpio>;
6121 + #address-cells = <1>;
6122 + #size-cells = <0>;
6125 + abx80x: abx80x@69 {
6126 + compatible = "abracon,abx80x";
6128 + abracon,tc-diode = "standard";
6129 + abracon,tc-resistor = <0>;
6136 + target = <&i2c_gpio>;
6138 + #address-cells = <1>;
6139 + #size-cells = <0>;
6142 + ds1307: ds1307@68 {
6143 + compatible = "maxim,ds1307";
6151 + target = <&i2c_gpio>;
6153 + #address-cells = <1>;
6154 + #size-cells = <0>;
6157 + ds1339: ds1339@68 {
6158 + compatible = "dallas,ds1339";
6159 + trickle-resistor-ohms = <0>;
6167 + target = <&i2c_gpio>;
6169 + #address-cells = <1>;
6170 + #size-cells = <0>;
6173 + ds3231: ds3231@68 {
6174 + compatible = "maxim,ds3231";
6182 + target = <&i2c_gpio>;
6184 + #address-cells = <1>;
6185 + #size-cells = <0>;
6188 + mcp7940x: mcp7940x@6f {
6189 + compatible = "microchip,mcp7940x";
6197 + target = <&i2c_gpio>;
6199 + #address-cells = <1>;
6200 + #size-cells = <0>;
6203 + mcp7941x: mcp7941x@6f {
6204 + compatible = "microchip,mcp7941x";
6212 + target = <&i2c_gpio>;
6214 + #address-cells = <1>;
6215 + #size-cells = <0>;
6218 + pcf2127: pcf2127@51 {
6219 + compatible = "nxp,pcf2127";
6227 + target = <&i2c_gpio>;
6229 + #address-cells = <1>;
6230 + #size-cells = <0>;
6233 + pcf8523: pcf8523@68 {
6234 + compatible = "nxp,pcf8523";
6242 + target = <&i2c_gpio>;
6244 + #address-cells = <1>;
6245 + #size-cells = <0>;
6248 + pcf8563: pcf8563@51 {
6249 + compatible = "nxp,pcf8563";
6257 + abx80x = <0>,"+1";
6258 + ds1307 = <0>,"+2";
6259 + ds1339 = <0>,"+3";
6260 + ds3231 = <0>,"+4";
6261 + mcp7940x = <0>,"+5";
6262 + mcp7941x = <0>,"+6";
6263 + pcf2127 = <0>,"+7";
6264 + pcf8523 = <0>,"+8";
6265 + pcf8563 = <0>,"+9";
6266 + trickle-diode-type = <&abx80x>,"abracon,tc-diode";
6267 + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
6268 + <&abx80x>,"abracon,tc-resistor";
6269 + wakeup-source = <&ds1339>,"wakeup-source?",
6270 + <&ds3231>,"wakeup-source?",
6271 + <&mcp7940x>,"wakeup-source?",
6272 + <&mcp7941x>,"wakeup-source?";
6273 + i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
6274 + i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
6275 + i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
6279 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
6281 +// Definitions for several I2C based Real Time Clocks
6286 + compatible = "brcm,bcm2708";
6289 + target = <&i2c_arm>;
6291 + #address-cells = <1>;
6292 + #size-cells = <0>;
6295 + abx80x: abx80x@69 {
6296 + compatible = "abracon,abx80x";
6298 + abracon,tc-diode = "standard";
6299 + abracon,tc-resistor = <0>;
6306 + target = <&i2c_arm>;
6308 + #address-cells = <1>;
6309 + #size-cells = <0>;
6312 + ds1307: ds1307@68 {
6313 + compatible = "maxim,ds1307";
6321 + target = <&i2c_arm>;
6323 + #address-cells = <1>;
6324 + #size-cells = <0>;
6327 + ds1339: ds1339@68 {
6328 + compatible = "dallas,ds1339";
6329 + trickle-resistor-ohms = <0>;
6337 + target = <&i2c_arm>;
6339 + #address-cells = <1>;
6340 + #size-cells = <0>;
6343 + ds3231: ds3231@68 {
6344 + compatible = "maxim,ds3231";
6352 + target = <&i2c_arm>;
6354 + #address-cells = <1>;
6355 + #size-cells = <0>;
6358 + mcp7940x: mcp7940x@6f {
6359 + compatible = "microchip,mcp7940x";
6367 + target = <&i2c_arm>;
6369 + #address-cells = <1>;
6370 + #size-cells = <0>;
6373 + mcp7941x: mcp7941x@6f {
6374 + compatible = "microchip,mcp7941x";
6382 + target = <&i2c_arm>;
6384 + #address-cells = <1>;
6385 + #size-cells = <0>;
6388 + pcf2127: pcf2127@51 {
6389 + compatible = "nxp,pcf2127";
6397 + target = <&i2c_arm>;
6399 + #address-cells = <1>;
6400 + #size-cells = <0>;
6403 + pcf8523: pcf8523@68 {
6404 + compatible = "nxp,pcf8523";
6412 + target = <&i2c_arm>;
6414 + #address-cells = <1>;
6415 + #size-cells = <0>;
6418 + pcf8563: pcf8563@51 {
6419 + compatible = "nxp,pcf8563";
6427 + target = <&i2c_arm>;
6429 + #address-cells = <1>;
6430 + #size-cells = <0>;
6433 + m41t62: m41t62@68 {
6434 + compatible = "st,m41t62";
6442 + abx80x = <0>,"+0";
6443 + ds1307 = <0>,"+1";
6444 + ds1339 = <0>,"+2";
6445 + ds3231 = <0>,"+3";
6446 + mcp7940x = <0>,"+4";
6447 + mcp7941x = <0>,"+5";
6448 + pcf2127 = <0>,"+6";
6449 + pcf8523 = <0>,"+7";
6450 + pcf8563 = <0>,"+8";
6451 + m41t62 = <0>,"+9";
6452 + trickle-diode-type = <&abx80x>,"abracon,tc-diode";
6453 + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
6454 + <&abx80x>,"abracon,tc-resistor";
6455 + wakeup-source = <&ds1339>,"wakeup-source?",
6456 + <&ds3231>,"wakeup-source?",
6457 + <&mcp7940x>,"wakeup-source?",
6458 + <&mcp7941x>,"wakeup-source?",
6459 + <&m41t62>,"wakeup-source?";
6463 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
6465 +// Definitions for I2C based sensors using the Industrial IO or HWMON interface.
6470 + compatible = "brcm,bcm2708";
6473 + target = <&i2c_arm>;
6475 + #address-cells = <1>;
6476 + #size-cells = <0>;
6479 + bme280: bme280@76 {
6480 + compatible = "bosch,bme280";
6488 + target = <&i2c_arm>;
6490 + #address-cells = <1>;
6491 + #size-cells = <0>;
6494 + bmp085: bmp085@77 {
6495 + compatible = "bosch,bmp085";
6497 + default-oversampling = <3>;
6504 + target = <&i2c_arm>;
6506 + #address-cells = <1>;
6507 + #size-cells = <0>;
6510 + bmp180: bmp180@77 {
6511 + compatible = "bosch,bmp180";
6519 + target = <&i2c_arm>;
6521 + #address-cells = <1>;
6522 + #size-cells = <0>;
6525 + bmp280: bmp280@76 {
6526 + compatible = "bosch,bmp280";
6534 + target = <&i2c_arm>;
6536 + #address-cells = <1>;
6537 + #size-cells = <0>;
6541 + compatible = "htu21";
6549 + target = <&i2c_arm>;
6551 + #address-cells = <1>;
6552 + #size-cells = <0>;
6556 + compatible = "lm75";
6564 + target = <&i2c_arm>;
6566 + #address-cells = <1>;
6567 + #size-cells = <0>;
6570 + si7020: si7020@40 {
6571 + compatible = "si7020";
6579 + target = <&i2c_arm>;
6581 + #address-cells = <1>;
6582 + #size-cells = <0>;
6585 + tmp102: tmp102@48 {
6586 + compatible = "ti,tmp102";
6594 + target = <&i2c_arm>;
6596 + #address-cells = <1>;
6597 + #size-cells = <0>;
6600 + hdc100x: hdc100x@40 {
6601 + compatible = "hdc100x";
6609 + target = <&i2c_arm>;
6611 + #address-cells = <1>;
6612 + #size-cells = <0>;
6615 + tsl4531: tsl4531@29 {
6616 + compatible = "tsl4531";
6624 + target = <&i2c_arm>;
6626 + #address-cells = <1>;
6627 + #size-cells = <0>;
6630 + veml6070: veml6070@38 {
6631 + compatible = "veml6070";
6639 + target = <&i2c_arm>;
6641 + #address-cells = <1>;
6642 + #size-cells = <0>;
6646 + compatible = "sht3x";
6654 + addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
6655 + <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0";
6656 + bme280 = <0>,"+0";
6657 + bmp085 = <0>,"+1";
6658 + bmp180 = <0>,"+2";
6659 + bmp280 = <0>,"+3";
6662 + lm75addr = <&lm75>,"reg:0";
6663 + si7020 = <0>,"+6";
6664 + tmp102 = <0>,"+7";
6665 + hdc100x = <0>,"+8";
6666 + tsl4531 = <0>,"+9";
6667 + veml6070 = <0>,"+10";
6668 + sht3x = <0>,"+11";
6672 +++ b/arch/arm/boot/dts/overlays/i2c0-bcm2708-overlay.dts
6675 + * Device tree overlay for i2c_bcm2708, i2c0 bus
6678 + * dtc -@ -I dts -O dtb -o i2c0-bcm2708-overlay.dtb i2c0-bcm2708-overlay.dts
6685 + compatible = "brcm,bcm2708";
6695 + target = <&i2c0_pins>;
6696 + frag1: __overlay__ {
6697 + brcm,pins = <0 1>;
6698 + brcm,function = <4>; /* alt0 */
6703 + target = <&i2c0_pins>;
6705 + brcm,pins = <28 29>;
6706 + brcm,function = <4>; /* alt0 */
6711 + target = <&i2c0_pins>;
6713 + brcm,pins = <44 45>;
6714 + brcm,function = <5>; /* alt1 */
6719 + target = <&i2c0_pins>;
6721 + brcm,pins = <46 47>;
6722 + brcm,function = <4>; /* alt0 */
6727 + sda0_pin = <&frag1>,"brcm,pins:0";
6728 + scl0_pin = <&frag1>,"brcm,pins:4";
6729 + pins_0_1 = <0>,"+1-2-3-4";
6730 + pins_28_29 = <0>,"-1+2-3-4";
6731 + pins_44_45 = <0>,"-1-2+3-4";
6732 + pins_46_47 = <0>,"-1-2-3+4";
6736 +++ b/arch/arm/boot/dts/overlays/i2c1-bcm2708-overlay.dts
6739 + * Device tree overlay for i2c_bcm2708, i2c1 bus
6742 + * dtc -@ -I dts -O dtb -o i2c1-bcm2708-overlay.dtb i2c1-bcm2708-overlay.dts
6749 + compatible = "brcm,bcm2708";
6754 + pinctrl-0 = <&i2c1_pins>;
6760 + target = <&i2c1_pins>;
6761 + pins: __overlay__ {
6762 + brcm,pins = <2 3>;
6763 + brcm,function = <4>; /* alt 0 */
6767 + sda1_pin = <&pins>,"brcm,pins:0";
6768 + scl1_pin = <&pins>,"brcm,pins:4";
6769 + pin_func = <&pins>,"brcm,function:0";
6773 +++ b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
6776 + * Device tree overlay to move i2s to gpio 28 to 31 on CM
6783 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
6786 + target = <&i2s_pins>;
6788 + brcm,pins = <28 29 30 31>;
6789 + brcm,function = <6>; /* alt2 */
6794 +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
6796 +// Definitions for IQaudIO DAC
6801 + compatible = "brcm,bcm2708";
6813 + #address-cells = <1>;
6814 + #size-cells = <0>;
6818 + #sound-dai-cells = <0>;
6819 + compatible = "ti,pcm5122";
6821 + AVDD-supply = <&vdd_3v3_reg>;
6822 + DVDD-supply = <&vdd_3v3_reg>;
6823 + CPVDD-supply = <&vdd_3v3_reg>;
6830 + target = <&sound>;
6831 + frag2: __overlay__ {
6832 + compatible = "iqaudio,iqaudio-dac";
6833 + i2s-controller = <&i2s>;
6839 + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
6843 +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
6845 +// Definitions for IQaudIO DAC+
6850 + compatible = "brcm,bcm2708";
6862 + #address-cells = <1>;
6863 + #size-cells = <0>;
6867 + #sound-dai-cells = <0>;
6868 + compatible = "ti,pcm5122";
6870 + AVDD-supply = <&vdd_3v3_reg>;
6871 + DVDD-supply = <&vdd_3v3_reg>;
6872 + CPVDD-supply = <&vdd_3v3_reg>;
6879 + target = <&sound>;
6880 + iqaudio_dac: __overlay__ {
6881 + compatible = "iqaudio,iqaudio-dac";
6882 + i2s-controller = <&i2s>;
6883 + mute-gpios = <&gpio 22 0>;
6889 + 24db_digital_gain = <&iqaudio_dac>,"iqaudio,24db_digital_gain?";
6890 + auto_mute_amp = <&iqaudio_dac>,"iqaudio-dac,auto-mute-amp?";
6891 + unmute_amp = <&iqaudio_dac>,"iqaudio-dac,unmute-amp?";
6895 +++ b/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
6897 +// Definitions for IQAudIO Digi WM8804 audio board
6902 + compatible = "brcm,bcm2708";
6914 + #address-cells = <1>;
6915 + #size-cells = <0>;
6919 + #sound-dai-cells = <0>;
6920 + compatible = "wlf,wm8804";
6923 + DVDD-supply = <&vdd_3v3_reg>;
6924 + PVDD-supply = <&vdd_3v3_reg>;
6930 + target = <&sound>;
6931 + wm8804_digi: __overlay__ {
6932 + compatible = "iqaudio,wm8804-digi";
6933 + i2s-controller = <&i2s>;
6939 + card_name = <&wm8804_digi>,"wm8804-digi,card-name";
6940 + dai_name = <&wm8804_digi>,"wm8804-digi,dai-name";
6941 + dai_stream_name = <&wm8804_digi>,"wm8804-digi,dai-stream-name";
6945 +++ b/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
6947 +// Definitions for JustBoom DAC
6952 + compatible = "brcm,bcm2708";
6964 + #address-cells = <1>;
6965 + #size-cells = <0>;
6969 + #sound-dai-cells = <0>;
6970 + compatible = "ti,pcm5122";
6972 + AVDD-supply = <&vdd_3v3_reg>;
6973 + DVDD-supply = <&vdd_3v3_reg>;
6974 + CPVDD-supply = <&vdd_3v3_reg>;
6981 + target = <&sound>;
6982 + frag2: __overlay__ {
6983 + compatible = "justboom,justboom-dac";
6984 + i2s-controller = <&i2s>;
6990 + 24db_digital_gain = <&frag2>,"justboom,24db_digital_gain?";
6994 +++ b/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
6996 +// Definitions for JustBoom Digi
7001 + compatible = "brcm,bcm2708";
7013 + #address-cells = <1>;
7014 + #size-cells = <0>;
7018 + #sound-dai-cells = <0>;
7019 + compatible = "wlf,wm8804";
7021 + PVDD-supply = <&vdd_3v3_reg>;
7022 + DVDD-supply = <&vdd_3v3_reg>;
7029 + target = <&sound>;
7031 + compatible = "justboom,justboom-digi";
7032 + i2s-controller = <&i2s>;
7038 +++ b/arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
7040 +// Definitions for lirc-rpi module
7045 + compatible = "brcm,bcm2708";
7048 + target-path = "/";
7050 + lirc_rpi: lirc_rpi {
7051 + compatible = "rpi,lirc-rpi";
7052 + pinctrl-names = "default";
7053 + pinctrl-0 = <&lirc_pins>;
7056 + // Override autodetection of IR receiver circuit
7057 + // (0 = active high, 1 = active low, -1 = no override )
7058 + rpi,sense = <0xffffffff>;
7060 + // Software carrier
7061 + // (0 = off, 1 = on)
7062 + rpi,softcarrier = <1>;
7065 + // (0 = off, 1 = on)
7068 + // Enable debugging messages
7069 + // (0 = off, 1 = on)
7078 + lirc_pins: lirc_pins {
7079 + brcm,pins = <17 18>;
7080 + brcm,function = <1 0>; // out in
7081 + brcm,pull = <0 1>; // off down
7087 + gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
7088 + gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
7089 + gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
7091 + sense = <&lirc_rpi>,"rpi,sense:0";
7092 + softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
7093 + invert = <&lirc_rpi>,"rpi,invert:0";
7094 + debug = <&lirc_rpi>,"rpi,debug:0";
7098 +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
7100 +// Definitions for MCP23017 Gpio Extender from Microchip Semiconductor
7106 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7118 + mcp23017_pins: mcp23017_pins {
7120 + brcm,function = <0>;
7128 + #address-cells = <1>;
7129 + #size-cells = <0>;
7131 + mcp23017: mcp@20 {
7132 + compatible = "microchip,mcp23017";
7135 + #gpio-cells = <2>;
7136 + #interrupt-cells=<2>;
7137 + interrupt-parent = <&gpio>;
7138 + interrupts = <4 2>;
7139 + interrupt-controller;
7140 + microchip,irq-mirror;
7148 + gpiopin = <&mcp23017_pins>,"brcm,pins:0",
7149 + <&mcp23017>,"interrupts:0";
7150 + addr = <&mcp23017>,"reg:0";
7155 +++ b/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
7157 +// Overlay for MCP23S08/17 GPIO Extenders from Microchip Semiconductor
7160 +// s08-spi<n>-<m>-present - 4-bit integer, bitmap indicating MCP23S08 devices present on SPI<n>, CS#<m>.
7161 +// s17-spi<n>-<m>-present - 8-bit integer, bitmap indicating MCP23S17 devices present on SPI<n>, CS#<m>.
7162 +// s08-spi<n>-<m>-int-gpio - integer, enables interrupts on a single MCP23S08 device on SPI<n>, CS#<m>, specifies the GPIO pin to which INT output is connected.
7163 +// s17-spi<n>-<m>-int-gpio - integer, enables mirrored interrupts on a single MCP23S17 device on SPI<n>, CS#<m>, specifies the GPIO pin to which either INTA or INTB output is connected.
7165 +// If devices are present on SPI1 or SPI2, those interfaces must be enabled with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
7166 +// If interrupts are enabled for a device on a given CS# on a SPI bus, that device must be the only one present on that SPI bus/CS#.
7168 +// Example 1: A single MCP23S17 device on SPI0, CS#0 with its SPI addr set to 0 and INTA output connected to GPIO25:
7169 +// dtoverlay=mcp23s17:s17-spi0-0-present=1,s17-spi0-0-int-gpio=25
7171 +// Example 2: Two MCP23S08 devices on SPI1, CS#0 with their addrs set to 2 and 3. Three MCP23S17 devices on SPI1, CS#1 with their addrs set to 0, 1 and 7:
7172 +// dtoverlay=spi1-2cs
7173 +// dtoverlay=mcp23s17:s08-spi1-0-present=12,s17-spi1-1-present=131
7179 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7181 + // disable spi-dev on spi0.0
7183 + target = <&spidev0>;
7185 + status = "disabled";
7189 + // disable spi-dev on spi0.1
7191 + target = <&spidev1>;
7193 + status = "disabled";
7197 + // disable spi-dev on spi1.0
7199 + target-path = "spi1/spidev@0";
7201 + status = "disabled";
7205 + // disable spi-dev on spi1.1
7207 + target-path = "spi1/spidev@1";
7209 + status = "disabled";
7213 + // disable spi-dev on spi1.2
7215 + target-path = "spi1/spidev@2";
7217 + status = "disabled";
7221 + // disable spi-dev on spi2.0
7223 + target-path = "spi2/spidev@0";
7225 + status = "disabled";
7229 + // disable spi-dev on spi2.1
7231 + target-path = "spi2/spidev@1";
7233 + status = "disabled";
7237 + // disable spi-dev on spi2.2
7239 + target-path = "spi2/spidev@2";
7241 + status = "disabled";
7245 + // enable one or more mcp23s08s on spi0.0
7250 + #address-cells = <1>;
7251 + #size-cells = <0>;
7252 + mcp23s08_00: mcp23s08@0 {
7253 + compatible = "microchip,mcp23s08";
7255 + #gpio-cells = <2>;
7256 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-0-present parameter */
7258 + spi-max-frequency = <500000>;
7260 + #interrupt-cells=<2>;
7261 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-0-int-gpio parameter */
7266 + // enable one or more mcp23s08s on spi0.1
7271 + #address-cells = <1>;
7272 + #size-cells = <0>;
7273 + mcp23s08_01: mcp23s08@1 {
7274 + compatible = "microchip,mcp23s08";
7276 + #gpio-cells = <2>;
7277 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-1-present parameter */
7279 + spi-max-frequency = <500000>;
7281 + #interrupt-cells=<2>;
7282 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-1-int-gpio parameter */
7287 + // enable one or more mcp23s08s on spi1.0
7292 + #address-cells = <1>;
7293 + #size-cells = <0>;
7294 + mcp23s08_10: mcp23s08@0 {
7295 + compatible = "microchip,mcp23s08";
7297 + #gpio-cells = <2>;
7298 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-0-present parameter */
7300 + spi-max-frequency = <500000>;
7302 + #interrupt-cells=<2>;
7303 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-0-int-gpio parameter */
7308 + // enable one or more mcp23s08s on spi1.1
7313 + #address-cells = <1>;
7314 + #size-cells = <0>;
7315 + mcp23s08_11: mcp23s08@1 {
7316 + compatible = "microchip,mcp23s08";
7318 + #gpio-cells = <2>;
7319 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-1-present parameter */
7321 + spi-max-frequency = <500000>;
7323 + #interrupt-cells=<2>;
7324 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-1-int-gpio parameter */
7329 + // enable one or more mcp23s08s on spi1.2
7334 + #address-cells = <1>;
7335 + #size-cells = <0>;
7336 + mcp23s08_12: mcp23s08@2 {
7337 + compatible = "microchip,mcp23s08";
7339 + #gpio-cells = <2>;
7340 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-2-present parameter */
7342 + spi-max-frequency = <500000>;
7344 + #interrupt-cells=<2>;
7345 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-2-int-gpio parameter */
7350 + // enable one or more mcp23s08s on spi2.0
7355 + #address-cells = <1>;
7356 + #size-cells = <0>;
7357 + mcp23s08_20: mcp23s08@0 {
7358 + compatible = "microchip,mcp23s08";
7360 + #gpio-cells = <2>;
7361 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-0-present parameter */
7363 + spi-max-frequency = <500000>;
7365 + #interrupt-cells=<2>;
7366 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-0-int-gpio parameter */
7371 + // enable one or more mcp23s08s on spi2.1
7376 + #address-cells = <1>;
7377 + #size-cells = <0>;
7378 + mcp23s08_21: mcp23s08@1 {
7379 + compatible = "microchip,mcp23s08";
7381 + #gpio-cells = <2>;
7382 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-1-present parameter */
7384 + spi-max-frequency = <500000>;
7386 + #interrupt-cells=<2>;
7387 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-1-int-gpio parameter */
7392 + // enable one or more mcp23s08s on spi2.2
7397 + #address-cells = <1>;
7398 + #size-cells = <0>;
7399 + mcp23s08_22: mcp23s08@2 {
7400 + compatible = "microchip,mcp23s08";
7402 + #gpio-cells = <2>;
7403 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-2-present parameter */
7405 + spi-max-frequency = <500000>;
7407 + #interrupt-cells=<2>;
7408 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-2-int-gpio parameter */
7413 + // enable one or more mcp23s17s on spi0.0
7418 + #address-cells = <1>;
7419 + #size-cells = <0>;
7420 + mcp23s17_00: mcp23s17@0 {
7421 + compatible = "microchip,mcp23s17";
7423 + #gpio-cells = <2>;
7424 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-0-present parameter */
7426 + spi-max-frequency = <500000>;
7428 + #interrupt-cells=<2>;
7429 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-0-int-gpio parameter */
7434 + // enable one or more mcp23s17s on spi0.1
7439 + #address-cells = <1>;
7440 + #size-cells = <0>;
7441 + mcp23s17_01: mcp23s17@1 {
7442 + compatible = "microchip,mcp23s17";
7444 + #gpio-cells = <2>;
7445 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-1-present parameter */
7447 + spi-max-frequency = <500000>;
7449 + #interrupt-cells=<2>;
7450 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-1-int-gpio parameter */
7455 + // enable one or more mcp23s17s on spi1.0
7460 + #address-cells = <1>;
7461 + #size-cells = <0>;
7462 + mcp23s17_10: mcp23s17@0 {
7463 + compatible = "microchip,mcp23s17";
7465 + #gpio-cells = <2>;
7466 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-0-present parameter */
7468 + spi-max-frequency = <500000>;
7470 + #interrupt-cells=<2>;
7471 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-0-int-gpio parameter */
7476 + // enable one or more mcp23s17s on spi1.1
7481 + #address-cells = <1>;
7482 + #size-cells = <0>;
7483 + mcp23s17_11: mcp23s17@1 {
7484 + compatible = "microchip,mcp23s17";
7486 + #gpio-cells = <2>;
7487 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-1-present parameter */
7489 + spi-max-frequency = <500000>;
7491 + #interrupt-cells=<2>;
7492 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-1-int-gpio parameter */
7497 + // enable one or more mcp23s17s on spi1.2
7502 + #address-cells = <1>;
7503 + #size-cells = <0>;
7504 + mcp23s17_12: mcp23s17@2 {
7505 + compatible = "microchip,mcp23s17";
7507 + #gpio-cells = <2>;
7508 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-2-present parameter */
7510 + spi-max-frequency = <500000>;
7512 + #interrupt-cells=<2>;
7513 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-2-int-gpio parameter */
7518 + // enable one or more mcp23s17s on spi2.0
7523 + #address-cells = <1>;
7524 + #size-cells = <0>;
7525 + mcp23s17_20: mcp23s17@0 {
7526 + compatible = "microchip,mcp23s17";
7528 + #gpio-cells = <2>;
7529 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-0-present parameter */
7531 + spi-max-frequency = <500000>;
7533 + #interrupt-cells=<2>;
7534 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-0-int-gpio parameter */
7539 + // enable one or more mcp23s17s on spi2.1
7544 + #address-cells = <1>;
7545 + #size-cells = <0>;
7546 + mcp23s17_21: mcp23s17@1 {
7547 + compatible = "microchip,mcp23s17";
7549 + #gpio-cells = <2>;
7550 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-1-present parameter */
7552 + spi-max-frequency = <500000>;
7554 + #interrupt-cells=<2>;
7555 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-1-int-gpio parameter */
7560 + // enable one or more mcp23s17s on spi2.2
7565 + #address-cells = <1>;
7566 + #size-cells = <0>;
7567 + mcp23s17_22: mcp23s17@2 {
7568 + compatible = "microchip,mcp23s17";
7570 + #gpio-cells = <2>;
7571 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-2-present parameter */
7573 + spi-max-frequency = <500000>;
7575 + #interrupt-cells=<2>;
7576 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-2-int-gpio parameter */
7581 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.0 as a input with no pull-up/down
7585 + spi0_0_int_pins: spi0_0_int_pins {
7586 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-0-int-gpio parameter */
7587 + brcm,function = <0>;
7593 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.1 as a input with no pull-up/down
7597 + spi0_1_int_pins: spi0_1_int_pins {
7598 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-1-int-gpio parameter */
7599 + brcm,function = <0>;
7605 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.0 as a input with no pull-up/down
7609 + spi1_0_int_pins: spi1_0_int_pins {
7610 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-0-int-gpio parameter */
7611 + brcm,function = <0>;
7617 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.1 as a input with no pull-up/down
7621 + spi1_1_int_pins: spi1_1_int_pins {
7622 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-1-int-gpio parameter */
7623 + brcm,function = <0>;
7629 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.2 as a input with no pull-up/down
7633 + spi1_2_int_pins: spi1_2_int_pins {
7634 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-2-int-gpio parameter */
7635 + brcm,function = <0>;
7641 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.0 as a input with no pull-up/down
7645 + spi2_0_int_pins: spi2_0_int_pins {
7646 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-0-int-gpio parameter */
7647 + brcm,function = <0>;
7653 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.1 as a input with no pull-up/down
7657 + spi2_1_int_pins: spi2_1_int_pins {
7658 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-1-int-gpio parameter */
7659 + brcm,function = <0>;
7665 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.2 as a input with no pull-up/down
7669 + spi2_2_int_pins: spi2_2_int_pins {
7670 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-2-int-gpio parameter */
7671 + brcm,function = <0>;
7677 + // Enable interrupts for a mcp23s08 on spi0.0.
7678 + // Use default active low interrupt signalling.
7680 + target = <&mcp23s08_00>;
7682 + interrupt-parent = <&gpio>;
7683 + interrupt-controller;
7687 + // Enable interrupts for a mcp23s08 on spi0.1.
7688 + // Use default active low interrupt signalling.
7690 + target = <&mcp23s08_01>;
7692 + interrupt-parent = <&gpio>;
7693 + interrupt-controller;
7697 + // Enable interrupts for a mcp23s08 on spi1.0.
7698 + // Use default active low interrupt signalling.
7700 + target = <&mcp23s08_10>;
7702 + interrupt-parent = <&gpio>;
7703 + interrupt-controller;
7707 + // Enable interrupts for a mcp23s08 on spi1.1.
7708 + // Use default active low interrupt signalling.
7710 + target = <&mcp23s08_11>;
7712 + interrupt-parent = <&gpio>;
7713 + interrupt-controller;
7717 + // Enable interrupts for a mcp23s08 on spi1.2.
7718 + // Use default active low interrupt signalling.
7720 + target = <&mcp23s08_12>;
7722 + interrupt-parent = <&gpio>;
7723 + interrupt-controller;
7727 + // Enable interrupts for a mcp23s08 on spi2.0.
7728 + // Use default active low interrupt signalling.
7730 + target = <&mcp23s08_20>;
7732 + interrupt-parent = <&gpio>;
7733 + interrupt-controller;
7737 + // Enable interrupts for a mcp23s08 on spi2.1.
7738 + // Use default active low interrupt signalling.
7740 + target = <&mcp23s08_21>;
7742 + interrupt-parent = <&gpio>;
7743 + interrupt-controller;
7747 + // Enable interrupts for a mcp23s08 on spi2.2.
7748 + // Use default active low interrupt signalling.
7750 + target = <&mcp23s08_22>;
7752 + interrupt-parent = <&gpio>;
7753 + interrupt-controller;
7757 + // Enable interrupts for a mcp23s17 on spi0.0.
7758 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7759 + // Use default active low interrupt signalling.
7761 + target = <&mcp23s17_00>;
7763 + interrupt-parent = <&gpio>;
7764 + interrupt-controller;
7765 + microchip,irq-mirror;
7769 + // Enable interrupts for a mcp23s17 on spi0.1.
7770 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7771 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7773 + target = <&mcp23s17_01>;
7775 + interrupt-parent = <&gpio>;
7776 + interrupt-controller;
7777 + microchip,irq-mirror;
7781 + // Enable interrupts for a mcp23s17 on spi1.0.
7782 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7783 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7785 + target = <&mcp23s17_10>;
7787 + interrupt-parent = <&gpio>;
7788 + interrupt-controller;
7789 + microchip,irq-mirror;
7793 + // Enable interrupts for a mcp23s17 on spi1.1.
7794 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7795 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7797 + target = <&mcp23s17_11>;
7799 + interrupt-parent = <&gpio>;
7800 + interrupt-controller;
7801 + microchip,irq-mirror;
7805 + // Enable interrupts for a mcp23s17 on spi1.2.
7806 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7807 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7809 + target = <&mcp23s17_12>;
7811 + interrupt-parent = <&gpio>;
7812 + interrupt-controller;
7813 + microchip,irq-mirror;
7817 + // Enable interrupts for a mcp23s17 on spi2.0.
7818 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7819 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7821 + target = <&mcp23s17_20>;
7823 + interrupt-parent = <&gpio>;
7824 + interrupt-controller;
7825 + microchip,irq-mirror;
7829 + // Enable interrupts for a mcp23s17 on spi2.1.
7830 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7831 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7833 + target = <&mcp23s17_21>;
7835 + interrupt-parent = <&gpio>;
7836 + interrupt-controller;
7837 + microchip,irq-mirror;
7841 + // Enable interrupts for a mcp23s17 on spi2.2.
7842 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
7843 + // Configure INTA/B outputs of mcp23s08/17 as active low.
7845 + target = <&mcp23s17_22>;
7847 + interrupt-parent = <&gpio>;
7848 + interrupt-controller;
7849 + microchip,irq-mirror;
7854 + s08-spi0-0-present = <0>,"+0+8", <&mcp23s08_00>,"microchip,spi-present-mask:0";
7855 + s08-spi0-1-present = <0>,"+1+9", <&mcp23s08_01>,"microchip,spi-present-mask:0";
7856 + s08-spi1-0-present = <0>,"+2+10", <&mcp23s08_10>,"microchip,spi-present-mask:0";
7857 + s08-spi1-1-present = <0>,"+3+11", <&mcp23s08_11>,"microchip,spi-present-mask:0";
7858 + s08-spi1-2-present = <0>,"+4+12", <&mcp23s08_12>,"microchip,spi-present-mask:0";
7859 + s08-spi2-0-present = <0>,"+5+13", <&mcp23s08_20>,"microchip,spi-present-mask:0";
7860 + s08-spi2-1-present = <0>,"+6+14", <&mcp23s08_21>,"microchip,spi-present-mask:0";
7861 + s08-spi2-2-present = <0>,"+7+15", <&mcp23s08_22>,"microchip,spi-present-mask:0";
7862 + s17-spi0-0-present = <0>,"+0+16", <&mcp23s17_00>,"microchip,spi-present-mask:0";
7863 + s17-spi0-1-present = <0>,"+1+17", <&mcp23s17_01>,"microchip,spi-present-mask:0";
7864 + s17-spi1-0-present = <0>,"+2+18", <&mcp23s17_10>,"microchip,spi-present-mask:0";
7865 + s17-spi1-1-present = <0>,"+3+19", <&mcp23s17_11>,"microchip,spi-present-mask:0";
7866 + s17-spi1-2-present = <0>,"+4+20", <&mcp23s17_12>,"microchip,spi-present-mask:0";
7867 + s17-spi2-0-present = <0>,"+5+21", <&mcp23s17_20>,"microchip,spi-present-mask:0";
7868 + s17-spi2-1-present = <0>,"+6+22", <&mcp23s17_21>,"microchip,spi-present-mask:0";
7869 + s17-spi2-2-present = <0>,"+7+23", <&mcp23s17_22>,"microchip,spi-present-mask:0";
7870 + s08-spi0-0-int-gpio = <0>,"+24+32", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s08_00>,"interrupts:0";
7871 + s08-spi0-1-int-gpio = <0>,"+25+33", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s08_01>,"interrupts:0";
7872 + s08-spi1-0-int-gpio = <0>,"+26+34", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s08_10>,"interrupts:0";
7873 + s08-spi1-1-int-gpio = <0>,"+27+35", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s08_11>,"interrupts:0";
7874 + s08-spi1-2-int-gpio = <0>,"+28+36", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s08_12>,"interrupts:0";
7875 + s08-spi2-0-int-gpio = <0>,"+29+37", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s08_20>,"interrupts:0";
7876 + s08-spi2-1-int-gpio = <0>,"+30+38", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s08_21>,"interrupts:0";
7877 + s08-spi2-2-int-gpio = <0>,"+31+39", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s08_22>,"interrupts:0";
7878 + s17-spi0-0-int-gpio = <0>,"+24+40", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s17_00>,"interrupts:0";
7879 + s17-spi0-1-int-gpio = <0>,"+25+41", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s17_01>,"interrupts:0";
7880 + s17-spi1-0-int-gpio = <0>,"+26+42", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s17_10>,"interrupts:0";
7881 + s17-spi1-1-int-gpio = <0>,"+27+43", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s17_11>,"interrupts:0";
7882 + s17-spi1-2-int-gpio = <0>,"+28+44", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s17_12>,"interrupts:0";
7883 + s17-spi2-0-int-gpio = <0>,"+29+45", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s17_20>,"interrupts:0";
7884 + s17-spi2-1-int-gpio = <0>,"+30+46", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s17_21>,"interrupts:0";
7885 + s17-spi2-2-int-gpio = <0>,"+31+47", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s17_22>,"interrupts:0";
7890 +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
7893 + * Device tree overlay for mcp251x/can0 on spi0.0
7900 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
7901 + /* disable spi-dev for spi0.0 */
7910 + target = <&spidev0>;
7912 + status = "disabled";
7916 + /* the interrupt pin of the can-controller */
7920 + can0_pins: can0_pins {
7922 + brcm,function = <0>; /* input */
7927 + /* the clock/oscillator of the can-controller */
7929 + target-path = "/clocks";
7931 + /* external oscillator of mcp2515 on SPI0.0 */
7932 + can0_osc: can0_osc {
7933 + compatible = "fixed-clock";
7934 + #clock-cells = <0>;
7935 + clock-frequency = <16000000>;
7940 + /* the spi config of the can-controller itself binding everything together */
7944 + /* needed to avoid dtc warning */
7945 + #address-cells = <1>;
7946 + #size-cells = <0>;
7949 + compatible = "microchip,mcp2515";
7950 + pinctrl-names = "default";
7951 + pinctrl-0 = <&can0_pins>;
7952 + spi-max-frequency = <10000000>;
7953 + interrupt-parent = <&gpio>;
7954 + interrupts = <25 8>; /* IRQ_TYPE_LEVEL_LOW */
7955 + clocks = <&can0_osc>;
7960 + oscillator = <&can0_osc>,"clock-frequency:0";
7961 + spimaxfrequency = <&can0>,"spi-max-frequency:0";
7962 + interrupt = <&can0_pins>,"brcm,pins:0",<&can0>,"interrupts:0";
7966 +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
7969 + * Device tree overlay for mcp251x/can1 on spi0.1 edited by petit_miner
7976 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
7977 + /* disable spi-dev for spi0.1 */
7986 + target = <&spidev1>;
7988 + status = "disabled";
7992 + /* the interrupt pin of the can-controller */
7996 + can1_pins: can1_pins {
7998 + brcm,function = <0>; /* input */
8003 + /* the clock/oscillator of the can-controller */
8005 + target-path = "/clocks";
8007 + /* external oscillator of mcp2515 on spi0.1 */
8008 + can1_osc: can1_osc {
8009 + compatible = "fixed-clock";
8010 + #clock-cells = <0>;
8011 + clock-frequency = <16000000>;
8016 + /* the spi config of the can-controller itself binding everything together */
8020 + /* needed to avoid dtc warning */
8021 + #address-cells = <1>;
8022 + #size-cells = <0>;
8025 + compatible = "microchip,mcp2515";
8026 + pinctrl-names = "default";
8027 + pinctrl-0 = <&can1_pins>;
8028 + spi-max-frequency = <10000000>;
8029 + interrupt-parent = <&gpio>;
8030 + interrupts = <25 8>; /* IRQ_TYPE_LEVEL_LOW */
8031 + clocks = <&can1_osc>;
8036 + oscillator = <&can1_osc>,"clock-frequency:0";
8037 + spimaxfrequency = <&can1>,"spi-max-frequency:0";
8038 + interrupt = <&can1_pins>,"brcm,pins:0",<&can1>,"interrupts:0";
8042 +++ b/arch/arm/boot/dts/overlays/mcp3008-overlay.dts
8045 + * Device tree overlay for Microchip mcp3008 10-Bit A/D Converters
8052 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8055 + target = <&spidev0>;
8057 + status = "disabled";
8062 + target = <&spidev1>;
8064 + status = "disabled";
8069 + target-path = "spi1/spidev@0";
8071 + status = "disabled";
8076 + target-path = "spi1/spidev@1";
8078 + status = "disabled";
8083 + target-path = "spi1/spidev@2";
8085 + status = "disabled";
8090 + target-path = "spi2/spidev@0";
8092 + status = "disabled";
8097 + target-path = "spi2/spidev@1";
8099 + status = "disabled";
8104 + target-path = "spi2/spidev@2";
8106 + status = "disabled";
8114 + #address-cells = <1>;
8115 + #size-cells = <0>;
8117 + mcp3008_00: mcp3008@0 {
8118 + compatible = "mcp3008";
8120 + spi-max-frequency = <1600000>;
8129 + #address-cells = <1>;
8130 + #size-cells = <0>;
8132 + mcp3008_01: mcp3008@1 {
8133 + compatible = "mcp3008";
8135 + spi-max-frequency = <1600000>;
8144 + #address-cells = <1>;
8145 + #size-cells = <0>;
8147 + mcp3008_10: mcp3008@0 {
8148 + compatible = "mcp3008";
8150 + spi-max-frequency = <1600000>;
8159 + #address-cells = <1>;
8160 + #size-cells = <0>;
8162 + mcp3008_11: mcp3008@1 {
8163 + compatible = "mcp3008";
8165 + spi-max-frequency = <1600000>;
8174 + #address-cells = <1>;
8175 + #size-cells = <0>;
8177 + mcp3008_12: mcp3008@2 {
8178 + compatible = "mcp3008";
8180 + spi-max-frequency = <1600000>;
8189 + #address-cells = <1>;
8190 + #size-cells = <0>;
8192 + mcp3008_20: mcp3008@0 {
8193 + compatible = "mcp3008";
8195 + spi-max-frequency = <1600000>;
8204 + #address-cells = <1>;
8205 + #size-cells = <0>;
8207 + mcp3008_21: mcp3008@1 {
8208 + compatible = "mcp3008";
8210 + spi-max-frequency = <1600000>;
8219 + #address-cells = <1>;
8220 + #size-cells = <0>;
8222 + mcp3008_22: mcp3008@2 {
8223 + compatible = "mcp3008";
8225 + spi-max-frequency = <1600000>;
8231 + spi0-0-present = <0>, "+0+8";
8232 + spi0-1-present = <0>, "+1+9";
8233 + spi1-0-present = <0>, "+2+10";
8234 + spi1-1-present = <0>, "+3+11";
8235 + spi1-2-present = <0>, "+4+12";
8236 + spi2-0-present = <0>, "+5+13";
8237 + spi2-1-present = <0>, "+6+14";
8238 + spi2-2-present = <0>, "+7+15";
8239 + spi0-0-speed = <&mcp3008_00>, "spi-max-frequency:0";
8240 + spi0-1-speed = <&mcp3008_01>, "spi-max-frequency:0";
8241 + spi1-0-speed = <&mcp3008_10>, "spi-max-frequency:0";
8242 + spi1-1-speed = <&mcp3008_11>, "spi-max-frequency:0";
8243 + spi1-2-speed = <&mcp3008_12>, "spi-max-frequency:0";
8244 + spi2-0-speed = <&mcp3008_20>, "spi-max-frequency:0";
8245 + spi2-1-speed = <&mcp3008_21>, "spi-max-frequency:0";
8246 + spi2-2-speed = <&mcp3008_22>, "spi-max-frequency:0";
8250 +++ b/arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
8255 +#include <dt-bindings/clock/bcm2835.h>
8258 + * Fake a higher clock rate to get a larger divisor, and thereby a lower
8259 + * baudrate. The real clock is 48MHz, which we scale so that requesting
8260 + * 38.4kHz results in an actual 31.25kHz.
8262 + * 48000000*38400/31250 = 58982400
8266 + compatible = "brcm,bcm2835";
8269 + target-path = "/clocks";
8271 + midi_clk: midi_clk {
8272 + compatible = "fixed-clock";
8273 + #clock-cells = <0>;
8274 + clock-output-names = "uart0_pclk";
8275 + clock-frequency = <58982400>;
8281 + target = <&uart0>;
8283 + clocks = <&midi_clk>,
8284 + <&clocks BCM2835_CLOCK_VPU>;
8289 +++ b/arch/arm/boot/dts/overlays/midi-uart1-overlay.dts
8294 +#include <dt-bindings/clock/bcm2835-aux.h>
8297 + * Fake a higher clock rate to get a larger divisor, and thereby a lower
8298 + * baudrate. The real clock is 48MHz, which we scale so that requesting
8299 + * 38.4kHz results in an actual 31.25kHz.
8301 + * 48000000*38400/31250 = 58982400
8305 + compatible = "brcm,bcm2835";
8308 + target-path = "/clocks";
8310 + midi_clk: clock@5 {
8311 + compatible = "fixed-factor-clock";
8312 + #clock-cells = <0>;
8313 + clocks = <&aux BCM2835_AUX_CLOCK_UART>;
8314 + clock-mult = <38400>;
8315 + clock-div = <31250>;
8321 + target = <&uart1>;
8323 + clocks = <&midi_clk>;
8330 + clock-output-names = "aux_uart", "aux_spi1", "aux_spi2";
8335 +++ b/arch/arm/boot/dts/overlays/mmc-overlay.dts
8341 + compatible = "brcm,bcm2708";
8345 + frag0: __overlay__ {
8346 + pinctrl-names = "default";
8347 + pinctrl-0 = <&mmc_pins>;
8349 + brcm,overclock-50 = <0>;
8357 + mmc_pins: mmc_pins {
8358 + brcm,pins = <48 49 50 51 52 53>;
8359 + brcm,function = <7>; /* alt3 */
8360 + brcm,pull = <0 2 2 2 2 2>;
8366 + target = <&sdhost>;
8368 + status = "disabled";
8373 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
8377 +++ b/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
8379 +// Definitions for MPU6050
8384 + compatible = "brcm,bcm2708";
8389 + #address-cells = <1>;
8390 + #size-cells = <0>;
8392 + clock-frequency = <400000>;
8394 + mpu6050: mpu6050@68 {
8395 + compatible = "invensense,mpu6050";
8397 + interrupt-parent = <&gpio>;
8398 + interrupts = <4 1>;
8404 + interrupt = <&mpu6050>,"interrupts:0";
8408 +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
8411 + * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
8419 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8429 + target = <&spidev0>;
8431 + status = "disabled";
8436 + target = <&spidev1>;
8438 + status = "disabled";
8445 + mz61581_pins: mz61581_pins {
8446 + brcm,pins = <4 15 18 25>;
8447 + brcm,function = <0 1 1 1>; /* in out out out */
8455 + /* needed to avoid dtc warning */
8456 + #address-cells = <1>;
8457 + #size-cells = <0>;
8459 + mz61581: mz61581@0{
8460 + compatible = "samsung,s6d02a1";
8462 + pinctrl-names = "default";
8463 + pinctrl-0 = <&mz61581_pins>;
8465 + spi-max-frequency = <128000000>;
8475 + txbuflen = <32768>;
8477 + reset-gpios = <&gpio 15 0>;
8478 + dc-gpios = <&gpio 25 0>;
8479 + led-gpios = <&gpio 18 0>;
8481 + init = <0x10000b0 00
8484 + 0x10000b3 0x02 0x00 0x00 0x00
8485 + 0x10000c0 0x13 0x3b 0x00 0x02 0x00 0x01 0x00 0x43
8486 + 0x10000c1 0x08 0x16 0x08 0x08
8487 + 0x10000c4 0x11 0x07 0x03 0x03
8489 + 0x10000c8 0x03 0x03 0x13 0x5c 0x03 0x07 0x14 0x08 0x00 0x21 0x08 0x14 0x07 0x53 0x0c 0x13 0x03 0x03 0x21 0x00
8493 + 0x1000044 0x00 0x01
8494 + 0x10000d0 0x07 0x07 0x1d 0x03
8495 + 0x10000d1 0x03 0x30 0x10
8496 + 0x10000d2 0x03 0x14 0x04
8500 + /* This is a workaround to make sure the init sequence slows down and doesn't fail */
8504 + mz61581_ts: mz61581_ts@1 {
8505 + compatible = "ti,ads7846";
8508 + spi-max-frequency = <2000000>;
8509 + interrupts = <4 2>; /* high-to-low edge triggered */
8510 + interrupt-parent = <&gpio>;
8511 + pendown-gpio = <&gpio 4 0>;
8513 + ti,x-plate-ohms = /bits/ 16 <60>;
8514 + ti,pressure-max = /bits/ 16 <255>;
8519 + speed = <&mz61581>, "spi-max-frequency:0";
8520 + rotate = <&mz61581>, "rotate:0";
8521 + fps = <&mz61581>, "fps:0";
8522 + txbuflen = <&mz61581>, "txbuflen:0";
8523 + debug = <&mz61581>, "debug:0";
8524 + xohms = <&mz61581_ts>,"ti,x-plate-ohms;0";
8528 +++ b/arch/arm/boot/dts/overlays/papirus-overlay.dts
8530 +/* PaPiRus ePaper Screen by Pi Supply */
8536 + compatible = "brcm,bcm2708";
8539 + target = <&i2c_arm>;
8541 + #address-cells = <1>;
8542 + #size-cells = <0>;
8545 + display_temp: lm75@48 {
8546 + compatible = "lm75b";
8549 + #thermal-sensor-cells = <0>;
8555 + target-path = "/";
8559 + polling-delay-passive = <0>;
8560 + polling-delay = <0>;
8561 + thermal-sensors = <&display_temp>;
8573 + status = "disabled";
8581 + repaper_pins: repaper_pins {
8582 + brcm,pins = <14 15 23 24 25>;
8583 + brcm,function = <1 1 1 1 0>; /* out out out out in */
8591 + /* needed to avoid dtc warning */
8592 + #address-cells = <1>;
8593 + #size-cells = <0>;
8595 + repaper: repaper@0{
8596 + compatible = "not_set";
8598 + pinctrl-names = "default";
8599 + pinctrl-0 = <&repaper_pins>;
8601 + spi-max-frequency = <8000000>;
8603 + panel-on-gpios = <&gpio 23 0>;
8604 + border-gpios = <&gpio 14 0>;
8605 + discharge-gpios = <&gpio 15 0>;
8606 + reset-gpios = <&gpio 24 0>;
8607 + busy-gpios = <&gpio 25 0>;
8609 + repaper-thermal-zone = "display";
8615 + panel = <&repaper>, "compatible";
8616 + speed = <&repaper>, "spi-max-frequency:0";
8620 +++ b/arch/arm/boot/dts/overlays/pi3-act-led-overlay.dts
8625 +/* Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
8626 + from the VPU. There is a special driver for this with a separate DT node,
8627 + which has the unfortunate consequence of breaking the act_led_gpio and
8628 + act_led_activelow dtparams.
8630 + This overlay changes the GPIO controller back to the standard one and
8631 + restores the dtparams.
8635 + compatible = "brcm,bcm2708";
8638 + target = <&act_led>;
8639 + frag0: __overlay__ {
8640 + gpios = <&gpio 0 0>;
8645 + gpio = <&frag0>,"gpios:4";
8646 + activelow = <&frag0>,"gpios:8";
8650 +++ b/arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
8655 +/* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
8656 + To disable the systemd service that initialises the modem so it doesn't use
8659 + sudo systemctl disable hciuart
8663 + compatible = "brcm,bcm2708";
8666 + target = <&uart1>;
8668 + status = "disabled";
8673 + target = <&uart0>;
8675 + pinctrl-names = "default";
8676 + pinctrl-0 = <&uart0_pins>;
8682 + target = <&uart0_pins>;
8691 + target-path = "/aliases";
8693 + serial0 = "/soc/serial@7e201000";
8694 + serial1 = "/soc/serial@7e215040";
8699 +++ b/arch/arm/boot/dts/overlays/pi3-disable-wifi-overlay.dts
8705 + compatible = "brcm,bcm2708";
8710 + status = "disabled";
8715 +++ b/arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
8720 +/* Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
8721 + UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
8724 + It is also necessary to edit /lib/systemd/system/hciuart.service and
8725 + replace ttyAMA0 with ttyS0, unless you have a system with udev rules
8726 + that create /dev/serial0 and /dev/serial1, in which case use /dev/serial1
8727 + instead because it will always be correct.
8729 + If cmdline.txt uses the alias serial0 to refer to the user-accessable port
8730 + then the firmware will replace with the appropriate port whether or not
8731 + this overlay is used.
8735 + compatible = "brcm,bcm2708";
8738 + target = <&uart0>;
8740 + pinctrl-names = "default";
8741 + pinctrl-0 = <&uart0_pins>;
8747 + target = <&uart1>;
8749 + pinctrl-names = "default";
8750 + pinctrl-0 = <&uart1_pins &bt_pins &fake_bt_cts>;
8756 + target = <&uart0_pins>;
8765 + target = <&uart1_pins>;
8767 + brcm,pins = <32 33>;
8768 + brcm,function = <2>; /* alt5=UART1 */
8769 + brcm,pull = <0 2>;
8776 + fake_bt_cts: fake_bt_cts {
8778 + brcm,function = <1>; /* output */
8784 + target-path = "/aliases";
8786 + serial0 = "/soc/serial@7e201000";
8787 + serial1 = "/soc/serial@7e215040";
8792 +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
8795 + * Device Tree overlay for PiScreen 3.5" display shield by Ozzmaker
8803 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8813 + target = <&spidev0>;
8815 + status = "disabled";
8820 + target = <&spidev1>;
8822 + status = "disabled";
8829 + piscreen_pins: piscreen_pins {
8830 + brcm,pins = <17 25 24 22>;
8831 + brcm,function = <0 1 1 1>; /* in out out out */
8839 + /* needed to avoid dtc warning */
8840 + #address-cells = <1>;
8841 + #size-cells = <0>;
8843 + piscreen: piscreen@0{
8844 + compatible = "ilitek,ili9486";
8846 + pinctrl-names = "default";
8847 + pinctrl-0 = <&piscreen_pins>;
8849 + spi-max-frequency = <24000000>;
8855 + reset-gpios = <&gpio 25 0>;
8856 + dc-gpios = <&gpio 24 0>;
8857 + led-gpios = <&gpio 22 1>;
8860 + init = <0x10000b0 0x00
8866 + 0x10000c5 0x00 0x00 0x00 0x00
8867 + 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
8868 + 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
8869 + 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
8874 + piscreen_ts: piscreen-ts@1 {
8875 + compatible = "ti,ads7846";
8878 + spi-max-frequency = <2000000>;
8879 + interrupts = <17 2>; /* high-to-low edge triggered */
8880 + interrupt-parent = <&gpio>;
8881 + pendown-gpio = <&gpio 17 0>;
8883 + ti,x-plate-ohms = /bits/ 16 <100>;
8884 + ti,pressure-max = /bits/ 16 <255>;
8889 + speed = <&piscreen>,"spi-max-frequency:0";
8890 + rotate = <&piscreen>,"rotate:0";
8891 + fps = <&piscreen>,"fps:0";
8892 + debug = <&piscreen>,"debug:0";
8893 + xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
8897 +++ b/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
8900 + * Device Tree overlay for PiScreen2 3.5" TFT with resistive touch by Ozzmaker.com
8908 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8918 + target = <&spidev0>;
8920 + status = "disabled";
8925 + target = <&spidev1>;
8927 + status = "disabled";
8934 + piscreen2_pins: piscreen2_pins {
8935 + brcm,pins = <17 25 24 22>;
8936 + brcm,function = <0 1 1 1>; /* in out out out */
8944 + /* needed to avoid dtc warning */
8945 + #address-cells = <1>;
8946 + #size-cells = <0>;
8948 + piscreen2: piscreen2@0{
8949 + compatible = "ilitek,ili9486";
8951 + pinctrl-names = "default";
8952 + pinctrl-0 = <&piscreen2_pins>;
8954 + spi-max-frequency = <64000000>;
8959 + txbuflen = <32768>;
8960 + reset-gpios = <&gpio 25 0>;
8961 + dc-gpios = <&gpio 24 0>;
8962 + led-gpios = <&gpio 22 1>;
8965 + init = <0x10000b0 0x00
8970 + 0x10000c0 0x11 0x09
8972 + 0x10000c5 0x00 0x00 0x00 0x00
8973 + 0x10000b6 0x00 0x02
8974 + 0x10000f7 0xa9 0x51 0x2c 0x2
8975 + 0x10000be 0x00 0x04
8982 + piscreen2_ts: piscreen2-ts@1 {
8983 + compatible = "ti,ads7846";
8986 + spi-max-frequency = <2000000>;
8987 + interrupts = <17 2>; /* high-to-low edge triggered */
8988 + interrupt-parent = <&gpio>;
8989 + pendown-gpio = <&gpio 17 0>;
8991 + ti,x-plate-ohms = /bits/ 16 <100>;
8992 + ti,pressure-max = /bits/ 16 <255>;
8997 + speed = <&piscreen2>,"spi-max-frequency:0";
8998 + rotate = <&piscreen2>,"rotate:0";
8999 + fps = <&piscreen2>,"fps:0";
9000 + debug = <&piscreen2>,"debug:0";
9001 + xohms = <&piscreen2_ts>,"ti,x-plate-ohms;0";
9006 +++ b/arch/arm/boot/dts/overlays/pisound-overlay.dts
9009 + * pisound Linux kernel module.
9010 + * Copyright (C) 2016 Vilniaus Blokas UAB, http://blokas.io/pisound
9012 + * This program is free software; you can redistribute it and/or
9013 + * modify it under the terms of the GNU General Public License
9014 + * as published by the Free Software Foundation; version 2 of the
9017 + * This program is distributed in the hope that it will be useful,
9018 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
9019 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9020 + * GNU General Public License for more details.
9022 + * You should have received a copy of the GNU General Public License
9023 + * along with this program; if not, write to the Free Software
9024 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9030 +#include <dt-bindings/gpio/gpio.h>
9033 + compatible = "brcm,bcm2708";
9043 + target = <&spidev0>;
9045 + status = "disabled";
9050 + target = <&spidev1>;
9059 + #address-cells = <1>;
9060 + #size-cells = <0>;
9062 + pisound_spi: pisound_spi@0{
9063 + compatible = "blokaslabs,pisound-spi";
9065 + pinctrl-names = "default";
9066 + pinctrl-0 = <&spi0_pins>;
9067 + spi-max-frequency = <1000000>;
9073 + target-path = "/";
9076 + #sound-dai-cells = <0>;
9077 + compatible = "ti,pcm5102a";
9084 + target = <&sound>;
9086 + compatible = "blokaslabs,pisound";
9087 + i2s-controller = <&i2s>;
9090 + pinctrl-0 = <&pisound_button_pins>;
9093 + <&gpio 13 GPIO_ACTIVE_HIGH>,
9094 + <&gpio 26 GPIO_ACTIVE_HIGH>,
9095 + <&gpio 16 GPIO_ACTIVE_HIGH>;
9098 + <&gpio 12 GPIO_ACTIVE_HIGH>,
9099 + <&gpio 24 GPIO_ACTIVE_HIGH>;
9101 + data_available-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
9103 + button-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
9110 + pinctrl-names = "default";
9111 + pinctrl-0 = <&pisound_button_pins>;
9113 + pisound_button_pins: pisound_button_pins {
9115 + brcm,function = <0>; // Input
9116 + brcm,pull = <2>; // Pull-Up
9129 +++ b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
9132 + * Device Tree overlay for pitft by Adafruit
9140 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9148 + status = "disabled";
9152 + status = "disabled";
9160 + pitft_pins: pitft_pins {
9162 + brcm,function = <1>; /* out */
9163 + brcm,pull = <0>; /* none */
9171 + /* needed to avoid dtc warning */
9172 + #address-cells = <1>;
9173 + #size-cells = <0>;
9176 + compatible = "ilitek,ili9340";
9178 + pinctrl-names = "default";
9179 + pinctrl-0 = <&pitft_pins>;
9181 + spi-max-frequency = <32000000>;
9186 + dc-gpios = <&gpio 25 0>;
9194 + speed = <&pitft>,"spi-max-frequency:0";
9195 + rotate = <&pitft>,"rotate:0";
9196 + fps = <&pitft>,"fps:0";
9197 + debug = <&pitft>,"debug:0";
9201 +++ b/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
9204 + * Device Tree overlay for Adafruit PiTFT 2.8" capacitive touch screen
9212 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9222 + target = <&spidev0>;
9224 + status = "disabled";
9231 + pitft_pins: pitft_pins {
9232 + brcm,pins = <24 25>;
9233 + brcm,function = <0 1>; /* in out */
9234 + brcm,pull = <2 0>; /* pullup none */
9242 + /* needed to avoid dtc warning */
9243 + #address-cells = <1>;
9244 + #size-cells = <0>;
9247 + compatible = "ilitek,ili9340";
9249 + pinctrl-names = "default";
9250 + pinctrl-0 = <&pitft_pins>;
9252 + spi-max-frequency = <32000000>;
9257 + dc-gpios = <&gpio 25 0>;
9266 + /* needed to avoid dtc warning */
9267 + #address-cells = <1>;
9268 + #size-cells = <0>;
9270 + ft6236: ft6236@38 {
9271 + compatible = "focaltech,ft6236";
9274 + interrupt-parent = <&gpio>;
9275 + interrupts = <24 2>;
9276 + touchscreen-size-x = <240>;
9277 + touchscreen-size-y = <320>;
9283 + speed = <&pitft>,"spi-max-frequency:0";
9284 + rotate = <&pitft>,"rotate:0";
9285 + fps = <&pitft>,"fps:0";
9286 + debug = <&pitft>,"debug:0";
9287 + touch-sizex = <&ft6236>,"touchscreen-size-x?";
9288 + touch-sizey = <&ft6236>,"touchscreen-size-y?";
9289 + touch-invx = <&ft6236>,"touchscreen-inverted-x?";
9290 + touch-invy = <&ft6236>,"touchscreen-inverted-y?";
9291 + touch-swapxy = <&ft6236>,"touchscreen-swapped-x-y?";
9295 +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
9298 + * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
9306 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9316 + target = <&spidev0>;
9318 + status = "disabled";
9323 + target = <&spidev1>;
9325 + status = "disabled";
9332 + pitft_pins: pitft_pins {
9333 + brcm,pins = <24 25>;
9334 + brcm,function = <0 1>; /* in out */
9335 + brcm,pull = <2 0>; /* pullup none */
9343 + /* needed to avoid dtc warning */
9344 + #address-cells = <1>;
9345 + #size-cells = <0>;
9348 + compatible = "ilitek,ili9340";
9350 + pinctrl-names = "default";
9351 + pinctrl-0 = <&pitft_pins>;
9353 + spi-max-frequency = <32000000>;
9358 + dc-gpios = <&gpio 25 0>;
9363 + #address-cells = <1>;
9364 + #size-cells = <0>;
9365 + compatible = "st,stmpe610";
9368 + spi-max-frequency = <500000>;
9369 + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
9370 + interrupts = <24 2>; /* high-to-low edge triggered */
9371 + interrupt-parent = <&gpio>;
9372 + interrupt-controller;
9374 + stmpe_touchscreen {
9375 + compatible = "st,stmpe-ts";
9376 + st,sample-time = <4>;
9379 + st,adc-freq = <2>;
9380 + st,ave-ctrl = <3>;
9381 + st,touch-det-delay = <4>;
9382 + st,settling = <2>;
9383 + st,fraction-z = <7>;
9387 + stmpe_gpio: stmpe_gpio {
9388 + #gpio-cells = <2>;
9389 + compatible = "st,stmpe-gpio";
9391 + * only GPIO2 is wired/available
9392 + * and it is wired to the backlight
9394 + st,norequest-mask = <0x7b>;
9401 + target-path = "/soc";
9404 + compatible = "gpio-backlight";
9405 + gpios = <&stmpe_gpio 2 0>;
9412 + speed = <&pitft>,"spi-max-frequency:0";
9413 + rotate = <&pitft>,"rotate:0";
9414 + fps = <&pitft>,"fps:0";
9415 + debug = <&pitft>,"debug:0";
9419 +++ b/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
9422 + * Device Tree overlay for Adafruit PiTFT 3.5" resistive touch screen
9430 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9440 + target = <&spidev0>;
9442 + status = "disabled";
9447 + target = <&spidev1>;
9449 + status = "disabled";
9456 + pitft_pins: pitft_pins {
9457 + brcm,pins = <24 25>;
9458 + brcm,function = <0 1>; /* in out */
9459 + brcm,pull = <2 0>; /* pullup none */
9467 + /* needed to avoid dtc warning */
9468 + #address-cells = <1>;
9469 + #size-cells = <0>;
9472 + compatible = "himax,hx8357d";
9474 + pinctrl-names = "default";
9475 + pinctrl-0 = <&pitft_pins>;
9477 + spi-max-frequency = <32000000>;
9482 + dc-gpios = <&gpio 25 0>;
9487 + #address-cells = <1>;
9488 + #size-cells = <0>;
9489 + compatible = "st,stmpe610";
9492 + spi-max-frequency = <500000>;
9493 + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
9494 + interrupts = <24 2>; /* high-to-low edge triggered */
9495 + interrupt-parent = <&gpio>;
9496 + interrupt-controller;
9498 + stmpe_touchscreen {
9499 + compatible = "st,stmpe-ts";
9500 + st,sample-time = <4>;
9503 + st,adc-freq = <2>;
9504 + st,ave-ctrl = <3>;
9505 + st,touch-det-delay = <4>;
9506 + st,settling = <2>;
9507 + st,fraction-z = <7>;
9511 + stmpe_gpio: stmpe_gpio {
9512 + #gpio-cells = <2>;
9513 + compatible = "st,stmpe-gpio";
9515 + * only GPIO2 is wired/available
9516 + * and it is wired to the backlight
9518 + st,norequest-mask = <0x7b>;
9525 + target-path = "/soc";
9528 + compatible = "gpio-backlight";
9529 + gpios = <&stmpe_gpio 2 0>;
9536 + speed = <&pitft>,"spi-max-frequency:0";
9537 + rotate = <&pitft>,"rotate:0";
9538 + fps = <&pitft>,"fps:0";
9539 + debug = <&pitft>,"debug:0";
9543 +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
9549 + compatible = "brcm,bcm2708";
9551 + target-path = "/";
9554 + compatible = "pps-gpio";
9555 + pinctrl-names = "default";
9556 + pinctrl-0 = <&pps_pins>;
9557 + gpios = <&gpio 18 0>;
9566 + pps_pins: pps_pins {
9568 + brcm,function = <0>; // in
9569 + brcm,pull = <0>; // off
9575 + gpiopin = <&pps>,"gpios:4",
9576 + <&pps_pins>,"brcm,pins:0";
9577 + assert_falling_edge = <&pps>,"assert-falling-edge?";
9581 +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
9587 +This is the 2-channel overlay - only use it if you need both channels.
9589 +Legal pin,function combinations for each channel:
9590 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
9591 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
9594 + 1) Pin 18 is the only one available on all platforms, and
9595 + it is the one used by the I2S audio interface.
9596 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
9597 + 2) The onboard analogue audio output uses both PWM channels.
9598 + 3) So be careful mixing audio and PWM.
9605 + pwm_pins: pwm_pins {
9606 + brcm,pins = <18 19>;
9607 + brcm,function = <2 2>; /* Alt5 */
9614 + frag1: __overlay__ {
9615 + pinctrl-names = "default";
9616 + pinctrl-0 = <&pwm_pins>;
9617 + assigned-clock-rates = <100000000>;
9623 + pin = <&pwm_pins>,"brcm,pins:0";
9624 + pin2 = <&pwm_pins>,"brcm,pins:4";
9625 + func = <&pwm_pins>,"brcm,function:0";
9626 + func2 = <&pwm_pins>,"brcm,function:4";
9627 + clock = <&frag1>,"assigned-clock-rates:0";
9631 +++ b/arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts
9637 + compatible = "brcm,bcm2708";
9642 + pwm0_pins: pwm0_pins {
9644 + brcm,function = <2>; /* Alt5 */
9652 + pinctrl-names = "default";
9653 + pinctrl-0 = <&pwm0_pins>;
9659 + target-path = "/";
9661 + pwm-ir-transmitter {
9662 + compatible = "pwm-ir-tx";
9663 + pwms = <&pwm 0 100>;
9669 + gpio_pin = <&pwm0_pins>, "brcm,pins:0";
9670 + func = <&pwm0_pins>,"brcm,function:0";
9674 +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
9680 +Legal pin,function combinations for each channel:
9681 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
9682 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
9685 + 1) Pin 18 is the only one available on all platforms, and
9686 + it is the one used by the I2S audio interface.
9687 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
9688 + 2) The onboard analogue audio output uses both PWM channels.
9689 + 3) So be careful mixing audio and PWM.
9696 + pwm_pins: pwm_pins {
9698 + brcm,function = <2>; /* Alt5 */
9705 + frag1: __overlay__ {
9706 + pinctrl-names = "default";
9707 + pinctrl-0 = <&pwm_pins>;
9708 + assigned-clock-rates = <100000000>;
9714 + pin = <&pwm_pins>,"brcm,pins:0";
9715 + func = <&pwm_pins>,"brcm,function:0";
9716 + clock = <&frag1>,"assigned-clock-rates:0";
9720 +++ b/arch/arm/boot/dts/overlays/qca7000-overlay.dts
9722 +// Overlay for the Qualcomm Atheros QCA7000 on I2SE's PLC Stamp micro EVK
9723 +// Visit: https://www.i2se.com/product/plc-stamp-micro-evk for details
9729 + compatible = "brcm,bcm2708";
9734 + /* needed to avoid dtc warning */
9735 + #address-cells = <1>;
9736 + #size-cells = <0>;
9741 + status = "disabled";
9745 + compatible = "qca,qca7000";
9746 + reg = <0>; /* CE0 */
9747 + pinctrl-names = "default";
9748 + pinctrl-0 = <ð1_pins>;
9749 + interrupt-parent = <&gpio>;
9750 + interrupts = <23 0x1>; /* rising edge */
9751 + spi-max-frequency = <12000000>;
9760 + eth1_pins: eth1_pins {
9762 + brcm,function = <0>; /* in */
9763 + brcm,pull = <0>; /* none */
9769 + int_pin = <ð1>, "interrupts:0",
9770 + <ð1_pins>, "brcm,pins:0";
9771 + speed = <ð1>, "spi-max-frequency:0";
9775 +++ b/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
9777 +// Definitions for RaspiDACv3
9782 + compatible = "brcm,bcm2708";
9794 + #address-cells = <1>;
9795 + #size-cells = <0>;
9799 + #sound-dai-cells = <0>;
9800 + compatible = "ti,pcm5122";
9802 + AVDD-supply = <&vdd_3v3_reg>;
9803 + DVDD-supply = <&vdd_3v3_reg>;
9804 + CPVDD-supply = <&vdd_3v3_reg>;
9808 + tpa6130a2: tpa6130a2@60 {
9809 + compatible = "ti,tpa6130a2";
9811 + Vdd-supply = <&vdd_3v3_reg>;
9818 + target = <&sound>;
9820 + compatible = "jg,raspidacv3";
9821 + i2s-controller = <&i2s>;
9827 +++ b/arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
9829 +// Device tree overlay for GPIO connected rotary encoder.
9834 + compatible = "brcm,bcm2708";
9839 + rotary0_pins: rotary0_pins {
9840 + brcm,pins = <4 17>; /* gpio 4 17 */
9841 + brcm,function = <0 0>; /* input */
9842 + brcm,pull = <2 2>; /* pull-up */
9849 + target-path = "/";
9851 + rotary0: rotary@0 {
9852 + compatible = "rotary-encoder";
9854 + pinctrl-names = "default";
9855 + pinctrl-0 = <&rotary0_pins>;
9856 + gpios = <&gpio 4 0>, <&gpio 17 0>;
9857 + linux,axis = <0>; /* REL_X */
9858 + rotary-encoder,encoding = "gray";
9859 + rotary-encoder,relative-axis;
9866 + rotary0_pin_a = <&rotary0>,"gpios:4",
9867 + <&rotary0_pins>,"brcm,pins:0";
9868 + rotary0_pin_b = <&rotary0>,"gpios:16",
9869 + <&rotary0_pins>,"brcm,pins:4";
9873 +++ b/arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
9876 + * Devicetree overlay for mailbox-driven Raspberry Pi DSI Display
9877 + * backlight controller
9883 + compatible = "brcm,bcm2708";
9886 + target-path = "/";
9888 + rpi_backlight: rpi_backlight {
9889 + compatible = "raspberrypi,rpi-backlight";
9890 + firmware = <&firmware>;
9897 +++ b/arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts
9899 +// Definitions for the Cirrus Logic Audio Card
9902 +#include <dt-bindings/pinctrl/bcm2835.h>
9903 +#include <dt-bindings/gpio/gpio.h>
9904 +#include <dt-bindings/mfd/arizona.h>
9907 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9919 + wlf_pins: wlf_pins {
9920 + brcm,pins = <17 22 27 8>;
9922 + BCM2835_FSEL_GPIO_OUT
9923 + BCM2835_FSEL_GPIO_OUT
9924 + BCM2835_FSEL_GPIO_IN
9925 + BCM2835_FSEL_GPIO_OUT
9932 + target-path = "/";
9934 + rpi_cirrus_reg_1v8: rpi_cirrus_reg_1v8 {
9935 + compatible = "regulator-fixed";
9936 + regulator-name = "RPi-Cirrus 1v8";
9937 + regulator-min-microvolt = <1800000>;
9938 + regulator-max-microvolt = <1800000>;
9939 + regulator-always-on;
9947 + #address-cells = <1>;
9948 + #size-cells = <0>;
9952 + status = "disabled";
9956 + status = "disabled";
9960 + compatible = "wlf,wm5102";
9963 + spi-max-frequency = <500000>;
9965 + interrupt-parent = <&gpio>;
9966 + interrupts = <27 8>;
9967 + interrupt-controller;
9968 + #interrupt-cells = <2>;
9971 + #gpio-cells = <2>;
9973 + LDOVDD-supply = <&rpi_cirrus_reg_1v8>;
9974 + AVDD-supply = <&rpi_cirrus_reg_1v8>;
9975 + DBVDD1-supply = <&rpi_cirrus_reg_1v8>;
9976 + DBVDD2-supply = <&vdd_3v3_reg>;
9977 + DBVDD3-supply = <&vdd_3v3_reg>;
9978 + CPVDD-supply = <&rpi_cirrus_reg_1v8>;
9979 + SPKVDDL-supply = <&vdd_5v0_reg>;
9980 + SPKVDDR-supply = <&vdd_5v0_reg>;
9981 + DCVDD-supply = <&arizona_ldo1>;
9983 + wlf,reset = <&gpio 17 GPIO_ACTIVE_HIGH>;
9984 + wlf,ldoena = <&gpio 22 GPIO_ACTIVE_HIGH>;
9985 + wlf,gpio-defaults = <
9986 + ARIZONA_GP_DEFAULT
9987 + ARIZONA_GP_DEFAULT
9988 + ARIZONA_GP_DEFAULT
9989 + ARIZONA_GP_DEFAULT
9990 + ARIZONA_GP_DEFAULT
9992 + wlf,micd-configs = <0 1 0>;
9994 + ARIZONA_DMIC_MICVDD
9995 + ARIZONA_DMIC_MICBIAS2
9996 + ARIZONA_DMIC_MICVDD
9997 + ARIZONA_DMIC_MICVDD
10000 + ARIZONA_INMODE_DIFF
10001 + ARIZONA_INMODE_DMIC
10002 + ARIZONA_INMODE_SE
10003 + ARIZONA_INMODE_DIFF
10007 + arizona_ldo1: ldo1 {
10008 + regulator-name = "LDO1";
10009 + // default constraints as in
10010 + // arizona-ldo1.c
10011 + regulator-min-microvolt = <1200000>;
10012 + regulator-max-microvolt = <1800000>;
10019 + target = <&i2c1>;
10022 + #address-cells = <1>;
10023 + #size-cells = <0>;
10026 + compatible = "wlf,wm8804";
10029 + PVDD-supply = <&vdd_3v3_reg>;
10030 + DVDD-supply = <&vdd_3v3_reg>;
10031 + wlf,reset-gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
10037 + target = <&sound>;
10039 + compatible = "wlf,rpi-cirrus";
10040 + i2s-controller = <&i2s>;
10046 +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
10048 +// Definitions for RPi DAC
10053 + compatible = "brcm,bcm2708";
10063 + target-path = "/";
10066 + #sound-dai-cells = <0>;
10067 + compatible = "ti,pcm1794a";
10074 + target = <&sound>;
10076 + compatible = "rpi,rpi-dac";
10077 + i2s-controller = <&i2s>;
10083 +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
10086 + * Device Tree overlay for rpi-display by Watterott
10094 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10097 + target = <&spi0>;
10104 + target = <&spidev0>;
10106 + status = "disabled";
10111 + target = <&spidev1>;
10113 + status = "disabled";
10118 + target = <&gpio>;
10120 + rpi_display_pins: rpi_display_pins {
10121 + brcm,pins = <18 23 24 25>;
10122 + brcm,function = <1 1 1 0>; /* out out out in */
10123 + brcm,pull = <0 0 0 2>; /* - - - up */
10129 + target = <&spi0>;
10131 + /* needed to avoid dtc warning */
10132 + #address-cells = <1>;
10133 + #size-cells = <0>;
10135 + rpidisplay: rpi-display@0{
10136 + compatible = "ilitek,ili9341";
10138 + pinctrl-names = "default";
10139 + pinctrl-0 = <&rpi_display_pins>;
10141 + spi-max-frequency = <32000000>;
10146 + reset-gpios = <&gpio 23 0>;
10147 + dc-gpios = <&gpio 24 0>;
10148 + led-gpios = <&gpio 18 1>;
10152 + rpidisplay_ts: rpi-display-ts@1 {
10153 + compatible = "ti,ads7846";
10156 + spi-max-frequency = <2000000>;
10157 + interrupts = <25 2>; /* high-to-low edge triggered */
10158 + interrupt-parent = <&gpio>;
10159 + pendown-gpio = <&gpio 25 0>;
10160 + ti,x-plate-ohms = /bits/ 16 <60>;
10161 + ti,pressure-max = /bits/ 16 <255>;
10166 + speed = <&rpidisplay>,"spi-max-frequency:0";
10167 + rotate = <&rpidisplay>,"rotate:0";
10168 + fps = <&rpidisplay>,"fps:0";
10169 + debug = <&rpidisplay>,"debug:0";
10170 + xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
10171 + swapxy = <&rpidisplay_ts>,"ti,swap-xy?";
10175 +++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
10181 + compatible = "brcm,bcm2708";
10184 + target-path = "/";
10186 + rpi_ft5406: rpi_ft5406 {
10187 + compatible = "rpi,rpi-ft5406";
10188 + firmware = <&firmware>;
10190 + touchscreen-size-x = <800>;
10191 + touchscreen-size-y = <600>;
10192 + touchscreen-inverted-x = <0>;
10193 + touchscreen-inverted-y = <0>;
10194 + touchscreen-swapped-x-y = <0>;
10200 + touchscreen-size-x = <&rpi_ft5406>,"touchscreen-size-x:0";
10201 + touchscreen-size-y = <&rpi_ft5406>,"touchscreen-size-y:0";
10202 + touchscreen-inverted-x = <&rpi_ft5406>,"touchscreen-inverted-x:0";
10203 + touchscreen-inverted-y = <&rpi_ft5406>,"touchscreen-inverted-y:0";
10204 + touchscreen-swapped-x-y = <&rpi_ft5406>,"touchscreen-swapped-x-y:0";
10208 +++ b/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
10210 +// Definitions for Rpi-Proto
10215 + compatible = "brcm,bcm2708";
10225 + target = <&i2c1>;
10227 + #address-cells = <1>;
10228 + #size-cells = <0>;
10232 + #sound-dai-cells = <0>;
10233 + compatible = "wlf,wm8731";
10241 + target = <&sound>;
10243 + compatible = "rpi,rpi-proto";
10244 + i2s-controller = <&i2s>;
10250 +++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
10257 + compatible = "brcm,bcm2708", "brcm,bcm2709";
10260 + target = <&i2c1>;
10262 + #address-cells = <1>;
10263 + #size-cells = <0>;
10267 + compatible = "rpi,rpi-sense";
10269 + keys-int-gpios = <&gpio 23 1>;
10273 + lsm9ds1-magn@1c {
10274 + compatible = "st,lsm9ds1-magn";
10279 + lsm9ds1-accel6a {
10280 + compatible = "st,lsm9ds1-accel";
10285 + lps25h-press@5c {
10286 + compatible = "st,lps25h-press";
10291 + hts221-humid@5f {
10292 + compatible = "st,hts221-humid";
10300 +++ b/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts
10308 + compatible = "brcm,bcm2708", "brcm,bcm2709";
10311 + target = <&spi0>;
10313 + /* needed to avoid dtc warning */
10314 + #address-cells = <1>;
10315 + #size-cells = <0>;
10320 + status = "disabled";
10324 + compatible = "sony,cxd2880";
10325 + reg = <0>; /* CE0 */
10326 + spi-max-frequency = <50000000>;
10334 +++ b/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
10336 +// Definitions for RRA DigiDAC1 Audio card
10341 + compatible = "brcm,bcm2708";
10351 + target = <&i2c1>;
10353 + #address-cells = <1>;
10354 + #size-cells = <0>;
10358 + #sound-dai-cells = <0>;
10359 + compatible = "wlf,wm8804";
10362 + PVDD-supply = <&vdd_3v3_reg>;
10363 + DVDD-supply = <&vdd_3v3_reg>;
10366 + wm8742: wm8741@1a {
10367 + compatible = "wlf,wm8741";
10370 + AVDD-supply = <&vdd_5v0_reg>;
10371 + DVDD-supply = <&vdd_3v3_reg>;
10377 + target = <&sound>;
10379 + compatible = "rra,digidac1-soundcard";
10380 + i2s-controller = <&i2s>;
10386 +++ b/arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
10392 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10395 + target = <&i2c_arm>;
10397 + #address-cells = <1>;
10398 + #size-cells = <0>;
10401 + sc16is750: sc16is750@48 {
10402 + compatible = "nxp,sc16is750";
10403 + reg = <0x48>; /* address */
10404 + clocks = <&sc16is750_clk>;
10405 + interrupt-parent = <&gpio>;
10406 + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
10407 + #gpio-cells = <2>;
10409 + sc16is750_clk: sc16is750_clk {
10410 + compatible = "fixed-clock";
10411 + #clock-cells = <0>;
10412 + clock-frequency = <14745600>;
10420 + int_pin = <&sc16is750>,"interrupts:0";
10421 + addr = <&sc16is750>,"reg:0";
10426 +++ b/arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
10432 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10435 + target = <&gpio>;
10437 + spi1_pins: spi1_pins {
10438 + brcm,pins = <19 20 21>;
10439 + brcm,function = <3>; /* alt4 */
10442 + spi1_cs_pins: spi1_cs_pins {
10443 + brcm,pins = <18>;
10444 + brcm,function = <1>; /* output */
10450 + target = <&spi1>;
10451 + frag1: __overlay__ {
10452 + #address-cells = <1>;
10453 + #size-cells = <0>;
10454 + pinctrl-names = "default";
10455 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
10456 + cs-gpios = <&gpio 18 1>;
10459 + sc16is752: sc16is752@0 {
10460 + compatible = "nxp,sc16is752";
10461 + reg = <0>; /* CE0 */
10462 + clocks = <&sc16is752_clk>;
10463 + interrupt-parent = <&gpio>;
10464 + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
10465 + #gpio-controller;
10466 + #gpio-cells = <2>;
10467 + spi-max-frequency = <4000000>;
10469 + sc16is752_clk: sc16is752_clk {
10470 + compatible = "fixed-clock";
10471 + #clock-cells = <0>;
10472 + clock-frequency = <14745600>;
10486 + int_pin = <&sc16is752>,"interrupts:0";
10490 +++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
10495 +/* Provide backwards compatible aliases for the old sdhost dtparams. */
10498 + compatible = "brcm,bcm2708";
10501 + target = <&sdhost>;
10502 + frag0: __overlay__ {
10503 + brcm,overclock-50 = <0>;
10504 + brcm,pio-limit = <1>;
10512 + status = "disabled";
10517 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
10518 + force_pio = <&frag0>,"brcm,force-pio?";
10519 + pio_limit = <&frag0>,"brcm,pio-limit:0";
10520 + debug = <&frag0>,"brcm,debug?";
10524 +++ b/arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
10529 +/* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
10532 + compatible = "brcm,bcm2708";
10536 + sdio_mmc: __overlay__ {
10537 + compatible = "brcm,bcm2835-mmc";
10538 + pinctrl-names = "default";
10539 + pinctrl-0 = <&sdio_pins>;
10542 + brcm,overclock-50 = <0>;
10548 + target = <&gpio>;
10550 + sdio_pins: sdio_pins {
10551 + brcm,pins = <22 23 24 25>;
10552 + brcm,function = <7>; /* ALT3 = SD1 */
10553 + brcm,pull = <0 2 2 2>;
10559 + poll_once = <&sdio_mmc>,"non-removable?";
10560 + sdio_overclock = <&sdio_mmc>,"brcm,overclock-50:0";
10564 +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
10569 +/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
10572 + compatible = "brcm,bcm2708";
10576 + sdio_mmc: __overlay__ {
10577 + pinctrl-names = "default";
10578 + pinctrl-0 = <&sdio_pins>;
10581 + brcm,overclock-50 = <0>;
10587 + target = <&gpio>;
10589 + sdio_pins: sdio_pins {
10590 + brcm,pins = <22 23 24 25 26 27>;
10591 + brcm,function = <7>; /* ALT3 = SD1 */
10592 + brcm,pull = <0 2 2 2 2 2>;
10598 + poll_once = <&sdio_mmc>,"non-removable?";
10599 + bus_width = <&sdio_mmc>,"bus-width:0";
10600 + sdio_overclock = <&sdio_mmc>,"brcm,overclock-50:0";
10604 +++ b/arch/arm/boot/dts/overlays/sdtweak-overlay.dts
10609 +/* Provide backwards compatible aliases for the old sdhost dtparams. */
10612 + compatible = "brcm,bcm2708";
10615 + target = <&sdhost>;
10616 + frag0: __overlay__ {
10617 + brcm,overclock-50 = <0>;
10618 + brcm,pio-limit = <1>;
10623 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
10624 + force_pio = <&frag0>,"brcm,force-pio?";
10625 + pio_limit = <&frag0>,"brcm,pio-limit:0";
10626 + debug = <&frag0>,"brcm,debug?";
10630 +++ b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
10632 +// Description: Overlay to enable character device interface for SMI.
10633 +// Author: Luke Wren <luke@raspberrypi.org>
10643 + compatible = "brcm,bcm2835-smi-dev";
10644 + smi_handle = <&smi>;
10651 +++ b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
10653 +// Description: Overlay to enable NAND flash through
10654 +// the secondary memory interface
10655 +// Author: Luke Wren
10661 + compatible = "brcm,bcm2708";
10666 + pinctrl-names = "default";
10667 + pinctrl-0 = <&smi_pins>;
10675 + #address-cells = <1>;
10676 + #size-cells = <1>;
10679 + compatible = "brcm,bcm2835-smi-nand";
10680 + smi_handle = <&smi>;
10681 + #address-cells = <1>;
10682 + #size-cells = <1>;
10686 + label = "stage2";
10688 + reg = <0 0x20000>;
10692 + label = "firmware";
10694 + reg = <0x20000 0x1000000>;
10699 + // 2G (will need to use 64 bit for >=4G)
10700 + reg = <0x1020000 0x80000000>;
10707 + target = <&gpio>;
10709 + smi_pins: smi_pins {
10710 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
10713 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5
10715 + /* /CS, /WE and /OE are pulled high, as they are
10716 + generally active low signals */
10717 + brcm,pull = <2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
10723 +++ b/arch/arm/boot/dts/overlays/smi-overlay.dts
10725 +// Description: Overlay to enable the secondary memory interface peripheral
10726 +// Author: Luke Wren
10732 + compatible = "brcm,bcm2708";
10737 + pinctrl-names = "default";
10738 + pinctrl-0 = <&smi_pins>;
10744 + target = <&gpio>;
10746 + smi_pins: smi_pins {
10747 + /* Don't configure the top two address bits, as
10748 + these are already used as ID_SD and ID_SC */
10749 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15
10750 + 16 17 18 19 20 21 22 23 24 25>;
10752 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
10753 + 5 5 5 5 5 5 5 5 5>;
10754 + /* /CS, /WE and /OE are pulled high, as they are
10755 + generally active low signals */
10756 + brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0
10763 +++ b/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
10766 + * Device tree overlay to move spi0 to gpio 35 to 39 on CM
10773 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
10776 + target = <&spi0>;
10778 + cs-gpios = <&gpio 36 1>, <&gpio 35 1>;
10783 + target = <&spi0_cs_pins>;
10785 + brcm,pins = <36 35>;
10790 + target = <&spi0_pins>;
10792 + brcm,pins = <37 38 39>;
10797 +++ b/arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
10803 + compatible = "brcm,bcm2708";
10806 + target = <&spidev0>;
10808 + status = "disabled";
10813 + target = <&spi0>;
10815 + #address-cells = <1>;
10816 + #size-cells = <0>;
10820 + compatible = "nxp,rtc-pcf2123";
10821 + spi-max-frequency = <5000000>;
10822 + spi-cs-high = <1>;
10829 + pcf2123 = <0>, "=0=1";
10833 +++ b/arch/arm/boot/dts/overlays/spi0-cs-overlay.dts
10840 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10843 + target = <&spi0_cs_pins>;
10844 + frag0: __overlay__ {
10845 + brcm,pins = <8 7>;
10850 + target = <&spi0>;
10851 + frag1: __overlay__ {
10852 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
10858 + cs0_pin = <&frag0>,"brcm,pins:0",
10859 + <&frag1>,"cs-gpios:4";
10860 + cs1_pin = <&frag0>,"brcm,pins:4",
10861 + <&frag1>,"cs-gpios:16";
10865 +++ b/arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
10868 + * Device tree overlay to re-enable hardware CS for SPI0
10875 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
10878 + target = <&spi0>;
10880 + cs-gpios = <0>, <0>;
10886 + target = <&spi0_cs_pins>;
10888 + brcm,pins = <8 7>;
10889 + brcm,function = <4>; /* alt0 */
10894 +++ b/arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
10901 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10904 + target = <&gpio>;
10906 + spi1_pins: spi1_pins {
10907 + brcm,pins = <19 20 21>;
10908 + brcm,function = <3>; /* alt4 */
10911 + spi1_cs_pins: spi1_cs_pins {
10912 + brcm,pins = <18>;
10913 + brcm,function = <1>; /* output */
10919 + target = <&spi1>;
10920 + frag1: __overlay__ {
10921 + /* needed to avoid dtc warning */
10922 + #address-cells = <1>;
10923 + #size-cells = <0>;
10924 + pinctrl-names = "default";
10925 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
10926 + cs-gpios = <&gpio 18 1>;
10929 + spidev1_0: spidev@0 {
10930 + compatible = "spidev";
10931 + reg = <0>; /* CE0 */
10932 + #address-cells = <1>;
10933 + #size-cells = <0>;
10934 + spi-max-frequency = <125000000>;
10948 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
10949 + <&frag1>,"cs-gpios:4";
10950 + cs0_spidev = <&spidev1_0>,"status";
10954 +++ b/arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
10961 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
10964 + target = <&gpio>;
10966 + spi1_pins: spi1_pins {
10967 + brcm,pins = <19 20 21>;
10968 + brcm,function = <3>; /* alt4 */
10971 + spi1_cs_pins: spi1_cs_pins {
10972 + brcm,pins = <18 17>;
10973 + brcm,function = <1>; /* output */
10979 + target = <&spi1>;
10980 + frag1: __overlay__ {
10981 + /* needed to avoid dtc warning */
10982 + #address-cells = <1>;
10983 + #size-cells = <0>;
10984 + pinctrl-names = "default";
10985 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
10986 + cs-gpios = <&gpio 18 1>, <&gpio 17 1>;
10989 + spidev1_0: spidev@0 {
10990 + compatible = "spidev";
10991 + reg = <0>; /* CE0 */
10992 + #address-cells = <1>;
10993 + #size-cells = <0>;
10994 + spi-max-frequency = <125000000>;
10998 + spidev1_1: spidev@1 {
10999 + compatible = "spidev";
11000 + reg = <1>; /* CE1 */
11001 + #address-cells = <1>;
11002 + #size-cells = <0>;
11003 + spi-max-frequency = <125000000>;
11017 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
11018 + <&frag1>,"cs-gpios:4";
11019 + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
11020 + <&frag1>,"cs-gpios:16";
11021 + cs0_spidev = <&spidev1_0>,"status";
11022 + cs1_spidev = <&spidev1_1>,"status";
11026 +++ b/arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
11033 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11036 + target = <&gpio>;
11038 + spi1_pins: spi1_pins {
11039 + brcm,pins = <19 20 21>;
11040 + brcm,function = <3>; /* alt4 */
11043 + spi1_cs_pins: spi1_cs_pins {
11044 + brcm,pins = <18 17 16>;
11045 + brcm,function = <1>; /* output */
11051 + target = <&spi1>;
11052 + frag1: __overlay__ {
11053 + /* needed to avoid dtc warning */
11054 + #address-cells = <1>;
11055 + #size-cells = <0>;
11056 + pinctrl-names = "default";
11057 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
11058 + cs-gpios = <&gpio 18 1>, <&gpio 17 1>, <&gpio 16 1>;
11061 + spidev1_0: spidev@0 {
11062 + compatible = "spidev";
11063 + reg = <0>; /* CE0 */
11064 + #address-cells = <1>;
11065 + #size-cells = <0>;
11066 + spi-max-frequency = <125000000>;
11070 + spidev1_1: spidev@1 {
11071 + compatible = "spidev";
11072 + reg = <1>; /* CE1 */
11073 + #address-cells = <1>;
11074 + #size-cells = <0>;
11075 + spi-max-frequency = <125000000>;
11079 + spidev1_2: spidev@2 {
11080 + compatible = "spidev";
11081 + reg = <2>; /* CE2 */
11082 + #address-cells = <1>;
11083 + #size-cells = <0>;
11084 + spi-max-frequency = <125000000>;
11098 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
11099 + <&frag1>,"cs-gpios:4";
11100 + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
11101 + <&frag1>,"cs-gpios:16";
11102 + cs2_pin = <&spi1_cs_pins>,"brcm,pins:8",
11103 + <&frag1>,"cs-gpios:28";
11104 + cs0_spidev = <&spidev1_0>,"status";
11105 + cs1_spidev = <&spidev1_1>,"status";
11106 + cs2_spidev = <&spidev1_2>,"status";
11110 +++ b/arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
11117 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11120 + target = <&gpio>;
11122 + spi2_pins: spi2_pins {
11123 + brcm,pins = <40 41 42>;
11124 + brcm,function = <3>; /* alt4 */
11127 + spi2_cs_pins: spi2_cs_pins {
11128 + brcm,pins = <43>;
11129 + brcm,function = <1>; /* output */
11135 + target = <&spi2>;
11136 + frag1: __overlay__ {
11137 + /* needed to avoid dtc warning */
11138 + #address-cells = <1>;
11139 + #size-cells = <0>;
11140 + pinctrl-names = "default";
11141 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
11142 + cs-gpios = <&gpio 43 1>;
11145 + spidev2_0: spidev@0 {
11146 + compatible = "spidev";
11147 + reg = <0>; /* CE0 */
11148 + #address-cells = <1>;
11149 + #size-cells = <0>;
11150 + spi-max-frequency = <125000000>;
11164 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
11165 + <&frag1>,"cs-gpios:4";
11166 + cs0_spidev = <&spidev2_0>,"status";
11170 +++ b/arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
11177 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11180 + target = <&gpio>;
11182 + spi2_pins: spi2_pins {
11183 + brcm,pins = <40 41 42>;
11184 + brcm,function = <3>; /* alt4 */
11187 + spi2_cs_pins: spi2_cs_pins {
11188 + brcm,pins = <43 44>;
11189 + brcm,function = <1>; /* output */
11195 + target = <&spi2>;
11196 + frag1: __overlay__ {
11197 + /* needed to avoid dtc warning */
11198 + #address-cells = <1>;
11199 + #size-cells = <0>;
11200 + pinctrl-names = "default";
11201 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
11202 + cs-gpios = <&gpio 43 1>, <&gpio 44 1>;
11205 + spidev2_0: spidev@0 {
11206 + compatible = "spidev";
11207 + reg = <0>; /* CE0 */
11208 + #address-cells = <1>;
11209 + #size-cells = <0>;
11210 + spi-max-frequency = <125000000>;
11214 + spidev2_1: spidev@1 {
11215 + compatible = "spidev";
11216 + reg = <1>; /* CE1 */
11217 + #address-cells = <1>;
11218 + #size-cells = <0>;
11219 + spi-max-frequency = <125000000>;
11233 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
11234 + <&frag1>,"cs-gpios:4";
11235 + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
11236 + <&frag1>,"cs-gpios:16";
11237 + cs0_spidev = <&spidev2_0>,"status";
11238 + cs1_spidev = <&spidev2_1>,"status";
11242 +++ b/arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
11249 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11252 + target = <&gpio>;
11254 + spi2_pins: spi2_pins {
11255 + brcm,pins = <40 41 42>;
11256 + brcm,function = <3>; /* alt4 */
11259 + spi2_cs_pins: spi2_cs_pins {
11260 + brcm,pins = <43 44 45>;
11261 + brcm,function = <1>; /* output */
11267 + target = <&spi2>;
11268 + frag1: __overlay__ {
11269 + /* needed to avoid dtc warning */
11270 + #address-cells = <1>;
11271 + #size-cells = <0>;
11272 + pinctrl-names = "default";
11273 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
11274 + cs-gpios = <&gpio 43 1>, <&gpio 44 1>, <&gpio 45 1>;
11277 + spidev2_0: spidev@0 {
11278 + compatible = "spidev";
11279 + reg = <0>; /* CE0 */
11280 + #address-cells = <1>;
11281 + #size-cells = <0>;
11282 + spi-max-frequency = <125000000>;
11286 + spidev2_1: spidev@1 {
11287 + compatible = "spidev";
11288 + reg = <1>; /* CE1 */
11289 + #address-cells = <1>;
11290 + #size-cells = <0>;
11291 + spi-max-frequency = <125000000>;
11295 + spidev2_2: spidev@2 {
11296 + compatible = "spidev";
11297 + reg = <2>; /* CE2 */
11298 + #address-cells = <1>;
11299 + #size-cells = <0>;
11300 + spi-max-frequency = <125000000>;
11314 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
11315 + <&frag1>,"cs-gpios:4";
11316 + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
11317 + <&frag1>,"cs-gpios:16";
11318 + cs2_pin = <&spi2_cs_pins>,"brcm,pins:8",
11319 + <&frag1>,"cs-gpios:28";
11320 + cs0_spidev = <&spidev2_0>,"status";
11321 + cs1_spidev = <&spidev2_1>,"status";
11322 + cs2_spidev = <&spidev2_2>,"status";
11326 +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
11329 + * tinylcd35-overlay.dts
11331 + * -------------------------------------------------
11332 + * www.tinlylcd.com
11333 + * -------------------------------------------------
11334 + * Device---Driver-----BUS GPIO's
11335 + * display tinylcd35 spi0.0 25 24 18
11336 + * touch ads7846 spi0.1 5
11337 + * rtc ds1307 i2c1-0068
11338 + * rtc pcf8563 i2c1-0051
11339 + * keypad gpio-keys --------- 17 22 27 23 28
11342 + * TinyLCD.com 3.5 inch TFT
11345 + * 5/3/2015 -- Noralf Trønnes Initial Device tree framework
11346 + * 10/3/2015 -- tinylcd@gmail.com added ds1307 support.
11354 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11357 + target = <&spi0>;
11364 + target = <&spidev0>;
11366 + status = "disabled";
11371 + target = <&spidev1>;
11373 + status = "disabled";
11378 + target = <&gpio>;
11380 + tinylcd35_pins: tinylcd35_pins {
11381 + brcm,pins = <25 24 18>;
11382 + brcm,function = <1>; /* out */
11384 + tinylcd35_ts_pins: tinylcd35_ts_pins {
11386 + brcm,function = <0>; /* in */
11388 + keypad_pins: keypad_pins {
11389 + brcm,pins = <4 17 22 23 27>;
11390 + brcm,function = <0>; /* in */
11391 + brcm,pull = <1>; /* down */
11397 + target = <&spi0>;
11399 + /* needed to avoid dtc warning */
11400 + #address-cells = <1>;
11401 + #size-cells = <0>;
11403 + tinylcd35: tinylcd35@0{
11404 + compatible = "neosec,tinylcd";
11406 + pinctrl-names = "default";
11407 + pinctrl-0 = <&tinylcd35_pins>,
11408 + <&tinylcd35_ts_pins>;
11410 + spi-max-frequency = <48000000>;
11415 + reset-gpios = <&gpio 25 0>;
11416 + dc-gpios = <&gpio 24 0>;
11417 + led-gpios = <&gpio 18 1>;
11420 + init = <0x10000B0 0x80
11421 + 0x10000C0 0x0A 0x0A
11422 + 0x10000C1 0x01 0x01
11424 + 0x10000C5 0x00 0x42 0x80
11425 + 0x10000B1 0xD0 0x11
11427 + 0x10000B6 0x00 0x22 0x3B
11430 + 0x10000F0 0x36 0xA5 0xD3
11435 + 0x10000F0 0x36 0xA5 0x53
11436 + 0x10000E0 0x00 0x35 0x33 0x00 0x00 0x00 0x00 0x35 0x33 0x00 0x00 0x00
11443 + tinylcd35_ts: tinylcd35_ts@1 {
11444 + compatible = "ti,ads7846";
11446 + status = "disabled";
11448 + spi-max-frequency = <2000000>;
11449 + interrupts = <5 2>; /* high-to-low edge triggered */
11450 + interrupt-parent = <&gpio>;
11451 + pendown-gpio = <&gpio 5 0>;
11452 + ti,x-plate-ohms = /bits/ 16 <100>;
11453 + ti,pressure-max = /bits/ 16 <255>;
11461 + target = <&i2c1>;
11463 + #address-cells = <1>;
11464 + #size-cells = <0>;
11468 + pcf8563: pcf8563@51 {
11469 + compatible = "nxp,pcf8563";
11477 + target = <&i2c1>;
11479 + #address-cells = <1>;
11480 + #size-cells = <0>;
11484 + ds1307: ds1307@68 {
11485 + compatible = "maxim,ds1307";
11493 + * Values for input event code is found under the
11494 + * 'Keys and buttons' heading in include/uapi/linux/input.h
11497 + target-path = "/soc";
11500 + compatible = "gpio-keys";
11501 + #address-cells = <1>;
11502 + #size-cells = <0>;
11503 + pinctrl-names = "default";
11504 + pinctrl-0 = <&keypad_pins>;
11505 + status = "disabled";
11509 + label = "GPIO KEY_UP";
11510 + linux,code = <103>;
11511 + gpios = <&gpio 17 0>;
11514 + label = "GPIO KEY_DOWN";
11515 + linux,code = <108>;
11516 + gpios = <&gpio 22 0>;
11519 + label = "GPIO KEY_LEFT";
11520 + linux,code = <105>;
11521 + gpios = <&gpio 27 0>;
11524 + label = "GPIO KEY_RIGHT";
11525 + linux,code = <106>;
11526 + gpios = <&gpio 23 0>;
11529 + label = "GPIO KEY_ENTER";
11530 + linux,code = <28>;
11531 + gpios = <&gpio 4 0>;
11538 + speed = <&tinylcd35>,"spi-max-frequency:0";
11539 + rotate = <&tinylcd35>,"rotate:0";
11540 + fps = <&tinylcd35>,"fps:0";
11541 + debug = <&tinylcd35>,"debug:0";
11542 + touch = <&tinylcd35_ts>,"status";
11543 + touchgpio = <&tinylcd35_ts_pins>,"brcm,pins:0",
11544 + <&tinylcd35_ts>,"interrupts:0",
11545 + <&tinylcd35_ts>,"pendown-gpio:4";
11546 + xohms = <&tinylcd35_ts>,"ti,x-plate-ohms;0";
11547 + rtc-pcf = <0>,"=5";
11548 + rtc-ds = <0>,"=6";
11549 + keypad = <&keypad>,"status";
11553 +++ b/arch/arm/boot/dts/overlays/uart1-overlay.dts
11559 + compatible = "brcm,bcm2708";
11562 + target = <&uart1>;
11564 + pinctrl-names = "default";
11565 + pinctrl-0 = <&uart1_pins>;
11571 + target = <&gpio>;
11573 + uart1_pins: uart1_pins {
11574 + brcm,pins = <14 15>;
11575 + brcm,function = <2>; /* alt5 */
11576 + brcm,pull = <0 2>;
11582 + target-path = "/chosen";
11584 + bootargs = "8250.nr_uarts=1";
11589 + txd1_pin = <&uart1_pins>,"brcm,pins:0";
11590 + rxd1_pin = <&uart1_pins>,"brcm,pins:4";
11594 +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
11597 + * vc4-fkms-v3d-overlay.dts
11604 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11607 + target-path = "/chosen";
11609 + bootargs = "cma=256M";
11614 + target-path = "/chosen";
11616 + bootargs = "cma=192M";
11621 + target-path = "/chosen";
11623 + bootargs = "cma=128M";
11628 + target-path = "/chosen";
11630 + bootargs = "cma=96M";
11635 + target-path = "/chosen";
11637 + bootargs = "cma=64M";
11644 + status = "disabled";
11649 + target = <&firmwarekms>;
11658 + interrupts = <1 10>;
11671 + target-path = "/soc/dma";
11673 + brcm,dma-channel-mask = <0x7f35>;
11678 + cma-256 = <0>,"+0-1-2-3-4";
11679 + cma-192 = <0>,"-0+1-2-3-4";
11680 + cma-128 = <0>,"-0-1+2-3-4";
11681 + cma-96 = <0>,"-0-1-2+3-4";
11682 + cma-64 = <0>,"-0-1-2-3+4";
11686 +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
11689 + * vc4-kms-v3d-overlay.dts
11695 +#include <dt-bindings/clock/bcm2835.h>
11698 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11701 + target-path = "/chosen";
11703 + bootargs = "cma=256M";
11708 + target-path = "/chosen";
11710 + bootargs = "cma=192M";
11715 + target-path = "/chosen";
11717 + bootargs = "cma=128M";
11722 + target-path = "/chosen";
11724 + bootargs = "cma=96M";
11729 + target-path = "/chosen";
11731 + bootargs = "cma=64M";
11736 + target = <&i2c2>;
11743 + target = <&cprman>;
11752 + status = "disabled";
11757 + target = <&pixelvalve0>;
11759 + interrupts = <2 13>; /* pwa0 */
11765 + target = <&pixelvalve1>;
11767 + interrupts = <2 14>; /* pwa1 */
11773 + target = <&pixelvalve2>;
11775 + interrupts = <2 10>; /* pixelvalve */
11783 + interrupts = <2 1>;
11789 + target = <&hdmi>;
11791 + interrupts = <2 8>, <2 9>;
11799 + interrupts = <1 10>;
11812 + target-path = "/soc/dma";
11814 + brcm,dma-channel-mask = <0x7f35>;
11820 + target = <&clocks>;
11823 + BCM2835_PLLD_DSI0
11824 + BCM2835_PLLD_DSI1
11832 + cma-256 = <0>,"+0-1-2-3-4";
11833 + cma-192 = <0>,"-0+1-2-3-4";
11834 + cma-128 = <0>,"-0-1+2-3-4";
11835 + cma-96 = <0>,"-0-1-2+3-4";
11836 + cma-64 = <0>,"-0-1-2-3+4";
11840 +++ b/arch/arm/boot/dts/overlays/vga666-overlay.dts
11846 + compatible = "brcm,bcm2708";
11848 + // There is no VGA driver module, but we need a platform device
11849 + // node (that doesn't already use pinctrl) to hang the pinctrl
11850 + // reference on - leds will do
11853 + target = <&leds>;
11855 + pinctrl-names = "default";
11856 + pinctrl-0 = <&vga666_pins>;
11861 + target = <&gpio>;
11863 + vga666_pins: vga666_pins {
11864 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12
11865 + 13 14 15 16 17 18 19 20 21>;
11866 + brcm,function = <6>; /* alt2 */
11867 + brcm,pull = <0>; /* no pull */
11873 +++ b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
11875 +// Definitions for w1-gpio module (without external pullup)
11880 + compatible = "brcm,bcm2708";
11883 + target-path = "/";
11887 + compatible = "w1-gpio";
11888 + pinctrl-names = "default";
11889 + pinctrl-0 = <&w1_pins>;
11890 + gpios = <&gpio 4 0>;
11891 + rpi,parasitic-power = <0>;
11898 + target = <&gpio>;
11900 + w1_pins: w1_pins@0 {
11902 + brcm,function = <0>; // in (initially)
11903 + brcm,pull = <0>; // off
11909 + gpiopin = <&w1>,"gpios:4",
11911 + <&w1_pins>,"brcm,pins:0",
11912 + <&w1_pins>,"reg:0";
11913 + pullup = <&w1>,"rpi,parasitic-power:0";
11917 +++ b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
11919 +// Definitions for w1-gpio module (with external pullup)
11924 + compatible = "brcm,bcm2708";
11927 + target-path = "/";
11931 + compatible = "w1-gpio";
11932 + pinctrl-names = "default";
11933 + pinctrl-0 = <&w1_pins>;
11934 + gpios = <&gpio 4 0>, <&gpio 5 1>;
11935 + rpi,parasitic-power = <0>;
11942 + target = <&gpio>;
11944 + w1_pins: w1_pins@0 {
11945 + brcm,pins = <4 5>;
11946 + brcm,function = <0 1>; // in out
11947 + brcm,pull = <0 0>; // off off
11953 + gpiopin = <&w1>,"gpios:4",
11955 + <&w1_pins>,"brcm,pins:0",
11956 + <&w1_pins>,"reg:0";
11957 + extpullup = <&w1>,"gpios:16",
11958 + <&w1_pins>,"brcm,pins:4";
11959 + pullup = <&w1>,"rpi,parasitic-power:0";
11963 +++ b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
11966 + * Device Tree overlay for Witty Pi extension board by UUGear
11975 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
11978 + target = <&leds>;
11980 + compatible = "gpio-leds";
11981 + wittypi_led: wittypi_led {
11982 + label = "wittypi_led";
11983 + linux,default-trigger = "default-on";
11984 + gpios = <&gpio 17 0>;
11990 + target = <&i2c1>;
11992 + #address-cells = <1>;
11993 + #size-cells = <0>;
11996 + compatible = "dallas,ds1337";
12004 + led_gpio = <&wittypi_led>,"gpios:4";
12005 + led_trigger = <&wittypi_led>,"linux,default-trigger";
12009 --- a/scripts/Makefile.dtbinst
12010 +++ b/scripts/Makefile.dtbinst
12011 @@ -22,6 +22,7 @@ include scripts/Kbuild.include
12012 include $(src)/Makefile
12014 dtbinst-files := $(dtb-y)
12015 +dtboinst-files := $(dtbo-y)
12016 dtbinst-dirs := $(dts-dirs)
12018 # Helper targets for Installing DTBs into the boot directory
12019 @@ -33,10 +34,13 @@ install-dir = $(patsubst $(dtbinst_root)
12020 $(dtbinst-files): %.dtb: $(obj)/%.dtb
12021 $(call cmd,dtb_install,$(install-dir))
12023 +$(dtboinst-files): %.dtbo: $(obj)/%.dtbo
12024 + $(call cmd,dtb_install,$(install-dir))
12027 $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
12029 -PHONY += $(dtbinst-files) $(dtbinst-dirs)
12030 -__dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
12031 +PHONY += $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
12032 +__dtbs_install: $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
12035 --- a/scripts/Makefile.lib
12036 +++ b/scripts/Makefile.lib
12037 @@ -316,6 +316,17 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
12038 $(obj)/%.dtb: $(src)/%.dts FORCE
12039 $(call if_changed_dep,dtc)
12041 +quiet_cmd_dtco = DTCO $@
12042 +cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
12043 + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
12044 + $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
12045 + -i $(dir $<) $(DTC_FLAGS) \
12046 + -d $(depfile).dtc.tmp $(dtc-tmp) ; \
12047 + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
12049 +$(obj)/%.dtbo: $(src)/%-overlay.dts FORCE
12050 + $(call if_changed_dep,dtco)
12052 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)