1 From 589cd87acedc0e24214934816b6c16b4e76a894d 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] 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 arch/arm/Makefile | 2 +
187 arch/arm/boot/.gitignore | 2 +-
188 arch/arm/boot/dts/Makefile | 19 +
189 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 156 +++
190 arch/arm/boot/dts/bcm2708-rpi-b.dts | 146 +++
191 arch/arm/boot/dts/bcm2708-rpi-cm.dts | 105 ++
192 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 50 +
193 arch/arm/boot/dts/bcm2708-rpi.dtsi | 109 ++
194 arch/arm/boot/dts/bcm2708.dtsi | 16 +
195 arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 156 +++
196 arch/arm/boot/dts/bcm2709.dtsi | 22 +
197 arch/arm/boot/dts/bcm270x.dtsi | 141 ++
198 arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 203 +++
199 arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 155 +++
200 arch/arm/boot/dts/bcm2710.dtsi | 155 +++
201 arch/arm/boot/dts/overlays/Makefile | 105 ++
202 arch/arm/boot/dts/overlays/README | 1368 ++++++++++++++++++++
203 .../arm/boot/dts/overlays/adau1977-adc-overlay.dts | 53 +
204 arch/arm/boot/dts/overlays/ads1015-overlay.dts | 98 ++
205 arch/arm/boot/dts/overlays/ads7846-overlay.dts | 89 ++
206 .../dts/overlays/akkordion-iqdacplus-overlay.dts | 46 +
207 .../allo-piano-dac-pcm512x-audio-overlay.dts | 54 +
208 arch/arm/boot/dts/overlays/at86rf233-overlay.dts | 57 +
209 .../audioinjector-wm8731-audio-overlay.dts | 39 +
210 arch/arm/boot/dts/overlays/audremap-overlay.dts | 19 +
211 .../dts/overlays/bmp085_i2c-sensor-overlay.dts | 23 +
212 arch/arm/boot/dts/overlays/dht11-overlay.dts | 39 +
213 .../boot/dts/overlays/dionaudio-loco-overlay.dts | 39 +
214 arch/arm/boot/dts/overlays/dpi18-overlay.dts | 31 +
215 arch/arm/boot/dts/overlays/dpi24-overlay.dts | 31 +
216 arch/arm/boot/dts/overlays/dwc-otg-overlay.dts | 20 +
217 arch/arm/boot/dts/overlays/dwc2-overlay.dts | 29 +
218 arch/arm/boot/dts/overlays/enc28j60-overlay.dts | 53 +
219 .../boot/dts/overlays/enc28j60-spi2-overlay.dts | 47 +
220 arch/arm/boot/dts/overlays/gpio-ir-overlay.dts | 44 +
221 .../boot/dts/overlays/gpio-poweroff-overlay.dts | 34 +
222 .../boot/dts/overlays/hifiberry-amp-overlay.dts | 39 +
223 .../boot/dts/overlays/hifiberry-dac-overlay.dts | 34 +
224 .../dts/overlays/hifiberry-dacplus-overlay.dts | 56 +
225 .../boot/dts/overlays/hifiberry-digi-overlay.dts | 39 +
226 .../dts/overlays/hifiberry-digi-pro-overlay.dts | 41 +
227 arch/arm/boot/dts/overlays/hy28a-overlay.dts | 93 ++
228 arch/arm/boot/dts/overlays/hy28b-overlay.dts | 148 +++
229 arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts | 13 +
230 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 43 +
231 arch/arm/boot/dts/overlays/i2c-mux-overlay.dts | 139 ++
232 .../boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts | 26 +
233 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 83 ++
234 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 34 +
235 .../arm/boot/dts/overlays/i2c0-bcm2708-overlay.dts | 61 +
236 .../arm/boot/dts/overlays/i2c1-bcm2708-overlay.dts | 37 +
237 .../boot/dts/overlays/i2s-gpio28-31-overlay.dts | 18 +
238 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts | 43 +
239 .../boot/dts/overlays/iqaudio-dacplus-overlay.dts | 46 +
240 .../overlays/iqaudio-digi-wm8804-audio-overlay.dts | 47 +
241 .../arm/boot/dts/overlays/justboom-dac-overlay.dts | 43 +
242 .../boot/dts/overlays/justboom-digi-overlay.dts | 39 +
243 arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts | 57 +
244 arch/arm/boot/dts/overlays/mcp23017-overlay.dts | 54 +
245 arch/arm/boot/dts/overlays/mcp23s17-overlay.dts | 732 +++++++++++
246 .../arm/boot/dts/overlays/mcp2515-can0-overlay.dts | 73 ++
247 .../arm/boot/dts/overlays/mcp2515-can1-overlay.dts | 73 ++
248 arch/arm/boot/dts/overlays/midi-uart0-overlay.dts | 36 +
249 arch/arm/boot/dts/overlays/mmc-overlay.dts | 38 +
250 arch/arm/boot/dts/overlays/mz61581-overlay.dts | 117 ++
251 arch/arm/boot/dts/overlays/pi3-act-led-overlay.dts | 27 +
252 .../boot/dts/overlays/pi3-disable-bt-overlay.dts | 46 +
253 .../boot/dts/overlays/pi3-miniuart-bt-overlay.dts | 64 +
254 arch/arm/boot/dts/overlays/piscreen-overlay.dts | 102 ++
255 arch/arm/boot/dts/overlays/piscreen2r-overlay.dts | 106 ++
256 arch/arm/boot/dts/overlays/pisound-overlay.dts | 114 ++
257 arch/arm/boot/dts/overlays/pitft22-overlay.dts | 69 +
258 .../dts/overlays/pitft28-capacitive-overlay.dts | 91 ++
259 .../dts/overlays/pitft28-resistive-overlay.dts | 121 ++
260 .../dts/overlays/pitft35-resistive-overlay.dts | 121 ++
261 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 35 +
262 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts | 47 +
263 arch/arm/boot/dts/overlays/pwm-overlay.dts | 43 +
264 arch/arm/boot/dts/overlays/qca7000-overlay.dts | 52 +
265 arch/arm/boot/dts/overlays/raspidac3-overlay.dts | 45 +
266 .../boot/dts/overlays/rpi-backlight-overlay.dts | 21 +
267 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts | 34 +
268 arch/arm/boot/dts/overlays/rpi-display-overlay.dts | 89 ++
269 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | 17 +
270 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts | 39 +
271 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts | 47 +
272 .../overlays/rra-digidac1-wm8741-audio-overlay.dts | 81 ++
273 .../boot/dts/overlays/sc16is750-i2c-overlay.dts | 37 +
274 .../boot/dts/overlays/sc16is752-spi1-overlay.dts | 61 +
275 arch/arm/boot/dts/overlays/sdhost-overlay.dts | 32 +
276 arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts | 36 +
277 arch/arm/boot/dts/overlays/sdio-overlay.dts | 36 +
278 arch/arm/boot/dts/overlays/sdtweak-overlay.dts | 23 +
279 arch/arm/boot/dts/overlays/smi-dev-overlay.dts | 18 +
280 arch/arm/boot/dts/overlays/smi-nand-overlay.dts | 69 +
281 arch/arm/boot/dts/overlays/smi-overlay.dts | 37 +
282 .../boot/dts/overlays/spi-gpio35-39-overlay.dts | 31 +
283 arch/arm/boot/dts/overlays/spi-rtc-overlay.dts | 33 +
284 arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts | 26 +
285 arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts | 57 +
286 arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts | 69 +
287 arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts | 81 ++
288 arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts | 57 +
289 arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts | 69 +
290 arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts | 81 ++
291 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts | 224 ++++
292 arch/arm/boot/dts/overlays/uart1-overlay.dts | 38 +
293 .../arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts | 89 ++
294 arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts | 136 ++
295 arch/arm/boot/dts/overlays/vga666-overlay.dts | 30 +
296 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts | 39 +
297 .../boot/dts/overlays/w1-gpio-pullup-overlay.dts | 41 +
298 arch/arm/boot/dts/overlays/wittypi-overlay.dts | 44 +
299 scripts/Makefile.dtbinst | 10 +-
300 scripts/Makefile.lib | 11 +
301 115 files changed, 8979 insertions(+), 4 deletions(-)
302 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
303 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b.dts
304 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dts
305 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
306 create mode 100644 arch/arm/boot/dts/bcm2708-rpi.dtsi
307 create mode 100644 arch/arm/boot/dts/bcm2708.dtsi
308 create mode 100644 arch/arm/boot/dts/bcm2709-rpi-2-b.dts
309 create mode 100644 arch/arm/boot/dts/bcm2709.dtsi
310 create mode 100644 arch/arm/boot/dts/bcm270x.dtsi
311 create mode 100644 arch/arm/boot/dts/bcm2710-rpi-3-b.dts
312 create mode 100644 arch/arm/boot/dts/bcm2710-rpi-cm3.dts
313 create mode 100644 arch/arm/boot/dts/bcm2710.dtsi
314 create mode 100644 arch/arm/boot/dts/overlays/Makefile
315 create mode 100644 arch/arm/boot/dts/overlays/README
316 create mode 100644 arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
317 create mode 100644 arch/arm/boot/dts/overlays/ads1015-overlay.dts
318 create mode 100644 arch/arm/boot/dts/overlays/ads7846-overlay.dts
319 create mode 100644 arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
320 create mode 100644 arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
321 create mode 100644 arch/arm/boot/dts/overlays/at86rf233-overlay.dts
322 create mode 100644 arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
323 create mode 100644 arch/arm/boot/dts/overlays/audremap-overlay.dts
324 create mode 100644 arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
325 create mode 100644 arch/arm/boot/dts/overlays/dht11-overlay.dts
326 create mode 100644 arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
327 create mode 100644 arch/arm/boot/dts/overlays/dpi18-overlay.dts
328 create mode 100644 arch/arm/boot/dts/overlays/dpi24-overlay.dts
329 create mode 100644 arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
330 create mode 100644 arch/arm/boot/dts/overlays/dwc2-overlay.dts
331 create mode 100644 arch/arm/boot/dts/overlays/enc28j60-overlay.dts
332 create mode 100644 arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
333 create mode 100644 arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
334 create mode 100644 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
335 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
336 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
337 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
338 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
339 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
340 create mode 100644 arch/arm/boot/dts/overlays/hy28a-overlay.dts
341 create mode 100644 arch/arm/boot/dts/overlays/hy28b-overlay.dts
342 create mode 100644 arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
343 create mode 100644 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
344 create mode 100644 arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
345 create mode 100644 arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
346 create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
347 create mode 100644 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
348 create mode 100644 arch/arm/boot/dts/overlays/i2c0-bcm2708-overlay.dts
349 create mode 100644 arch/arm/boot/dts/overlays/i2c1-bcm2708-overlay.dts
350 create mode 100644 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
351 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
352 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
353 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
354 create mode 100644 arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
355 create mode 100644 arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
356 create mode 100644 arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
357 create mode 100644 arch/arm/boot/dts/overlays/mcp23017-overlay.dts
358 create mode 100644 arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
359 create mode 100755 arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
360 create mode 100644 arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
361 create mode 100644 arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
362 create mode 100644 arch/arm/boot/dts/overlays/mmc-overlay.dts
363 create mode 100644 arch/arm/boot/dts/overlays/mz61581-overlay.dts
364 create mode 100644 arch/arm/boot/dts/overlays/pi3-act-led-overlay.dts
365 create mode 100644 arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
366 create mode 100644 arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
367 create mode 100644 arch/arm/boot/dts/overlays/piscreen-overlay.dts
368 create mode 100644 arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
369 create mode 100644 arch/arm/boot/dts/overlays/pisound-overlay.dts
370 create mode 100644 arch/arm/boot/dts/overlays/pitft22-overlay.dts
371 create mode 100644 arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
372 create mode 100644 arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
373 create mode 100644 arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
374 create mode 100644 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
375 create mode 100644 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
376 create mode 100644 arch/arm/boot/dts/overlays/pwm-overlay.dts
377 create mode 100644 arch/arm/boot/dts/overlays/qca7000-overlay.dts
378 create mode 100644 arch/arm/boot/dts/overlays/raspidac3-overlay.dts
379 create mode 100644 arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
380 create mode 100644 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
381 create mode 100644 arch/arm/boot/dts/overlays/rpi-display-overlay.dts
382 create mode 100644 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
383 create mode 100644 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
384 create mode 100644 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
385 create mode 100644 arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
386 create mode 100644 arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
387 create mode 100644 arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
388 create mode 100644 arch/arm/boot/dts/overlays/sdhost-overlay.dts
389 create mode 100644 arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
390 create mode 100644 arch/arm/boot/dts/overlays/sdio-overlay.dts
391 create mode 100644 arch/arm/boot/dts/overlays/sdtweak-overlay.dts
392 create mode 100644 arch/arm/boot/dts/overlays/smi-dev-overlay.dts
393 create mode 100644 arch/arm/boot/dts/overlays/smi-nand-overlay.dts
394 create mode 100644 arch/arm/boot/dts/overlays/smi-overlay.dts
395 create mode 100644 arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
396 create mode 100644 arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
397 create mode 100644 arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
398 create mode 100644 arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
399 create mode 100644 arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
400 create mode 100644 arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
401 create mode 100644 arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
402 create mode 100644 arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
403 create mode 100644 arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
404 create mode 100644 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
405 create mode 100644 arch/arm/boot/dts/overlays/uart1-overlay.dts
406 create mode 100644 arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
407 create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
408 create mode 100644 arch/arm/boot/dts/overlays/vga666-overlay.dts
409 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
410 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
411 create mode 100644 arch/arm/boot/dts/overlays/wittypi-overlay.dts
413 --- a/arch/arm/Makefile
414 +++ b/arch/arm/Makefile
415 @@ -334,6 +334,8 @@ $(INSTALL_TARGETS):
418 $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
420 + $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
422 PHONY += dtbs dtbs_install
424 --- a/arch/arm/boot/.gitignore
425 +++ b/arch/arm/boot/.gitignore
426 @@ -3,4 +3,4 @@ zImage
432 --- a/arch/arm/boot/dts/Makefile
433 +++ b/arch/arm/boot/dts/Makefile
435 ifeq ($(CONFIG_OF),y)
437 +dtb-$(CONFIG_ARCH_BCM2835) += \
438 + bcm2708-rpi-b.dtb \
439 + bcm2708-rpi-b-plus.dtb \
440 + bcm2708-rpi-cm.dtb \
441 + bcm2709-rpi-2-b.dtb \
442 + bcm2710-rpi-3-b.dtb \
443 + bcm2710-rpi-cm3.dtb
445 dtb-$(CONFIG_ARCH_ALPINE) += \
447 dtb-$(CONFIG_MACH_ARTPEC6) += \
448 @@ -955,10 +963,21 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
449 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
450 dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
451 aspeed-ast2500-evb.dtb
453 +targets += dtbs dtbs_install
458 dtstree := $(srctree)/$(src)
459 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
462 +subdir-y := overlays
465 +# Enable fixups to support overlays on BCM2835 platforms
466 +ifeq ($(CONFIG_ARCH_BCM2835),y)
467 + DTC_FLAGS ?= -@ -H epapr
468 + dts-dirs += overlays
471 +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
475 +#include "bcm2708.dtsi"
478 + model = "Raspberry Pi Model B+";
482 + sdhost_pins: sdhost_pins {
483 + brcm,pins = <48 49 50 51 52 53>;
484 + brcm,function = <4>; /* alt0 */
487 + spi0_pins: spi0_pins {
488 + brcm,pins = <9 10 11>;
489 + brcm,function = <4>; /* alt0 */
492 + spi0_cs_pins: spi0_cs_pins {
494 + brcm,function = <1>; /* output */
499 + brcm,function = <4>;
504 + brcm,function = <4>;
508 + brcm,pins = <18 19 20 21>;
509 + brcm,function = <4>; /* alt0 */
512 + audio_pins: audio_pins {
513 + brcm,pins = <40 45>;
514 + brcm,function = <4>;
519 + pinctrl-names = "default";
520 + pinctrl-0 = <&sdhost_pins>;
534 + pinctrl-names = "default";
535 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
536 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
539 + compatible = "spidev";
540 + reg = <0>; /* CE0 */
541 + #address-cells = <1>;
543 + spi-max-frequency = <500000>;
547 + compatible = "spidev";
548 + reg = <1>; /* CE1 */
549 + #address-cells = <1>;
551 + spi-max-frequency = <500000>;
556 + pinctrl-names = "default";
557 + pinctrl-0 = <&i2c0_pins>;
558 + clock-frequency = <100000>;
562 + pinctrl-names = "default";
563 + pinctrl-0 = <&i2c1_pins>;
564 + clock-frequency = <100000>;
568 + clock-frequency = <100000>;
572 + pinctrl-names = "default";
573 + pinctrl-0 = <&i2s_pins>;
579 + linux,default-trigger = "mmc0";
580 + gpios = <&gpio 47 0>;
585 + linux,default-trigger = "input";
586 + gpios = <&gpio 35 0>;
591 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
595 + pinctrl-names = "default";
596 + pinctrl-0 = <&audio_pins>;
601 + uart0 = <&uart0>,"status";
602 + uart1 = <&uart1>,"status";
603 + i2s = <&i2s>,"status";
604 + spi = <&spi0>,"status";
605 + i2c0 = <&i2c0>,"status";
606 + i2c1 = <&i2c1>,"status";
607 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
608 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
609 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
610 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
612 + act_led_gpio = <&act_led>,"gpios:4";
613 + act_led_activelow = <&act_led>,"gpios:8";
614 + act_led_trigger = <&act_led>,"linux,default-trigger";
616 + pwr_led_gpio = <&pwr_led>,"gpios:4";
617 + pwr_led_activelow = <&pwr_led>,"gpios:8";
618 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
620 + audio = <&audio>,"status";
621 + watchdog = <&watchdog>,"status";
622 + random = <&random>,"status";
623 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
624 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
625 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
626 + sd_debug = <&sdhost>,"brcm,debug";
630 +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
634 +#include "bcm2708.dtsi"
637 + model = "Raspberry Pi Model B";
641 + sdhost_pins: sdhost_pins {
642 + brcm,pins = <48 49 50 51 52 53>;
643 + brcm,function = <4>; /* alt0 */
646 + spi0_pins: spi0_pins {
647 + brcm,pins = <9 10 11>;
648 + brcm,function = <4>; /* alt0 */
651 + spi0_cs_pins: spi0_cs_pins {
653 + brcm,function = <1>; /* output */
658 + brcm,function = <4>;
663 + brcm,function = <4>;
667 + brcm,pins = <28 29 30 31>;
668 + brcm,function = <6>; /* alt2 */
671 + audio_pins: audio_pins {
672 + brcm,pins = <40 45>;
673 + brcm,function = <4>;
678 + pinctrl-names = "default";
679 + pinctrl-0 = <&sdhost_pins>;
693 + pinctrl-names = "default";
694 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
695 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
698 + compatible = "spidev";
699 + reg = <0>; /* CE0 */
700 + #address-cells = <1>;
702 + spi-max-frequency = <500000>;
706 + compatible = "spidev";
707 + reg = <1>; /* CE1 */
708 + #address-cells = <1>;
710 + spi-max-frequency = <500000>;
715 + pinctrl-names = "default";
716 + pinctrl-0 = <&i2c0_pins>;
717 + clock-frequency = <100000>;
721 + pinctrl-names = "default";
722 + pinctrl-0 = <&i2c1_pins>;
723 + clock-frequency = <100000>;
727 + clock-frequency = <100000>;
731 + pinctrl-names = "default";
732 + pinctrl-0 = <&i2s_pins>;
738 + linux,default-trigger = "mmc0";
739 + gpios = <&gpio 16 1>;
744 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
748 + pinctrl-names = "default";
749 + pinctrl-0 = <&audio_pins>;
754 + uart0 = <&uart0>,"status";
755 + uart1 = <&uart1>,"status";
756 + i2s = <&i2s>,"status";
757 + spi = <&spi0>,"status";
758 + i2c0 = <&i2c0>,"status";
759 + i2c1 = <&i2c1>,"status";
760 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
761 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
762 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
763 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
765 + act_led_gpio = <&act_led>,"gpios:4";
766 + act_led_activelow = <&act_led>,"gpios:8";
767 + act_led_trigger = <&act_led>,"linux,default-trigger";
769 + audio = <&audio>,"status";
770 + watchdog = <&watchdog>,"status";
771 + random = <&random>,"status";
772 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
773 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
774 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
775 + sd_debug = <&sdhost>,"brcm,debug";
779 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
783 +#include "bcm2708-rpi-cm.dtsi"
786 + model = "Raspberry Pi Compute Module";
794 + spi0_pins: spi0_pins {
795 + brcm,pins = <9 10 11>;
796 + brcm,function = <4>; /* alt0 */
799 + spi0_cs_pins: spi0_cs_pins {
801 + brcm,function = <1>; /* output */
806 + brcm,function = <4>;
811 + brcm,function = <4>;
815 + brcm,pins = <18 19 20 21>;
816 + brcm,function = <4>; /* alt0 */
819 + audio_pins: audio_pins {
826 + pinctrl-names = "default";
827 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
828 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
831 + compatible = "spidev";
832 + reg = <0>; /* CE0 */
833 + #address-cells = <1>;
835 + spi-max-frequency = <500000>;
839 + compatible = "spidev";
840 + reg = <1>; /* CE1 */
841 + #address-cells = <1>;
843 + spi-max-frequency = <500000>;
848 + pinctrl-names = "default";
849 + pinctrl-0 = <&i2c0_pins>;
850 + clock-frequency = <100000>;
854 + pinctrl-names = "default";
855 + pinctrl-0 = <&i2c1_pins>;
856 + clock-frequency = <100000>;
860 + clock-frequency = <100000>;
864 + pinctrl-names = "default";
865 + pinctrl-0 = <&i2s_pins>;
869 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
874 + uart0 = <&uart0>,"status";
875 + uart1 = <&uart1>,"status";
876 + i2s = <&i2s>,"status";
877 + spi = <&spi0>,"status";
878 + i2c0 = <&i2c0>,"status";
879 + i2c1 = <&i2c1>,"status";
880 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
881 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
882 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
883 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
887 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
889 +#include "bcm2708.dtsi"
892 + sdhost_pins: sdhost_pins {
893 + brcm,pins = <48 49 50 51 52 53>;
894 + brcm,function = <4>; /* alt0 */
899 + mmc_pins: mmc_pins {
900 + brcm,pins = <48 49 50 51 52 53>;
901 + brcm,function = <7>; /* alt3 */
908 + linux,default-trigger = "mmc0";
909 + gpios = <&gpio 47 0>;
915 + pinctrl-names = "default";
916 + pinctrl-0 = <&sdhost_pins>;
920 + brcm,overclock-50 = <0>;
929 + act_led_gpio = <&act_led>,"gpios:4";
930 + act_led_activelow = <&act_led>,"gpios:8";
931 + act_led_trigger = <&act_led>,"linux,default-trigger";
933 + audio = <&audio>,"status";
934 + watchdog = <&watchdog>,"status";
935 + random = <&random>,"status";
936 + sd_overclock = <&mmc>,"brcm,overclock-50:0";
940 +++ b/arch/arm/boot/dts/bcm2708-rpi.dtsi
942 +/* Downstream version of bcm2835-rpi.dtsi */
944 +#include <dt-bindings/power/raspberrypi-power.h>
948 + device_type = "memory";
959 + watchdog = &watchdog;
961 + mailbox = &mailbox;
978 + thermal = &thermal;
982 + compatible = "gpio-leds";
987 + compatible = "brcm,bcm2835-gpiomem";
988 + reg = <0x7e200000 0x1000>;
991 + firmware: firmware {
992 + compatible = "raspberrypi,bcm2835-firmware";
993 + mboxes = <&mailbox>;
997 + compatible = "raspberrypi,bcm2835-power";
998 + firmware = <&firmware>;
999 + #power-domain-cells = <1>;
1003 + compatible = "brcm,bcm2708-fb";
1004 + firmware = <&firmware>;
1005 + status = "disabled";
1009 + compatible = "brcm,bcm2835-vchiq";
1010 + reg = <0x7e00b840 0xf>;
1011 + interrupts = <0 2>;
1012 + cache-line-size = <32>;
1013 + firmware = <&firmware>;
1016 + thermal: thermal {
1017 + compatible = "brcm,bcm2835-thermal";
1018 + firmware = <&firmware>;
1021 + /* Onboard audio */
1023 + compatible = "brcm,bcm2835-audio";
1024 + brcm,pwm-channels = <8>;
1025 + status = "disabled";
1028 + /* External sound card */
1030 + status = "disabled";
1036 + cache_line_size = <&vchiq>, "cache-line-size:0";
1041 + brcm,dma-channel-mask = <0x7f34>;
1045 + power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
1049 + power-domains = <&power RPI_POWER_DOMAIN_USB>;
1052 +++ b/arch/arm/boot/dts/bcm2708.dtsi
1054 +#include "bcm2835.dtsi"
1055 +#include "bcm270x.dtsi"
1056 +#include "bcm2708-rpi.dtsi"
1061 + compatible = "brcm,bcm2835-system-timer";
1062 + reg = <0x7e003000 0x1000>;
1063 + interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
1064 + clock-frequency = <1000000>;
1068 + /delete-node/ cpus;
1071 +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
1075 +#include "bcm2709.dtsi"
1078 + model = "Raspberry Pi 2 Model B";
1082 + sdhost_pins: sdhost_pins {
1083 + brcm,pins = <48 49 50 51 52 53>;
1084 + brcm,function = <4>; /* alt0 */
1087 + spi0_pins: spi0_pins {
1088 + brcm,pins = <9 10 11>;
1089 + brcm,function = <4>; /* alt0 */
1092 + spi0_cs_pins: spi0_cs_pins {
1093 + brcm,pins = <8 7>;
1094 + brcm,function = <1>; /* output */
1098 + brcm,pins = <0 1>;
1099 + brcm,function = <4>;
1103 + brcm,pins = <2 3>;
1104 + brcm,function = <4>;
1108 + brcm,pins = <18 19 20 21>;
1109 + brcm,function = <4>; /* alt0 */
1112 + audio_pins: audio_pins {
1113 + brcm,pins = <40 45>;
1114 + brcm,function = <4>;
1119 + pinctrl-names = "default";
1120 + pinctrl-0 = <&sdhost_pins>;
1134 + pinctrl-names = "default";
1135 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1136 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1138 + spidev0: spidev@0{
1139 + compatible = "spidev";
1140 + reg = <0>; /* CE0 */
1141 + #address-cells = <1>;
1142 + #size-cells = <0>;
1143 + spi-max-frequency = <500000>;
1146 + spidev1: spidev@1{
1147 + compatible = "spidev";
1148 + reg = <1>; /* CE1 */
1149 + #address-cells = <1>;
1150 + #size-cells = <0>;
1151 + spi-max-frequency = <500000>;
1156 + pinctrl-names = "default";
1157 + pinctrl-0 = <&i2c0_pins>;
1158 + clock-frequency = <100000>;
1162 + pinctrl-names = "default";
1163 + pinctrl-0 = <&i2c1_pins>;
1164 + clock-frequency = <100000>;
1168 + clock-frequency = <100000>;
1172 + pinctrl-names = "default";
1173 + pinctrl-0 = <&i2s_pins>;
1179 + linux,default-trigger = "mmc0";
1180 + gpios = <&gpio 47 0>;
1185 + linux,default-trigger = "input";
1186 + gpios = <&gpio 35 0>;
1191 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
1195 + pinctrl-names = "default";
1196 + pinctrl-0 = <&audio_pins>;
1201 + uart0 = <&uart0>,"status";
1202 + uart1 = <&uart1>,"status";
1203 + i2s = <&i2s>,"status";
1204 + spi = <&spi0>,"status";
1205 + i2c0 = <&i2c0>,"status";
1206 + i2c1 = <&i2c1>,"status";
1207 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1208 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1209 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1210 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1212 + act_led_gpio = <&act_led>,"gpios:4";
1213 + act_led_activelow = <&act_led>,"gpios:8";
1214 + act_led_trigger = <&act_led>,"linux,default-trigger";
1216 + pwr_led_gpio = <&pwr_led>,"gpios:4";
1217 + pwr_led_activelow = <&pwr_led>,"gpios:8";
1218 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
1220 + audio = <&audio>,"status";
1221 + watchdog = <&watchdog>,"status";
1222 + random = <&random>,"status";
1223 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
1224 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
1225 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
1226 + sd_debug = <&sdhost>,"brcm,debug";
1230 +++ b/arch/arm/boot/dts/bcm2709.dtsi
1232 +#include "bcm2836.dtsi"
1233 +#include "bcm270x.dtsi"
1234 +#include "bcm2708-rpi.dtsi"
1238 + ranges = <0x7e000000 0x3f000000 0x01000000>,
1239 + <0x40000000 0x40000000 0x00040000>;
1242 + compatible = "brcm,bcm2836-arm-local", "syscon";
1243 + reg = <0x40000000 0x100>;
1248 + arm_freq = <&v7_cpu0>, "clock-frequency:0",
1249 + <&v7_cpu1>, "clock-frequency:0",
1250 + <&v7_cpu2>, "clock-frequency:0",
1251 + <&v7_cpu3>, "clock-frequency:0";
1255 +++ b/arch/arm/boot/dts/bcm270x.dtsi
1257 +/* Downstream bcm283x.dtsi diff */
1258 +#include "dt-bindings/power/raspberrypi-power.h"
1267 + /delete-node/ timer@7e003000;
1269 + watchdog: watchdog@7e100000 {
1273 + cprman: cprman@7e101000 {
1277 + random: rng@7e104000 {
1281 + gpio@7e200000 { /* gpio */
1282 + interrupts = <2 17>, <2 18>;
1285 + sdhost: sdhost@7e202000 {
1286 + compatible = "brcm,bcm2835-sdhost";
1287 + reg = <0x7e202000 0x100>;
1288 + interrupts = <2 24>;
1289 + clocks = <&clocks BCM2835_CLOCK_VPU>;
1291 + dma-names = "rx-tx";
1292 + brcm,overclock-50 = <0>;
1293 + brcm,pio-limit = <1>;
1294 + status = "disabled";
1297 + i2s@7e203000 { /* i2s */
1298 + #sound-dai-cells = <0>;
1299 + reg = <0x7e203000 0x24>;
1300 + clocks = <&clocks BCM2835_CLOCK_PCM>;
1303 + spi0: spi@7e204000 {
1305 + dmas = <&dma 6>, <&dma 7>;
1306 + dma-names = "tx", "rx";
1309 + pixelvalve0: pixelvalve@7e206000 {
1311 + status = "disabled";
1314 + pixelvalve1: pixelvalve@7e207000 {
1316 + status = "disabled";
1319 + dpi: dpi@7e208000 {
1320 + compatible = "brcm,bcm2835-dpi";
1321 + reg = <0x7e208000 0x8c>;
1322 + clocks = <&clocks BCM2835_CLOCK_VPU>,
1323 + <&clocks BCM2835_CLOCK_DPI>;
1324 + clock-names = "core", "pixel";
1325 + #address-cells = <1>;
1326 + #size-cells = <0>;
1327 + status = "disabled";
1330 + /delete-node/ sdhci@7e300000;
1332 + mmc: mmc@7e300000 {
1333 + compatible = "brcm,bcm2835-mmc";
1334 + reg = <0x7e300000 0x100>;
1335 + interrupts = <2 30>;
1336 + clocks = <&clocks BCM2835_CLOCK_EMMC>;
1338 + dma-names = "rx-tx";
1339 + brcm,overclock-50 = <0>;
1340 + status = "disabled";
1343 + hvs: hvs@7e400000 {
1345 + status = "disabled";
1348 + firmwarekms: firmwarekms@7e600000 {
1349 + compatible = "raspberrypi,rpi-firmware-kms";
1350 + /* SMI interrupt reg */
1351 + reg = <0x7e600000 0x100>;
1352 + interrupts = <2 16>;
1353 + brcm,firmware = <&firmware>;
1354 + status = "disabled";
1357 + smi: smi@7e600000 {
1358 + compatible = "brcm,bcm2835-smi";
1359 + reg = <0x7e600000 0x100>;
1360 + interrupts = <2 16>;
1361 + clocks = <&clocks BCM2835_CLOCK_SMI>;
1362 + assigned-clocks = <&cprman BCM2835_CLOCK_SMI>;
1363 + assigned-clock-rates = <125000000>;
1365 + dma-names = "rx-tx";
1366 + status = "disabled";
1369 + pixelvalve2: pixelvalve@7e807000 {
1371 + status = "disabled";
1374 + hdmi@7e902000 { /* hdmi */
1375 + status = "disabled";
1378 + usb@7e980000 { /* usb */
1379 + compatible = "brcm,bcm2708-usb";
1380 + reg = <0x7e980000 0x10000>,
1381 + <0x7e006000 0x1000>;
1382 + interrupts = <2 0>,
1386 + v3d@7ec00000 { /* vd3 */
1387 + compatible = "brcm,vc4-v3d";
1388 + power-domains = <&power RPI_POWER_DOMAIN_V3D>;
1389 + status = "disabled";
1394 + status = "disabled";
1399 +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
1404 +/memreserve/ 0x00000000 0x00001000;
1407 +#include "bcm2710.dtsi"
1410 + model = "Raspberry Pi 3 Model B";
1414 + sdhost_pins: sdhost_pins {
1415 + brcm,pins = <48 49 50 51 52 53>;
1416 + brcm,function = <4>; /* alt0 */
1419 + spi0_pins: spi0_pins {
1420 + brcm,pins = <9 10 11>;
1421 + brcm,function = <4>; /* alt0 */
1424 + spi0_cs_pins: spi0_cs_pins {
1425 + brcm,pins = <8 7>;
1426 + brcm,function = <1>; /* output */
1430 + brcm,pins = <0 1>;
1431 + brcm,function = <4>;
1435 + brcm,pins = <2 3>;
1436 + brcm,function = <4>;
1440 + brcm,pins = <18 19 20 21>;
1441 + brcm,function = <4>; /* alt0 */
1444 + sdio_pins: sdio_pins {
1445 + brcm,pins = <34 35 36 37 38 39>;
1446 + brcm,function = <7>; // alt3 = SD1
1447 + brcm,pull = <0 2 2 2 2 2>;
1450 + bt_pins: bt_pins {
1452 + brcm,function = <4>; /* alt0:GPCLK2 */
1456 + uart0_pins: uart0_pins {
1457 + brcm,pins = <32 33>;
1458 + brcm,function = <7>; /* alt3=UART0 */
1459 + brcm,pull = <0 2>;
1462 + uart1_pins: uart1_pins {
1468 + audio_pins: audio_pins {
1469 + brcm,pins = <40 41>;
1470 + brcm,function = <4>;
1475 + pinctrl-names = "default";
1476 + pinctrl-0 = <&sdhost_pins>;
1482 + pinctrl-names = "default";
1483 + pinctrl-0 = <&sdio_pins>;
1487 + brcm,overclock-50 = <0>;
1491 + virtgpio: virtgpio {
1492 + compatible = "brcm,bcm2835-virtgpio";
1494 + #gpio-cells = <2>;
1495 + firmware = <&firmware>;
1505 + pinctrl-names = "default";
1506 + pinctrl-0 = <&uart0_pins &bt_pins>;
1511 + pinctrl-names = "default";
1512 + pinctrl-0 = <&uart1_pins>;
1517 + pinctrl-names = "default";
1518 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1519 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1521 + spidev0: spidev@0{
1522 + compatible = "spidev";
1523 + reg = <0>; /* CE0 */
1524 + #address-cells = <1>;
1525 + #size-cells = <0>;
1526 + spi-max-frequency = <500000>;
1529 + spidev1: spidev@1{
1530 + compatible = "spidev";
1531 + reg = <1>; /* CE1 */
1532 + #address-cells = <1>;
1533 + #size-cells = <0>;
1534 + spi-max-frequency = <500000>;
1539 + pinctrl-names = "default";
1540 + pinctrl-0 = <&i2c0_pins>;
1541 + clock-frequency = <100000>;
1545 + pinctrl-names = "default";
1546 + pinctrl-0 = <&i2c1_pins>;
1547 + clock-frequency = <100000>;
1551 + clock-frequency = <100000>;
1555 + pinctrl-names = "default";
1556 + pinctrl-0 = <&i2s_pins>;
1562 + linux,default-trigger = "mmc0";
1563 + gpios = <&virtgpio 0 0>;
1568 + pinctrl-names = "default";
1569 + pinctrl-0 = <&audio_pins>;
1574 + bootargs = "8250.nr_uarts=1";
1580 + uart0 = <&uart0>,"status";
1581 + uart1 = <&uart1>,"status";
1582 + i2s = <&i2s>,"status";
1583 + spi = <&spi0>,"status";
1584 + i2c0 = <&i2c0>,"status";
1585 + i2c1 = <&i2c1>,"status";
1586 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1587 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1588 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1589 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1591 + act_led_gpio = <&act_led>,"gpios:4";
1592 + act_led_activelow = <&act_led>,"gpios:8";
1593 + act_led_trigger = <&act_led>,"linux,default-trigger";
1595 + audio = <&audio>,"status";
1596 + watchdog = <&watchdog>,"status";
1597 + random = <&random>,"status";
1598 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
1599 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
1600 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
1601 + sd_debug = <&sdhost>,"brcm,debug";
1605 +++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
1609 +#include "bcm2710.dtsi"
1612 + model = "Raspberry Pi Compute Module 3";
1616 + sdhost_pins: sdhost_pins {
1617 + brcm,pins = <48 49 50 51 52 53>;
1618 + brcm,function = <4>; /* alt0 */
1619 + brcm,pull = <0 2 2 2 2 2>;
1622 + spi0_pins: spi0_pins {
1623 + brcm,pins = <9 10 11>;
1624 + brcm,function = <4>; /* alt0 */
1627 + spi0_cs_pins: spi0_cs_pins {
1628 + brcm,pins = <8 7>;
1629 + brcm,function = <1>; /* output */
1633 + brcm,pins = <0 1>;
1634 + brcm,function = <4>;
1638 + brcm,pins = <2 3>;
1639 + brcm,function = <4>;
1643 + brcm,pins = <18 19 20 21>;
1644 + brcm,function = <4>; /* alt0 */
1647 + audio_pins: audio_pins {
1654 + pinctrl-names = "default";
1655 + pinctrl-0 = <&sdhost_pins>;
1659 + brcm,overclock-50 = <0>;
1663 + virtgpio: virtgpio {
1664 + compatible = "brcm,bcm2835-virtgpio";
1666 + #gpio-cells = <2>;
1667 + firmware = <&firmware>;
1677 + pinctrl-names = "default";
1678 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1679 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1681 + spidev0: spidev@0{
1682 + compatible = "spidev";
1683 + reg = <0>; /* CE0 */
1684 + #address-cells = <1>;
1685 + #size-cells = <0>;
1686 + spi-max-frequency = <500000>;
1689 + spidev1: spidev@1{
1690 + compatible = "spidev";
1691 + reg = <1>; /* CE1 */
1692 + #address-cells = <1>;
1693 + #size-cells = <0>;
1694 + spi-max-frequency = <500000>;
1699 + pinctrl-names = "default";
1700 + pinctrl-0 = <&i2c0_pins>;
1701 + clock-frequency = <100000>;
1705 + pinctrl-names = "default";
1706 + pinctrl-0 = <&i2c1_pins>;
1707 + clock-frequency = <100000>;
1711 + clock-frequency = <100000>;
1715 + pinctrl-names = "default";
1716 + pinctrl-0 = <&i2s_pins>;
1722 + linux,default-trigger = "mmc0";
1723 + gpios = <&virtgpio 0 0>;
1728 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
1732 + pinctrl-names = "default";
1733 + pinctrl-0 = <&audio_pins>;
1738 + uart0 = <&uart0>,"status";
1739 + uart1 = <&uart1>,"status";
1740 + i2s = <&i2s>,"status";
1741 + spi = <&spi0>,"status";
1742 + i2c0 = <&i2c0>,"status";
1743 + i2c1 = <&i2c1>,"status";
1744 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1745 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1746 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1747 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1749 + act_led_gpio = <&act_led>,"gpios:4";
1750 + act_led_activelow = <&act_led>,"gpios:8";
1751 + act_led_trigger = <&act_led>,"linux,default-trigger";
1753 + audio = <&audio>,"status";
1754 + watchdog = <&watchdog>,"status";
1755 + random = <&random>,"status";
1756 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
1757 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
1758 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
1759 + sd_debug = <&sdhost>,"brcm,debug";
1763 +++ b/arch/arm/boot/dts/bcm2710.dtsi
1765 +#include "bcm283x.dtsi"
1766 +#include "bcm270x.dtsi"
1767 +#include "bcm2708-rpi.dtsi"
1770 + compatible = "brcm,bcm2837", "brcm,bcm2836";
1771 + model = "BCM2837";
1774 + ranges = <0x7e000000 0x3f000000 0x01000000>,
1775 + <0x40000000 0x40000000 0x00040000>;
1776 + dma-ranges = <0xc0000000 0x00000000 0x3f000000>;
1778 + local_intc: local_intc {
1779 + compatible = "brcm,bcm2836-l1-intc";
1780 + reg = <0x40000000 0x100>;
1781 + interrupt-controller;
1782 + #interrupt-cells = <1>;
1783 + interrupt-parent = <&local_intc>;
1788 + compatible = "arm,armv8-pmuv3", "arm,cortex-a7-pmu";
1790 + compatible = "arm,cortex-a7-pmu";
1792 + interrupt-parent = <&local_intc>;
1798 + compatible = "arm,armv8-timer", "arm,armv7-timer";
1800 + compatible = "arm,armv7-timer";
1802 + interrupt-parent = <&local_intc>;
1803 + interrupts = <0>, // PHYS_SECURE_PPI
1804 + <1>, // PHYS_NONSECURE_PPI
1811 + compatible = "brcm,bcm2836-arm-local", "syscon";
1812 + reg = <0x40000000 0x100>;
1818 + #address-cells = <1>;
1819 + #size-cells = <0>;
1822 + device_type = "cpu";
1823 + compatible = "arm,cortex-a53", "arm,armv8";
1825 + clock-frequency = <1200000000>;
1829 + device_type = "cpu";
1830 + compatible = "arm,cortex-a53", "arm,armv8";
1832 + clock-frequency = <1200000000>;
1833 + enable-method = "spin-table";
1834 + cpu-release-addr = <0x0 0x000000e0>;
1838 + device_type = "cpu";
1839 + compatible = "arm,cortex-a53", "arm,armv8";
1841 + clock-frequency = <1200000000>;
1842 + enable-method = "spin-table";
1843 + cpu-release-addr = <0x0 0x000000e8>;
1847 + device_type = "cpu";
1848 + compatible = "arm,cortex-a53", "arm,armv8";
1850 + clock-frequency = <1200000000>;
1851 + enable-method = "spin-table";
1852 + cpu-release-addr = <0x0 0x000000f0>;
1857 + arm_freq = <&v8_cpu0>, "clock-frequency:0",
1858 + <&v8_cpu1>, "clock-frequency:0",
1859 + <&v8_cpu2>, "clock-frequency:0",
1860 + <&v8_cpu3>, "clock-frequency:0";
1865 + #address-cells = <1>;
1866 + #size-cells = <0>;
1869 + device_type = "cpu";
1870 + compatible = "arm,cortex-a7";
1872 + clock-frequency = <800000000>;
1876 + device_type = "cpu";
1877 + compatible = "arm,cortex-a7";
1879 + clock-frequency = <800000000>;
1883 + device_type = "cpu";
1884 + compatible = "arm,cortex-a7";
1886 + clock-frequency = <800000000>;
1890 + device_type = "cpu";
1891 + compatible = "arm,cortex-a7";
1893 + clock-frequency = <800000000>;
1898 + arm_freq = <&v7_cpu0>, "clock-frequency:0",
1899 + <&v7_cpu1>, "clock-frequency:0",
1900 + <&v7_cpu2>, "clock-frequency:0",
1901 + <&v7_cpu3>, "clock-frequency:0";
1907 + compatible = "brcm,bcm2836-armctrl-ic";
1908 + reg = <0x7e00b200 0x200>;
1909 + interrupt-parent = <&local_intc>;
1915 + compatible = "brcm,bcm2835-usb";
1916 + reg = <0x7e980000 0x10000>;
1917 + interrupts = <1 9>;
1921 +++ b/arch/arm/boot/dts/overlays/Makefile
1923 +# Overlays for the Raspberry Pi platform
1925 +dtbo-$(CONFIG_ARCH_BCM2835) += \
1926 + adau1977-adc.dtbo \
1929 + akkordion-iqdacplus.dtbo \
1930 + allo-piano-dac-pcm512x-audio.dtbo \
1932 + audioinjector-wm8731-audio.dtbo \
1934 + bmp085_i2c-sensor.dtbo \
1936 + dionaudio-loco.dtbo \
1942 + enc28j60-spi2.dtbo \
1944 + gpio-poweroff.dtbo \
1945 + hifiberry-amp.dtbo \
1946 + hifiberry-dac.dtbo \
1947 + hifiberry-dacplus.dtbo \
1948 + hifiberry-digi.dtbo \
1949 + hifiberry-digi-pro.dtbo \
1952 + i2c-bcm2708.dtbo \
1955 + i2c-pwm-pca9685a.dtbo \
1958 + i2c0-bcm2708.dtbo \
1959 + i2c1-bcm2708.dtbo \
1960 + i2s-gpio28-31.dtbo \
1961 + iqaudio-dac.dtbo \
1962 + iqaudio-dacplus.dtbo \
1963 + iqaudio-digi-wm8804-audio.dtbo \
1964 + justboom-dac.dtbo \
1965 + justboom-digi.dtbo \
1969 + mcp2515-can0.dtbo \
1970 + mcp2515-can1.dtbo \
1974 + pi3-act-led.dtbo \
1975 + pi3-disable-bt.dtbo \
1976 + pi3-miniuart-bt.dtbo \
1981 + pitft28-capacitive.dtbo \
1982 + pitft28-resistive.dtbo \
1983 + pitft35-resistive.dtbo \
1989 + rpi-backlight.dtbo \
1991 + rpi-display.dtbo \
1995 + rra-digidac1-wm8741-audio.dtbo \
1996 + sc16is750-i2c.dtbo \
1997 + sc16is752-spi1.dtbo \
2005 + spi-gpio35-39.dtbo \
2016 + vc4-fkms-v3d.dtbo \
2017 + vc4-kms-v3d.dtbo \
2020 + w1-gpio-pullup.dtbo \
2023 +targets += dtbs dtbs_install
2024 +targets += $(dtbo-y)
2026 +always := $(dtbo-y)
2027 +clean-files := *.dtbo
2029 +++ b/arch/arm/boot/dts/overlays/README
2034 +This directory contains Device Tree overlays. Device Tree makes it possible
2035 +to support many hardware configurations with a single kernel and without the
2036 +need to explicitly load or blacklist kernel modules. Note that this isn't a
2037 +"pure" Device Tree configuration (c.f. MACH_BCM2835) - some on-board devices
2038 +are still configured by the board support code, but the intention is to
2039 +eventually reach that goal.
2041 +On Raspberry Pi, Device Tree usage is controlled from /boot/config.txt. By
2042 +default, the Raspberry Pi kernel boots with device tree enabled. You can
2043 +completely disable DT usage (for now) by adding:
2047 +to your config.txt, which should cause your Pi to revert to the old way of
2048 +doing things after a reboot.
2050 +In /boot you will find a .dtb for each base platform. This describes the
2051 +hardware that is part of the Raspberry Pi board. The loader (start.elf and its
2052 +siblings) selects the .dtb file appropriate for the platform by name, and reads
2053 +it into memory. At this point, all of the optional interfaces (i2c, i2s, spi)
2054 +are disabled, but they can be enabled using Device Tree parameters:
2056 + dtparam=i2c=on,i2s=on,spi=on
2058 +However, this shouldn't be necessary in many use cases because loading an
2059 +overlay that requires one of those interfaces will cause it to be enabled
2060 +automatically, and it is advisable to only enable interfaces if they are
2063 +Configuring additional, optional hardware is done using Device Tree overlays
2069 +The Advanced Options section of the raspi-config utility can enable and disable
2070 +Device Tree use, as well as toggling the I2C and SPI interfaces. Note that it
2071 +is possible to both enable an interface and blacklist the driver, if for some
2072 +reason you should want to defer the loading.
2077 +As well as describing the hardware, Device Tree also gives enough information
2078 +to allow suitable driver modules to be located and loaded, with the corollary
2079 +that unneeded modules are not loaded. As a result it should be possible to
2080 +remove lines from /etc/modules, and /etc/modprobe.d/raspi-blacklist.conf can
2081 +have its contents deleted (or commented out).
2086 +Overlays are loaded using the "dtoverlay" directive. As an example, consider
2087 +the popular lirc-rpi module, the Linux Infrared Remote Control driver. In the
2088 +pre-DT world this would be loaded from /etc/modules, with an explicit
2089 +"modprobe lirc-rpi" command, or programmatically by lircd. With DT enabled,
2090 +this becomes a line in config.txt:
2092 + dtoverlay=lirc-rpi
2094 +This causes the file /boot/overlays/lirc-rpi.dtbo to be loaded. By
2095 +default it will use GPIOs 17 (out) and 18 (in), but this can be modified using
2098 + dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=13
2100 +Parameters always have default values, although in some cases (e.g. "w1-gpio")
2101 +it is necessary to provided multiple overlays in order to get the desired
2102 +behaviour. See the list of overlays below for a description of the parameters
2103 +and their defaults.
2105 +The Overlay and Parameter Reference
2106 +===================================
2108 +N.B. When editing this file, please preserve the indentation levels to make it
2109 +simple to parse programmatically. NO HARD TABS.
2112 +Name: <The base DTB>
2113 +Info: Configures the base Raspberry Pi hardware
2114 +Load: <loaded automatically>
2116 + audio Set to "on" to enable the onboard ALSA audio
2117 + interface (default "off")
2119 + i2c_arm Set to "on" to enable the ARM's i2c interface
2122 + i2c_vc Set to "on" to enable the i2c interface
2123 + usually reserved for the VideoCore processor
2126 + i2c An alias for i2c_arm
2128 + i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
2129 + (default "100000")
2131 + i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
2132 + (default "100000")
2134 + i2c_baudrate An alias for i2c_arm_baudrate
2136 + i2s Set to "on" to enable the i2s interface
2139 + spi Set to "on" to enable the spi interfaces
2142 + random Set to "on" to enable the hardware random
2143 + number generator (default "on")
2145 + sd_overclock Clock (in MHz) to use when the MMC framework
2148 + sd_force_pio Disable DMA support for SD driver (default off)
2150 + sd_pio_limit Number of blocks above which to use DMA for
2151 + SD card (default 1)
2153 + sd_debug Enable debug output from SD driver (default off)
2155 + uart0 Set to "off" to disable uart0 (default "on")
2157 + uart1 Set to "on" or "off" to enable or disable uart1
2160 + watchdog Set to "on" to enable the hardware watchdog
2163 + act_led_trigger Choose which activity the LED tracks.
2164 + Use "heartbeat" for a nice load indicator.
2167 + act_led_activelow Set to "on" to invert the sense of the LED
2169 + N.B. For Pi3 see pi3-act-led overlay.
2171 + act_led_gpio Set which GPIO to use for the activity LED
2172 + (in case you want to connect it to an external
2174 + (default "16" on a non-Plus board, "47" on a
2176 + N.B. For Pi3 see pi3-act-led overlay.
2181 + As for act_led_*, but using the PWR LED.
2182 + Not available on Model A/B boards.
2184 + N.B. It is recommended to only enable those interfaces that are needed.
2185 + Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
2186 + interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
2187 + Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
2188 + interfaces i2c0 and i2c1. Use of the numeric variants is still possible
2189 + but deprecated because the ARM/VC assignments differ between board
2190 + revisions. The same board-specific mapping applies to i2c_baudrate,
2191 + and the other i2c baudrate parameters.
2195 +Info: Overlay for activation of ADAU1977 ADC codec over I2C for control
2197 +Load: dtoverlay=adau1977-adc
2202 +Info: Overlay for activation of Texas Instruments ADS1015 ADC over I2C
2203 +Load: dtoverlay=ads1015,<param>=<val>
2204 +Params: addr I2C bus address of device. Set based on how the
2205 + addr pin is wired. (default=0x48 assumes addr
2207 + cha_enable Enable virtual channel a. (default=true)
2208 + cha_cfg Set the configuration for virtual channel a.
2209 + (default=4 configures this channel for the
2210 + voltage at A0 with respect to GND)
2211 + cha_datarate Set the datarate (samples/sec) for this channel.
2212 + (default=4 sets 1600 sps)
2213 + cha_gain Set the gain of the Programmable Gain
2214 + Amplifier for this channel. (default=2 sets the
2215 + full scale of the channel to 2.048 Volts)
2217 + Channel (ch) parameters can be set for each enabled channel.
2218 + A maximum of 4 channels can be enabled (letters a thru d).
2219 + For more information refer to the device datasheet at:
2220 + http://www.ti.com/lit/ds/symlink/ads1015.pdf
2224 +Info: ADS7846 Touch controller
2225 +Load: dtoverlay=ads7846,<param>=<val>
2226 +Params: cs SPI bus Chip Select (default 1)
2227 + speed SPI bus speed (default 2MHz, max 3.25MHz)
2228 + penirq GPIO used for PENIRQ. REQUIRED
2229 + penirq_pull Set GPIO pull (default 0=none, 2=pullup)
2230 + swapxy Swap x and y axis
2231 + xmin Minimum value on the X axis (default 0)
2232 + ymin Minimum value on the Y axis (default 0)
2233 + xmax Maximum value on the X axis (default 4095)
2234 + ymax Maximum value on the Y axis (default 4095)
2235 + pmin Minimum reported pressure value (default 0)
2236 + pmax Maximum reported pressure value (default 65535)
2237 + xohms Touchpanel sensitivity (X-plate resistance)
2240 + penirq is required and usually xohms (60-100) has to be set as well.
2241 + Apart from that, pmax (255) and swapxy are also common.
2242 + The rest of the calibration can be done with xinput-calibrator.
2243 + See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian
2244 + Device Tree binding document:
2245 + www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
2248 +Name: akkordion-iqdacplus
2249 +Info: Configures the Digital Dreamtime Akkordion Music Player (based on the
2250 + OEM IQAudIO DAC+ or DAC Zero module).
2251 +Load: dtoverlay=akkordion-iqdacplus,<param>=<val>
2252 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2253 + Digital volume control. Enable with
2254 + dtoverlay=akkordion-iqdacplus,24db_digital_gain
2255 + (The default behaviour is that the Digital
2256 + volume control is limited to a maximum of
2257 + 0dB. ie. it can attenuate but not provide
2258 + gain. For most users, this will be desired
2259 + as it will prevent clipping. By appending
2260 + the 24db_digital_gain parameter, the Digital
2261 + volume control will allow up to 24dB of
2262 + gain. If this parameter is enabled, it is the
2263 + responsibility of the user to ensure that
2264 + the Digital volume control is set to a value
2265 + that does not result in clipping/distortion!)
2268 +Name: allo-piano-dac-pcm512x-audio
2269 +Info: Configures the Allo Piano DAC (2.0/2.1) audio cards.
2270 + (NB. This initial support is for 2.0 channel audio ONLY! ie. stereo.
2271 + The subwoofer outputs on the Piano 2.1 are not currently supported!)
2272 +Load: dtoverlay=allo-piano-dac-pcm512x-audio,<param>
2273 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2274 + Digital volume control.
2275 + (The default behaviour is that the Digital
2276 + volume control is limited to a maximum of
2277 + 0dB. ie. it can attenuate but not provide
2278 + gain. For most users, this will be desired
2279 + as it will prevent clipping. By appending
2280 + the 24db_digital_gain parameter, the Digital
2281 + volume control will allow up to 24dB of
2282 + gain. If this parameter is enabled, it is the
2283 + responsibility of the user to ensure that
2284 + the Digital volume control is set to a value
2285 + that does not result in clipping/distortion!)
2289 +Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
2290 + connected to spi0.0
2291 +Load: dtoverlay=at86rf233,<param>=<val>
2292 +Params: interrupt GPIO used for INT (default 23)
2293 + reset GPIO used for Reset (default 24)
2294 + sleep GPIO used for Sleep (default 25)
2295 + speed SPI bus speed in Hz (default 3000000)
2296 + trim Fine tuning of the internal capacitance
2297 + arrays (0=+0pF, 15=+4.5pF, default 15)
2300 +Name: audioinjector-wm8731-audio
2301 +Info: Configures the audioinjector.net audio add on soundcard
2302 +Load: dtoverlay=audioinjector-wm8731-audio
2307 +Info: Switches PWM sound output to pins 12 (Right) & 13 (Left)
2308 +Load: dtoverlay=audremap,<param>=<val>
2309 +Params: swap_lr Reverse the channel allocation, which will also
2310 + swap the audio jack outputs (default off)
2311 + enable_jack Don't switch off the audio jack output
2315 +Name: bmp085_i2c-sensor
2316 +Info: This overlay is now deprecated - see i2c-sensor
2317 +Load: dtoverlay=bmp085_i2c-sensor
2322 +Info: Overlay for the DHT11/DHT21/DHT22 humidity/temperature sensors
2323 + Also sometimes found with the part number(s) AM230x.
2324 +Load: dtoverlay=dht11,<param>=<val>
2325 +Params: gpiopin GPIO connected to the sensor's DATA output.
2329 +Name: dionaudio-loco
2330 +Info: Configures the Dion Audio LOCO DAC-AMP
2331 +Load: dtoverlay=dionaudio-loco
2336 +Info: Overlay for a generic 18-bit DPI display
2337 + This uses GPIOs 0-21 (so no I2C, uart etc.), and activates the output
2338 + 2-3 seconds after the kernel has started.
2339 +Load: dtoverlay=dpi18
2344 +Info: Overlay for a generic 24-bit DPI display
2345 + This uses GPIOs 0-27 (so no I2C, uart etc.), and activates the output
2346 + 2-3 seconds after the kernel has started.
2347 +Load: dtoverlay=dpi24
2352 +Info: Selects the dwc_otg USB controller driver which has fiq support. This
2353 + is the default on all except the Pi Zero which defaults to dwc2.
2354 +Load: dtoverlay=dwc-otg
2359 +Info: Selects the dwc2 USB controller driver
2360 +Load: dtoverlay=dwc2,<param>=<val>
2361 +Params: dr_mode Dual role mode: "host", "peripheral" or "otg"
2363 + g-rx-fifo-size Size of rx fifo size in gadget mode
2365 + g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget
2368 + g-tx-fifo-size Size of periodic tx fifo per endpoint
2369 + (except ep0) in gadget mode
2372 +[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]
2376 +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI0
2377 +Load: dtoverlay=enc28j60,<param>=<val>
2378 +Params: int_pin GPIO used for INT (default 25)
2380 + speed SPI bus speed (default 12000000)
2383 +Name: enc28j60-spi2
2384 +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI2
2385 +Load: dtoverlay=enc28j60-spi2,<param>=<val>
2386 +Params: int_pin GPIO used for INT (default 39)
2388 + speed SPI bus speed (default 12000000)
2392 +Info: Use GPIO pin as rc-core style infrared receiver input. The rc-core-
2393 + based gpio_ir_recv driver maps received keys directly to a
2394 + /dev/input/event* device, all decoding is done by the kernel - LIRC is
2395 + not required! The key mapping and other decoding parameters can be
2396 + configured by "ir-keytable" tool.
2397 +Load: dtoverlay=gpio-ir,<param>=<val>
2398 +Params: gpio_pin Input pin number. Default is 18.
2400 + gpio_pull Desired pull-up/down state (off, down, up)
2401 + Default is "down".
2403 + rc-map-name Default rc keymap (can also be changed by
2404 + ir-keytable), defaults to "rc-rc6-mce"
2407 +Name: gpio-poweroff
2408 +Info: Drives a GPIO high or low on poweroff (including halt)
2409 +Load: dtoverlay=gpio-poweroff,<param>=<val>
2410 +Params: gpiopin GPIO for signalling (default 26)
2412 + active_low Set if the power control device requires a
2413 + high->low transition to trigger a power-down.
2414 + Note that this will require the support of a
2415 + custom dt-blob.bin to prevent a power-down
2416 + during the boot process, and that a reboot
2417 + will also cause the pin to go low.
2420 +Name: hifiberry-amp
2421 +Info: Configures the HifiBerry Amp and Amp+ audio cards
2422 +Load: dtoverlay=hifiberry-amp
2426 +Name: hifiberry-dac
2427 +Info: Configures the HifiBerry DAC audio card
2428 +Load: dtoverlay=hifiberry-dac
2432 +Name: hifiberry-dacplus
2433 +Info: Configures the HifiBerry DAC+ audio card
2434 +Load: dtoverlay=hifiberry-dacplus,<param>=<val>
2435 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2436 + Digital volume control. Enable with
2437 + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
2438 + (The default behaviour is that the Digital
2439 + volume control is limited to a maximum of
2440 + 0dB. ie. it can attenuate but not provide
2441 + gain. For most users, this will be desired
2442 + as it will prevent clipping. By appending
2443 + the 24dB_digital_gain parameter, the Digital
2444 + volume control will allow up to 24dB of
2445 + gain. If this parameter is enabled, it is the
2446 + responsibility of the user to ensure that
2447 + the Digital volume control is set to a value
2448 + that does not result in clipping/distortion!)
2449 + slave Force DAC+ Pro into slave mode, using Pi as
2450 + master for bit clock and frame clock.
2453 +Name: hifiberry-digi
2454 +Info: Configures the HifiBerry Digi and Digi+ audio card
2455 +Load: dtoverlay=hifiberry-digi
2459 +Name: hifiberry-digi-pro
2460 +Info: Configures the HifiBerry Digi+ Pro audio card
2461 +Load: dtoverlay=hifiberry-digi-pro
2466 +Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics
2467 + Default values match Texy's display shield
2468 +Load: dtoverlay=hy28a,<param>=<val>
2469 +Params: speed Display SPI bus speed
2471 + rotate Display rotation {0,90,180,270}
2473 + fps Delay between frame updates
2475 + debug Debug output level {0-7}
2477 + xohms Touchpanel sensitivity (X-plate resistance)
2479 + resetgpio GPIO used to reset controller
2481 + ledgpio GPIO used to control backlight
2485 +Info: HY28B - 2.8" TFT LCD Display Module by HAOYU Electronics
2486 + Default values match Texy's display shield
2487 +Load: dtoverlay=hy28b,<param>=<val>
2488 +Params: speed Display SPI bus speed
2490 + rotate Display rotation {0,90,180,270}
2492 + fps Delay between frame updates
2494 + debug Debug output level {0-7}
2496 + xohms Touchpanel sensitivity (X-plate resistance)
2498 + resetgpio GPIO used to reset controller
2500 + ledgpio GPIO used to control backlight
2504 +Info: Fall back to the i2c_bcm2708 driver for the i2c_arm bus.
2505 +Load: dtoverlay=i2c-bcm2708
2510 +Info: Adds support for software i2c controller on gpio pins
2511 +Load: dtoverlay=i2c-gpio,<param>=<val>
2512 +Params: i2c_gpio_sda GPIO used for I2C data (default "23")
2514 + i2c_gpio_scl GPIO used for I2C clock (default "24")
2516 + i2c_gpio_delay_us Clock delay in microseconds
2517 + (default "2" = ~100kHz)
2521 +Info: Adds support for a number of I2C bus multiplexers on i2c_arm
2522 +Load: dtoverlay=i2c-mux,<param>=<val>
2523 +Params: pca9542 Select the NXP PCA9542 device
2525 + pca9545 Select the NXP PCA9545 device
2527 + pca9548 Select the NXP PCA9548 device
2529 + addr Change I2C address of the device (default 0x70)
2532 +[ The i2c-mux-pca9548a overlay has been deleted. See i2c-mux. ]
2535 +Name: i2c-pwm-pca9685a
2536 +Info: Adds support for an NXP PCA9685A I2C PWM controller on i2c_arm
2537 +Load: dtoverlay=i2c-pwm-pca9685a,<param>=<val>
2538 +Params: addr I2C address of PCA9685A (default 0x40)
2542 +Info: Adds support for a number of I2C Real Time Clock devices
2543 +Load: dtoverlay=i2c-rtc,<param>=<val>
2544 +Params: abx80x Select one of the ABx80x family:
2545 + AB0801, AB0803, AB0804, AB0805,
2546 + AB1801, AB1803, AB1804, AB1805
2548 + ds1307 Select the DS1307 device
2550 + ds1339 Select the DS1339 device
2552 + ds3231 Select the DS3231 device
2554 + mcp7940x Select the MCP7940x device
2556 + mcp7941x Select the MCP7941x device
2558 + pcf2127 Select the PCF2127 device
2560 + pcf8523 Select the PCF8523 device
2562 + pcf8563 Select the PCF8563 device
2564 + trickle-diode-type Diode type for trickle charge - "standard" or
2565 + "schottky" (ABx80x only)
2567 + trickle-resistor-ohms Resistor value for trickle charge (DS1339,
2570 + wakeup-source Specify that the RTC can be used as a wakeup
2575 +Info: Adds support for a number of I2C barometric pressure and temperature
2576 + sensors on i2c_arm
2577 +Load: dtoverlay=i2c-sensor,<param>=<val>
2578 +Params: bmp085 Select the Bosch sensortronic BMP085
2580 + bmp280 Select the Bosch sensortronic BMP280
2584 +Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
2585 + are usable on all platforms.
2586 +Load: dtoverlay=i2c0-bcm2708,<param>=<val>
2587 +Params: sda0_pin GPIO pin for SDA0 (deprecated - use pins_*)
2588 + scl0_pin GPIO pin for SCL0 (deprecated - use pins_*)
2589 + pins_0_1 Use pins 0 and 1 (default)
2590 + pins_28_29 Use pins 28 and 29
2591 + pins_44_45 Use pins 44 and 45
2592 + pins_46_47 Use pins 46 and 47
2596 +Info: Enable the i2c_bcm2708 driver for the i2c1 bus
2597 +Load: dtoverlay=i2c1-bcm2708,<param>=<val>
2598 +Params: sda1_pin GPIO pin for SDA1 (2 or 44 - default 2)
2599 + scl1_pin GPIO pin for SCL1 (3 or 45 - default 3)
2600 + pin_func Alternative pin function (4 (alt0), 6 (alt2) -
2604 +Name: i2s-gpio28-31
2605 +Info: move I2S function block to GPIO 28 to 31
2606 +Load: dtoverlay=i2s-gpio28-31
2611 +Info: Configures the IQaudio DAC audio card
2612 +Load: dtoverlay=iqaudio-dac,<param>
2613 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2614 + Digital volume control. Enable with
2615 + "dtoverlay=iqaudio-dac,24db_digital_gain"
2616 + (The default behaviour is that the Digital
2617 + volume control is limited to a maximum of
2618 + 0dB. ie. it can attenuate but not provide
2619 + gain. For most users, this will be desired
2620 + as it will prevent clipping. By appending
2621 + the 24db_digital_gain parameter, the Digital
2622 + volume control will allow up to 24dB of
2623 + gain. If this parameter is enabled, it is the
2624 + responsibility of the user to ensure that
2625 + the Digital volume control is set to a value
2626 + that does not result in clipping/distortion!)
2629 +Name: iqaudio-dacplus
2630 +Info: Configures the IQaudio DAC+ audio card
2631 +Load: dtoverlay=iqaudio-dacplus,<param>=<val>
2632 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2633 + Digital volume control. Enable with
2634 + "dtoverlay=iqaudio-dacplus,24db_digital_gain"
2635 + (The default behaviour is that the Digital
2636 + volume control is limited to a maximum of
2637 + 0dB. ie. it can attenuate but not provide
2638 + gain. For most users, this will be desired
2639 + as it will prevent clipping. By appending
2640 + the 24db_digital_gain parameter, the Digital
2641 + volume control will allow up to 24dB of
2642 + gain. If this parameter is enabled, it is the
2643 + responsibility of the user to ensure that
2644 + the Digital volume control is set to a value
2645 + that does not result in clipping/distortion!)
2646 + auto_mute_amp If specified, unmute/mute the IQaudIO amp when
2647 + starting/stopping audio playback.
2648 + unmute_amp If specified, unmute the IQaudIO amp once when
2649 + the DAC driver module loads.
2652 +Name: iqaudio-digi-wm8804-audio
2653 +Info: Configures the IQAudIO Digi WM8804 audio card
2654 +Load: dtoverlay=iqaudio-digi-wm8804-audio,<param>=<val>
2655 +Params: card_name Override the default, "IQAudIODigi", card name.
2656 + dai_name Override the default, "IQAudIO Digi", dai name.
2657 + dai_stream_name Override the default, "IQAudIO Digi HiFi",
2662 +Info: Configures the JustBoom DAC HAT, Amp HAT, DAC Zero and Amp Zero audio
2664 +Load: dtoverlay=justboom-dac,<param>=<val>
2665 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
2666 + Digital volume control. Enable with
2667 + "dtoverlay=justboom-dac,24db_digital_gain"
2668 + (The default behaviour is that the Digital
2669 + volume control is limited to a maximum of
2670 + 0dB. ie. it can attenuate but not provide
2671 + gain. For most users, this will be desired
2672 + as it will prevent clipping. By appending
2673 + the 24dB_digital_gain parameter, the Digital
2674 + volume control will allow up to 24dB of
2675 + gain. If this parameter is enabled, it is the
2676 + responsibility of the user to ensure that
2677 + the Digital volume control is set to a value
2678 + that does not result in clipping/distortion!)
2681 +Name: justboom-digi
2682 +Info: Configures the JustBoom Digi HAT and Digi Zero audio cards
2683 +Load: dtoverlay=justboom-digi
2688 +Info: Configures lirc-rpi (Linux Infrared Remote Control for Raspberry Pi)
2689 + Consult the module documentation for more details.
2690 +Load: dtoverlay=lirc-rpi,<param>=<val>
2691 +Params: gpio_out_pin GPIO for output (default "17")
2693 + gpio_in_pin GPIO for input (default "18")
2695 + gpio_in_pull Pull up/down/off on the input pin
2698 + sense Override the IR receive auto-detection logic:
2699 + "0" = force active-high
2700 + "1" = force active-low
2701 + "-1" = use auto-detection
2704 + softcarrier Turn the software carrier "on" or "off"
2707 + invert "on" = invert the output pin (default "off")
2709 + debug "on" = enable additional debug messages
2714 +Info: Configures the MCP23017 I2C GPIO expander
2715 +Load: dtoverlay=mcp23017,<param>=<val>
2716 +Params: gpiopin Gpio pin connected to the INTA output of the
2717 + MCP23017 (default: 4)
2719 + addr I2C address of the MCP23017 (default: 0x20)
2723 +Info: Configures the MCP23S08/17 SPI GPIO expanders.
2724 + If devices are present on SPI1 or SPI2, those interfaces must be enabled
2725 + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
2726 + If interrupts are enabled for a device on a given CS# on a SPI bus, that
2727 + device must be the only one present on that SPI bus/CS#.
2728 +Load: dtoverlay=mcp23s17,<param>=<val>
2729 +Params: s08-spi<n>-<m>-present 4-bit integer, bitmap indicating MCP23S08
2730 + devices present on SPI<n>, CS#<m>
2732 + s17-spi<n>-<m>-present 8-bit integer, bitmap indicating MCP23S17
2733 + devices present on SPI<n>, CS#<m>
2735 + s08-spi<n>-<m>-int-gpio integer, enables interrupts on a single
2736 + MCP23S08 device on SPI<n>, CS#<m>, specifies
2737 + the GPIO pin to which INT output of MCP23S08
2740 + s17-spi<n>-<m>-int-gpio integer, enables mirrored interrupts on a
2741 + single MCP23S17 device on SPI<n>, CS#<m>,
2742 + specifies the GPIO pin to which either INTA
2743 + or INTB output of MCP23S17 is connected.
2747 +Info: Configures the MCP2515 CAN controller on spi0.0
2748 +Load: dtoverlay=mcp2515-can0,<param>=<val>
2749 +Params: oscillator Clock frequency for the CAN controller (Hz)
2751 + spimaxfrequency Maximum SPI frequence (Hz)
2753 + interrupt GPIO for interrupt signal
2757 +Info: Configures the MCP2515 CAN controller on spi0.1
2758 +Load: dtoverlay=mcp2515-can1,<param>=<val>
2759 +Params: oscillator Clock frequency for the CAN controller (Hz)
2761 + spimaxfrequency Maximum SPI frequence (Hz)
2763 + interrupt GPIO for interrupt signal
2767 +Info: Configures UART0 (ttyAMA0) so that a requested 38.4kbaud actually gets
2768 + 31.25kbaud, the frequency required for MIDI
2769 +Load: dtoverlay=midi-uart0
2774 +Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
2775 +Load: dtoverlay=mmc,<param>=<val>
2776 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
2781 +Info: MZ61581 display by Tontec
2782 +Load: dtoverlay=mz61581,<param>=<val>
2783 +Params: speed Display SPI bus speed
2785 + rotate Display rotation {0,90,180,270}
2787 + fps Delay between frame updates
2789 + txbuflen Transmit buffer length (default 32768)
2791 + debug Debug output level {0-7}
2793 + xohms Touchpanel sensitivity (X-plate resistance)
2796 +[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
2799 +[ The pcf8523-rtc overlay has been deleted. See i2c-rtc. ]
2802 +[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
2806 +Info: Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
2807 + from the VPU. There is a special driver for this with a separate DT
2808 + node, which has the unfortunate consequence of breaking the
2809 + act_led_gpio and act_led_activelow dtparams.
2810 + This overlay changes the GPIO controller back to the standard one and
2811 + restores the dtparams.
2812 +Load: dtoverlay=pi3-act-led,<param>=<val>
2813 +Params: activelow Set to "on" to invert the sense of the LED
2816 + gpio Set which GPIO to use for the activity LED
2817 + (in case you want to connect it to an external
2822 +Name: pi3-disable-bt
2823 +Info: Disable Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15
2824 + N.B. To disable the systemd service that initialises the modem so it
2825 + doesn't use the UART, use 'sudo systemctl disable hciuart'.
2826 +Load: dtoverlay=pi3-disable-bt
2830 +Name: pi3-miniuart-bt
2831 +Info: Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
2832 + UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
2834 + N.B. It is also necessary to edit /lib/systemd/system/hciuart.service
2835 + and replace ttyAMA0 with ttyS0, unless you have a system with udev rules
2836 + that create /dev/serial0 and /dev/serial1, in which case use
2837 + /dev/serial1 instead because it will always be correct. Furthermore,
2838 + you must also set core_freq=250 in config.txt or the miniuart will not
2840 +Load: dtoverlay=pi3-miniuart-bt
2845 +Info: PiScreen display by OzzMaker.com
2846 +Load: dtoverlay=piscreen,<param>=<val>
2847 +Params: speed Display SPI bus speed
2849 + rotate Display rotation {0,90,180,270}
2851 + fps Delay between frame updates
2853 + debug Debug output level {0-7}
2855 + xohms Touchpanel sensitivity (X-plate resistance)
2859 +Info: PiScreen 2 with resistive TP display by OzzMaker.com
2860 +Load: dtoverlay=piscreen2r,<param>=<val>
2861 +Params: speed Display SPI bus speed
2863 + rotate Display rotation {0,90,180,270}
2865 + fps Delay between frame updates
2867 + debug Debug output level {0-7}
2869 + xohms Touchpanel sensitivity (X-plate resistance)
2873 +Info: Configures the Blokas Labs pisound card
2874 +Load: dtoverlay=pisound
2879 +Info: Adafruit PiTFT 2.2" screen
2880 +Load: dtoverlay=pitft22,<param>=<val>
2881 +Params: speed Display SPI bus speed
2883 + rotate Display rotation {0,90,180,270}
2885 + fps Delay between frame updates
2887 + debug Debug output level {0-7}
2890 +Name: pitft28-capacitive
2891 +Info: Adafruit PiTFT 2.8" capacitive touch screen
2892 +Load: dtoverlay=pitft28-capacitive,<param>=<val>
2893 +Params: speed Display SPI bus speed
2895 + rotate Display rotation {0,90,180,270}
2897 + fps Delay between frame updates
2899 + debug Debug output level {0-7}
2901 + touch-sizex Touchscreen size x (default 240)
2903 + touch-sizey Touchscreen size y (default 320)
2905 + touch-invx Touchscreen inverted x axis
2907 + touch-invy Touchscreen inverted y axis
2909 + touch-swapxy Touchscreen swapped x y axis
2912 +Name: pitft28-resistive
2913 +Info: Adafruit PiTFT 2.8" resistive touch screen
2914 +Load: dtoverlay=pitft28-resistive,<param>=<val>
2915 +Params: speed Display SPI bus speed
2917 + rotate Display rotation {0,90,180,270}
2919 + fps Delay between frame updates
2921 + debug Debug output level {0-7}
2924 +Name: pitft35-resistive
2925 +Info: Adafruit PiTFT 3.5" resistive touch screen
2926 +Load: dtoverlay=pitft35-resistive,<param>=<val>
2927 +Params: speed Display SPI bus speed
2929 + rotate Display rotation {0,90,180,270}
2931 + fps Delay between frame updates
2933 + debug Debug output level {0-7}
2937 +Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
2938 +Load: dtoverlay=pps-gpio,<param>=<val>
2939 +Params: gpiopin Input GPIO (default "18")
2940 + assert_falling_edge When present, assert is indicated by a falling
2941 + edge, rather than by a rising edge
2945 +Info: Configures a single PWM channel
2946 + Legal pin,function combinations for each channel:
2947 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
2948 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
2950 + 1) Pin 18 is the only one available on all platforms, and
2951 + it is the one used by the I2S audio interface.
2952 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
2953 + 2) The onboard analogue audio output uses both PWM channels.
2954 + 3) So be careful mixing audio and PWM.
2955 + 4) Currently the clock must have been enabled and configured
2957 +Load: dtoverlay=pwm,<param>=<val>
2958 +Params: pin Output pin (default 18) - see table
2959 + func Pin function (default 2 = Alt5) - see above
2960 + clock PWM clock frequency (informational)
2964 +Info: Configures both PWM channels
2965 + Legal pin,function combinations for each channel:
2966 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
2967 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
2969 + 1) Pin 18 is the only one available on all platforms, and
2970 + it is the one used by the I2S audio interface.
2971 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
2972 + 2) The onboard analogue audio output uses both PWM channels.
2973 + 3) So be careful mixing audio and PWM.
2974 + 4) Currently the clock must have been enabled and configured
2976 +Load: dtoverlay=pwm-2chan,<param>=<val>
2977 +Params: pin Output pin (default 18) - see table
2978 + pin2 Output pin for other channel (default 19)
2979 + func Pin function (default 2 = Alt5) - see above
2980 + func2 Function for pin2 (default 2 = Alt5)
2981 + clock PWM clock frequency (informational)
2985 +Info: I2SE's Evaluation Board for PLC Stamp micro
2986 +Load: dtoverlay=qca7000,<param>=<val>
2987 +Params: int_pin GPIO pin for interrupt signal (default 23)
2989 + speed SPI bus speed (default 12 MHz)
2993 +Info: Configures the RaspiDAV Rev.3x audio card
2994 +Load: dtoverlay=raspidac3
2998 +Name: rpi-backlight
2999 +Info: Raspberry Pi official display backlight driver
3000 +Load: dtoverlay=rpi-backlight
3005 +Info: Configures the RPi DAC audio card
3006 +Load: dtoverlay=rpi-dac
3011 +Info: RPi-Display - 2.8" Touch Display by Watterott
3012 +Load: dtoverlay=rpi-display,<param>=<val>
3013 +Params: speed Display SPI bus speed
3014 + rotate Display rotation {0,90,180,270}
3015 + fps Delay between frame updates
3016 + debug Debug output level {0-7}
3017 + xohms Touchpanel sensitivity (X-plate resistance)
3018 + swapxy Swap x and y axis
3022 +Info: Official Raspberry Pi display touchscreen
3023 +Load: dtoverlay=rpi-ft5406
3028 +Info: Configures the RPi Proto audio card
3029 +Load: dtoverlay=rpi-proto
3034 +Info: Raspberry Pi Sense HAT
3035 +Load: dtoverlay=rpi-sense
3039 +Name: rra-digidac1-wm8741-audio
3040 +Info: Configures the Red Rocks Audio DigiDAC1 soundcard
3041 +Load: dtoverlay=rra-digidac1-wm8741-audio
3045 +Name: sc16is750-i2c
3046 +Info: Overlay for the NXP SC16IS750 UART with I2C Interface
3047 + Enables the chip on I2C1 at 0x48. To select another address,
3048 + please refer to table 10 in reference manual.
3050 +Load: dtoverlay=sc16is750-i2c,<param>=<val>
3051 +Params: int_pin GPIO used for IRQ (default 24)
3052 + addr Address (default 0x48)
3055 +Name: sc16is752-spi1
3056 +Info: Overlay for the NXP SC16IS752 Dual UART with SPI Interface
3057 + Enables the chip on SPI1.
3058 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3059 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3061 +Load: dtoverlay=sc16is752-spi1,<param>=<val>
3062 +Params: int_pin GPIO used for IRQ (default 24)
3066 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock.
3067 + N.B. This overlay is designed for situations where the mmc driver is
3068 + the default, so it disables the other (mmc) interface - this will kill
3069 + WiFi on a Pi3. If this isn't what you want, either use the sdtweak
3070 + overlay or the new sd_* dtparams of the base DTBs.
3071 +Load: dtoverlay=sdhost,<param>=<val>
3072 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
3075 + force_pio Disable DMA support (default off)
3077 + pio_limit Number of blocks above which to use DMA
3080 + debug Enable debug output (default off)
3084 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
3085 + and enables SDIO via GPIOs 22-27.
3086 +Load: dtoverlay=sdio,<param>=<val>
3087 +Params: overclock_50 SD Clock (in MHz) to use when the MMC framework
3090 + sdio_overclock SDIO Clock (in MHz) to use when the MMC
3091 + framework requests 50MHz
3093 + force_pio Disable DMA support (default off)
3095 + pio_limit Number of blocks above which to use DMA
3098 + debug Enable debug output (default off)
3100 + poll_once Disable SDIO-device polling every second
3101 + (default on: polling once at boot-time)
3103 + bus_width Set the SDIO host bus width (default 4 bits)
3107 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
3108 + and enables 1-bit SDIO via GPIOs 22-25.
3109 +Load: dtoverlay=sdio-1bit,<param>=<val>
3110 +Params: overclock_50 SD Clock (in MHz) to use when the MMC framework
3113 + sdio_overclock SDIO Clock (in MHz) to use when the MMC
3114 + framework requests 50MHz
3116 + force_pio Disable DMA support (default off)
3118 + pio_limit Number of blocks above which to use DMA
3121 + debug Enable debug output (default off)
3123 + poll_once Disable SDIO-device polling every second
3124 + (default on: polling once at boot-time)
3128 +Info: Tunes the bcm2835-sdhost SD/MMC driver
3129 + N.B. This functionality is now available via the sd_* dtparams in the
3131 +Load: dtoverlay=sdtweak,<param>=<val>
3132 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
3135 + force_pio Disable DMA support (default off)
3137 + pio_limit Number of blocks above which to use DMA
3140 + debug Enable debug output (default off)
3144 +Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!
3145 +Load: dtoverlay=smi
3150 +Info: Enables the userspace interface for the SMI driver
3151 +Load: dtoverlay=smi-dev
3156 +Info: Enables access to NAND flash via the SMI interface
3157 +Load: dtoverlay=smi-nand
3161 +Name: spi-gpio35-39
3162 +Info: move SPI function block to GPIO 35 to 39
3163 +Load: dtoverlay=spi-gpio35-39
3168 +Info: Adds support for a number of SPI Real Time Clock devices
3169 +Load: dtoverlay=spi-rtc,<param>=<val>
3170 +Params: pcf2123 Select the PCF2123 device
3174 +Info: Re-enables hardware CS/CE (chip selects) for SPI0
3175 +Load: dtoverlay=spi0-hw-cs
3180 +Info: Enables spi1 with a single chip select (CS) line and associated spidev
3181 + dev node. The gpio pin number for the CS line and spidev device node
3182 + creation are configurable.
3183 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3184 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3185 +Load: dtoverlay=spi1-1cs,<param>=<val>
3186 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3187 + cs0_spidev Set to 'disabled' to stop the creation of a
3188 + userspace device node /dev/spidev1.0 (default
3189 + is 'okay' or enabled).
3193 +Info: Enables spi1 with two chip select (CS) lines and associated spidev
3194 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3195 + creation are configurable.
3196 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3197 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3198 +Load: dtoverlay=spi1-2cs,<param>=<val>
3199 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3200 + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
3201 + cs0_spidev Set to 'disabled' to stop the creation of a
3202 + userspace device node /dev/spidev1.0 (default
3203 + is 'okay' or enabled).
3204 + cs1_spidev Set to 'disabled' to stop the creation of a
3205 + userspace device node /dev/spidev1.1 (default
3206 + is 'okay' or enabled).
3210 +Info: Enables spi1 with three chip select (CS) lines and associated spidev
3211 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3212 + creation are configurable.
3213 + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
3214 + A+, B+, Zero and PI2 B; as well as the Compute Module.
3215 +Load: dtoverlay=spi1-3cs,<param>=<val>
3216 +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
3217 + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
3218 + cs2_pin GPIO pin for CS2 (default 16 - BCM SPI1_CE2).
3219 + cs0_spidev Set to 'disabled' to stop the creation of a
3220 + userspace device node /dev/spidev1.0 (default
3221 + is 'okay' or enabled).
3222 + cs1_spidev Set to 'disabled' to stop the creation of a
3223 + userspace device node /dev/spidev1.1 (default
3224 + is 'okay' or enabled).
3225 + cs2_spidev Set to 'disabled' to stop the creation of a
3226 + userspace device node /dev/spidev1.2 (default
3227 + is 'okay' or enabled).
3231 +Info: Enables spi2 with a single chip select (CS) line and associated spidev
3232 + dev node. The gpio pin number for the CS line and spidev device node
3233 + creation are configurable.
3234 + N.B.: spi2 is only accessible with the Compute Module.
3235 +Load: dtoverlay=spi2-1cs,<param>=<val>
3236 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3237 + cs0_spidev Set to 'disabled' to stop the creation of a
3238 + userspace device node /dev/spidev2.0 (default
3239 + is 'okay' or enabled).
3243 +Info: Enables spi2 with two chip select (CS) lines and associated spidev
3244 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3245 + creation are configurable.
3246 + N.B.: spi2 is only accessible with the Compute Module.
3247 +Load: dtoverlay=spi2-2cs,<param>=<val>
3248 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3249 + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
3250 + cs0_spidev Set to 'disabled' to stop the creation of a
3251 + userspace device node /dev/spidev2.0 (default
3252 + is 'okay' or enabled).
3253 + cs1_spidev Set to 'disabled' to stop the creation of a
3254 + userspace device node /dev/spidev2.1 (default
3255 + is 'okay' or enabled).
3259 +Info: Enables spi2 with three chip select (CS) lines and associated spidev
3260 + dev nodes. The gpio pin numbers for the CS lines and spidev device node
3261 + creation are configurable.
3262 + N.B.: spi2 is only accessible with the Compute Module.
3263 +Load: dtoverlay=spi2-3cs,<param>=<val>
3264 +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
3265 + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
3266 + cs2_pin GPIO pin for CS2 (default 45 - BCM SPI2_CE2).
3267 + cs0_spidev Set to 'disabled' to stop the creation of a
3268 + userspace device node /dev/spidev2.0 (default
3269 + is 'okay' or enabled).
3270 + cs1_spidev Set to 'disabled' to stop the creation of a
3271 + userspace device node /dev/spidev2.1 (default
3272 + is 'okay' or enabled).
3273 + cs2_spidev Set to 'disabled' to stop the creation of a
3274 + userspace device node /dev/spidev2.2 (default
3275 + is 'okay' or enabled).
3279 +Info: 3.5" Color TFT Display by www.tinylcd.com
3280 + Options: Touch, RTC, keypad
3281 +Load: dtoverlay=tinylcd35,<param>=<val>
3282 +Params: speed Display SPI bus speed
3284 + rotate Display rotation {0,90,180,270}
3286 + fps Delay between frame updates
3288 + debug Debug output level {0-7}
3290 + touch Enable touch panel
3292 + touchgpio Touch controller IRQ GPIO
3294 + xohms Touchpanel: Resistance of X-plate in ohms
3296 + rtc-pcf PCF8563 Real Time Clock
3298 + rtc-ds DS1307 Real Time Clock
3300 + keypad Enable keypad
3303 + Display with touchpanel, PCF8563 RTC and keypad:
3304 + dtoverlay=tinylcd35,touch,rtc-pcf,keypad
3305 + Old touch display:
3306 + dtoverlay=tinylcd35,touch,touchgpio=3
3310 +Info: Enable uart1 in place of uart0
3311 +Load: dtoverlay=uart1,<param>=<val>
3312 +Params: txd1_pin GPIO pin for TXD1 (14, 32 or 40 - default 14)
3314 + rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
3318 +Info: Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
3320 +Load: dtoverlay=vc4-fkms-v3d,<param>
3321 +Params: cma-256 CMA is 256MB, 256MB-aligned (needs 1GB)
3322 + cma-192 CMA is 192MB, 256MB-aligned (needs 1GB)
3323 + cma-128 CMA is 128MB, 128MB-aligned
3324 + cma-96 CMA is 96MB, 128MB-aligned
3325 + cma-64 CMA is 64MB, 64MB-aligned
3329 +Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver. Running startx or
3330 + booting to GUI while this overlay is in use will cause interesting
3332 +Load: dtoverlay=vc4-kms-v3d,<param>
3333 +Params: cma-256 CMA is 256MB, 256MB-aligned (needs 1GB)
3334 + cma-192 CMA is 192MB, 256MB-aligned (needs 1GB)
3335 + cma-128 CMA is 128MB, 128MB-aligned
3336 + cma-96 CMA is 96MB, 128MB-aligned
3337 + cma-64 CMA is 64MB, 64MB-aligned
3341 +Info: Overlay for the Fen Logic VGA666 board
3342 + This uses GPIOs 2-21 (so no I2C), and activates the output 2-3 seconds
3343 + after the kernel has started.
3344 +Load: dtoverlay=vga666
3349 +Info: Configures the w1-gpio Onewire interface module.
3350 + Use this overlay if you *don't* need a GPIO to drive an external pullup.
3351 +Load: dtoverlay=w1-gpio,<param>=<val>
3352 +Params: gpiopin GPIO for I/O (default "4")
3354 + pullup Non-zero, "on", or "y" to enable the parasitic
3355 + power (2-wire, power-on-data) feature
3358 +Name: w1-gpio-pullup
3359 +Info: Configures the w1-gpio Onewire interface module.
3360 + Use this overlay if you *do* need a GPIO to drive an external pullup.
3361 +Load: dtoverlay=w1-gpio-pullup,<param>=<val>
3362 +Params: gpiopin GPIO for I/O (default "4")
3364 + pullup Non-zero, "on", or "y" to enable the parasitic
3365 + power (2-wire, power-on-data) feature
3367 + extpullup GPIO for external pullup (default "5")
3371 +Info: Configures the wittypi RTC module.
3372 +Load: dtoverlay=wittypi,<param>=<val>
3373 +Params: led_gpio GPIO for LED (default "17")
3374 + led_trigger Choose which activity the LED tracks (default
3381 +If you are experiencing problems that you think are DT-related, enable DT
3382 +diagnostic output by adding this to /boot/config.txt:
3386 +and rebooting. Then run:
3388 + sudo vcdbg log msg
3390 +and look for relevant messages.
3395 +This is only meant to be a quick introduction to the subject of Device Tree on
3396 +Raspberry Pi. There is a more complete explanation here:
3398 +http://www.raspberrypi.org/documentation/configuration/device-tree.md
3400 +++ b/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
3402 +// Definitions for ADAU1977 ADC
3407 + compatible = "brcm,bcm2708";
3413 + codec_supply: fixedregulator@0 {
3414 + compatible = "regulator-fixed";
3415 + regulator-name = "AVDD";
3416 + regulator-min-microvolt = <3300000>;
3417 + regulator-max-microvolt = <3300000>;
3426 + #address-cells = <1>;
3427 + #size-cells = <0>;
3430 + adau1977: codec@11 {
3431 + compatible = "adi,adau1977";
3433 + reset-gpios = <&gpio 5 0>;
3434 + AVDD-supply = <&codec_supply>;
3447 + target = <&sound>;
3449 + compatible = "adi,adau1977-adc";
3450 + i2s-controller = <&i2s>;
3456 +++ b/arch/arm/boot/dts/overlays/ads1015-overlay.dts
3459 + * 2016 - Erik Sejr
3465 + compatible = "brcm,bcm2708";
3466 + /* ----------- ADS1015 ------------ */
3468 + target = <&i2c_arm>;
3470 + #address-cells = <1>;
3471 + #size-cells = <0>;
3473 + ads1015: ads1015 {
3474 + compatible = "ti,ads1015";
3476 + #address-cells = <1>;
3477 + #size-cells = <0>;
3484 + target-path = "i2c_arm/ads1015";
3486 + #address-cells = <1>;
3487 + #size-cells = <0>;
3488 + channel_a: channel_a {
3491 + ti,datarate = <4>;
3497 + target-path = "i2c_arm/ads1015";
3499 + #address-cells = <1>;
3500 + #size-cells = <0>;
3501 + channel_b: channel_b {
3504 + ti,datarate = <4>;
3510 + target-path = "i2c_arm/ads1015";
3512 + #address-cells = <1>;
3513 + #size-cells = <0>;
3514 + channel_c: channel_c {
3517 + ti,datarate = <4>;
3523 + target-path = "i2c_arm/ads1015";
3525 + #address-cells = <1>;
3526 + #size-cells = <0>;
3527 + channel_d: channel_d {
3530 + ti,datarate = <4>;
3536 + addr = <&ads1015>,"reg:0";
3537 + cha_enable = <0>,"=1";
3538 + cha_cfg = <&channel_a>,"reg:0";
3539 + cha_gain = <&channel_a>,"ti,gain:0";
3540 + cha_datarate = <&channel_a>,"ti,datarate:0";
3541 + chb_enable = <0>,"=2";
3542 + chb_cfg = <&channel_b>,"reg:0";
3543 + chb_gain = <&channel_b>,"ti,gain:0";
3544 + chb_datarate = <&channel_b>,"ti,datarate:0";
3545 + chc_enable = <0>,"=3";
3546 + chc_cfg = <&channel_c>,"reg:0";
3547 + chc_gain = <&channel_c>,"ti,gain:0";
3548 + chc_datarate = <&channel_c>,"ti,datarate:0";
3549 + chd_enable = <0>,"=4";
3550 + chd_cfg = <&channel_d>,"reg:0";
3551 + chd_gain = <&channel_d>,"ti,gain:0";
3552 + chd_datarate = <&channel_d>,"ti,datarate:0";
3557 +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
3560 + * Generic Device Tree overlay for the ADS7846 touch controller
3568 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
3578 + target = <&spidev0>;
3580 + status = "disabled";
3585 + target = <&spidev1>;
3587 + status = "disabled";
3594 + ads7846_pins: ads7846_pins {
3595 + brcm,pins = <255>; /* illegal default value */
3596 + brcm,function = <0>; /* in */
3597 + brcm,pull = <0>; /* none */
3605 + /* needed to avoid dtc warning */
3606 + #address-cells = <1>;
3607 + #size-cells = <0>;
3609 + ads7846: ads7846@1 {
3610 + compatible = "ti,ads7846";
3612 + pinctrl-names = "default";
3613 + pinctrl-0 = <&ads7846_pins>;
3615 + spi-max-frequency = <2000000>;
3616 + interrupts = <255 2>; /* high-to-low edge triggered */
3617 + interrupt-parent = <&gpio>;
3618 + pendown-gpio = <&gpio 255 0>;
3620 + /* driver defaults */
3621 + ti,x-min = /bits/ 16 <0>;
3622 + ti,y-min = /bits/ 16 <0>;
3623 + ti,x-max = /bits/ 16 <0x0FFF>;
3624 + ti,y-max = /bits/ 16 <0x0FFF>;
3625 + ti,pressure-min = /bits/ 16 <0>;
3626 + ti,pressure-max = /bits/ 16 <0xFFFF>;
3627 + ti,x-plate-ohms = /bits/ 16 <400>;
3632 + cs = <&ads7846>,"reg:0";
3633 + speed = <&ads7846>,"spi-max-frequency:0";
3634 + penirq = <&ads7846_pins>,"brcm,pins:0", /* REQUIRED */
3635 + <&ads7846>,"interrupts:0",
3636 + <&ads7846>,"pendown-gpio:4";
3637 + penirq_pull = <&ads7846_pins>,"brcm,pull:0";
3638 + swapxy = <&ads7846>,"ti,swap-xy?";
3639 + xmin = <&ads7846>,"ti,x-min;0";
3640 + ymin = <&ads7846>,"ti,y-min;0";
3641 + xmax = <&ads7846>,"ti,x-max;0";
3642 + ymax = <&ads7846>,"ti,y-max;0";
3643 + pmin = <&ads7846>,"ti,pressure-min;0";
3644 + pmax = <&ads7846>,"ti,pressure-max;0";
3645 + xohms = <&ads7846>,"ti,x-plate-ohms;0";
3649 +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
3651 +// Definitions for Digital Dreamtime Akkordion using IQaudIO DAC+ or DACZero
3656 + compatible = "brcm,bcm2708";
3668 + #address-cells = <1>;
3669 + #size-cells = <0>;
3673 + #sound-dai-cells = <0>;
3674 + compatible = "ti,pcm5122";
3682 + target = <&sound>;
3683 + frag2: __overlay__ {
3684 + compatible = "iqaudio,iqaudio-dac";
3685 + card_name = "Akkordion";
3686 + dai_name = "IQaudIO DAC";
3687 + dai_stream_name = "IQaudIO DAC HiFi";
3688 + i2s-controller = <&i2s>;
3694 + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
3698 +++ b/arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
3701 + * Definitions for Allo Piano DAC (2.0/2.1) boards
3703 + * NB. The Piano DAC 2.1 board contains 2x TI PCM5142 DAC's. One DAC is stereo
3704 + * (left/right) and the other provides a subwoofer output, using DSP on the
3705 + * chip for digital high/low pass crossover.
3706 + * The initial support for this hardware, that doesn't require any codec driver
3707 + * modifications, uses only one DAC chip for stereo (left/right) output, the
3708 + * chip with 0x4c slave address. The other chip at 0x4d is currently ignored!
3715 + compatible = "brcm,bcm2708";
3727 + #address-cells = <1>;
3728 + #size-cells = <0>;
3732 + #sound-dai-cells = <0>;
3733 + compatible = "ti,pcm5142";
3741 + target = <&sound>;
3742 + piano_dac: __overlay__ {
3743 + compatible = "allo,piano-dac";
3744 + i2s-controller = <&i2s>;
3750 + 24db_digital_gain =
3751 + <&piano_dac>,"allo,24db_digital_gain?";
3755 +++ b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
3760 +/* Overlay for Atmel AT86RF233 IEEE 802.15.4 WPAN transceiver on spi0.0 */
3763 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
3768 + #address-cells = <1>;
3769 + #size-cells = <0>;
3773 + lowpan0: at86rf233@0 {
3774 + compatible = "atmel,at86rf233";
3776 + interrupt-parent = <&gpio>;
3777 + interrupts = <23 4>; /* active high */
3778 + reset-gpio = <&gpio 24 1>;
3779 + sleep-gpio = <&gpio 25 1>;
3780 + spi-max-frequency = <3000000>;
3781 + xtal-trim = /bits/ 8 <0xf>;
3787 + target = <&spidev0>;
3789 + status = "disabled";
3796 + lowpan0_pins: lowpan0_pins {
3797 + brcm,pins = <23 24 25>;
3798 + brcm,function = <0 1 1>; /* in out out */
3804 + interrupt = <&lowpan0>, "interrupts:0",
3805 + <&lowpan0_pins>, "brcm,pins:0";
3806 + reset = <&lowpan0>, "reset-gpio:4",
3807 + <&lowpan0_pins>, "brcm,pins:4";
3808 + sleep = <&lowpan0>, "sleep-gpio:4",
3809 + <&lowpan0_pins>, "brcm,pins:8";
3810 + speed = <&lowpan0>, "spi-max-frequency:0";
3811 + trim = <&lowpan0>, "xtal-trim.0";
3815 +++ b/arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
3817 +// Definitions for audioinjector.net audio add on soundcard
3822 + compatible = "brcm,bcm2708";
3834 + #address-cells = <1>;
3835 + #size-cells = <0>;
3839 + #sound-dai-cells = <0>;
3840 + compatible = "wlf,wm8731";
3848 + target = <&sound>;
3850 + compatible = "ai,audioinjector-pi-soundcard";
3851 + i2s-controller = <&i2s>;
3857 +++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
3863 + compatible = "brcm,bcm2708";
3866 + target = <&audio_pins>;
3867 + frag0: __overlay__ {
3868 + brcm,pins = < 12 13 >;
3869 + brcm,function = < 4 >; /* alt0 alt0 */
3874 + swap_lr = <&frag0>, "swap_lr?";
3875 + enable_jack = <&frag0>, "enable_jack?";
3879 +++ b/arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
3881 +// Definitions for BMP085/BMP180 digital barometric pressure and temperature sensors from Bosch Sensortec
3886 + compatible = "brcm,bcm2708";
3889 + target = <&i2c_arm>;
3891 + #address-cells = <1>;
3892 + #size-cells = <0>;
3896 + compatible = "bosch,bmp085";
3898 + default-oversampling = <3>;
3905 +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
3908 + * Overlay for the DHT11/21/22 humidity/temperature sensor modules.
3914 + compatible = "brcm,bcm2708";
3917 + target-path = "/";
3921 + compatible = "dht11";
3922 + pinctrl-names = "default";
3923 + pinctrl-0 = <&dht11_pins>;
3924 + gpios = <&gpio 4 0>;
3933 + dht11_pins: dht11_pins {
3935 + brcm,function = <0>; // in
3936 + brcm,pull = <0>; // off
3942 + gpiopin = <&dht11_pins>,"brcm,pins:0",
3943 + <&dht11>,"gpios:4";
3947 +++ b/arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
3949 +// Definitions for Dion Audio LOCO DAC-AMP
3952 + * PCM5242 DAC (in hardware mode) and TPA3118 AMP.
3959 + compatible = "brcm,bcm2708";
3969 + target-path = "/";
3972 + #sound-dai-cells = <0>;
3973 + compatible = "ti,pcm5102a";
3980 + target = <&sound>;
3982 + compatible = "dionaudio,loco-pcm5242-tpa3118";
3983 + i2s-controller = <&i2s>;
3989 +++ b/arch/arm/boot/dts/overlays/dpi18-overlay.dts
3995 + compatible = "brcm,bcm2708";
3997 + // There is no DPI driver module, but we need a platform device
3998 + // node (that doesn't already use pinctrl) to hang the pinctrl
3999 + // reference on - leds will do
4004 + pinctrl-names = "default";
4005 + pinctrl-0 = <&dpi18_pins>;
4012 + dpi18_pins: dpi18_pins {
4013 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
4014 + 12 13 14 15 16 17 18 19 20
4016 + brcm,function = <6>; /* alt2 */
4017 + brcm,pull = <0>; /* no pull */
4023 +++ b/arch/arm/boot/dts/overlays/dpi24-overlay.dts
4029 + compatible = "brcm,bcm2708";
4031 + // There is no DPI driver module, but we need a platform device
4032 + // node (that doesn't already use pinctrl) to hang the pinctrl
4033 + // reference on - leds will do
4038 + pinctrl-names = "default";
4039 + pinctrl-0 = <&dpi24_pins>;
4046 + dpi24_pins: dpi24_pins {
4047 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
4048 + 12 13 14 15 16 17 18 19 20
4049 + 21 22 23 24 25 26 27>;
4050 + brcm,function = <6>; /* alt2 */
4051 + brcm,pull = <0>; /* no pull */
4057 +++ b/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
4063 + compatible = "brcm,bcm2708";
4067 + #address-cells = <1>;
4068 + #size-cells = <1>;
4070 + compatible = "brcm,bcm2708-usb";
4071 + reg = <0x7e980000 0x10000>,
4072 + <0x7e006000 0x1000>;
4073 + interrupts = <2 0>,
4080 +++ b/arch/arm/boot/dts/overlays/dwc2-overlay.dts
4086 + compatible = "brcm,bcm2708";
4090 + #address-cells = <1>;
4091 + #size-cells = <1>;
4092 + dwc2_usb: __overlay__ {
4093 + compatible = "brcm,bcm2835-usb";
4094 + reg = <0x7e980000 0x10000>;
4095 + interrupts = <1 9>;
4097 + g-np-tx-fifo-size = <32>;
4098 + g-rx-fifo-size = <256>;
4099 + g-tx-fifo-size = <256 128 128 64 64 64 32>;
4105 + dr_mode = <&dwc2_usb>, "dr_mode";
4106 + g-np-tx-fifo-size = <&dwc2_usb>,"g-np-tx-fifo-size:0";
4107 + g-rx-fifo-size = <&dwc2_usb>,"g-rx-fifo-size:0";
4108 + g-tx-fifo-size = <&dwc2_usb>,"g-tx-fifo-size:0";
4112 +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
4114 +// Overlay for the Microchip ENC28J60 Ethernet Controller
4119 + compatible = "brcm,bcm2708";
4124 + /* needed to avoid dtc warning */
4125 + #address-cells = <1>;
4126 + #size-cells = <0>;
4131 + compatible = "microchip,enc28j60";
4132 + reg = <0>; /* CE0 */
4133 + pinctrl-names = "default";
4134 + pinctrl-0 = <ð1_pins>;
4135 + interrupt-parent = <&gpio>;
4136 + interrupts = <25 0x2>; /* falling edge */
4137 + spi-max-frequency = <12000000>;
4144 + target = <&spidev0>;
4146 + status = "disabled";
4153 + eth1_pins: eth1_pins {
4155 + brcm,function = <0>; /* in */
4156 + brcm,pull = <0>; /* none */
4162 + int_pin = <ð1>, "interrupts:0",
4163 + <ð1_pins>, "brcm,pins:0";
4164 + speed = <ð1>, "spi-max-frequency:0";
4168 +++ b/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
4170 +// Overlay for the Microchip ENC28J60 Ethernet Controller - SPI2 Compute Module
4171 +// Interrupt pin: 39
4176 + compatible = "brcm,bcm2708";
4181 + /* needed to avoid dtc warning */
4182 + #address-cells = <1>;
4183 + #size-cells = <0>;
4188 + compatible = "microchip,enc28j60";
4189 + reg = <0>; /* CE0 */
4190 + pinctrl-names = "default";
4191 + pinctrl-0 = <ð1_pins>;
4192 + interrupt-parent = <&gpio>;
4193 + interrupts = <39 0x2>; /* falling edge */
4194 + spi-max-frequency = <12000000>;
4203 + eth1_pins: eth1_pins {
4205 + brcm,function = <0>; /* in */
4206 + brcm,pull = <0>; /* none */
4212 + int_pin = <ð1>, "interrupts:0",
4213 + <ð1_pins>, "brcm,pins:0";
4214 + speed = <ð1>, "spi-max-frequency:0";
4218 +++ b/arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
4220 +// Definitions for ir-gpio module
4225 + compatible = "brcm,bcm2708";
4228 + target-path = "/";
4230 + gpio_ir: ir-receiver {
4231 + compatible = "gpio-ir-receiver";
4233 + // pin number, high or low
4234 + gpios = <&gpio 18 1>;
4236 + // parameter for keymap name
4237 + linux,rc-map-name = "rc-rc6-mce";
4247 + gpio_ir_pins: gpio_ir_pins {
4248 + brcm,pins = <18>; // pin 18
4249 + brcm,function = <0>; // in
4250 + brcm,pull = <1>; // down
4257 + gpio_pin = <&gpio_ir>,"gpios:4",
4258 + <&gpio_ir_pins>,"brcm,pins:0"; // pin number
4259 + gpio_pull = <&gpio_ir_pins>,"brcm,pull:0"; // pull-up/down state
4261 + rc-map-name = <&gpio_ir>,"linux,rc-map-name"; // default rc map
4265 +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
4267 +// Definitions for gpio-poweroff module
4272 + compatible = "brcm,bcm2708";
4275 + target-path = "/";
4277 + power_ctrl: power_ctrl {
4278 + compatible = "gpio-poweroff";
4279 + gpios = <&gpio 26 0>;
4288 + power_ctrl_pins: power_ctrl_pins {
4290 + brcm,function = <1>; // out
4296 + gpiopin = <&power_ctrl>,"gpios:4",
4297 + <&power_ctrl_pins>,"brcm,pins:0";
4298 + active_low = <&power_ctrl>,"gpios:8";
4302 +++ b/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
4304 +// Definitions for HiFiBerry Amp/Amp+
4309 + compatible = "brcm,bcm2708";
4321 + #address-cells = <1>;
4322 + #size-cells = <0>;
4326 + #sound-dai-cells = <0>;
4327 + compatible = "ti,tas5713";
4335 + target = <&sound>;
4337 + compatible = "hifiberry,hifiberry-amp";
4338 + i2s-controller = <&i2s>;
4344 +++ b/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
4346 +// Definitions for HiFiBerry DAC
4351 + compatible = "brcm,bcm2708";
4361 + target-path = "/";
4364 + #sound-dai-cells = <0>;
4365 + compatible = "ti,pcm5102a";
4372 + target = <&sound>;
4374 + compatible = "hifiberry,hifiberry-dac";
4375 + i2s-controller = <&i2s>;
4381 +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
4383 +// Definitions for HiFiBerry DAC+
4388 + compatible = "brcm,bcm2708";
4391 + target-path = "/clocks";
4393 + dacpro_osc: dacpro_osc {
4394 + compatible = "hifiberry,dacpro-clk";
4395 + #clock-cells = <0>;
4410 + #address-cells = <1>;
4411 + #size-cells = <0>;
4415 + #sound-dai-cells = <0>;
4416 + compatible = "ti,pcm5122";
4418 + clocks = <&dacpro_osc>;
4425 + target = <&sound>;
4426 + hifiberry_dacplus: __overlay__ {
4427 + compatible = "hifiberry,hifiberry-dacplus";
4428 + i2s-controller = <&i2s>;
4434 + 24db_digital_gain =
4435 + <&hifiberry_dacplus>,"hifiberry,24db_digital_gain?";
4436 + slave = <&hifiberry_dacplus>,"hifiberry-dacplus,slave?";
4440 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
4442 +// Definitions for HiFiBerry Digi
4447 + compatible = "brcm,bcm2708";
4459 + #address-cells = <1>;
4460 + #size-cells = <0>;
4464 + #sound-dai-cells = <0>;
4465 + compatible = "wlf,wm8804";
4473 + target = <&sound>;
4475 + compatible = "hifiberry,hifiberry-digi";
4476 + i2s-controller = <&i2s>;
4482 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
4484 +// Definitions for HiFiBerry Digi Pro
4489 + compatible = "brcm,bcm2708";
4501 + #address-cells = <1>;
4502 + #size-cells = <0>;
4506 + #sound-dai-cells = <0>;
4507 + compatible = "wlf,wm8804";
4515 + target = <&sound>;
4517 + compatible = "hifiberry,hifiberry-digi";
4518 + i2s-controller = <&i2s>;
4520 + clock44-gpio = <&gpio 5 0>;
4521 + clock48-gpio = <&gpio 6 0>;
4526 +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
4529 + * Device Tree overlay for HY28A display
4537 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
4547 + target = <&spidev0>;
4549 + status = "disabled";
4554 + target = <&spidev1>;
4556 + status = "disabled";
4563 + hy28a_pins: hy28a_pins {
4564 + brcm,pins = <17 25 18>;
4565 + brcm,function = <0 1 1>; /* in out out */
4573 + /* needed to avoid dtc warning */
4574 + #address-cells = <1>;
4575 + #size-cells = <0>;
4578 + compatible = "ilitek,ili9320";
4580 + pinctrl-names = "default";
4581 + pinctrl-0 = <&hy28a_pins>;
4583 + spi-max-frequency = <32000000>;
4590 + startbyte = <0x70>;
4591 + reset-gpios = <&gpio 25 0>;
4592 + led-gpios = <&gpio 18 1>;
4596 + hy28a_ts: hy28a-ts@1 {
4597 + compatible = "ti,ads7846";
4600 + spi-max-frequency = <2000000>;
4601 + interrupts = <17 2>; /* high-to-low edge triggered */
4602 + interrupt-parent = <&gpio>;
4603 + pendown-gpio = <&gpio 17 0>;
4604 + ti,x-plate-ohms = /bits/ 16 <100>;
4605 + ti,pressure-max = /bits/ 16 <255>;
4610 + speed = <&hy28a>,"spi-max-frequency:0";
4611 + rotate = <&hy28a>,"rotate:0";
4612 + fps = <&hy28a>,"fps:0";
4613 + debug = <&hy28a>,"debug:0";
4614 + xohms = <&hy28a_ts>,"ti,x-plate-ohms;0";
4615 + resetgpio = <&hy28a>,"reset-gpios:4",
4616 + <&hy28a_pins>, "brcm,pins:1";
4617 + ledgpio = <&hy28a>,"led-gpios:4",
4618 + <&hy28a_pins>, "brcm,pins:2";
4622 +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
4625 + * Device Tree overlay for HY28b display shield by Texy
4633 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
4643 + target = <&spidev0>;
4645 + status = "disabled";
4650 + target = <&spidev1>;
4652 + status = "disabled";
4659 + hy28b_pins: hy28b_pins {
4660 + brcm,pins = <17 25 18>;
4661 + brcm,function = <0 1 1>; /* in out out */
4669 + /* needed to avoid dtc warning */
4670 + #address-cells = <1>;
4671 + #size-cells = <0>;
4674 + compatible = "ilitek,ili9325";
4676 + pinctrl-names = "default";
4677 + pinctrl-0 = <&hy28b_pins>;
4679 + spi-max-frequency = <48000000>;
4686 + startbyte = <0x70>;
4687 + reset-gpios = <&gpio 25 0>;
4688 + led-gpios = <&gpio 18 1>;
4690 + gamma = "04 1F 4 7 7 0 7 7 6 0\n0F 00 1 7 4 0 0 0 6 7";
4692 + init = <0x10000e7 0x0010
4747 + hy28b_ts: hy28b-ts@1 {
4748 + compatible = "ti,ads7846";
4751 + spi-max-frequency = <2000000>;
4752 + interrupts = <17 2>; /* high-to-low edge triggered */
4753 + interrupt-parent = <&gpio>;
4754 + pendown-gpio = <&gpio 17 0>;
4755 + ti,x-plate-ohms = /bits/ 16 <100>;
4756 + ti,pressure-max = /bits/ 16 <255>;
4761 + speed = <&hy28b>,"spi-max-frequency:0";
4762 + rotate = <&hy28b>,"rotate:0";
4763 + fps = <&hy28b>,"fps:0";
4764 + debug = <&hy28b>,"debug:0";
4765 + xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
4766 + resetgpio = <&hy28b>,"reset-gpios:4",
4767 + <&hy28b_pins>, "brcm,pins:1";
4768 + ledgpio = <&hy28b>,"led-gpios:4",
4769 + <&hy28b_pins>, "brcm,pins:2";
4773 +++ b/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
4779 + compatible = "brcm,bcm2708";
4782 + target = <&i2c_arm>;
4784 + compatible = "brcm,bcm2708-i2c";
4789 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
4791 +// Overlay for i2c_gpio bitbanging host bus.
4796 + compatible = "brcm,bcm2708";
4799 + target-path = "/";
4802 + compatible = "i2c-gpio";
4803 + gpios = <&gpio 23 0 /* sda */
4804 + &gpio 24 0 /* scl */
4806 + i2c-gpio,delay-us = <2>; /* ~100 kHz */
4807 + #address-cells = <1>;
4808 + #size-cells = <0>;
4814 + target-path = "/aliases";
4816 + i2c_gpio = "/i2c@0";
4821 + target-path = "/__symbols__";
4823 + i2c_gpio = "/i2c@0";
4828 + i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
4829 + i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
4830 + i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
4835 +++ b/arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
4837 +// Umbrella I2C Mux overlay
4843 + compatible = "brcm,bcm2708";
4846 + target = <&i2c_arm>;
4848 + #address-cells = <1>;
4849 + #size-cells = <0>;
4853 + compatible = "nxp,pca9542";
4855 + #address-cells = <1>;
4856 + #size-cells = <0>;
4859 + #address-cells = <1>;
4860 + #size-cells = <0>;
4864 + #address-cells = <1>;
4865 + #size-cells = <0>;
4873 + target = <&i2c_arm>;
4875 + #address-cells = <1>;
4876 + #size-cells = <0>;
4880 + compatible = "nxp,pca9545";
4882 + #address-cells = <1>;
4883 + #size-cells = <0>;
4886 + #address-cells = <1>;
4887 + #size-cells = <0>;
4891 + #address-cells = <1>;
4892 + #size-cells = <0>;
4896 + #address-cells = <1>;
4897 + #size-cells = <0>;
4901 + #address-cells = <1>;
4902 + #size-cells = <0>;
4910 + target = <&i2c_arm>;
4912 + #address-cells = <1>;
4913 + #size-cells = <0>;
4917 + compatible = "nxp,pca9548";
4919 + #address-cells = <1>;
4920 + #size-cells = <0>;
4923 + #address-cells = <1>;
4924 + #size-cells = <0>;
4928 + #address-cells = <1>;
4929 + #size-cells = <0>;
4933 + #address-cells = <1>;
4934 + #size-cells = <0>;
4938 + #address-cells = <1>;
4939 + #size-cells = <0>;
4943 + #address-cells = <1>;
4944 + #size-cells = <0>;
4948 + #address-cells = <1>;
4949 + #size-cells = <0>;
4953 + #address-cells = <1>;
4954 + #size-cells = <0>;
4958 + #address-cells = <1>;
4959 + #size-cells = <0>;
4967 + pca9542 = <0>, "+0";
4968 + pca9545 = <0>, "+1";
4969 + pca9548 = <0>, "+2";
4971 + addr = <&pca9542>,"reg:0",
4972 + <&pca9545>,"reg:0",
4973 + <&pca9548>,"reg:0";
4977 +++ b/arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
4979 +// Definitions for NXP PCA9685A I2C PWM controller on ARM I2C bus.
4984 + compatible = "brcm,bcm2708";
4987 + target = <&i2c_arm>;
4989 + #address-cells = <1>;
4990 + #size-cells = <0>;
4994 + compatible = "nxp,pca9685";
5002 + addr = <&pca>,"reg:0";
5006 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
5008 +// Definitions for several I2C based Real Time Clocks
5013 + compatible = "brcm,bcm2708";
5016 + target = <&i2c_arm>;
5018 + #address-cells = <1>;
5019 + #size-cells = <0>;
5022 + abx80x: abx80x@69 {
5023 + compatible = "abracon,abx80x";
5025 + abracon,tc-diode = "standard";
5026 + abracon,tc-resistor = <0>;
5027 + status = "disable";
5029 + ds1307: ds1307@68 {
5030 + compatible = "maxim,ds1307";
5032 + status = "disable";
5034 + ds1339: ds1339@68 {
5035 + compatible = "dallas,ds1339";
5036 + trickle-resistor-ohms = <0>;
5038 + status = "disable";
5040 + mcp7940x: mcp7940x@6f {
5041 + compatible = "microchip,mcp7940x";
5043 + status = "disable";
5045 + mcp7941x: mcp7941x@6f {
5046 + compatible = "microchip,mcp7941x";
5048 + status = "disable";
5050 + ds3231: ds3231@68 {
5051 + compatible = "maxim,ds3231";
5053 + status = "disable";
5055 + pcf2127: pcf2127@51 {
5056 + compatible = "nxp,pcf2127";
5058 + status = "disable";
5060 + pcf8523: pcf8523@68 {
5061 + compatible = "nxp,pcf8523";
5063 + status = "disable";
5065 + pcf8563: pcf8563@51 {
5066 + compatible = "nxp,pcf8563";
5068 + status = "disable";
5073 + abx80x = <&abx80x>,"status";
5074 + ds1307 = <&ds1307>,"status";
5075 + ds1339 = <&ds1339>,"status";
5076 + ds3231 = <&ds3231>,"status";
5077 + mcp7940x = <&mcp7940x>,"status";
5078 + mcp7941x = <&mcp7941x>,"status";
5079 + pcf2127 = <&pcf2127>,"status";
5080 + pcf8523 = <&pcf8523>,"status";
5081 + pcf8563 = <&pcf8563>,"status";
5082 + trickle-diode-type = <&abx80x>,"abracon,tc-diode";
5083 + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
5084 + <&abx80x>,"abracon,tc-resistor";
5085 + wakeup-source = <&ds1339>,"wakeup-source?",
5086 + <&ds3231>,"wakeup-source?",
5087 + <&mcp7940x>,"wakeup-source?",
5088 + <&mcp7941x>,"wakeup-source?";
5092 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
5094 +// Definitions for a few digital barometric pressure and temperature sensors
5099 + compatible = "brcm,bcm2708";
5102 + target = <&i2c_arm>;
5104 + #address-cells = <1>;
5105 + #size-cells = <0>;
5108 + bmp085: bmp085@77 {
5109 + compatible = "bosch,bmp085";
5111 + default-oversampling = <3>;
5112 + status = "disable";
5115 + bmp280: bmp280@76 {
5116 + compatible = "bosch,bmp280";
5118 + status = "disable";
5124 + bmp085 = <&bmp085>,"status";
5125 + bmp280 = <&bmp280>,"status";
5129 +++ b/arch/arm/boot/dts/overlays/i2c0-bcm2708-overlay.dts
5132 + * Device tree overlay for i2c_bcm2708, i2c0 bus
5135 + * dtc -@ -I dts -O dtb -o i2c0-bcm2708-overlay.dtb i2c0-bcm2708-overlay.dts
5142 + compatible = "brcm,bcm2708";
5152 + target = <&i2c0_pins>;
5153 + frag1: __overlay__ {
5154 + brcm,pins = <0 1>;
5155 + brcm,function = <4>; /* alt0 */
5160 + target = <&i2c0_pins>;
5162 + brcm,pins = <28 29>;
5163 + brcm,function = <4>; /* alt0 */
5168 + target = <&i2c0_pins>;
5170 + brcm,pins = <44 45>;
5171 + brcm,function = <5>; /* alt1 */
5176 + target = <&i2c0_pins>;
5178 + brcm,pins = <46 47>;
5179 + brcm,function = <4>; /* alt0 */
5184 + sda0_pin = <&frag1>,"brcm,pins:0";
5185 + scl0_pin = <&frag1>,"brcm,pins:4";
5186 + pins_0_1 = <0>,"+1-2-3-4";
5187 + pins_28_29 = <0>,"-1+2-3-4";
5188 + pins_44_45 = <0>,"-1-2+3-4";
5189 + pins_46_47 = <0>,"-1-2-3+4";
5193 +++ b/arch/arm/boot/dts/overlays/i2c1-bcm2708-overlay.dts
5196 + * Device tree overlay for i2c_bcm2708, i2c1 bus
5199 + * dtc -@ -I dts -O dtb -o i2c1-bcm2708-overlay.dtb i2c1-bcm2708-overlay.dts
5206 + compatible = "brcm,bcm2708";
5211 + pinctrl-0 = <&i2c1_pins>;
5220 + brcm,pins = <2 3>;
5221 + brcm,function = <4>; /* alt0 */
5227 + sda1_pin = <&i2c1_pins>,"brcm,pins:0";
5228 + scl1_pin = <&i2c1_pins>,"brcm,pins:4";
5229 + pin_func = <&i2c1_pins>,"brcm,function:0";
5233 +++ b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
5236 + * Device tree overlay to move i2s to gpio 28 to 31 on CM
5243 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
5246 + target = <&i2s_pins>;
5248 + brcm,pins = <28 29 30 31>;
5249 + brcm,function = <6>; /* alt2 */
5254 +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
5256 +// Definitions for IQaudIO DAC
5261 + compatible = "brcm,bcm2708";
5273 + #address-cells = <1>;
5274 + #size-cells = <0>;
5278 + #sound-dai-cells = <0>;
5279 + compatible = "ti,pcm5122";
5287 + target = <&sound>;
5288 + frag2: __overlay__ {
5289 + compatible = "iqaudio,iqaudio-dac";
5290 + i2s-controller = <&i2s>;
5296 + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
5300 +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
5302 +// Definitions for IQaudIO DAC+
5307 + compatible = "brcm,bcm2708";
5319 + #address-cells = <1>;
5320 + #size-cells = <0>;
5324 + #sound-dai-cells = <0>;
5325 + compatible = "ti,pcm5122";
5333 + target = <&sound>;
5334 + iqaudio_dac: __overlay__ {
5335 + compatible = "iqaudio,iqaudio-dac";
5336 + i2s-controller = <&i2s>;
5337 + mute-gpios = <&gpio 22 0>;
5343 + 24db_digital_gain = <&iqaudio_dac>,"iqaudio,24db_digital_gain?";
5344 + auto_mute_amp = <&iqaudio_dac>,"iqaudio-dac,auto-mute-amp?";
5345 + unmute_amp = <&iqaudio_dac>,"iqaudio-dac,unmute-amp?";
5349 +++ b/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
5351 +// Definitions for IQAudIO Digi WM8804 audio board
5356 + compatible = "brcm,bcm2708";
5368 + #address-cells = <1>;
5369 + #size-cells = <0>;
5373 + #sound-dai-cells = <0>;
5374 + compatible = "wlf,wm8804";
5377 + // DVDD-supply = <®_3v3>;
5378 + // PVDD-supply = <®_3v3>;
5384 + target = <&sound>;
5385 + wm8804_digi: __overlay__ {
5386 + compatible = "iqaudio,wm8804-digi";
5387 + i2s-controller = <&i2s>;
5393 + card_name = <&wm8804_digi>,"wm8804-digi,card-name";
5394 + dai_name = <&wm8804_digi>,"wm8804-digi,dai-name";
5395 + dai_stream_name = <&wm8804_digi>,"wm8804-digi,dai-stream-name";
5399 +++ b/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
5401 +// Definitions for JustBoom DAC
5406 + compatible = "brcm,bcm2708";
5418 + #address-cells = <1>;
5419 + #size-cells = <0>;
5423 + #sound-dai-cells = <0>;
5424 + compatible = "ti,pcm5122";
5432 + target = <&sound>;
5433 + frag2: __overlay__ {
5434 + compatible = "justboom,justboom-dac";
5435 + i2s-controller = <&i2s>;
5441 + 24db_digital_gain = <&frag2>,"justboom,24db_digital_gain?";
5445 +++ b/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
5447 +// Definitions for JustBoom Digi
5452 + compatible = "brcm,bcm2708";
5464 + #address-cells = <1>;
5465 + #size-cells = <0>;
5469 + #sound-dai-cells = <0>;
5470 + compatible = "wlf,wm8804";
5478 + target = <&sound>;
5480 + compatible = "justboom,justboom-digi";
5481 + i2s-controller = <&i2s>;
5487 +++ b/arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
5489 +// Definitions for lirc-rpi module
5494 + compatible = "brcm,bcm2708";
5497 + target-path = "/";
5499 + lirc_rpi: lirc_rpi {
5500 + compatible = "rpi,lirc-rpi";
5501 + pinctrl-names = "default";
5502 + pinctrl-0 = <&lirc_pins>;
5505 + // Override autodetection of IR receiver circuit
5506 + // (0 = active high, 1 = active low, -1 = no override )
5507 + rpi,sense = <0xffffffff>;
5509 + // Software carrier
5510 + // (0 = off, 1 = on)
5511 + rpi,softcarrier = <1>;
5514 + // (0 = off, 1 = on)
5517 + // Enable debugging messages
5518 + // (0 = off, 1 = on)
5527 + lirc_pins: lirc_pins {
5528 + brcm,pins = <17 18>;
5529 + brcm,function = <1 0>; // out in
5530 + brcm,pull = <0 1>; // off down
5536 + gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
5537 + gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
5538 + gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
5540 + sense = <&lirc_rpi>,"rpi,sense:0";
5541 + softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
5542 + invert = <&lirc_rpi>,"rpi,invert:0";
5543 + debug = <&lirc_rpi>,"rpi,debug:0";
5547 +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
5549 +// Definitions for MCP23017 Gpio Extender from Microchip Semiconductor
5555 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
5567 + mcp23017_pins: mcp23017_pins {
5569 + brcm,function = <0>;
5577 + #address-cells = <1>;
5578 + #size-cells = <0>;
5580 + mcp23017: mcp@20 {
5581 + compatible = "microchip,mcp23017";
5584 + #gpio-cells = <2>;
5585 + #interrupt-cells=<2>;
5586 + interrupt-parent = <&gpio>;
5587 + interrupts = <4 2>;
5588 + interrupt-controller;
5589 + microchip,irq-mirror;
5597 + gpiopin = <&mcp23017_pins>,"brcm,pins:0",
5598 + <&mcp23017>,"interrupts:0";
5599 + addr = <&mcp23017>,"reg:0";
5604 +++ b/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
5606 +// Overlay for MCP23S08/17 GPIO Extenders from Microchip Semiconductor
5609 +// s08-spi<n>-<m>-present - 4-bit integer, bitmap indicating MCP23S08 devices present on SPI<n>, CS#<m>.
5610 +// s17-spi<n>-<m>-present - 8-bit integer, bitmap indicating MCP23S17 devices present on SPI<n>, CS#<m>.
5611 +// 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.
5612 +// 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.
5614 +// 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.
5615 +// 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#.
5617 +// Example 1: A single MCP23S17 device on SPI0, CS#0 with its SPI addr set to 0 and INTA output connected to GPIO25:
5618 +// dtoverlay=mcp23s17:s17-spi0-0-present=1,s17-spi0-0-int-gpio=25
5620 +// 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:
5621 +// dtoverlay=spi1-2cs
5622 +// dtoverlay=mcp23s17:s08-spi1-0-present=12,s17-spi1-1-present=131
5628 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
5630 + // disable spi-dev on spi0.0
5632 + target = <&spidev0>;
5634 + status = "disabled";
5638 + // disable spi-dev on spi0.1
5640 + target = <&spidev1>;
5642 + status = "disabled";
5646 + // disable spi-dev on spi1.0
5648 + target-path = "spi1/spidev@0";
5650 + status = "disabled";
5654 + // disable spi-dev on spi1.1
5656 + target-path = "spi1/spidev@1";
5658 + status = "disabled";
5662 + // disable spi-dev on spi1.2
5664 + target-path = "spi1/spidev@2";
5666 + status = "disabled";
5670 + // disable spi-dev on spi2.0
5672 + target-path = "spi2/spidev@0";
5674 + status = "disabled";
5678 + // disable spi-dev on spi2.1
5680 + target-path = "spi2/spidev@1";
5682 + status = "disabled";
5686 + // disable spi-dev on spi2.2
5688 + target-path = "spi2/spidev@2";
5690 + status = "disabled";
5694 + // enable one or more mcp23s08s on spi0.0
5699 + #address-cells = <1>;
5700 + #size-cells = <0>;
5701 + mcp23s08_00: mcp23s08@0 {
5702 + compatible = "microchip,mcp23s08";
5704 + #gpio-cells = <2>;
5705 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-0-present parameter */
5707 + spi-max-frequency = <500000>;
5709 + #interrupt-cells=<2>;
5710 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-0-int-gpio parameter */
5715 + // enable one or more mcp23s08s on spi0.1
5720 + #address-cells = <1>;
5721 + #size-cells = <0>;
5722 + mcp23s08_01: mcp23s08@1 {
5723 + compatible = "microchip,mcp23s08";
5725 + #gpio-cells = <2>;
5726 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-1-present parameter */
5728 + spi-max-frequency = <500000>;
5730 + #interrupt-cells=<2>;
5731 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-1-int-gpio parameter */
5736 + // enable one or more mcp23s08s on spi1.0
5741 + #address-cells = <1>;
5742 + #size-cells = <0>;
5743 + mcp23s08_10: mcp23s08@0 {
5744 + compatible = "microchip,mcp23s08";
5746 + #gpio-cells = <2>;
5747 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-0-present parameter */
5749 + spi-max-frequency = <500000>;
5751 + #interrupt-cells=<2>;
5752 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-0-int-gpio parameter */
5757 + // enable one or more mcp23s08s on spi1.1
5762 + #address-cells = <1>;
5763 + #size-cells = <0>;
5764 + mcp23s08_11: mcp23s08@1 {
5765 + compatible = "microchip,mcp23s08";
5767 + #gpio-cells = <2>;
5768 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-1-present parameter */
5770 + spi-max-frequency = <500000>;
5772 + #interrupt-cells=<2>;
5773 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-1-int-gpio parameter */
5778 + // enable one or more mcp23s08s on spi1.2
5783 + #address-cells = <1>;
5784 + #size-cells = <0>;
5785 + mcp23s08_12: mcp23s08@2 {
5786 + compatible = "microchip,mcp23s08";
5788 + #gpio-cells = <2>;
5789 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-2-present parameter */
5791 + spi-max-frequency = <500000>;
5793 + #interrupt-cells=<2>;
5794 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-2-int-gpio parameter */
5799 + // enable one or more mcp23s08s on spi2.0
5804 + #address-cells = <1>;
5805 + #size-cells = <0>;
5806 + mcp23s08_20: mcp23s08@0 {
5807 + compatible = "microchip,mcp23s08";
5809 + #gpio-cells = <2>;
5810 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-0-present parameter */
5812 + spi-max-frequency = <500000>;
5814 + #interrupt-cells=<2>;
5815 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-0-int-gpio parameter */
5820 + // enable one or more mcp23s08s on spi2.1
5825 + #address-cells = <1>;
5826 + #size-cells = <0>;
5827 + mcp23s08_21: mcp23s08@1 {
5828 + compatible = "microchip,mcp23s08";
5830 + #gpio-cells = <2>;
5831 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-1-present parameter */
5833 + spi-max-frequency = <500000>;
5835 + #interrupt-cells=<2>;
5836 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-1-int-gpio parameter */
5841 + // enable one or more mcp23s08s on spi2.2
5846 + #address-cells = <1>;
5847 + #size-cells = <0>;
5848 + mcp23s08_22: mcp23s08@2 {
5849 + compatible = "microchip,mcp23s08";
5851 + #gpio-cells = <2>;
5852 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-2-present parameter */
5854 + spi-max-frequency = <500000>;
5856 + #interrupt-cells=<2>;
5857 + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-2-int-gpio parameter */
5862 + // enable one or more mcp23s17s on spi0.0
5867 + #address-cells = <1>;
5868 + #size-cells = <0>;
5869 + mcp23s17_00: mcp23s17@0 {
5870 + compatible = "microchip,mcp23s17";
5872 + #gpio-cells = <2>;
5873 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-0-present parameter */
5875 + spi-max-frequency = <500000>;
5877 + #interrupt-cells=<2>;
5878 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-0-int-gpio parameter */
5883 + // enable one or more mcp23s17s on spi0.1
5888 + #address-cells = <1>;
5889 + #size-cells = <0>;
5890 + mcp23s17_01: mcp23s17@1 {
5891 + compatible = "microchip,mcp23s17";
5893 + #gpio-cells = <2>;
5894 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-1-present parameter */
5896 + spi-max-frequency = <500000>;
5898 + #interrupt-cells=<2>;
5899 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-1-int-gpio parameter */
5904 + // enable one or more mcp23s17s on spi1.0
5909 + #address-cells = <1>;
5910 + #size-cells = <0>;
5911 + mcp23s17_10: mcp23s17@0 {
5912 + compatible = "microchip,mcp23s17";
5914 + #gpio-cells = <2>;
5915 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-0-present parameter */
5917 + spi-max-frequency = <500000>;
5919 + #interrupt-cells=<2>;
5920 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-0-int-gpio parameter */
5925 + // enable one or more mcp23s17s on spi1.1
5930 + #address-cells = <1>;
5931 + #size-cells = <0>;
5932 + mcp23s17_11: mcp23s17@1 {
5933 + compatible = "microchip,mcp23s17";
5935 + #gpio-cells = <2>;
5936 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-1-present parameter */
5938 + spi-max-frequency = <500000>;
5940 + #interrupt-cells=<2>;
5941 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-1-int-gpio parameter */
5946 + // enable one or more mcp23s17s on spi1.2
5951 + #address-cells = <1>;
5952 + #size-cells = <0>;
5953 + mcp23s17_12: mcp23s17@2 {
5954 + compatible = "microchip,mcp23s17";
5956 + #gpio-cells = <2>;
5957 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-2-present parameter */
5959 + spi-max-frequency = <500000>;
5961 + #interrupt-cells=<2>;
5962 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-2-int-gpio parameter */
5967 + // enable one or more mcp23s17s on spi2.0
5972 + #address-cells = <1>;
5973 + #size-cells = <0>;
5974 + mcp23s17_20: mcp23s17@0 {
5975 + compatible = "microchip,mcp23s17";
5977 + #gpio-cells = <2>;
5978 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-0-present parameter */
5980 + spi-max-frequency = <500000>;
5982 + #interrupt-cells=<2>;
5983 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-0-int-gpio parameter */
5988 + // enable one or more mcp23s17s on spi2.1
5993 + #address-cells = <1>;
5994 + #size-cells = <0>;
5995 + mcp23s17_21: mcp23s17@1 {
5996 + compatible = "microchip,mcp23s17";
5998 + #gpio-cells = <2>;
5999 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-1-present parameter */
6001 + spi-max-frequency = <500000>;
6003 + #interrupt-cells=<2>;
6004 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-1-int-gpio parameter */
6009 + // enable one or more mcp23s17s on spi2.2
6014 + #address-cells = <1>;
6015 + #size-cells = <0>;
6016 + mcp23s17_22: mcp23s17@2 {
6017 + compatible = "microchip,mcp23s17";
6019 + #gpio-cells = <2>;
6020 + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-2-present parameter */
6022 + spi-max-frequency = <500000>;
6024 + #interrupt-cells=<2>;
6025 + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-2-int-gpio parameter */
6030 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.0 as a input with no pull-up/down
6034 + spi0_0_int_pins: spi0_0_int_pins {
6035 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-0-int-gpio parameter */
6036 + brcm,function = <0>;
6042 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.1 as a input with no pull-up/down
6046 + spi0_1_int_pins: spi0_1_int_pins {
6047 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-1-int-gpio parameter */
6048 + brcm,function = <0>;
6054 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.0 as a input with no pull-up/down
6058 + spi1_0_int_pins: spi1_0_int_pins {
6059 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-0-int-gpio parameter */
6060 + brcm,function = <0>;
6066 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.1 as a input with no pull-up/down
6070 + spi1_1_int_pins: spi1_1_int_pins {
6071 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-1-int-gpio parameter */
6072 + brcm,function = <0>;
6078 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.2 as a input with no pull-up/down
6082 + spi1_2_int_pins: spi1_2_int_pins {
6083 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-2-int-gpio parameter */
6084 + brcm,function = <0>;
6090 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.0 as a input with no pull-up/down
6094 + spi2_0_int_pins: spi2_0_int_pins {
6095 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-0-int-gpio parameter */
6096 + brcm,function = <0>;
6102 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.1 as a input with no pull-up/down
6106 + spi2_1_int_pins: spi2_1_int_pins {
6107 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-1-int-gpio parameter */
6108 + brcm,function = <0>;
6114 + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.2 as a input with no pull-up/down
6118 + spi2_2_int_pins: spi2_2_int_pins {
6119 + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-2-int-gpio parameter */
6120 + brcm,function = <0>;
6126 + // Enable interrupts for a mcp23s08 on spi0.0.
6127 + // Use default active low interrupt signalling.
6129 + target = <&mcp23s08_00>;
6131 + interrupt-parent = <&gpio>;
6132 + interrupt-controller;
6136 + // Enable interrupts for a mcp23s08 on spi0.1.
6137 + // Use default active low interrupt signalling.
6139 + target = <&mcp23s08_01>;
6141 + interrupt-parent = <&gpio>;
6142 + interrupt-controller;
6146 + // Enable interrupts for a mcp23s08 on spi1.0.
6147 + // Use default active low interrupt signalling.
6149 + target = <&mcp23s08_10>;
6151 + interrupt-parent = <&gpio>;
6152 + interrupt-controller;
6156 + // Enable interrupts for a mcp23s08 on spi1.1.
6157 + // Use default active low interrupt signalling.
6159 + target = <&mcp23s08_11>;
6161 + interrupt-parent = <&gpio>;
6162 + interrupt-controller;
6166 + // Enable interrupts for a mcp23s08 on spi1.2.
6167 + // Use default active low interrupt signalling.
6169 + target = <&mcp23s08_12>;
6171 + interrupt-parent = <&gpio>;
6172 + interrupt-controller;
6176 + // Enable interrupts for a mcp23s08 on spi2.0.
6177 + // Use default active low interrupt signalling.
6179 + target = <&mcp23s08_20>;
6181 + interrupt-parent = <&gpio>;
6182 + interrupt-controller;
6186 + // Enable interrupts for a mcp23s08 on spi2.1.
6187 + // Use default active low interrupt signalling.
6189 + target = <&mcp23s08_21>;
6191 + interrupt-parent = <&gpio>;
6192 + interrupt-controller;
6196 + // Enable interrupts for a mcp23s08 on spi2.2.
6197 + // Use default active low interrupt signalling.
6199 + target = <&mcp23s08_22>;
6201 + interrupt-parent = <&gpio>;
6202 + interrupt-controller;
6206 + // Enable interrupts for a mcp23s17 on spi0.0.
6207 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6208 + // Use default active low interrupt signalling.
6210 + target = <&mcp23s17_00>;
6212 + interrupt-parent = <&gpio>;
6213 + interrupt-controller;
6214 + microchip,irq-mirror;
6218 + // Enable interrupts for a mcp23s17 on spi0.1.
6219 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6220 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6222 + target = <&mcp23s17_01>;
6224 + interrupt-parent = <&gpio>;
6225 + interrupt-controller;
6226 + microchip,irq-mirror;
6230 + // Enable interrupts for a mcp23s17 on spi1.0.
6231 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6232 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6234 + target = <&mcp23s17_10>;
6236 + interrupt-parent = <&gpio>;
6237 + interrupt-controller;
6238 + microchip,irq-mirror;
6242 + // Enable interrupts for a mcp23s17 on spi1.1.
6243 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6244 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6246 + target = <&mcp23s17_11>;
6248 + interrupt-parent = <&gpio>;
6249 + interrupt-controller;
6250 + microchip,irq-mirror;
6254 + // Enable interrupts for a mcp23s17 on spi1.2.
6255 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6256 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6258 + target = <&mcp23s17_12>;
6260 + interrupt-parent = <&gpio>;
6261 + interrupt-controller;
6262 + microchip,irq-mirror;
6266 + // Enable interrupts for a mcp23s17 on spi2.0.
6267 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6268 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6270 + target = <&mcp23s17_20>;
6272 + interrupt-parent = <&gpio>;
6273 + interrupt-controller;
6274 + microchip,irq-mirror;
6278 + // Enable interrupts for a mcp23s17 on spi2.1.
6279 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6280 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6282 + target = <&mcp23s17_21>;
6284 + interrupt-parent = <&gpio>;
6285 + interrupt-controller;
6286 + microchip,irq-mirror;
6290 + // Enable interrupts for a mcp23s17 on spi2.2.
6291 + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
6292 + // Configure INTA/B outputs of mcp23s08/17 as active low.
6294 + target = <&mcp23s17_22>;
6296 + interrupt-parent = <&gpio>;
6297 + interrupt-controller;
6298 + microchip,irq-mirror;
6303 + s08-spi0-0-present = <0>,"+0+8", <&mcp23s08_00>,"microchip,spi-present-mask:0";
6304 + s08-spi0-1-present = <0>,"+1+9", <&mcp23s08_01>,"microchip,spi-present-mask:0";
6305 + s08-spi1-0-present = <0>,"+2+10", <&mcp23s08_10>,"microchip,spi-present-mask:0";
6306 + s08-spi1-1-present = <0>,"+3+11", <&mcp23s08_11>,"microchip,spi-present-mask:0";
6307 + s08-spi1-2-present = <0>,"+4+12", <&mcp23s08_12>,"microchip,spi-present-mask:0";
6308 + s08-spi2-0-present = <0>,"+5+13", <&mcp23s08_20>,"microchip,spi-present-mask:0";
6309 + s08-spi2-1-present = <0>,"+6+14", <&mcp23s08_21>,"microchip,spi-present-mask:0";
6310 + s08-spi2-2-present = <0>,"+7+15", <&mcp23s08_22>,"microchip,spi-present-mask:0";
6311 + s17-spi0-0-present = <0>,"+0+16", <&mcp23s17_00>,"microchip,spi-present-mask:0";
6312 + s17-spi0-1-present = <0>,"+1+17", <&mcp23s17_01>,"microchip,spi-present-mask:0";
6313 + s17-spi1-0-present = <0>,"+2+18", <&mcp23s17_10>,"microchip,spi-present-mask:0";
6314 + s17-spi1-1-present = <0>,"+3+19", <&mcp23s17_11>,"microchip,spi-present-mask:0";
6315 + s17-spi1-2-present = <0>,"+4+20", <&mcp23s17_12>,"microchip,spi-present-mask:0";
6316 + s17-spi2-0-present = <0>,"+5+21", <&mcp23s17_20>,"microchip,spi-present-mask:0";
6317 + s17-spi2-1-present = <0>,"+6+22", <&mcp23s17_21>,"microchip,spi-present-mask:0";
6318 + s17-spi2-2-present = <0>,"+7+23", <&mcp23s17_22>,"microchip,spi-present-mask:0";
6319 + s08-spi0-0-int-gpio = <0>,"+24+32", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s08_00>,"interrupts:0";
6320 + s08-spi0-1-int-gpio = <0>,"+25+33", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s08_01>,"interrupts:0";
6321 + s08-spi1-0-int-gpio = <0>,"+26+34", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s08_10>,"interrupts:0";
6322 + s08-spi1-1-int-gpio = <0>,"+27+35", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s08_11>,"interrupts:0";
6323 + s08-spi1-2-int-gpio = <0>,"+28+36", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s08_12>,"interrupts:0";
6324 + s08-spi2-0-int-gpio = <0>,"+29+37", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s08_20>,"interrupts:0";
6325 + s08-spi2-1-int-gpio = <0>,"+30+38", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s08_21>,"interrupts:0";
6326 + s08-spi2-2-int-gpio = <0>,"+31+39", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s08_22>,"interrupts:0";
6327 + s17-spi0-0-int-gpio = <0>,"+24+40", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s17_00>,"interrupts:0";
6328 + s17-spi0-1-int-gpio = <0>,"+25+41", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s17_01>,"interrupts:0";
6329 + s17-spi1-0-int-gpio = <0>,"+26+42", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s17_10>,"interrupts:0";
6330 + s17-spi1-1-int-gpio = <0>,"+27+43", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s17_11>,"interrupts:0";
6331 + s17-spi1-2-int-gpio = <0>,"+28+44", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s17_12>,"interrupts:0";
6332 + s17-spi2-0-int-gpio = <0>,"+29+45", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s17_20>,"interrupts:0";
6333 + s17-spi2-1-int-gpio = <0>,"+30+46", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s17_21>,"interrupts:0";
6334 + s17-spi2-2-int-gpio = <0>,"+31+47", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s17_22>,"interrupts:0";
6339 +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
6342 + * Device tree overlay for mcp251x/can0 on spi0.0
6349 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
6350 + /* disable spi-dev for spi0.0 */
6359 + target = <&spidev0>;
6361 + status = "disabled";
6365 + /* the interrupt pin of the can-controller */
6369 + can0_pins: can0_pins {
6371 + brcm,function = <0>; /* input */
6376 + /* the clock/oscillator of the can-controller */
6378 + target-path = "/clocks";
6380 + /* external oscillator of mcp2515 on SPI0.0 */
6381 + can0_osc: can0_osc {
6382 + compatible = "fixed-clock";
6383 + #clock-cells = <0>;
6384 + clock-frequency = <16000000>;
6389 + /* the spi config of the can-controller itself binding everything together */
6393 + /* needed to avoid dtc warning */
6394 + #address-cells = <1>;
6395 + #size-cells = <0>;
6398 + compatible = "microchip,mcp2515";
6399 + pinctrl-names = "default";
6400 + pinctrl-0 = <&can0_pins>;
6401 + spi-max-frequency = <10000000>;
6402 + interrupt-parent = <&gpio>;
6403 + interrupts = <25 0x2>;
6404 + clocks = <&can0_osc>;
6409 + oscillator = <&can0_osc>,"clock-frequency:0";
6410 + spimaxfrequency = <&can0>,"spi-max-frequency:0";
6411 + interrupt = <&can0_pins>,"brcm,pins:0",<&can0>,"interrupts:0";
6415 +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
6418 + * Device tree overlay for mcp251x/can1 on spi0.1 edited by petit_miner
6425 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
6426 + /* disable spi-dev for spi0.1 */
6435 + target = <&spidev1>;
6437 + status = "disabled";
6441 + /* the interrupt pin of the can-controller */
6445 + can1_pins: can1_pins {
6447 + brcm,function = <0>; /* input */
6452 + /* the clock/oscillator of the can-controller */
6454 + target-path = "/clocks";
6456 + /* external oscillator of mcp2515 on spi0.1 */
6457 + can1_osc: can1_osc {
6458 + compatible = "fixed-clock";
6459 + #clock-cells = <0>;
6460 + clock-frequency = <16000000>;
6465 + /* the spi config of the can-controller itself binding everything together */
6469 + /* needed to avoid dtc warning */
6470 + #address-cells = <1>;
6471 + #size-cells = <0>;
6474 + compatible = "microchip,mcp2515";
6475 + pinctrl-names = "default";
6476 + pinctrl-0 = <&can1_pins>;
6477 + spi-max-frequency = <10000000>;
6478 + interrupt-parent = <&gpio>;
6479 + interrupts = <25 0x2>;
6480 + clocks = <&can1_osc>;
6485 + oscillator = <&can1_osc>,"clock-frequency:0";
6486 + spimaxfrequency = <&can1>,"spi-max-frequency:0";
6487 + interrupt = <&can1_pins>,"brcm,pins:0",<&can1>,"interrupts:0";
6491 +++ b/arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
6496 +#include <dt-bindings/clock/bcm2835.h>
6499 + * Fake a higher clock rate to get a larger divisor, and thereby a lower
6500 + * baudrate. The real clock is 48MHz, which we scale so that requesting
6501 + * 38.4kHz results in an actual 31.25kHz.
6503 + * 48000000*38400/31250 = 58982400
6507 + compatible = "brcm,bcm2835";
6510 + target-path = "/clocks";
6512 + midi_clk: midi_clk {
6513 + compatible = "fixed-clock";
6514 + #clock-cells = <0>;
6515 + clock-output-names = "uart0_pclk";
6516 + clock-frequency = <58982400>;
6522 + target = <&uart0>;
6524 + clocks = <&midi_clk>,
6525 + <&clocks BCM2835_CLOCK_VPU>;
6530 +++ b/arch/arm/boot/dts/overlays/mmc-overlay.dts
6536 + compatible = "brcm,bcm2708";
6540 + frag0: __overlay__ {
6541 + pinctrl-names = "default";
6542 + pinctrl-0 = <&mmc_pins>;
6544 + brcm,overclock-50 = <0>;
6552 + mmc_pins: mmc_pins {
6553 + brcm,pins = <48 49 50 51 52 53>;
6554 + brcm,function = <7>; /* alt3 */
6560 + target = <&sdhost>;
6562 + status = "disabled";
6567 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
6571 +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
6574 + * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
6582 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
6592 + target = <&spidev0>;
6594 + status = "disabled";
6599 + target = <&spidev1>;
6601 + status = "disabled";
6608 + mz61581_pins: mz61581_pins {
6609 + brcm,pins = <4 15 18 25>;
6610 + brcm,function = <0 1 1 1>; /* in out out out */
6618 + /* needed to avoid dtc warning */
6619 + #address-cells = <1>;
6620 + #size-cells = <0>;
6622 + mz61581: mz61581@0{
6623 + compatible = "samsung,s6d02a1";
6625 + pinctrl-names = "default";
6626 + pinctrl-0 = <&mz61581_pins>;
6628 + spi-max-frequency = <128000000>;
6638 + txbuflen = <32768>;
6640 + reset-gpios = <&gpio 15 0>;
6641 + dc-gpios = <&gpio 25 0>;
6642 + led-gpios = <&gpio 18 0>;
6644 + init = <0x10000b0 00
6647 + 0x10000b3 0x02 0x00 0x00 0x00
6648 + 0x10000c0 0x13 0x3b 0x00 0x02 0x00 0x01 0x00 0x43
6649 + 0x10000c1 0x08 0x16 0x08 0x08
6650 + 0x10000c4 0x11 0x07 0x03 0x03
6652 + 0x10000c8 0x03 0x03 0x13 0x5c 0x03 0x07 0x14 0x08 0x00 0x21 0x08 0x14 0x07 0x53 0x0c 0x13 0x03 0x03 0x21 0x00
6656 + 0x1000044 0x00 0x01
6657 + 0x10000d0 0x07 0x07 0x1d 0x03
6658 + 0x10000d1 0x03 0x30 0x10
6659 + 0x10000d2 0x03 0x14 0x04
6663 + /* This is a workaround to make sure the init sequence slows down and doesn't fail */
6667 + mz61581_ts: mz61581_ts@1 {
6668 + compatible = "ti,ads7846";
6671 + spi-max-frequency = <2000000>;
6672 + interrupts = <4 2>; /* high-to-low edge triggered */
6673 + interrupt-parent = <&gpio>;
6674 + pendown-gpio = <&gpio 4 0>;
6676 + ti,x-plate-ohms = /bits/ 16 <60>;
6677 + ti,pressure-max = /bits/ 16 <255>;
6682 + speed = <&mz61581>, "spi-max-frequency:0";
6683 + rotate = <&mz61581>, "rotate:0";
6684 + fps = <&mz61581>, "fps:0";
6685 + txbuflen = <&mz61581>, "txbuflen:0";
6686 + debug = <&mz61581>, "debug:0";
6687 + xohms = <&mz61581_ts>,"ti,x-plate-ohms;0";
6691 +++ b/arch/arm/boot/dts/overlays/pi3-act-led-overlay.dts
6696 +/* Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
6697 + from the VPU. There is a special driver for this with a separate DT node,
6698 + which has the unfortunate consequence of breaking the act_led_gpio and
6699 + act_led_activelow dtparams.
6701 + This overlay changes the GPIO controller back to the standard one and
6702 + restores the dtparams.
6706 + compatible = "brcm,bcm2708";
6709 + target = <&act_led>;
6710 + frag0: __overlay__ {
6711 + gpios = <&gpio 0 0>;
6716 + gpio = <&frag0>,"gpios:4";
6717 + activelow = <&frag0>,"gpios:8";
6721 +++ b/arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
6726 +/* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
6727 + To disable the systemd service that initialises the modem so it doesn't use
6730 + sudo systemctl disable hciuart
6734 + compatible = "brcm,bcm2708";
6737 + target = <&uart1>;
6739 + status = "disabled";
6744 + target = <&uart0>;
6746 + pinctrl-names = "default";
6747 + pinctrl-0 = <&uart0_pins>;
6753 + target = <&uart0_pins>;
6762 + target-path = "/aliases";
6764 + serial0 = "/soc/serial@7e201000";
6765 + serial1 = "/soc/serial@7e215040";
6770 +++ b/arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
6775 +/* Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
6776 + UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
6779 + It is also necessary to edit /lib/systemd/system/hciuart.service and
6780 + replace ttyAMA0 with ttyS0, unless you have a system with udev rules
6781 + that create /dev/serial0 and /dev/serial1, in which case use /dev/serial1
6782 + instead because it will always be correct.
6784 + If cmdline.txt uses the alias serial0 to refer to the user-accessable port
6785 + then the firmware will replace with the appropriate port whether or not
6786 + this overlay is used.
6790 + compatible = "brcm,bcm2708";
6793 + target = <&uart0>;
6795 + pinctrl-names = "default";
6796 + pinctrl-0 = <&uart0_pins>;
6802 + target = <&uart1>;
6804 + pinctrl-names = "default";
6805 + pinctrl-0 = <&uart1_pins &bt_pins>;
6811 + target = <&uart0_pins>;
6820 + target = <&uart1_pins>;
6822 + brcm,pins = <32 33>;
6823 + brcm,function = <2>; /* alt5=UART1 */
6824 + brcm,pull = <0 2>;
6829 + target-path = "/aliases";
6831 + serial0 = "/soc/serial@7e201000";
6832 + serial1 = "/soc/serial@7e215040";
6837 +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
6840 + * Device Tree overlay for PiScreen 3.5" display shield by Ozzmaker
6848 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
6858 + target = <&spidev0>;
6860 + status = "disabled";
6865 + target = <&spidev1>;
6867 + status = "disabled";
6874 + piscreen_pins: piscreen_pins {
6875 + brcm,pins = <17 25 24 22>;
6876 + brcm,function = <0 1 1 1>; /* in out out out */
6884 + /* needed to avoid dtc warning */
6885 + #address-cells = <1>;
6886 + #size-cells = <0>;
6888 + piscreen: piscreen@0{
6889 + compatible = "ilitek,ili9486";
6891 + pinctrl-names = "default";
6892 + pinctrl-0 = <&piscreen_pins>;
6894 + spi-max-frequency = <24000000>;
6900 + reset-gpios = <&gpio 25 0>;
6901 + dc-gpios = <&gpio 24 0>;
6902 + led-gpios = <&gpio 22 1>;
6905 + init = <0x10000b0 0x00
6911 + 0x10000c5 0x00 0x00 0x00 0x00
6912 + 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
6913 + 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
6914 + 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
6919 + piscreen_ts: piscreen-ts@1 {
6920 + compatible = "ti,ads7846";
6923 + spi-max-frequency = <2000000>;
6924 + interrupts = <17 2>; /* high-to-low edge triggered */
6925 + interrupt-parent = <&gpio>;
6926 + pendown-gpio = <&gpio 17 0>;
6928 + ti,x-plate-ohms = /bits/ 16 <100>;
6929 + ti,pressure-max = /bits/ 16 <255>;
6934 + speed = <&piscreen>,"spi-max-frequency:0";
6935 + rotate = <&piscreen>,"rotate:0";
6936 + fps = <&piscreen>,"fps:0";
6937 + debug = <&piscreen>,"debug:0";
6938 + xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
6942 +++ b/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
6945 + * Device Tree overlay for PiScreen2 3.5" TFT with resistive touch by Ozzmaker.com
6953 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
6963 + target = <&spidev0>;
6965 + status = "disabled";
6970 + target = <&spidev1>;
6972 + status = "disabled";
6979 + piscreen2_pins: piscreen2_pins {
6980 + brcm,pins = <17 25 24 22>;
6981 + brcm,function = <0 1 1 1>; /* in out out out */
6989 + /* needed to avoid dtc warning */
6990 + #address-cells = <1>;
6991 + #size-cells = <0>;
6993 + piscreen2: piscreen2@0{
6994 + compatible = "ilitek,ili9486";
6996 + pinctrl-names = "default";
6997 + pinctrl-0 = <&piscreen2_pins>;
6999 + spi-max-frequency = <64000000>;
7004 + txbuflen = <32768>;
7005 + reset-gpios = <&gpio 25 0>;
7006 + dc-gpios = <&gpio 24 0>;
7007 + led-gpios = <&gpio 22 1>;
7010 + init = <0x10000b0 0x00
7015 + 0x10000c0 0x11 0x09
7017 + 0x10000c5 0x00 0x00 0x00 0x00
7018 + 0x10000b6 0x00 0x02
7019 + 0x10000f7 0xa9 0x51 0x2c 0x2
7020 + 0x10000be 0x00 0x04
7027 + piscreen2_ts: piscreen2-ts@1 {
7028 + compatible = "ti,ads7846";
7031 + spi-max-frequency = <2000000>;
7032 + interrupts = <17 2>; /* high-to-low edge triggered */
7033 + interrupt-parent = <&gpio>;
7034 + pendown-gpio = <&gpio 17 0>;
7036 + ti,x-plate-ohms = /bits/ 16 <100>;
7037 + ti,pressure-max = /bits/ 16 <255>;
7042 + speed = <&piscreen2>,"spi-max-frequency:0";
7043 + rotate = <&piscreen2>,"rotate:0";
7044 + fps = <&piscreen2>,"fps:0";
7045 + debug = <&piscreen2>,"debug:0";
7046 + xohms = <&piscreen2_ts>,"ti,x-plate-ohms;0";
7051 +++ b/arch/arm/boot/dts/overlays/pisound-overlay.dts
7054 + * pisound Linux kernel module.
7055 + * Copyright (C) 2016 Vilniaus Blokas UAB, http://blokas.io/pisound
7057 + * This program is free software; you can redistribute it and/or
7058 + * modify it under the terms of the GNU General Public License
7059 + * as published by the Free Software Foundation; version 2 of the
7062 + * This program is distributed in the hope that it will be useful,
7063 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
7064 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7065 + * GNU General Public License for more details.
7067 + * You should have received a copy of the GNU General Public License
7068 + * along with this program; if not, write to the Free Software
7069 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7075 +#include <dt-bindings/gpio/gpio.h>
7078 + compatible = "brcm,bcm2708";
7081 + target = <&sound>;
7083 + compatible = "blokaslabs,pisound";
7084 + i2s-controller = <&i2s>;
7087 + pinctrl-0 = <&pisound_button_pins>;
7090 + <&gpio 13 GPIO_ACTIVE_HIGH>,
7091 + <&gpio 26 GPIO_ACTIVE_HIGH>,
7092 + <&gpio 16 GPIO_ACTIVE_HIGH>;
7095 + <&gpio 12 GPIO_ACTIVE_HIGH>,
7096 + <&gpio 24 GPIO_ACTIVE_HIGH>;
7098 + data_available-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
7100 + button-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
7107 + pinctrl-names = "default";
7108 + pinctrl-0 = <&pisound_button_pins>;
7110 + pisound_button_pins: pisound_button_pins {
7112 + brcm,function = <0>; // Input
7113 + brcm,pull = <2>; // Pull-Up
7126 + target-path = "/";
7129 + #sound-dai-cells = <0>;
7130 + compatible = "ti,pcm5102a";
7142 + status = "disabled";
7154 + #address-cells = <1>;
7155 + #size-cells = <0>;
7157 + pisound_spi: pisound_spi@0{
7158 + compatible = "blokaslabs,pisound-spi";
7160 + pinctrl-names = "default";
7161 + pinctrl-0 = <&spi0_pins>;
7162 + spi-max-frequency = <1000000>;
7168 +++ b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
7171 + * Device Tree overlay for pitft by Adafruit
7179 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7187 + status = "disabled";
7191 + status = "disabled";
7199 + pitft_pins: pitft_pins {
7201 + brcm,function = <1>; /* out */
7202 + brcm,pull = <0>; /* none */
7210 + /* needed to avoid dtc warning */
7211 + #address-cells = <1>;
7212 + #size-cells = <0>;
7215 + compatible = "ilitek,ili9340";
7217 + pinctrl-names = "default";
7218 + pinctrl-0 = <&pitft_pins>;
7220 + spi-max-frequency = <32000000>;
7225 + dc-gpios = <&gpio 25 0>;
7233 + speed = <&pitft>,"spi-max-frequency:0";
7234 + rotate = <&pitft>,"rotate:0";
7235 + fps = <&pitft>,"fps:0";
7236 + debug = <&pitft>,"debug:0";
7240 +++ b/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
7243 + * Device Tree overlay for Adafruit PiTFT 2.8" capacitive touch screen
7251 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7261 + target = <&spidev0>;
7263 + status = "disabled";
7270 + pitft_pins: pitft_pins {
7271 + brcm,pins = <24 25>;
7272 + brcm,function = <0 1>; /* in out */
7273 + brcm,pull = <2 0>; /* pullup none */
7281 + /* needed to avoid dtc warning */
7282 + #address-cells = <1>;
7283 + #size-cells = <0>;
7286 + compatible = "ilitek,ili9340";
7288 + pinctrl-names = "default";
7289 + pinctrl-0 = <&pitft_pins>;
7291 + spi-max-frequency = <32000000>;
7296 + dc-gpios = <&gpio 25 0>;
7305 + /* needed to avoid dtc warning */
7306 + #address-cells = <1>;
7307 + #size-cells = <0>;
7309 + ft6236: ft6236@38 {
7310 + compatible = "focaltech,ft6236";
7313 + interrupt-parent = <&gpio>;
7314 + interrupts = <24 2>;
7315 + touchscreen-size-x = <240>;
7316 + touchscreen-size-y = <320>;
7322 + speed = <&pitft>,"spi-max-frequency:0";
7323 + rotate = <&pitft>,"rotate:0";
7324 + fps = <&pitft>,"fps:0";
7325 + debug = <&pitft>,"debug:0";
7326 + touch-sizex = <&ft6236>,"touchscreen-size-x?";
7327 + touch-sizey = <&ft6236>,"touchscreen-size-y?";
7328 + touch-invx = <&ft6236>,"touchscreen-inverted-x?";
7329 + touch-invy = <&ft6236>,"touchscreen-inverted-y?";
7330 + touch-swapxy = <&ft6236>,"touchscreen-swapped-x-y?";
7334 +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
7337 + * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
7345 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7355 + target = <&spidev0>;
7357 + status = "disabled";
7362 + target = <&spidev1>;
7364 + status = "disabled";
7371 + pitft_pins: pitft_pins {
7372 + brcm,pins = <24 25>;
7373 + brcm,function = <0 1>; /* in out */
7374 + brcm,pull = <2 0>; /* pullup none */
7382 + /* needed to avoid dtc warning */
7383 + #address-cells = <1>;
7384 + #size-cells = <0>;
7387 + compatible = "ilitek,ili9340";
7389 + pinctrl-names = "default";
7390 + pinctrl-0 = <&pitft_pins>;
7392 + spi-max-frequency = <32000000>;
7397 + dc-gpios = <&gpio 25 0>;
7402 + #address-cells = <1>;
7403 + #size-cells = <0>;
7404 + compatible = "st,stmpe610";
7407 + spi-max-frequency = <500000>;
7408 + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
7409 + interrupts = <24 2>; /* high-to-low edge triggered */
7410 + interrupt-parent = <&gpio>;
7411 + interrupt-controller;
7413 + stmpe_touchscreen {
7414 + compatible = "st,stmpe-ts";
7415 + st,sample-time = <4>;
7418 + st,adc-freq = <2>;
7419 + st,ave-ctrl = <3>;
7420 + st,touch-det-delay = <4>;
7421 + st,settling = <2>;
7422 + st,fraction-z = <7>;
7426 + stmpe_gpio: stmpe_gpio {
7427 + #gpio-cells = <2>;
7428 + compatible = "st,stmpe-gpio";
7430 + * only GPIO2 is wired/available
7431 + * and it is wired to the backlight
7433 + st,norequest-mask = <0x7b>;
7440 + target-path = "/soc";
7443 + compatible = "gpio-backlight";
7444 + gpios = <&stmpe_gpio 2 0>;
7451 + speed = <&pitft>,"spi-max-frequency:0";
7452 + rotate = <&pitft>,"rotate:0";
7453 + fps = <&pitft>,"fps:0";
7454 + debug = <&pitft>,"debug:0";
7458 +++ b/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
7461 + * Device Tree overlay for Adafruit PiTFT 3.5" resistive touch screen
7469 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7479 + target = <&spidev0>;
7481 + status = "disabled";
7486 + target = <&spidev1>;
7488 + status = "disabled";
7495 + pitft_pins: pitft_pins {
7496 + brcm,pins = <24 25>;
7497 + brcm,function = <0 1>; /* in out */
7498 + brcm,pull = <2 0>; /* pullup none */
7506 + /* needed to avoid dtc warning */
7507 + #address-cells = <1>;
7508 + #size-cells = <0>;
7511 + compatible = "himax,hx8357d";
7513 + pinctrl-names = "default";
7514 + pinctrl-0 = <&pitft_pins>;
7516 + spi-max-frequency = <32000000>;
7521 + dc-gpios = <&gpio 25 0>;
7526 + #address-cells = <1>;
7527 + #size-cells = <0>;
7528 + compatible = "st,stmpe610";
7531 + spi-max-frequency = <500000>;
7532 + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
7533 + interrupts = <24 2>; /* high-to-low edge triggered */
7534 + interrupt-parent = <&gpio>;
7535 + interrupt-controller;
7537 + stmpe_touchscreen {
7538 + compatible = "st,stmpe-ts";
7539 + st,sample-time = <4>;
7542 + st,adc-freq = <2>;
7543 + st,ave-ctrl = <3>;
7544 + st,touch-det-delay = <4>;
7545 + st,settling = <2>;
7546 + st,fraction-z = <7>;
7550 + stmpe_gpio: stmpe_gpio {
7551 + #gpio-cells = <2>;
7552 + compatible = "st,stmpe-gpio";
7554 + * only GPIO2 is wired/available
7555 + * and it is wired to the backlight
7557 + st,norequest-mask = <0x7b>;
7564 + target-path = "/soc";
7567 + compatible = "gpio-backlight";
7568 + gpios = <&stmpe_gpio 2 0>;
7575 + speed = <&pitft>,"spi-max-frequency:0";
7576 + rotate = <&pitft>,"rotate:0";
7577 + fps = <&pitft>,"fps:0";
7578 + debug = <&pitft>,"debug:0";
7582 +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
7588 + compatible = "brcm,bcm2708";
7590 + target-path = "/";
7593 + compatible = "pps-gpio";
7594 + pinctrl-names = "default";
7595 + pinctrl-0 = <&pps_pins>;
7596 + gpios = <&gpio 18 0>;
7605 + pps_pins: pps_pins {
7607 + brcm,function = <0>; // in
7608 + brcm,pull = <0>; // off
7614 + gpiopin = <&pps>,"gpios:4",
7615 + <&pps_pins>,"brcm,pins:0";
7616 + assert_falling_edge = <&pps>,"assert-falling-edge?";
7620 +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
7626 +This is the 2-channel overlay - only use it if you need both channels.
7628 +Legal pin,function combinations for each channel:
7629 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
7630 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
7633 + 1) Pin 18 is the only one available on all platforms, and
7634 + it is the one used by the I2S audio interface.
7635 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
7636 + 2) The onboard analogue audio output uses both PWM channels.
7637 + 3) So be careful mixing audio and PWM.
7644 + pwm_pins: pwm_pins {
7645 + brcm,pins = <18 19>;
7646 + brcm,function = <2 2>; /* Alt5 */
7653 + frag1: __overlay__ {
7654 + pinctrl-names = "default";
7655 + pinctrl-0 = <&pwm_pins>;
7656 + assigned-clock-rates = <100000000>;
7662 + pin = <&pwm_pins>,"brcm,pins:0";
7663 + pin2 = <&pwm_pins>,"brcm,pins:4";
7664 + func = <&pwm_pins>,"brcm,function:0";
7665 + func2 = <&pwm_pins>,"brcm,function:4";
7666 + clock = <&frag1>,"assigned-clock-rates:0";
7670 +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
7676 +Legal pin,function combinations for each channel:
7677 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
7678 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
7681 + 1) Pin 18 is the only one available on all platforms, and
7682 + it is the one used by the I2S audio interface.
7683 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
7684 + 2) The onboard analogue audio output uses both PWM channels.
7685 + 3) So be careful mixing audio and PWM.
7692 + pwm_pins: pwm_pins {
7694 + brcm,function = <2>; /* Alt5 */
7701 + frag1: __overlay__ {
7702 + pinctrl-names = "default";
7703 + pinctrl-0 = <&pwm_pins>;
7704 + assigned-clock-rates = <100000000>;
7710 + pin = <&pwm_pins>,"brcm,pins:0";
7711 + func = <&pwm_pins>,"brcm,function:0";
7712 + clock = <&frag1>,"assigned-clock-rates:0";
7716 +++ b/arch/arm/boot/dts/overlays/qca7000-overlay.dts
7718 +// Overlay for the Qualcomm Atheros QCA7000 on I2SE's PLC Stamp micro EVK
7719 +// Visit: https://www.i2se.com/product/plc-stamp-micro-evk for details
7725 + compatible = "brcm,bcm2708";
7730 + /* needed to avoid dtc warning */
7731 + #address-cells = <1>;
7732 + #size-cells = <0>;
7737 + status = "disabled";
7741 + compatible = "qca,qca7000";
7742 + reg = <0>; /* CE0 */
7743 + pinctrl-names = "default";
7744 + pinctrl-0 = <ð1_pins>;
7745 + interrupt-parent = <&gpio>;
7746 + interrupts = <23 0x1>; /* rising edge */
7747 + spi-max-frequency = <12000000>;
7756 + eth1_pins: eth1_pins {
7758 + brcm,function = <0>; /* in */
7759 + brcm,pull = <0>; /* none */
7765 + int_pin = <ð1>, "interrupts:0",
7766 + <ð1_pins>, "brcm,pins:0";
7767 + speed = <ð1>, "spi-max-frequency:0";
7771 +++ b/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
7773 +// Definitions for RaspiDACv3
7778 + compatible = "brcm,bcm2708";
7790 + #address-cells = <1>;
7791 + #size-cells = <0>;
7795 + #sound-dai-cells = <0>;
7796 + compatible = "ti,pcm5122";
7801 + tpa6130a2: tpa6130a2@60 {
7802 + compatible = "ti,tpa6130a2";
7810 + target = <&sound>;
7812 + compatible = "jg,raspidacv3";
7813 + i2s-controller = <&i2s>;
7819 +++ b/arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
7822 + * Devicetree overlay for mailbox-driven Raspberry Pi DSI Display
7823 + * backlight controller
7829 + compatible = "brcm,bcm2708";
7832 + target-path = "/";
7834 + rpi_backlight: rpi_backlight {
7835 + compatible = "raspberrypi,rpi-backlight";
7836 + firmware = <&firmware>;
7843 +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
7845 +// Definitions for RPi DAC
7850 + compatible = "brcm,bcm2708";
7860 + target-path = "/";
7863 + #sound-dai-cells = <0>;
7864 + compatible = "ti,pcm1794a";
7871 + target = <&sound>;
7873 + compatible = "rpi,rpi-dac";
7874 + i2s-controller = <&i2s>;
7880 +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
7883 + * Device Tree overlay for rpi-display by Watterott
7891 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
7901 + target = <&spidev0>;
7903 + status = "disabled";
7908 + target = <&spidev1>;
7910 + status = "disabled";
7917 + rpi_display_pins: rpi_display_pins {
7918 + brcm,pins = <18 23 24 25>;
7919 + brcm,function = <1 1 1 0>; /* out out out in */
7920 + brcm,pull = <0 0 0 2>; /* - - - up */
7928 + /* needed to avoid dtc warning */
7929 + #address-cells = <1>;
7930 + #size-cells = <0>;
7932 + rpidisplay: rpi-display@0{
7933 + compatible = "ilitek,ili9341";
7935 + pinctrl-names = "default";
7936 + pinctrl-0 = <&rpi_display_pins>;
7938 + spi-max-frequency = <32000000>;
7943 + reset-gpios = <&gpio 23 0>;
7944 + dc-gpios = <&gpio 24 0>;
7945 + led-gpios = <&gpio 18 1>;
7949 + rpidisplay_ts: rpi-display-ts@1 {
7950 + compatible = "ti,ads7846";
7953 + spi-max-frequency = <2000000>;
7954 + interrupts = <25 2>; /* high-to-low edge triggered */
7955 + interrupt-parent = <&gpio>;
7956 + pendown-gpio = <&gpio 25 0>;
7957 + ti,x-plate-ohms = /bits/ 16 <60>;
7958 + ti,pressure-max = /bits/ 16 <255>;
7963 + speed = <&rpidisplay>,"spi-max-frequency:0";
7964 + rotate = <&rpidisplay>,"rotate:0";
7965 + fps = <&rpidisplay>,"fps:0";
7966 + debug = <&rpidisplay>,"debug:0";
7967 + xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
7968 + swapxy = <&rpidisplay_ts>,"ti,swap-xy?";
7972 +++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
7978 + compatible = "brcm,bcm2708";
7981 + target-path = "/";
7983 + rpi_ft5406: rpi_ft5406 {
7984 + compatible = "rpi,rpi-ft5406";
7985 + firmware = <&firmware>;
7992 +++ b/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
7994 +// Definitions for Rpi-Proto
7999 + compatible = "brcm,bcm2708";
8011 + #address-cells = <1>;
8012 + #size-cells = <0>;
8016 + #sound-dai-cells = <0>;
8017 + compatible = "wlf,wm8731";
8025 + target = <&sound>;
8027 + compatible = "rpi,rpi-proto";
8028 + i2s-controller = <&i2s>;
8034 +++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
8041 + compatible = "brcm,bcm2708", "brcm,bcm2709";
8046 + #address-cells = <1>;
8047 + #size-cells = <0>;
8051 + compatible = "rpi,rpi-sense";
8053 + keys-int-gpios = <&gpio 23 1>;
8058 + compatible = "st,lsm9ds1-magn";
8064 + compatible = "st,lsm9ds1-accel";
8070 + compatible = "st,lps25h-press";
8076 + compatible = "st,hts221-humid";
8084 +++ b/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
8086 +// Definitions for RRA DigiDAC1 Audio card
8091 + compatible = "brcm,bcm2708";
8094 + target-path = "/";
8104 + target-path = "/soc";
8108 + compatible = "regulator-fixed";
8109 + regulator-name = "DC_5V";
8110 + regulator-min-microvolt = <5000000>;
8111 + regulator-max-microvolt = <5000000>;
8112 + regulator-always-on;
8116 + compatible = "regulator-fixed";
8117 + regulator-name = "DC_3V3";
8118 + regulator-min-microvolt = <3300000>;
8119 + regulator-max-microvolt = <3300000>;
8120 + regulator-always-on;
8135 + #address-cells = <1>;
8136 + #size-cells = <0>;
8140 + #sound-dai-cells = <0>;
8141 + compatible = "wlf,wm8804";
8144 + PVDD-supply = <&ldo0>;
8145 + DVDD-supply = <&ldo0>;
8148 + wm8742: wm8741@1a {
8149 + compatible = "wlf,wm8741";
8152 + AVDD-supply = <&ldo1>;
8153 + DVDD-supply = <&ldo0>;
8159 + target = <&sound>;
8161 + compatible = "rra,digidac1-soundcard";
8162 + i2s-controller = <&i2s>;
8168 +++ b/arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
8174 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8177 + target = <&i2c_arm>;
8179 + #address-cells = <1>;
8180 + #size-cells = <0>;
8183 + sc16is750: sc16is750@48 {
8184 + compatible = "nxp,sc16is750";
8185 + reg = <0x48>; /* address */
8186 + clocks = <&sc16is750_clk>;
8187 + interrupt-parent = <&gpio>;
8188 + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
8189 + #gpio-cells = <2>;
8191 + sc16is750_clk: sc16is750_clk {
8192 + compatible = "fixed-clock";
8193 + #clock-cells = <0>;
8194 + clock-frequency = <14745600>;
8202 + int_pin = <&sc16is750>,"interrupts:0";
8203 + addr = <&sc16is750>,"reg:0";
8208 +++ b/arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
8214 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8219 + spi1_pins: spi1_pins {
8220 + brcm,pins = <19 20 21>;
8221 + brcm,function = <3>; /* alt4 */
8224 + spi1_cs_pins: spi1_cs_pins {
8226 + brcm,function = <1>; /* output */
8233 + frag1: __overlay__ {
8234 + #address-cells = <1>;
8235 + #size-cells = <0>;
8236 + pinctrl-names = "default";
8237 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
8238 + cs-gpios = <&gpio 18 1>;
8241 + sc16is752: sc16is752@0 {
8242 + compatible = "nxp,sc16is752";
8243 + reg = <0>; /* CE0 */
8244 + clocks = <&sc16is752_clk>;
8245 + interrupt-parent = <&gpio>;
8246 + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
8248 + #gpio-cells = <2>;
8249 + spi-max-frequency = <4000000>;
8251 + sc16is752_clk: sc16is752_clk {
8252 + compatible = "fixed-clock";
8253 + #clock-cells = <0>;
8254 + clock-frequency = <14745600>;
8268 + int_pin = <&sc16is752>,"interrupts:0";
8272 +++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
8277 +/* Provide backwards compatible aliases for the old sdhost dtparams. */
8280 + compatible = "brcm,bcm2708";
8283 + target = <&sdhost>;
8284 + frag0: __overlay__ {
8285 + brcm,overclock-50 = <0>;
8286 + brcm,pio-limit = <1>;
8287 + brcm,debug-flags = <0>;
8295 + status = "disabled";
8300 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
8301 + force_pio = <&frag0>,"brcm,force-pio?";
8302 + pio_limit = <&frag0>,"brcm,pio-limit:0";
8303 + debug = <&frag0>,"brcm,debug?";
8307 +++ b/arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
8309 +/* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
8311 +/include/ "sdhost-overlay.dts"
8314 + compatible = "brcm,bcm2708";
8318 + sdio_mmc: __overlay__ {
8319 + compatible = "brcm,bcm2835-mmc";
8320 + pinctrl-names = "default";
8321 + pinctrl-0 = <&sdio_pins>;
8324 + brcm,overclock-50 = <0>;
8332 + sdio_pins: sdio_pins {
8333 + brcm,pins = <22 23 24 25>;
8334 + brcm,function = <7 7 7 7>; /* ALT3 = SD1 */
8335 + brcm,pull = <0 2 2 2>;
8341 + poll_once = <&sdio_mmc>,"non-removable?";
8342 + sdio_overclock = <&sdio_mmc>,"brcm,overclock-50:0";
8346 +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
8348 +/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
8350 +/include/ "sdhost-overlay.dts"
8353 + compatible = "brcm,bcm2708";
8357 + sdio_mmc: __overlay__ {
8358 + pinctrl-names = "default";
8359 + pinctrl-0 = <&sdio_pins>;
8362 + brcm,overclock-50 = <0>;
8370 + sdio_pins: sdio_pins {
8371 + brcm,pins = <22 23 24 25 26 27>;
8372 + brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
8373 + brcm,pull = <0 2 2 2 2 2>;
8379 + poll_once = <&sdio_mmc>,"non-removable?";
8380 + bus_width = <&sdio_mmc>,"bus-width:0";
8381 + sdio_overclock = <&sdio_mmc>,"brcm,overclock-50:0";
8385 +++ b/arch/arm/boot/dts/overlays/sdtweak-overlay.dts
8390 +/* Provide backwards compatible aliases for the old sdhost dtparams. */
8393 + compatible = "brcm,bcm2708";
8396 + target = <&sdhost>;
8397 + frag0: __overlay__ {
8398 + brcm,overclock-50 = <0>;
8399 + brcm,pio-limit = <1>;
8404 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
8405 + force_pio = <&frag0>,"brcm,force-pio?";
8406 + pio_limit = <&frag0>,"brcm,pio-limit:0";
8407 + debug = <&frag0>,"brcm,debug?";
8411 +++ b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
8413 +// Description: Overlay to enable character device interface for SMI.
8414 +// Author: Luke Wren <luke@raspberrypi.org>
8424 + compatible = "brcm,bcm2835-smi-dev";
8425 + smi_handle = <&smi>;
8432 +++ b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
8434 +// Description: Overlay to enable NAND flash through
8435 +// the secondary memory interface
8436 +// Author: Luke Wren
8442 + compatible = "brcm,bcm2708";
8447 + pinctrl-names = "default";
8448 + pinctrl-0 = <&smi_pins>;
8456 + #address-cells = <1>;
8457 + #size-cells = <1>;
8460 + compatible = "brcm,bcm2835-smi-nand";
8461 + smi_handle = <&smi>;
8462 + #address-cells = <1>;
8463 + #size-cells = <1>;
8469 + reg = <0 0x20000>;
8473 + label = "firmware";
8475 + reg = <0x20000 0x1000000>;
8480 + // 2G (will need to use 64 bit for >=4G)
8481 + reg = <0x1020000 0x80000000>;
8490 + smi_pins: smi_pins {
8491 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
8494 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5
8496 + /* /CS, /WE and /OE are pulled high, as they are
8497 + generally active low signals */
8498 + brcm,pull = <2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
8504 +++ b/arch/arm/boot/dts/overlays/smi-overlay.dts
8506 +// Description: Overlay to enable the secondary memory interface peripheral
8507 +// Author: Luke Wren
8513 + compatible = "brcm,bcm2708";
8518 + pinctrl-names = "default";
8519 + pinctrl-0 = <&smi_pins>;
8527 + smi_pins: smi_pins {
8528 + /* Don't configure the top two address bits, as
8529 + these are already used as ID_SD and ID_SC */
8530 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15
8531 + 16 17 18 19 20 21 22 23 24 25>;
8533 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
8534 + 5 5 5 5 5 5 5 5 5>;
8535 + /* /CS, /WE and /OE are pulled high, as they are
8536 + generally active low signals */
8537 + brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0
8544 +++ b/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
8547 + * Device tree overlay to move spi0 to gpio 35 to 39 on CM
8554 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
8559 + cs-gpios = <&gpio 36 1>, <&gpio 35 1>;
8564 + target = <&spi0_cs_pins>;
8566 + brcm,pins = <36 35>;
8571 + target = <&spi0_pins>;
8573 + brcm,pins = <37 38 39>;
8578 +++ b/arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
8584 + compatible = "brcm,bcm2708";
8587 + target = <&spidev0>;
8589 + status = "disabled";
8596 + #address-cells = <1>;
8597 + #size-cells = <0>;
8601 + compatible = "nxp,rtc-pcf2123";
8602 + spi-max-frequency = <5000000>;
8603 + spi-cs-high = <1>;
8610 + pcf2123 = <0>, "=0=1";
8614 +++ b/arch/arm/boot/dts/overlays/spi0-hw-cs-overlay.dts
8617 + * Device tree overlay to re-enable hardware CS for SPI0
8624 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
8629 + cs-gpios = <0>, <0>;
8635 + target = <&spi0_cs_pins>;
8637 + brcm,pins = <8 7>;
8638 + brcm,function = <4>; /* alt0 */
8643 +++ b/arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
8650 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8655 + spi1_pins: spi1_pins {
8656 + brcm,pins = <19 20 21>;
8657 + brcm,function = <3>; /* alt4 */
8660 + spi1_cs_pins: spi1_cs_pins {
8662 + brcm,function = <1>; /* output */
8669 + frag1: __overlay__ {
8670 + /* needed to avoid dtc warning */
8671 + #address-cells = <1>;
8672 + #size-cells = <0>;
8673 + pinctrl-names = "default";
8674 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
8675 + cs-gpios = <&gpio 18 1>;
8678 + spidev1_0: spidev@0 {
8679 + compatible = "spidev";
8680 + reg = <0>; /* CE0 */
8681 + #address-cells = <1>;
8682 + #size-cells = <0>;
8683 + spi-max-frequency = <500000>;
8697 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
8698 + <&frag1>,"cs-gpios:4";
8699 + cs0_spidev = <&spidev1_0>,"status";
8703 +++ b/arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
8710 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8715 + spi1_pins: spi1_pins {
8716 + brcm,pins = <19 20 21>;
8717 + brcm,function = <3>; /* alt4 */
8720 + spi1_cs_pins: spi1_cs_pins {
8721 + brcm,pins = <18 17>;
8722 + brcm,function = <1>; /* output */
8729 + frag1: __overlay__ {
8730 + /* needed to avoid dtc warning */
8731 + #address-cells = <1>;
8732 + #size-cells = <0>;
8733 + pinctrl-names = "default";
8734 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
8735 + cs-gpios = <&gpio 18 1>, <&gpio 17 1>;
8738 + spidev1_0: spidev@0 {
8739 + compatible = "spidev";
8740 + reg = <0>; /* CE0 */
8741 + #address-cells = <1>;
8742 + #size-cells = <0>;
8743 + spi-max-frequency = <500000>;
8747 + spidev1_1: spidev@1 {
8748 + compatible = "spidev";
8749 + reg = <1>; /* CE1 */
8750 + #address-cells = <1>;
8751 + #size-cells = <0>;
8752 + spi-max-frequency = <500000>;
8766 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
8767 + <&frag1>,"cs-gpios:4";
8768 + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
8769 + <&frag1>,"cs-gpios:16";
8770 + cs0_spidev = <&spidev1_0>,"status";
8771 + cs1_spidev = <&spidev1_1>,"status";
8775 +++ b/arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
8782 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8787 + spi1_pins: spi1_pins {
8788 + brcm,pins = <19 20 21>;
8789 + brcm,function = <3>; /* alt4 */
8792 + spi1_cs_pins: spi1_cs_pins {
8793 + brcm,pins = <18 17 16>;
8794 + brcm,function = <1>; /* output */
8801 + frag1: __overlay__ {
8802 + /* needed to avoid dtc warning */
8803 + #address-cells = <1>;
8804 + #size-cells = <0>;
8805 + pinctrl-names = "default";
8806 + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
8807 + cs-gpios = <&gpio 18 1>, <&gpio 17 1>, <&gpio 16 1>;
8810 + spidev1_0: spidev@0 {
8811 + compatible = "spidev";
8812 + reg = <0>; /* CE0 */
8813 + #address-cells = <1>;
8814 + #size-cells = <0>;
8815 + spi-max-frequency = <500000>;
8819 + spidev1_1: spidev@1 {
8820 + compatible = "spidev";
8821 + reg = <1>; /* CE1 */
8822 + #address-cells = <1>;
8823 + #size-cells = <0>;
8824 + spi-max-frequency = <500000>;
8828 + spidev1_2: spidev@2 {
8829 + compatible = "spidev";
8830 + reg = <2>; /* CE2 */
8831 + #address-cells = <1>;
8832 + #size-cells = <0>;
8833 + spi-max-frequency = <500000>;
8847 + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
8848 + <&frag1>,"cs-gpios:4";
8849 + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
8850 + <&frag1>,"cs-gpios:16";
8851 + cs2_pin = <&spi1_cs_pins>,"brcm,pins:8",
8852 + <&frag1>,"cs-gpios:28";
8853 + cs0_spidev = <&spidev1_0>,"status";
8854 + cs1_spidev = <&spidev1_1>,"status";
8855 + cs2_spidev = <&spidev1_2>,"status";
8859 +++ b/arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
8866 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8871 + spi2_pins: spi2_pins {
8872 + brcm,pins = <40 41 42>;
8873 + brcm,function = <3>; /* alt4 */
8876 + spi2_cs_pins: spi2_cs_pins {
8878 + brcm,function = <1>; /* output */
8885 + frag1: __overlay__ {
8886 + /* needed to avoid dtc warning */
8887 + #address-cells = <1>;
8888 + #size-cells = <0>;
8889 + pinctrl-names = "default";
8890 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
8891 + cs-gpios = <&gpio 43 1>;
8894 + spidev2_0: spidev@0 {
8895 + compatible = "spidev";
8896 + reg = <0>; /* CE0 */
8897 + #address-cells = <1>;
8898 + #size-cells = <0>;
8899 + spi-max-frequency = <500000>;
8913 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
8914 + <&frag1>,"cs-gpios:4";
8915 + cs0_spidev = <&spidev2_0>,"status";
8919 +++ b/arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
8926 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
8931 + spi2_pins: spi2_pins {
8932 + brcm,pins = <40 41 42>;
8933 + brcm,function = <3>; /* alt4 */
8936 + spi2_cs_pins: spi2_cs_pins {
8937 + brcm,pins = <43 44>;
8938 + brcm,function = <1>; /* output */
8945 + frag1: __overlay__ {
8946 + /* needed to avoid dtc warning */
8947 + #address-cells = <1>;
8948 + #size-cells = <0>;
8949 + pinctrl-names = "default";
8950 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
8951 + cs-gpios = <&gpio 43 1>, <&gpio 44 1>;
8954 + spidev2_0: spidev@0 {
8955 + compatible = "spidev";
8956 + reg = <0>; /* CE0 */
8957 + #address-cells = <1>;
8958 + #size-cells = <0>;
8959 + spi-max-frequency = <500000>;
8963 + spidev2_1: spidev@1 {
8964 + compatible = "spidev";
8965 + reg = <1>; /* CE1 */
8966 + #address-cells = <1>;
8967 + #size-cells = <0>;
8968 + spi-max-frequency = <500000>;
8982 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
8983 + <&frag1>,"cs-gpios:4";
8984 + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
8985 + <&frag1>,"cs-gpios:16";
8986 + cs0_spidev = <&spidev2_0>,"status";
8987 + cs1_spidev = <&spidev2_1>,"status";
8991 +++ b/arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
8998 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9003 + spi2_pins: spi2_pins {
9004 + brcm,pins = <40 41 42>;
9005 + brcm,function = <3>; /* alt4 */
9008 + spi2_cs_pins: spi2_cs_pins {
9009 + brcm,pins = <43 44 45>;
9010 + brcm,function = <1>; /* output */
9017 + frag1: __overlay__ {
9018 + /* needed to avoid dtc warning */
9019 + #address-cells = <1>;
9020 + #size-cells = <0>;
9021 + pinctrl-names = "default";
9022 + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
9023 + cs-gpios = <&gpio 43 1>, <&gpio 44 1>, <&gpio 45 1>;
9026 + spidev2_0: spidev@0 {
9027 + compatible = "spidev";
9028 + reg = <0>; /* CE0 */
9029 + #address-cells = <1>;
9030 + #size-cells = <0>;
9031 + spi-max-frequency = <500000>;
9035 + spidev2_1: spidev@1 {
9036 + compatible = "spidev";
9037 + reg = <1>; /* CE1 */
9038 + #address-cells = <1>;
9039 + #size-cells = <0>;
9040 + spi-max-frequency = <500000>;
9044 + spidev2_2: spidev@2 {
9045 + compatible = "spidev";
9046 + reg = <2>; /* CE2 */
9047 + #address-cells = <1>;
9048 + #size-cells = <0>;
9049 + spi-max-frequency = <500000>;
9063 + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
9064 + <&frag1>,"cs-gpios:4";
9065 + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
9066 + <&frag1>,"cs-gpios:16";
9067 + cs2_pin = <&spi2_cs_pins>,"brcm,pins:8",
9068 + <&frag1>,"cs-gpios:28";
9069 + cs0_spidev = <&spidev2_0>,"status";
9070 + cs1_spidev = <&spidev2_1>,"status";
9071 + cs2_spidev = <&spidev2_2>,"status";
9075 +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
9078 + * tinylcd35-overlay.dts
9080 + * -------------------------------------------------
9081 + * www.tinlylcd.com
9082 + * -------------------------------------------------
9083 + * Device---Driver-----BUS GPIO's
9084 + * display tinylcd35 spi0.0 25 24 18
9085 + * touch ads7846 spi0.1 5
9086 + * rtc ds1307 i2c1-0068
9087 + * rtc pcf8563 i2c1-0051
9088 + * keypad gpio-keys --------- 17 22 27 23 28
9091 + * TinyLCD.com 3.5 inch TFT
9094 + * 5/3/2015 -- Noralf Trønnes Initial Device tree framework
9095 + * 10/3/2015 -- tinylcd@gmail.com added ds1307 support.
9103 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9113 + target = <&spidev0>;
9115 + status = "disabled";
9120 + target = <&spidev1>;
9122 + status = "disabled";
9129 + tinylcd35_pins: tinylcd35_pins {
9130 + brcm,pins = <25 24 18>;
9131 + brcm,function = <1>; /* out */
9133 + tinylcd35_ts_pins: tinylcd35_ts_pins {
9135 + brcm,function = <0>; /* in */
9137 + keypad_pins: keypad_pins {
9138 + brcm,pins = <4 17 22 23 27>;
9139 + brcm,function = <0>; /* in */
9140 + brcm,pull = <1>; /* down */
9148 + /* needed to avoid dtc warning */
9149 + #address-cells = <1>;
9150 + #size-cells = <0>;
9152 + tinylcd35: tinylcd35@0{
9153 + compatible = "neosec,tinylcd";
9155 + pinctrl-names = "default";
9156 + pinctrl-0 = <&tinylcd35_pins>,
9157 + <&tinylcd35_ts_pins>;
9159 + spi-max-frequency = <48000000>;
9164 + reset-gpios = <&gpio 25 0>;
9165 + dc-gpios = <&gpio 24 0>;
9166 + led-gpios = <&gpio 18 1>;
9169 + init = <0x10000B0 0x80
9170 + 0x10000C0 0x0A 0x0A
9171 + 0x10000C1 0x01 0x01
9173 + 0x10000C5 0x00 0x42 0x80
9174 + 0x10000B1 0xD0 0x11
9176 + 0x10000B6 0x00 0x22 0x3B
9179 + 0x10000F0 0x36 0xA5 0xD3
9184 + 0x10000F0 0x36 0xA5 0x53
9185 + 0x10000E0 0x00 0x35 0x33 0x00 0x00 0x00 0x00 0x35 0x33 0x00 0x00 0x00
9192 + tinylcd35_ts: tinylcd35_ts@1 {
9193 + compatible = "ti,ads7846";
9195 + status = "disabled";
9197 + spi-max-frequency = <2000000>;
9198 + interrupts = <5 2>; /* high-to-low edge triggered */
9199 + interrupt-parent = <&gpio>;
9200 + pendown-gpio = <&gpio 5 0>;
9201 + ti,x-plate-ohms = /bits/ 16 <100>;
9202 + ti,pressure-max = /bits/ 16 <255>;
9212 + #address-cells = <1>;
9213 + #size-cells = <0>;
9217 + pcf8563: pcf8563@51 {
9218 + compatible = "nxp,pcf8563";
9228 + #address-cells = <1>;
9229 + #size-cells = <0>;
9233 + ds1307: ds1307@68 {
9234 + compatible = "maxim,ds1307";
9242 + * Values for input event code is found under the
9243 + * 'Keys and buttons' heading in include/uapi/linux/input.h
9246 + target-path = "/soc";
9249 + compatible = "gpio-keys";
9250 + #address-cells = <1>;
9251 + #size-cells = <0>;
9252 + pinctrl-names = "default";
9253 + pinctrl-0 = <&keypad_pins>;
9254 + status = "disabled";
9258 + label = "GPIO KEY_UP";
9259 + linux,code = <103>;
9260 + gpios = <&gpio 17 0>;
9263 + label = "GPIO KEY_DOWN";
9264 + linux,code = <108>;
9265 + gpios = <&gpio 22 0>;
9268 + label = "GPIO KEY_LEFT";
9269 + linux,code = <105>;
9270 + gpios = <&gpio 27 0>;
9273 + label = "GPIO KEY_RIGHT";
9274 + linux,code = <106>;
9275 + gpios = <&gpio 23 0>;
9278 + label = "GPIO KEY_ENTER";
9279 + linux,code = <28>;
9280 + gpios = <&gpio 4 0>;
9287 + speed = <&tinylcd35>,"spi-max-frequency:0";
9288 + rotate = <&tinylcd35>,"rotate:0";
9289 + fps = <&tinylcd35>,"fps:0";
9290 + debug = <&tinylcd35>,"debug:0";
9291 + touch = <&tinylcd35_ts>,"status";
9292 + touchgpio = <&tinylcd35_ts_pins>,"brcm,pins:0",
9293 + <&tinylcd35_ts>,"interrupts:0",
9294 + <&tinylcd35_ts>,"pendown-gpio:4";
9295 + xohms = <&tinylcd35_ts>,"ti,x-plate-ohms;0";
9296 + rtc-pcf = <0>,"=5";
9297 + rtc-ds = <0>,"=6";
9298 + keypad = <&keypad>,"status";
9302 +++ b/arch/arm/boot/dts/overlays/uart1-overlay.dts
9308 + compatible = "brcm,bcm2708";
9311 + target = <&uart1>;
9313 + pinctrl-names = "default";
9314 + pinctrl-0 = <&uart1_pins>;
9322 + uart1_pins: uart1_pins {
9323 + brcm,pins = <14 15>;
9324 + brcm,function = <2>; /* alt5 */
9325 + brcm,pull = <0 2>;
9331 + target-path = "/chosen";
9333 + bootargs = "8250.nr_uarts=1";
9338 + txd1_pin = <&uart1_pins>,"brcm,pins:0";
9339 + rxd1_pin = <&uart1_pins>,"brcm,pins:4";
9343 +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
9346 + * vc4-fkms-v3d-overlay.dts
9353 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9356 + target-path = "/chosen";
9358 + bootargs = "cma=256M@256M";
9363 + target-path = "/chosen";
9365 + bootargs = "cma=192M@256M";
9370 + target-path = "/chosen";
9372 + bootargs = "cma=128M@128M";
9377 + target-path = "/chosen";
9379 + bootargs = "cma=96M@128M";
9384 + target-path = "/chosen";
9386 + bootargs = "cma=64M@64M";
9393 + status = "disabled";
9398 + target = <&firmwarekms>;
9407 + interrupts = <1 10>;
9420 + target-path = "/soc/dma";
9422 + brcm,dma-channel-mask = <0x7f35>;
9427 + cma-256 = <0>,"+0-1-2-3-4";
9428 + cma-192 = <0>,"-0+1-2-3-4";
9429 + cma-128 = <0>,"-0-1+2-3-4";
9430 + cma-96 = <0>,"-0-1-2+3-4";
9431 + cma-64 = <0>,"-0-1-2-3+4";
9435 +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
9438 + * vc4-kms-v3d-overlay.dts
9445 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9448 + target-path = "/chosen";
9450 + bootargs = "cma=256M@256M";
9455 + target-path = "/chosen";
9457 + bootargs = "cma=192M@256M";
9462 + target-path = "/chosen";
9464 + bootargs = "cma=128M@128M";
9469 + target-path = "/chosen";
9471 + bootargs = "cma=96M@128M";
9476 + target-path = "/chosen";
9478 + bootargs = "cma=64M@64M";
9490 + target = <&cprman>;
9499 + status = "disabled";
9504 + target = <&pixelvalve0>;
9506 + interrupts = <2 13>; /* pwa0 */
9512 + target = <&pixelvalve1>;
9514 + interrupts = <2 14>; /* pwa1 */
9520 + target = <&pixelvalve2>;
9522 + interrupts = <2 10>; /* pixelvalve */
9530 + interrupts = <2 1>;
9538 + interrupts = <2 8>, <2 9>;
9546 + interrupts = <1 10>;
9559 + target-path = "/soc/dma";
9561 + brcm,dma-channel-mask = <0x7f35>;
9566 + cma-256 = <0>,"+0-1-2-3-4";
9567 + cma-192 = <0>,"-0+1-2-3-4";
9568 + cma-128 = <0>,"-0-1+2-3-4";
9569 + cma-96 = <0>,"-0-1-2+3-4";
9570 + cma-64 = <0>,"-0-1-2-3+4";
9574 +++ b/arch/arm/boot/dts/overlays/vga666-overlay.dts
9580 + compatible = "brcm,bcm2708";
9582 + // There is no VGA driver module, but we need a platform device
9583 + // node (that doesn't already use pinctrl) to hang the pinctrl
9584 + // reference on - leds will do
9589 + pinctrl-names = "default";
9590 + pinctrl-0 = <&vga666_pins>;
9597 + vga666_pins: vga666_pins {
9598 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12
9599 + 13 14 15 16 17 18 19 20 21>;
9600 + brcm,function = <6>; /* alt2 */
9601 + brcm,pull = <0>; /* no pull */
9607 +++ b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
9609 +// Definitions for w1-gpio module (without external pullup)
9614 + compatible = "brcm,bcm2708";
9617 + target-path = "/";
9621 + compatible = "w1-gpio";
9622 + pinctrl-names = "default";
9623 + pinctrl-0 = <&w1_pins>;
9624 + gpios = <&gpio 4 0>;
9625 + rpi,parasitic-power = <0>;
9634 + w1_pins: w1_pins {
9636 + brcm,function = <0>; // in (initially)
9637 + brcm,pull = <0>; // off
9643 + gpiopin = <&w1>,"gpios:4",
9644 + <&w1_pins>,"brcm,pins:0";
9645 + pullup = <&w1>,"rpi,parasitic-power:0";
9649 +++ b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
9651 +// Definitions for w1-gpio module (with external pullup)
9656 + compatible = "brcm,bcm2708";
9659 + target-path = "/";
9663 + compatible = "w1-gpio";
9664 + pinctrl-names = "default";
9665 + pinctrl-0 = <&w1_pins>;
9666 + gpios = <&gpio 4 0>, <&gpio 5 1>;
9667 + rpi,parasitic-power = <0>;
9676 + w1_pins: w1_pins {
9677 + brcm,pins = <4 5>;
9678 + brcm,function = <0 1>; // in out
9679 + brcm,pull = <0 0>; // off off
9685 + gpiopin = <&w1>,"gpios:4",
9686 + <&w1_pins>,"brcm,pins:0";
9687 + extpullup = <&w1>,"gpios:16",
9688 + <&w1_pins>,"brcm,pins:4";
9689 + pullup = <&w1>,"rpi,parasitic-power:0";
9693 +++ b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
9696 + * Device Tree overlay for Witty Pi extension board by UUGear
9705 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
9710 + compatible = "gpio-leds";
9711 + wittypi_led: wittypi_led {
9712 + label = "wittypi_led";
9713 + linux,default-trigger = "default-on";
9714 + gpios = <&gpio 17 0>;
9722 + #address-cells = <1>;
9723 + #size-cells = <0>;
9726 + compatible = "dallas,ds1337";
9734 + led_gpio = <&wittypi_led>,"gpios:4";
9735 + led_trigger = <&wittypi_led>,"linux,default-trigger";
9739 --- a/scripts/Makefile.dtbinst
9740 +++ b/scripts/Makefile.dtbinst
9741 @@ -27,6 +27,7 @@ ifeq ("$(dtbinst-root)", "$(obj)")
9744 dtbinst-files := $(dtb-y)
9745 +dtboinst-files := $(dtbo-y)
9746 dtbinst-dirs := $(dts-dirs)
9748 # Helper targets for Installing DTBs into the boot directory
9749 @@ -35,15 +36,18 @@ quiet_cmd_dtb_install = INSTALL $<
9751 install-dir = $(patsubst $(dtbinst-root)%,$(INSTALL_DTBS_PATH)%,$(obj))
9753 -$(dtbinst-files) $(dtbinst-dirs): | __dtbs_install_prep
9754 +$(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs): | __dtbs_install_prep
9756 $(dtbinst-files): %.dtb: $(obj)/%.dtb
9757 $(call cmd,dtb_install,$(install-dir))
9759 +$(dtboinst-files): %.dtbo: $(obj)/%.dtbo
9760 + $(call cmd,dtb_install,$(install-dir))
9763 $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
9765 -PHONY += $(dtbinst-files) $(dtbinst-dirs)
9766 -__dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
9767 +PHONY += $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
9768 +__dtbs_install: $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
9771 --- a/scripts/Makefile.lib
9772 +++ b/scripts/Makefile.lib
9773 @@ -312,6 +312,17 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
9774 $(obj)/%.dtb: $(src)/%.dts FORCE
9775 $(call if_changed_dep,dtc)
9777 +quiet_cmd_dtco = DTCO $@
9778 +cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
9779 + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
9780 + $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
9781 + -i $(dir $<) $(DTC_FLAGS) \
9782 + -d $(depfile).dtc.tmp $(dtc-tmp) ; \
9783 + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
9785 +$(obj)/%.dtbo: $(src)/%-overlay.dts FORCE
9786 + $(call if_changed_dep,dtco)
9788 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)