1 From 0112c4ce9db6cdc53af67dc7634966c3594de7ff 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 052/170] BCM2708: Add core Device Tree support
6 Add the bare minimum needed to boot BCM2708 from a Device Tree.
8 Signed-off-by: Noralf Tronnes <notro@tronnes.org>
10 BCM2708: DT: change 'axi' nodename to 'soc'
12 Change DT node named 'axi' to 'soc' so it matches ARCH_BCM2835.
13 The VC4 bootloader fills in certain properties in the 'axi' subtree,
14 but since this is part of an upstreaming effort, the name is changed.
16 Signed-off-by: Noralf Tronnes notro@tronnes.org
18 BCM2708_DT: Correct length of the peripheral space
20 Use dts-dirs feature for overlays.
22 The kernel makefiles have a dts-dirs target that is for vendor subdirectories.
24 Using this fixes the install_dtbs target, which previously did not install the overlays.
26 BCM270X_DT: configure I2S DMA channels
28 Signed-off-by: Matthias Reichl <hias@horus.com>
30 BCM270X_DT: switch to bcm2835-i2s
32 I2S soundcard drivers with proper devicetree support (i.e. not linking
33 to the cpu_dai/platform via name but to cpu/platform via of_node)
34 will work out of the box without any modifications.
36 When the kernel is compiled without devicetree support the platform
37 code will instantiate the bcm2708-i2s driver and I2S soundcard drivers
38 will link to it via name, as before.
40 Signed-off-by: Matthias Reichl <hias@horus.com>
42 SDIO-overlay: add poll_once-boolean parameter
44 Add paramter to toggle sdio-device-polling
45 done every second or once at boot-time.
47 Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de>
49 BCM270X_DT: Make mmc overlay compatible with current firmware
51 The original DT overlay logic followed a merge-then-patch procedure,
52 i.e. parameters are applied to the loaded overlay before the overlay
53 is merged into the base DTB. This sequence has been changed to
54 patch-then-merge, in order to support parameterised node names, and
55 to protect against bad overlays. As a result, overrides (parameters)
56 must only target labels in the overlay, but the overlay can obviously target nodes in the base DTB.
58 mmc-overlay.dts (that switches back to the original mmc sdcard
59 driver) is the only overlay violating that rule, and this patch
62 bcm270x_dt: Use the sdhost MMC controller by default
64 The "mmc" overlay reverts to using the other controller.
66 squash: Add cprman to dt
68 BCM270X_DT: Use clk_core for I2C interfaces
70 arch/arm/boot/dts/Makefile | 30 +
71 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 145 +++++
72 arch/arm/boot/dts/bcm2708-rpi-b.dts | 135 +++++
73 arch/arm/boot/dts/bcm2708-rpi-cm.dts | 102 ++++
74 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 40 ++
75 arch/arm/boot/dts/bcm2708.dtsi | 40 ++
76 arch/arm/boot/dts/bcm2708_common.dtsi | 347 +++++++++++
77 arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 145 +++++
78 arch/arm/boot/dts/bcm2709.dtsi | 102 ++++
79 arch/arm/boot/dts/bcm2835-rpi-cm.dts | 93 +++
80 arch/arm/boot/dts/bcm2835-rpi-cm.dtsi | 30 +
81 arch/arm/boot/dts/overlays/Makefile | 69 +++
82 arch/arm/boot/dts/overlays/README | 648 +++++++++++++++++++++
83 arch/arm/boot/dts/overlays/ads7846-overlay.dts | 83 +++
84 .../dts/overlays/bmp085_i2c-sensor-overlay.dts | 23 +
85 arch/arm/boot/dts/overlays/dht11-overlay.dts | 39 ++
86 arch/arm/boot/dts/overlays/enc28j60-overlay.dts | 50 ++
87 .../boot/dts/overlays/gpio-poweroff-overlay.dts | 34 ++
88 .../boot/dts/overlays/hifiberry-amp-overlay.dts | 39 ++
89 .../boot/dts/overlays/hifiberry-dac-overlay.dts | 34 ++
90 .../dts/overlays/hifiberry-dacplus-overlay.dts | 39 ++
91 .../boot/dts/overlays/hifiberry-digi-overlay.dts | 39 ++
92 arch/arm/boot/dts/overlays/hy28a-overlay.dts | 87 +++
93 arch/arm/boot/dts/overlays/hy28b-overlay.dts | 142 +++++
94 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 55 ++
95 arch/arm/boot/dts/overlays/i2s-mmap-overlay.dts | 13 +
96 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts | 39 ++
97 .../boot/dts/overlays/iqaudio-dacplus-overlay.dts | 39 ++
98 arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts | 57 ++
99 .../arm/boot/dts/overlays/mcp2515-can0-overlay.dts | 69 +++
100 .../arm/boot/dts/overlays/mcp2515-can1-overlay.dts | 69 +++
101 arch/arm/boot/dts/overlays/mmc-overlay.dts | 39 ++
102 arch/arm/boot/dts/overlays/mz61581-overlay.dts | 111 ++++
103 arch/arm/boot/dts/overlays/piscreen-overlay.dts | 96 +++
104 .../dts/overlays/pitft28-resistive-overlay.dts | 115 ++++
105 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 34 ++
106 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts | 46 ++
107 arch/arm/boot/dts/overlays/pwm-overlay.dts | 42 ++
108 arch/arm/boot/dts/overlays/raspidac3-overlay.dts | 45 ++
109 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts | 34 ++
110 arch/arm/boot/dts/overlays/rpi-display-overlay.dts | 82 +++
111 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | 17 +
112 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts | 39 ++
113 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts | 47 ++
114 arch/arm/boot/dts/overlays/sdhost-overlay.dts | 29 +
115 arch/arm/boot/dts/overlays/sdio-overlay.dts | 32 +
116 arch/arm/boot/dts/overlays/smi-dev-overlay.dts | 18 +
117 arch/arm/boot/dts/overlays/smi-nand-overlay.dts | 69 +++
118 arch/arm/boot/dts/overlays/smi-overlay.dts | 37 ++
119 .../boot/dts/overlays/spi-gpio35-39-overlay.dts | 31 +
120 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts | 216 +++++++
121 arch/arm/boot/dts/overlays/uart1-overlay.dts | 38 ++
122 arch/arm/boot/dts/overlays/vga666-overlay.dts | 30 +
123 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts | 39 ++
124 .../boot/dts/overlays/w1-gpio-pullup-overlay.dts | 41 ++
125 55 files changed, 4203 insertions(+)
126 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
127 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b.dts
128 create mode 100755 arch/arm/boot/dts/bcm2708-rpi-cm.dts
129 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
130 create mode 100644 arch/arm/boot/dts/bcm2708.dtsi
131 create mode 100644 arch/arm/boot/dts/bcm2708_common.dtsi
132 create mode 100644 arch/arm/boot/dts/bcm2709-rpi-2-b.dts
133 create mode 100644 arch/arm/boot/dts/bcm2709.dtsi
134 create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm.dts
135 create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm.dtsi
136 create mode 100644 arch/arm/boot/dts/overlays/Makefile
137 create mode 100644 arch/arm/boot/dts/overlays/README
138 create mode 100644 arch/arm/boot/dts/overlays/ads7846-overlay.dts
139 create mode 100644 arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
140 create mode 100644 arch/arm/boot/dts/overlays/dht11-overlay.dts
141 create mode 100644 arch/arm/boot/dts/overlays/enc28j60-overlay.dts
142 create mode 100644 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
143 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
144 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
145 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
146 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
147 create mode 100644 arch/arm/boot/dts/overlays/hy28a-overlay.dts
148 create mode 100644 arch/arm/boot/dts/overlays/hy28b-overlay.dts
149 create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
150 create mode 100644 arch/arm/boot/dts/overlays/i2s-mmap-overlay.dts
151 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
152 create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
153 create mode 100644 arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
154 create mode 100755 arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
155 create mode 100644 arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
156 create mode 100644 arch/arm/boot/dts/overlays/mmc-overlay.dts
157 create mode 100644 arch/arm/boot/dts/overlays/mz61581-overlay.dts
158 create mode 100644 arch/arm/boot/dts/overlays/piscreen-overlay.dts
159 create mode 100644 arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
160 create mode 100644 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
161 create mode 100644 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
162 create mode 100644 arch/arm/boot/dts/overlays/pwm-overlay.dts
163 create mode 100644 arch/arm/boot/dts/overlays/raspidac3-overlay.dts
164 create mode 100644 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
165 create mode 100644 arch/arm/boot/dts/overlays/rpi-display-overlay.dts
166 create mode 100644 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
167 create mode 100644 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
168 create mode 100644 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
169 create mode 100644 arch/arm/boot/dts/overlays/sdhost-overlay.dts
170 create mode 100644 arch/arm/boot/dts/overlays/sdio-overlay.dts
171 create mode 100644 arch/arm/boot/dts/overlays/smi-dev-overlay.dts
172 create mode 100644 arch/arm/boot/dts/overlays/smi-nand-overlay.dts
173 create mode 100644 arch/arm/boot/dts/overlays/smi-overlay.dts
174 create mode 100644 arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
175 create mode 100644 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
176 create mode 100644 arch/arm/boot/dts/overlays/uart1-overlay.dts
177 create mode 100644 arch/arm/boot/dts/overlays/vga666-overlay.dts
178 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
179 create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
181 --- a/arch/arm/boot/dts/Makefile
182 +++ b/arch/arm/boot/dts/Makefile
184 ifeq ($(CONFIG_OF),y)
186 +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b.dtb
187 +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b-plus.dtb
188 +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb
189 +dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb
190 +dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb
193 +ifeq ($(CONFIG_ARCH_BCM2708),y)
196 +ifeq ($(CONFIG_ARCH_BCM2709),y)
199 +ifeq ($(CONFIG_ARCH_BCM2835),y)
202 +ifeq ($(RPI_DT_OVERLAYS),y)
203 + dts-dirs += overlays
206 dtb-$(CONFIG_ARCH_ALPINE) += \
208 dtb-$(CONFIG_MACH_ASM9260) += \
209 @@ -777,10 +797,20 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
212 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
214 +targets += dtbs dtbs_install
219 dtstree := $(srctree)/$(src)
220 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
223 +subdir-y := $(dts-dirs)
226 +# Enable fixups to support overlays on BCM2708 platforms
227 +ifeq ($(RPI_DT_OVERLAYS),y)
231 +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
235 +#include "bcm2708.dtsi"
238 + compatible = "brcm,bcm2708";
239 + model = "Raspberry Pi Model B+";
243 + sdhost_pins: sdhost_pins {
244 + brcm,pins = <48 49 50 51 52 53>;
245 + brcm,function = <4>; /* alt0 */
248 + spi0_pins: spi0_pins {
249 + brcm,pins = <9 10 11>;
250 + brcm,function = <4>; /* alt0 */
253 + spi0_cs_pins: spi0_cs_pins {
255 + brcm,function = <1>; /* output */
260 + brcm,function = <4>;
265 + brcm,function = <4>;
269 + brcm,pins = <18 19 20 21>;
270 + brcm,function = <4>; /* alt0 */
275 + pinctrl-names = "default";
276 + pinctrl-0 = <&sdhost_pins>;
290 + pinctrl-names = "default";
291 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
292 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
295 + compatible = "spidev";
296 + reg = <0>; /* CE0 */
297 + #address-cells = <1>;
299 + spi-max-frequency = <500000>;
303 + compatible = "spidev";
304 + reg = <1>; /* CE1 */
305 + #address-cells = <1>;
307 + spi-max-frequency = <500000>;
312 + pinctrl-names = "default";
313 + pinctrl-0 = <&i2c0_pins>;
314 + clock-frequency = <100000>;
318 + pinctrl-names = "default";
319 + pinctrl-0 = <&i2c1_pins>;
320 + clock-frequency = <100000>;
324 + clock-frequency = <100000>;
328 + #sound-dai-cells = <0>;
329 + pinctrl-names = "default";
330 + pinctrl-0 = <&i2s_pins>;
340 + linux,default-trigger = "mmc0";
341 + gpios = <&gpio 47 0>;
346 + linux,default-trigger = "input";
347 + gpios = <&gpio 35 0>;
353 + uart0 = <&uart0>,"status";
354 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
355 + i2s = <&i2s>,"status";
356 + spi = <&spi0>,"status";
357 + i2c0 = <&i2c0>,"status";
358 + i2c1 = <&i2c1>,"status";
359 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
360 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
361 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
362 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
363 + core_freq = <&clk_core>,"clock-frequency:0";
365 + act_led_gpio = <&act_led>,"gpios:4";
366 + act_led_activelow = <&act_led>,"gpios:8";
367 + act_led_trigger = <&act_led>,"linux,default-trigger";
369 + pwr_led_gpio = <&pwr_led>,"gpios:4";
370 + pwr_led_activelow = <&pwr_led>,"gpios:8";
371 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
373 + audio = <&audio>,"status";
374 + watchdog = <&watchdog>,"status";
375 + random = <&random>,"status";
379 +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
383 +#include "bcm2708.dtsi"
386 + compatible = "brcm,bcm2708";
387 + model = "Raspberry Pi Model B";
391 + sdhost_pins: sdhost_pins {
392 + brcm,pins = <48 49 50 51 52 53>;
393 + brcm,function = <4>; /* alt0 */
396 + spi0_pins: spi0_pins {
397 + brcm,pins = <9 10 11>;
398 + brcm,function = <4>; /* alt0 */
401 + spi0_cs_pins: spi0_cs_pins {
403 + brcm,function = <1>; /* output */
408 + brcm,function = <4>;
413 + brcm,function = <4>;
417 + brcm,pins = <28 29 30 31>;
418 + brcm,function = <6>; /* alt2 */
423 + pinctrl-names = "default";
424 + pinctrl-0 = <&sdhost_pins>;
438 + pinctrl-names = "default";
439 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
440 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
443 + compatible = "spidev";
444 + reg = <0>; /* CE0 */
445 + #address-cells = <1>;
447 + spi-max-frequency = <500000>;
451 + compatible = "spidev";
452 + reg = <1>; /* CE1 */
453 + #address-cells = <1>;
455 + spi-max-frequency = <500000>;
460 + pinctrl-names = "default";
461 + pinctrl-0 = <&i2c0_pins>;
462 + clock-frequency = <100000>;
466 + pinctrl-names = "default";
467 + pinctrl-0 = <&i2c1_pins>;
468 + clock-frequency = <100000>;
472 + clock-frequency = <100000>;
476 + #sound-dai-cells = <0>;
477 + pinctrl-names = "default";
478 + pinctrl-0 = <&i2s_pins>;
488 + linux,default-trigger = "mmc0";
489 + gpios = <&gpio 16 1>;
495 + uart0 = <&uart0>,"status";
496 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
497 + i2s = <&i2s>,"status";
498 + spi = <&spi0>,"status";
499 + i2c0 = <&i2c0>,"status";
500 + i2c1 = <&i2c1>,"status";
501 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
502 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
503 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
504 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
505 + core_freq = <&clk_core>,"clock-frequency:0";
507 + act_led_gpio = <&act_led>,"gpios:4";
508 + act_led_activelow = <&act_led>,"gpios:8";
509 + act_led_trigger = <&act_led>,"linux,default-trigger";
511 + audio = <&audio>,"status";
512 + watchdog = <&watchdog>,"status";
513 + random = <&random>,"status";
517 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
521 +#include "bcm2708-rpi-cm.dtsi"
524 + model = "Raspberry Pi Compute Module";
532 + spi0_pins: spi0_pins {
533 + brcm,pins = <9 10 11>;
534 + brcm,function = <4>; /* alt0 */
537 + spi0_cs_pins: spi0_cs_pins {
539 + brcm,function = <1>; /* output */
544 + brcm,function = <4>;
549 + brcm,function = <4>;
553 + brcm,pins = <18 19 20 21>;
554 + brcm,function = <4>; /* alt0 */
559 + pinctrl-names = "default";
560 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
561 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
564 + compatible = "spidev";
565 + reg = <0>; /* CE0 */
566 + #address-cells = <1>;
568 + spi-max-frequency = <500000>;
572 + compatible = "spidev";
573 + reg = <1>; /* CE1 */
574 + #address-cells = <1>;
576 + spi-max-frequency = <500000>;
581 + pinctrl-names = "default";
582 + pinctrl-0 = <&i2c0_pins>;
583 + clock-frequency = <100000>;
587 + pinctrl-names = "default";
588 + pinctrl-0 = <&i2c1_pins>;
589 + clock-frequency = <100000>;
593 + clock-frequency = <100000>;
597 + #sound-dai-cells = <0>;
598 + pinctrl-names = "default";
599 + pinctrl-0 = <&i2s_pins>;
608 + uart0 = <&uart0>,"status";
609 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
610 + i2s = <&i2s>,"status";
611 + spi = <&spi0>,"status";
612 + i2c0 = <&i2c0>,"status";
613 + i2c1 = <&i2c1>,"status";
614 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
615 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
616 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
617 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
618 + core_freq = <&clk_core>,"clock-frequency:0";
622 +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
624 +#include "bcm2708.dtsi"
627 + sdhost_pins: sdhost_pins {
628 + brcm,pins = <48 49 50 51 52 53>;
629 + brcm,function = <4>; /* alt0 */
636 + linux,default-trigger = "mmc0";
637 + gpios = <&gpio 47 0>;
642 + pinctrl-names = "default";
643 + pinctrl-0 = <&sdhost_pins>;
655 + act_led_gpio = <&act_led>,"gpios:4";
656 + act_led_activelow = <&act_led>,"gpios:8";
657 + act_led_trigger = <&act_led>,"linux,default-trigger";
659 + audio = <&audio>,"status";
660 + watchdog = <&watchdog>,"status";
661 + random = <&random>,"status";
665 +++ b/arch/arm/boot/dts/bcm2708.dtsi
667 +#include "bcm2708_common.dtsi"
670 + compatible = "brcm,bcm2708";
674 + /* No padding required - the boot loader can do that. */
679 + ranges = <0x7e000000 0x20000000 0x01000000>;
682 + compatible = "brcm,bcm2835-system-timer";
683 + reg = <0x7e003000 0x1000>;
684 + interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
685 + clock-frequency = <1000000>;
689 + compatible = "arm,arm1176-pmu";
693 + compatible = "brcm,bcm2835-gpiomem";
694 + reg = <0x7e200000 0x1000>;
701 + compatible = "brcm,bcm2835-armctrl-ic";
708 +++ b/arch/arm/boot/dts/bcm2708_common.dtsi
710 +#include "skeleton.dtsi"
713 + interrupt-parent = <&intc>;
721 + watchdog = &watchdog;
723 + mailbox = &mailbox;
738 + thermal = &thermal;
742 + /* Onboard audio */
744 + compatible = "brcm,bcm2835-audio";
745 + brcm,pwm-channels = <8>;
746 + status = "disabled";
749 + /* External sound card */
754 + compatible = "simple-bus";
755 + #address-cells = <1>;
758 + dma: dma@7e007000 {
759 + compatible = "brcm,bcm2835-dma";
760 + reg = <0x7e007000 0xf00>;
761 + interrupts = <1 16>,
775 + brcm,dma-channel-mask = <0x0f35>;
778 + intc: interrupt-controller@7e00b200 {
779 + compatible = "brcm,bcm2708-armctrl-ic";
780 + reg = <0x7e00b200 0x200>;
781 + interrupt-controller;
782 + #interrupt-cells = <2>;
785 + mailbox: mailbox@7e00b800 {
786 + compatible = "brcm,bcm2835-mbox";
787 + reg = <0x7e00b880 0x40>;
788 + interrupts = <0 1>;
792 + watchdog: watchdog@7e100000 {
793 + compatible = "brcm,bcm2835-pm-wdt";
794 + reg = <0x7e100000 0x28>;
795 + status = "disabled";
798 + cprman: cprman@7e101000 {
799 + compatible = "brcm,bcm2835-cprman";
800 + #clock-cells = <1>;
801 + reg = <0x7e101000 0x2000>;
803 + /* CPRMAN derives everything from the platform's
806 + clocks = <&clk_osc>;
807 + status = "disabled";
810 + random: rng@7e104000 {
811 + compatible = "brcm,bcm2835-rng";
812 + reg = <0x7e104000 0x10>;
813 + status = "disabled";
816 + gpio: gpio@7e200000 {
817 + compatible = "brcm,bcm2835-gpio";
818 + reg = <0x7e200000 0xb4>;
819 + interrupts = <2 17>, <2 18>;
824 + interrupt-controller;
825 + #interrupt-cells = <2>;
828 + uart0: uart@7e201000 {
829 + compatible = "arm,pl011", "arm,primecell";
830 + reg = <0x7e201000 0x1000>;
831 + interrupts = <2 25>;
832 + clocks = <&clk_uart0 &clk_apb_p>;
833 + clock-names = "uartclk","apb_pclk";
834 + arm,primecell-periphid = <0x00241011>; // For an explanation, see
835 + // https://github.com/raspberrypi/linux/commit/13731d862cf5219216533a3b0de052cee4cc5038
836 + status = "disabled";
839 + sdhost: sdhost@7e202000 {
840 + compatible = "brcm,bcm2835-sdhost";
841 + reg = <0x7e202000 0x100>;
842 + interrupts = <2 24>;
843 + clocks = <&clk_core>;
846 + dma-names = "tx", "rx";
847 + brcm,pio-limit = <1>;
848 + status = "disabled";
851 + i2s: i2s@7e203000 {
852 + compatible = "brcm,bcm2835-i2s";
853 + reg = <0x7e203000 0x24>,
856 + dmas = <&dma 2>, <&dma 3>;
857 + dma-names = "tx", "rx";
858 + status = "disabled";
861 + spi0: spi@7e204000 {
862 + compatible = "brcm,bcm2835-spi";
863 + reg = <0x7e204000 0x1000>;
864 + interrupts = <2 22>;
865 + clocks = <&clk_core>;
866 + #address-cells = <1>;
868 + status = "disabled";
869 + /* the dma channels */
870 + dmas = <&dma 6>, <&dma 7>;
871 + dma-names = "tx", "rx";
872 + /* the chipselects used - <0> means native GPIO
873 + * add more gpios if necessary as <&gpio 6 1>
874 + * (but do not forget to make them output!)
876 + cs-gpios = <0>, <0>;
879 + i2c0: i2c@7e205000 {
880 + compatible = "brcm,bcm2708-i2c";
881 + reg = <0x7e205000 0x1000>;
882 + interrupts = <2 21>;
883 + clocks = <&clk_core>;
884 + #address-cells = <1>;
886 + status = "disabled";
889 + pwm: pwm@7e20c000 {
890 + compatible = "brcm,bcm2835-pwm";
891 + reg = <0x7e20c000 0x28>;
892 + clocks = <&clk_pwm>;
894 + status = "disabled";
897 + uart1: uart@7e215040 {
898 + compatible = "brcm,bcm2835-aux-uart", "ns16550";
899 + reg = <0x7e215040 0x40>;
900 + interrupts = <1 29>;
901 + clocks = <&clk_uart1>;
904 + status = "disabled";
907 + mmc: mmc@7e300000 {
908 + compatible = "brcm,bcm2835-mmc";
909 + reg = <0x7e300000 0x100>;
910 + interrupts = <2 30>;
911 + clocks = <&clk_mmc>;
914 + dma-names = "tx", "rx";
915 + status = "disabled";
918 + i2c1: i2c@7e804000 {
919 + compatible = "brcm,bcm2708-i2c";
920 + reg = <0x7e804000 0x1000>;
921 + interrupts = <2 21>;
922 + clocks = <&clk_core>;
923 + #address-cells = <1>;
925 + status = "disabled";
928 + i2c2: i2c@7e805000 {
929 + // Beware - this is shared with the HDMI module.
930 + // Careless use may break (really) your display.
932 + compatible = "brcm,bcm2708-i2c";
933 + reg = <0x7e805000 0x1000>;
934 + interrupts = <2 21>;
935 + clocks = <&clk_core>;
936 + #address-cells = <1>;
938 + status = "disabled";
941 + smi: smi@7e600000 {
942 + compatible = "brcm,bcm2835-smi";
943 + reg = <0x7e600000 0x44>, <0x7e1010b0 0x8>;
944 + interrupts = <2 16>;
945 + brcm,smi-clock-source = <6>;
946 + brcm,smi-clock-divisor = <4>;
948 + dma-names = "rx-tx";
949 + status = "disabled";
952 + usb: usb@7e980000 {
953 + compatible = "brcm,bcm2708-usb";
954 + reg = <0x7e980000 0x10000>,
955 + <0x7e006000 0x1000>;
956 + interrupts = <2 0>,
960 + firmware: firmware {
961 + compatible = "raspberrypi,bcm2835-firmware";
962 + mboxes = <&mailbox>;
966 + compatible = "gpio-leds";
970 + compatible = "brcm,bcm2708-fb";
971 + firmware = <&firmware>;
972 + status = "disabled";
976 + compatible = "brcm,bcm2835-vchiq";
977 + reg = <0x7e00b840 0xf>;
978 + interrupts = <0 2>;
979 + cache-line-size = <32>;
980 + firmware = <&firmware>;
984 + compatible = "brcm,bcm2835-thermal";
985 + firmware = <&firmware>;
990 + compatible = "simple-bus";
991 + #address-cells = <1>;
994 + clk_core: clock@0 {
995 + compatible = "fixed-clock";
997 + #clock-cells = <0>;
998 + clock-output-names = "core";
999 + clock-frequency = <250000000>;
1002 + clk_mmc: clock@1 {
1003 + compatible = "fixed-clock";
1005 + #clock-cells = <0>;
1006 + clock-output-names = "mmc";
1007 + clock-frequency = <250000000>;
1010 + clk_uart0: clock@2 {
1011 + compatible = "fixed-clock";
1013 + #clock-cells = <0>;
1014 + clock-output-names = "uart0_pclk";
1015 + clock-frequency = <3000000>;
1018 + clk_apb_p: clock@3 {
1019 + compatible = "fixed-clock";
1021 + #clock-cells = <0>;
1022 + clock-output-names = "apb_pclk";
1023 + clock-frequency = <126000000>;
1026 + clk_pwm: clock@4 {
1027 + compatible = "fixed-clock";
1029 + #clock-cells = <0>;
1030 + clock-output-names = "pwm";
1031 + clock-frequency = <100000000>;
1034 + clk_uart1: clock@5 {
1035 + compatible = "fixed-factor-clock";
1037 + clocks = <&clk_core>;
1038 + #clock-cells = <0>;
1043 + /* The oscillator is the root of the clock tree. */
1044 + clk_osc: clock@6 {
1045 + compatible = "fixed-clock";
1047 + #clock-cells = <0>;
1048 + clock-output-names = "osc";
1049 + clock-frequency = <19200000>;
1054 + cache_line_size = <&vchiq>, "cache-line-size:0";
1058 +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
1062 +#include "bcm2709.dtsi"
1065 + compatible = "brcm,bcm2709";
1066 + model = "Raspberry Pi 2 Model B";
1070 + sdhost_pins: sdhost_pins {
1071 + brcm,pins = <48 49 50 51 52 53>;
1072 + brcm,function = <4>; /* alt0 */
1075 + spi0_pins: spi0_pins {
1076 + brcm,pins = <9 10 11>;
1077 + brcm,function = <4>; /* alt0 */
1080 + spi0_cs_pins: spi0_cs_pins {
1081 + brcm,pins = <8 7>;
1082 + brcm,function = <1>; /* output */
1086 + brcm,pins = <0 1>;
1087 + brcm,function = <4>;
1091 + brcm,pins = <2 3>;
1092 + brcm,function = <4>;
1096 + brcm,pins = <18 19 20 21>;
1097 + brcm,function = <4>; /* alt0 */
1102 + pinctrl-names = "default";
1103 + pinctrl-0 = <&sdhost_pins>;
1117 + pinctrl-names = "default";
1118 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
1119 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
1122 + compatible = "spidev";
1123 + reg = <0>; /* CE0 */
1124 + #address-cells = <1>;
1125 + #size-cells = <0>;
1126 + spi-max-frequency = <500000>;
1130 + compatible = "spidev";
1131 + reg = <1>; /* CE1 */
1132 + #address-cells = <1>;
1133 + #size-cells = <0>;
1134 + spi-max-frequency = <500000>;
1139 + pinctrl-names = "default";
1140 + pinctrl-0 = <&i2c0_pins>;
1141 + clock-frequency = <100000>;
1145 + pinctrl-names = "default";
1146 + pinctrl-0 = <&i2c1_pins>;
1147 + clock-frequency = <100000>;
1151 + clock-frequency = <100000>;
1155 + #sound-dai-cells = <0>;
1156 + pinctrl-names = "default";
1157 + pinctrl-0 = <&i2s_pins>;
1167 + linux,default-trigger = "mmc0";
1168 + gpios = <&gpio 47 0>;
1173 + linux,default-trigger = "input";
1174 + gpios = <&gpio 35 0>;
1180 + uart0 = <&uart0>,"status";
1181 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
1182 + i2s = <&i2s>,"status";
1183 + spi = <&spi0>,"status";
1184 + i2c0 = <&i2c0>,"status";
1185 + i2c1 = <&i2c1>,"status";
1186 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1187 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1188 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1189 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1190 + core_freq = <&clk_core>,"clock-frequency:0";
1192 + act_led_gpio = <&act_led>,"gpios:4";
1193 + act_led_activelow = <&act_led>,"gpios:8";
1194 + act_led_trigger = <&act_led>,"linux,default-trigger";
1196 + pwr_led_gpio = <&pwr_led>,"gpios:4";
1197 + pwr_led_activelow = <&pwr_led>,"gpios:8";
1198 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
1200 + audio = <&audio>,"status";
1201 + watchdog = <&watchdog>,"status";
1202 + random = <&random>,"status";
1206 +++ b/arch/arm/boot/dts/bcm2709.dtsi
1208 +#include "bcm2708_common.dtsi"
1211 + compatible = "brcm,bcm2709";
1212 + model = "BCM2709";
1215 + /* No padding required - the boot loader can do that. */
1220 + ranges = <0x7e000000 0x3f000000 0x01000000>,
1221 + <0x40000000 0x40000000 0x00040000>;
1223 + local_intc: local_intc {
1224 + compatible = "brcm,bcm2836-l1-intc";
1225 + reg = <0x40000000 0x100>;
1226 + interrupt-controller;
1227 + #interrupt-cells = <1>;
1228 + interrupt-parent = <&local_intc>;
1232 + compatible = "arm,cortex-a7-pmu";
1233 + interrupt-parent = <&local_intc>;
1238 + compatible = "brcm,bcm2835-gpiomem";
1239 + reg = <0x7e200000 0x1000>;
1244 + compatible = "arm,armv7-timer";
1245 + clock-frequency = <19200000>;
1246 + interrupt-parent = <&local_intc>;
1247 + interrupts = <0>, // PHYS_SECURE_PPI
1248 + <1>, // PHYS_NONSECURE_PPI
1255 + compatible = "brcm,bcm2836-arm-local", "syscon";
1256 + reg = <0x40000000 0x100>;
1261 + #address-cells = <1>;
1262 + #size-cells = <0>;
1265 + device_type = "cpu";
1266 + compatible = "arm,cortex-a7";
1268 + clock-frequency = <800000000>;
1272 + device_type = "cpu";
1273 + compatible = "arm,cortex-a7";
1275 + clock-frequency = <800000000>;
1279 + device_type = "cpu";
1280 + compatible = "arm,cortex-a7";
1282 + clock-frequency = <800000000>;
1286 + device_type = "cpu";
1287 + compatible = "arm,cortex-a7";
1289 + clock-frequency = <800000000>;
1294 + arm_freq = <&v7_cpu0>, "clock-frequency:0",
1295 + <&v7_cpu1>, "clock-frequency:0",
1296 + <&v7_cpu2>, "clock-frequency:0",
1297 + <&v7_cpu3>, "clock-frequency:0";
1306 + compatible = "brcm,bcm2836-armctrl-ic";
1307 + interrupt-parent = <&local_intc>;
1311 +++ b/arch/arm/boot/dts/bcm2835-rpi-cm.dts
1315 +#include "bcm2835-rpi-cm.dtsi"
1318 + model = "Raspberry Pi Compute Module";
1326 + spi0_pins: spi0_pins {
1327 + brcm,pins = <7 8 9 10 11>;
1328 + brcm,function = <4>; /* alt0 */
1332 + brcm,pins = <0 1>;
1333 + brcm,function = <4>;
1337 + brcm,pins = <2 3>;
1338 + brcm,function = <4>;
1342 + brcm,pins = <18 19 20 21>;
1343 + brcm,function = <4>; /* alt0 */
1348 + pinctrl-names = "default";
1349 + pinctrl-0 = <&spi0_pins>;
1352 + compatible = "spidev";
1353 + reg = <0>; /* CE0 */
1354 + #address-cells = <1>;
1355 + #size-cells = <0>;
1356 + spi-max-frequency = <500000>;
1360 + compatible = "spidev";
1361 + reg = <1>; /* CE1 */
1362 + #address-cells = <1>;
1363 + #size-cells = <0>;
1364 + spi-max-frequency = <500000>;
1369 + pinctrl-names = "default";
1370 + pinctrl-0 = <&i2c0_pins>;
1371 + clock-frequency = <100000>;
1375 + pinctrl-names = "default";
1376 + pinctrl-0 = <&i2c1_pins>;
1377 + clock-frequency = <100000>;
1381 + clock-frequency = <100000>;
1385 + #sound-dai-cells = <0>;
1386 + pinctrl-names = "default";
1387 + pinctrl-0 = <&i2s_pins>;
1392 + uart0 = <&uart0>,"status";
1393 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
1394 + uart1_clkrate = <&uart1>,"clock-frequency:0";
1395 + i2s = <&i2s>,"status";
1396 + spi = <&spi0>,"status";
1397 + i2c0 = <&i2c0>,"status";
1398 + i2c1 = <&i2c1>,"status";
1399 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
1400 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
1401 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
1402 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
1403 + core_freq = <&clk_core>,"clock-frequency:0";
1407 +++ b/arch/arm/boot/dts/bcm2835-rpi-cm.dtsi
1409 +#include "bcm2835.dtsi"
1414 + linux,default-trigger = "mmc0";
1415 + gpios = <&gpio 47 0>;
1430 + act_led_gpio = <&act_led>,"gpios:4";
1431 + act_led_activelow = <&act_led>,"gpios:8";
1432 + act_led_trigger = <&act_led>,"linux,default-trigger";
1434 + audio = <&audio>,"status";
1435 + watchdog = <&watchdog>,"status";
1436 + random = <&random>,"status";
1440 +++ b/arch/arm/boot/dts/overlays/Makefile
1442 +ifeq ($(CONFIG_OF),y)
1444 +# Overlays for the Raspberry Pi platform
1446 +ifeq ($(CONFIG_ARCH_BCM2708),y)
1449 +ifeq ($(CONFIG_ARCH_BCM2709),y)
1452 +ifeq ($(CONFIG_ARCH_BCM2835),y)
1456 +dtb-$(RPI_DT_OVERLAYS) += ads7846-overlay.dtb
1457 +dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb
1458 +dtb-$(RPI_DT_OVERLAYS) += dht11-overlay.dtb
1459 +dtb-$(RPI_DT_OVERLAYS) += enc28j60-overlay.dtb
1460 +dtb-$(RPI_DT_OVERLAYS) += gpio-poweroff-overlay.dtb
1461 +dtb-$(RPI_DT_OVERLAYS) += hifiberry-amp-overlay.dtb
1462 +dtb-$(RPI_DT_OVERLAYS) += hifiberry-dac-overlay.dtb
1463 +dtb-$(RPI_DT_OVERLAYS) += hifiberry-dacplus-overlay.dtb
1464 +dtb-$(RPI_DT_OVERLAYS) += hifiberry-digi-overlay.dtb
1465 +dtb-$(RPI_DT_OVERLAYS) += hy28a-overlay.dtb
1466 +dtb-$(RPI_DT_OVERLAYS) += hy28b-overlay.dtb
1467 +dtb-$(RPI_DT_OVERLAYS) += i2c-rtc-overlay.dtb
1468 +dtb-$(RPI_DT_OVERLAYS) += i2s-mmap-overlay.dtb
1469 +dtb-$(RPI_DT_OVERLAYS) += iqaudio-dac-overlay.dtb
1470 +dtb-$(RPI_DT_OVERLAYS) += iqaudio-dacplus-overlay.dtb
1471 +dtb-$(RPI_DT_OVERLAYS) += lirc-rpi-overlay.dtb
1472 +dtb-$(RPI_DT_OVERLAYS) += mcp2515-can0-overlay.dtb
1473 +dtb-$(RPI_DT_OVERLAYS) += mcp2515-can1-overlay.dtb
1474 +dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
1475 +dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
1476 +dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
1477 +dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb
1478 +dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
1479 +dtb-$(RPI_DT_OVERLAYS) += pwm-overlay.dtb
1480 +dtb-$(RPI_DT_OVERLAYS) += pwm-2chan-overlay.dtb
1481 +dtb-$(RPI_DT_OVERLAYS) += raspidac3-overlay.dtb
1482 +dtb-$(RPI_DT_OVERLAYS) += rpi-dac-overlay.dtb
1483 +dtb-$(RPI_DT_OVERLAYS) += rpi-display-overlay.dtb
1484 +dtb-$(RPI_DT_OVERLAYS) += rpi-ft5406-overlay.dtb
1485 +dtb-$(RPI_DT_OVERLAYS) += rpi-proto-overlay.dtb
1486 +dtb-$(RPI_DT_OVERLAYS) += rpi-sense-overlay.dtb
1487 +dtb-$(RPI_DT_OVERLAYS) += sdhost-overlay.dtb
1488 +dtb-$(RPI_DT_OVERLAYS) += sdio-overlay.dtb
1489 +dtb-$(RPI_DT_OVERLAYS) += smi-dev-overlay.dtb
1490 +dtb-$(RPI_DT_OVERLAYS) += smi-nand-overlay.dtb
1491 +dtb-$(RPI_DT_OVERLAYS) += smi-overlay.dtb
1492 +dtb-$(RPI_DT_OVERLAYS) += spi-gpio35-39-overlay.dtb
1493 +dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
1494 +dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
1495 +dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
1496 +dtb-$(RPI_DT_OVERLAYS) += w1-gpio-overlay.dtb
1497 +dtb-$(RPI_DT_OVERLAYS) += w1-gpio-pullup-overlay.dtb
1499 +targets += dtbs dtbs_install
1500 +targets += $(dtb-y)
1505 +clean-files := *.dtb
1507 +# Enable fixups to support overlays on BCM2708 platforms
1508 +ifeq ($(RPI_DT_OVERLAYS),y)
1512 +++ b/arch/arm/boot/dts/overlays/README
1517 +This directory contains Device Tree overlays. Device Tree makes it possible
1518 +to support many hardware configurations with a single kernel and without the
1519 +need to explicitly load or blacklist kernel modules. Note that this isn't a
1520 +"pure" Device Tree configuration (c.f. MACH_BCM2835) - some on-board devices
1521 +are still configured by the board support code, but the intention is to
1522 +eventually reach that goal.
1524 +On Raspberry Pi, Device Tree usage is controlled from /boot/config.txt. By
1525 +default, the Raspberry Pi kernel boots with device tree enabled. You can
1526 +completely disable DT usage (for now) by adding:
1530 +to your config.txt, which should cause your Pi to revert to the old way of
1531 +doing things after a reboot.
1533 +In /boot you will find a .dtb for each base platform. This describes the
1534 +hardware that is part of the Raspberry Pi board. The loader (start.elf and its
1535 +siblings) selects the .dtb file appropriate for the platform by name, and reads
1536 +it into memory. At this point, all of the optional interfaces (i2c, i2s, spi)
1537 +are disabled, but they can be enabled using Device Tree parameters:
1539 + dtparam=i2c=on,i2s=on,spi=on
1541 +However, this shouldn't be necessary in many use cases because loading an
1542 +overlay that requires one of those interfaces will cause it to be enabled
1543 +automatically, and it is advisable to only enable interfaces if they are
1546 +Configuring additional, optional hardware is done using Device Tree overlays
1552 +The Advanced Options section of the raspi-config utility can enable and disable
1553 +Device Tree use, as well as toggling the I2C and SPI interfaces. Note that it
1554 +is possible to both enable an interface and blacklist the driver, if for some
1555 +reason you should want to defer the loading.
1560 +As well as describing the hardware, Device Tree also gives enough information
1561 +to allow suitable driver modules to be located and loaded, with the corollary
1562 +that unneeded modules are not loaded. As a result it should be possible to
1563 +remove lines from /etc/modules, and /etc/modprobe.d/raspi-blacklist.conf can
1564 +have its contents deleted (or commented out).
1569 +Overlays are loaded using the "dtoverlay" directive. As an example, consider the
1570 +popular lirc-rpi module, the Linux Infrared Remote Control driver. In the
1571 +pre-DT world this would be loaded from /etc/modules, with an explicit
1572 +"modprobe lirc-rpi" command, or programmatically by lircd. With DT enabled,
1573 +this becomes a line in config.txt:
1575 + dtoverlay=lirc-rpi
1577 +This causes the file /boot/overlays/lirc-rpi-overlay.dtb to be loaded. By
1578 +default it will use GPIOs 17 (out) and 18 (in), but this can be modified using
1581 + dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=13
1583 +Parameters always have default values, although in some cases (e.g. "w1-gpio")
1584 +it is necessary to provided multiple overlays in order to get the desired
1585 +behaviour. See the list of overlays below for a description of the parameters and their defaults.
1587 +The Overlay and Parameter Reference
1588 +===================================
1590 +N.B. When editing this file, please preserve the indentation levels to make it simple to parse
1591 +programmatically. NO HARD TABS.
1594 +Name: <The base DTB>
1595 +Info: Configures the base Raspberry Pi hardware
1596 +Load: <loaded automatically>
1598 + audio Set to "on" to enable the onboard ALSA audio
1599 + interface (default "off")
1601 + i2c_arm Set to "on" to enable the ARM's i2c interface
1604 + i2c_vc Set to "on" to enable the i2c interface
1605 + usually reserved for the VideoCore processor
1608 + i2c An alias for i2c_arm
1610 + i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
1611 + (default "100000")
1613 + i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
1614 + (default "100000")
1616 + i2c_baudrate An alias for i2c_arm_baudrate
1618 + i2s Set to "on" to enable the i2s interface
1621 + spi Set to "on" to enable the spi interfaces
1624 + random Set to "on" to enable the hardware random
1625 + number generator (default "off")
1627 + uart0 Set to "off" to disable uart0 (default "on")
1629 + watchdog Set to "on" to enable the hardware watchdog
1632 + act_led_trigger Choose which activity the LED tracks.
1633 + Use "heartbeat" for a nice load indicator.
1636 + act_led_activelow Set to "on" to invert the sense of the LED
1639 + act_led_gpio Set which GPIO to use for the activity LED
1640 + (in case you want to connect it to an external
1642 + (default "16" on a non-Plus board, "47" on a
1648 + As for act_led_*, but using the PWR LED.
1649 + Not available on Model A/B boards.
1651 + N.B. It is recommended to only enable those interfaces that are needed.
1652 + Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
1653 + interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
1654 + Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
1655 + interfaces i2c0 and i2c1. Use of the numeric variants is still possible
1656 + but deprecated because the ARM/VC assignments differ between board
1657 + revisions. The same board-specific mapping applies to i2c_baudrate,
1658 + and the other i2c baudrate parameters.
1662 +Info: ADS7846 Touch controller
1663 +Load: dtoverlay=ads7846,<param>=<val>
1664 +Params: cs SPI bus Chip Select (default 1)
1665 + speed SPI bus speed (default 2Mhz, max 3.25MHz)
1666 + penirq GPIO used for PENIRQ. REQUIRED
1667 + penirq_pull Set GPIO pull (default 0=none, 2=pullup)
1668 + swapxy Swap x and y axis
1669 + xmin Minimum value on the X axis (default 0)
1670 + ymin Minimum value on the Y axis (default 0)
1671 + xmax Maximum value on the X axis (default 4095)
1672 + ymax Maximum value on the Y axis (default 4095)
1673 + pmin Minimum reported pressure value (default 0)
1674 + pmax Maximum reported pressure value (default 65535)
1675 + xohms Touchpanel sensitivity (X-plate resistance)
1678 + penirq is required and usually xohms (60-100) has to be set as well.
1679 + Apart from that, pmax (255) and swapxy are also common.
1680 + The rest of the calibration can be done with xinput-calibrator.
1681 + See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian
1682 + Device Tree binding document:
1683 + www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
1686 +Name: bmp085_i2c-sensor
1687 +Info: Configures the BMP085/BMP180 digital barometric pressure and temperature
1688 + sensors from Bosch Sensortec
1689 +Load: dtoverlay=bmp085_i2c-sensor
1694 +Info: Overlay for the DHT11/DHT21/DHT22 humidity/temperature sensors
1695 + Also sometimes found with the part number(s) AM230x.
1696 +Load: dtoverlay=dht11,<param>=<val>
1697 +Params: gpiopin GPIO connected to the sensor's DATA output.
1701 +[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]
1705 +Info: Overlay for the Microchip ENC28J60 Ethernet Controller (SPI)
1706 +Load: dtoverlay=enc28j60,<param>=<val>
1707 +Params: int_pin GPIO used for INT (default 25)
1709 + speed SPI bus speed (default 12000000)
1712 +Name: gpio-poweroff
1713 +Info: Drives a GPIO high or low on reboot
1714 +Load: dtoverlay=gpio-poweroff,<param>=<val>
1715 +Params: gpiopin GPIO for signalling (default 26)
1717 + active_low Set if the power control device requires a
1718 + high->low transition to trigger a power-down.
1719 + Note that this will require the support of a
1720 + custom dt-blob.bin to prevent a power-down
1721 + during the boot process, and that a reboot
1722 + will also cause the pin to go low.
1725 +Name: hifiberry-amp
1726 +Info: Configures the HifiBerry Amp and Amp+ audio cards
1727 +Load: dtoverlay=hifiberry-amp
1731 +Name: hifiberry-dac
1732 +Info: Configures the HifiBerry DAC audio card
1733 +Load: dtoverlay=hifiberry-dac
1737 +Name: hifiberry-dacplus
1738 +Info: Configures the HifiBerry DAC+ audio card
1739 +Load: dtoverlay=hifiberry-dacplus
1743 +Name: hifiberry-digi
1744 +Info: Configures the HifiBerry Digi audio card
1745 +Load: dtoverlay=hifiberry-digi
1750 +Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics
1751 + Default values match Texy's display shield
1752 +Load: dtoverlay=hy28a,<param>=<val>
1753 +Params: speed Display SPI bus speed
1755 + rotate Display rotation {0,90,180,270}
1757 + fps Delay between frame updates
1759 + debug Debug output level {0-7}
1761 + xohms Touchpanel sensitivity (X-plate resistance)
1763 + resetgpio GPIO used to reset controller
1765 + ledgpio GPIO used to control backlight
1769 +Info: HY28B - 2.8" TFT LCD Display Module by HAOYU Electronics
1770 + Default values match Texy's display shield
1771 +Load: dtoverlay=hy28b,<param>=<val>
1772 +Params: speed Display SPI bus speed
1774 + rotate Display rotation {0,90,180,270}
1776 + fps Delay between frame updates
1778 + debug Debug output level {0-7}
1780 + xohms Touchpanel sensitivity (X-plate resistance)
1782 + resetgpio GPIO used to reset controller
1784 + ledgpio GPIO used to control backlight
1788 +Info: Adds support for a number of I2C Real Time Clock devices
1789 +Load: dtoverlay=i2c-rtc,<param>
1790 +Params: ds1307 Select the DS1307 device
1792 + ds3231 Select the DS3231 device
1794 + mcp7941x Select the MCP7941x device
1796 + pcf2127 Select the PCF2127 device
1798 + pcf8523 Select the PCF8523 device
1800 + pcf8563 Select the PCF8563 device
1804 +Info: Enables mmap support in the bcm2708-i2s driver
1805 +Load: dtoverlay=i2s-mmap
1810 +Info: Configures the IQaudio DAC audio card
1811 +Load: dtoverlay=iqaudio-dac
1815 +Name: iqaudio-dacplus
1816 +Info: Configures the IQaudio DAC+ audio card
1817 +Load: dtoverlay=iqaudio-dacplus
1822 +Info: Configures lirc-rpi (Linux Infrared Remote Control for Raspberry Pi)
1823 + Consult the module documentation for more details.
1824 +Load: dtoverlay=lirc-rpi,<param>=<val>,...
1825 +Params: gpio_out_pin GPIO for output (default "17")
1827 + gpio_in_pin GPIO for input (default "18")
1829 + gpio_in_pull Pull up/down/off on the input pin
1832 + sense Override the IR receive auto-detection logic:
1833 + "0" = force active-high
1834 + "1" = force active-low
1835 + "-1" = use auto-detection
1838 + softcarrier Turn the software carrier "on" or "off"
1841 + invert "on" = invert the output pin (default "off")
1843 + debug "on" = enable additional debug messages
1848 +Info: Configures the MCP2515 CAN controller on spi0.0
1849 +Load: dtoverlay=mcp2515-can0,<param>=<val>
1850 +Params: oscillator Clock frequency for the CAN controller (Hz)
1852 + spimaxfrequency Maximum SPI frequence (Hz)
1854 + interrupt GPIO for interrupt signal
1858 +Info: Configures the MCP2515 CAN controller on spi0.1
1859 +Load: dtoverlay=mcp2515-can1,<param>=<val>
1860 +Params: oscillator Clock frequency for the CAN controller (Hz)
1862 + spimaxfrequency Maximum SPI frequence (Hz)
1864 + interrupt GPIO for interrupt signal
1868 +Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
1869 +Load: dtoverlay=mmc,<param>=<val>
1870 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
1872 + force_pio Disable DMA support
1876 +Info: MZ61581 display by Tontec
1877 +Load: dtoverlay=mz61581,<param>=<val>
1878 +Params: speed Display SPI bus speed
1880 + rotate Display rotation {0,90,180,270}
1882 + fps Delay between frame updates
1884 + txbuflen Transmit buffer length (default 32768)
1886 + debug Debug output level {0-7}
1888 + xohms Touchpanel sensitivity (X-plate resistance)
1891 +[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
1894 +[ The pcf8523-rtc overlay has been deleted. See i2c-rtc. ]
1897 +[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
1901 +Info: PiScreen display by OzzMaker.com
1902 +Load: dtoverlay=piscreen,<param>=<val>
1903 +Params: speed Display SPI bus speed
1905 + rotate Display rotation {0,90,180,270}
1907 + fps Delay between frame updates
1909 + debug Debug output level {0-7}
1911 + xohms Touchpanel sensitivity (X-plate resistance)
1914 +Name: pitft28-resistive
1915 +Info: Adafruit PiTFT 2.8" resistive touch screen
1916 +Load: dtoverlay=pitft28-resistive,<param>=<val>
1917 +Params: speed Display SPI bus speed
1919 + rotate Display rotation {0,90,180,270}
1921 + fps Delay between frame updates
1923 + debug Debug output level {0-7}
1927 +Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
1928 +Load: dtoverlay=pps-gpio,<param>=<val>
1929 +Params: gpiopin Input GPIO (default "18")
1933 +Info: Configures a single PWM channel
1934 + Legal pin,function combinations for each channel:
1935 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
1936 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
1938 + 1) Pin 18 is the only one available on all platforms, and
1939 + it is the one used by the I2S audio interface.
1940 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
1941 + 2) The onboard analogue audio output uses both PWM channels.
1942 + 3) So be careful mixing audio and PWM.
1943 + 4) Currently the clock must have been enabled and configured
1945 +Load: dtoverlay=pwm,<param>=<val>
1946 +Params: pin Output pin (default 18) - see table
1947 + func Pin function (default 2 = Alt5) - see above
1948 + clock PWM clock frequency (informational)
1952 +Info: Configures both PWM channels
1953 + Legal pin,function combinations for each channel:
1954 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
1955 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
1957 + 1) Pin 18 is the only one available on all platforms, and
1958 + it is the one used by the I2S audio interface.
1959 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
1960 + 2) The onboard analogue audio output uses both PWM channels.
1961 + 3) So be careful mixing audio and PWM.
1962 + 4) Currently the clock must have been enabled and configured
1964 +Load: dtoverlay=pwm-2chan,<param>=<val>
1965 +Params: pin Output pin (default 18) - see table
1966 + pin2 Output pin for other channel (default 19)
1967 + func Pin function (default 2 = Alt5) - see above
1968 + func2 Function for pin2 (default 2 = Alt5)
1969 + clock PWM clock frequency (informational)
1973 +Info: Configures the RaspiDAV Rev.3x audio card
1974 +Load: dtoverlay=raspidac3
1979 +Info: Configures the RPi DAC audio card
1980 +Load: dtoverlay=rpi-dac
1985 +Info: RPi-Display - 2.8" Touch Display by Watterott
1986 +Load: dtoverlay=rpi-display,<param>=<val>
1987 +Params: speed Display SPI bus speed
1989 + rotate Display rotation {0,90,180,270}
1991 + fps Delay between frame updates
1993 + debug Debug output level {0-7}
1995 + xohms Touchpanel sensitivity (X-plate resistance)
1999 +Info: Official Raspberry Pi display touchscreen
2000 +Load: dtoverlay=rpi-ft5406
2005 +Info: Configures the RPi Proto audio card
2006 +Load: dtoverlay=rpi-proto
2011 +Info: Raspberry Pi Sense HAT
2012 +Load: dtoverlay=rpi-sense
2017 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock
2018 +Load: dtoverlay=sdhost,<param>=<val>
2019 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
2022 + force_pio Disable DMA support (default off)
2024 + pio_limit Number of blocks above which to use DMA
2027 + debug Enable debug output (default off)
2031 +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
2032 + and enables SDIO via GPIOs 22-27.
2033 +Load: dtoverlay=sdio,<param>=<val>
2034 +Params: overclock_50 Clock (in MHz) to use when the MMC framework
2037 + force_pio Disable DMA support (default off)
2039 + pio_limit Number of blocks above which to use DMA
2042 + debug Enable debug output (default off)
2044 + poll_once Disable SDIO-device polling every second
2045 + (default on: polling once at boot-time)
2049 +Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!
2050 +Load: dtoverlay=smi
2055 +Info: Enables the userspace interface for the SMI driver
2056 +Load: dtoverlay=smi-dev
2061 +Info: Enables access to NAND flash via the SMI interface
2062 +Load: dtoverlay=smi-nand
2066 +Name: spi-gpio35-39
2067 +Info: move SPI function block to GPIO 35 to 39
2068 +Load: dtoverlay=spi-gpio35-39
2073 +Info: 3.5" Color TFT Display by www.tinylcd.com
2074 + Options: Touch, RTC, keypad
2075 +Load: dtoverlay=tinylcd35,<param>=<val>
2076 +Params: speed Display SPI bus speed
2078 + rotate Display rotation {0,90,180,270}
2080 + fps Delay between frame updates
2082 + debug Debug output level {0-7}
2084 + touch Enable touch panel
2086 + touchgpio Touch controller IRQ GPIO
2088 + xohms Touchpanel: Resistance of X-plate in ohms
2090 + rtc-pcf PCF8563 Real Time Clock
2092 + rtc-ds DS1307 Real Time Clock
2094 + keypad Enable keypad
2097 + Display with touchpanel, PCF8563 RTC and keypad:
2098 + dtoverlay=tinylcd35,touch,rtc-pcf,keypad
2099 + Old touch display:
2100 + dtoverlay=tinylcd35,touch,touchgpio=3
2104 +Info: Enable uart1 in place of uart0
2105 +Load: dtoverlay=uart1,<param>=<val>
2106 +Params: txd1_pin GPIO pin for TXD1 (14, 32 or 40 - default 14)
2108 + rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
2112 +Info: Overlay for the Fen Logic VGA666 board
2113 + This uses GPIOs 2-21 (so no I2C), and activates the output 2-3 seconds
2114 + after the kernel has started.
2115 +Load: dtoverlay=vga666
2120 +Info: Configures the w1-gpio Onewire interface module.
2121 + Use this overlay if you *don't* need a GPIO to drive an external pullup.
2122 +Load: dtoverlay=w1-gpio,<param>=<val>
2123 +Params: gpiopin GPIO for I/O (default "4")
2125 + pullup Non-zero, "on", or "y" to enable the parasitic
2126 + power (2-wire, power-on-data) feature
2129 +Name: w1-gpio-pullup
2130 +Info: Configures the w1-gpio Onewire interface module.
2131 + Use this overlay if you *do* need a GPIO to drive an external pullup.
2132 +Load: dtoverlay=w1-gpio-pullup,<param>=<val>
2133 +Params: gpiopin GPIO for I/O (default "4")
2135 + pullup Non-zero, "on", or "y" to enable the parasitic
2136 + power (2-wire, power-on-data) feature
2138 + extpullup GPIO for external pullup (default "5")
2144 +If you are experiencing problems that you think are DT-related, enable DT
2145 +diagnostic output by adding this to /boot/config.txt:
2149 +and rebooting. Then run:
2151 + sudo vcdbg log msg
2153 +and look for relevant messages.
2158 +This is only meant to be a quick introduction to the subject of Device Tree on
2159 +Raspberry Pi. There is a more complete explanation here:
2161 +http://www.raspberrypi.org/documentation/configuration/device-tree.md
2163 +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
2166 + * Generic Device Tree overlay for the ADS7846 touch controller
2174 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
2182 + status = "disabled";
2186 + status = "disabled";
2194 + ads7846_pins: ads7846_pins {
2195 + brcm,pins = <255>; /* illegal default value */
2196 + brcm,function = <0>; /* in */
2197 + brcm,pull = <0>; /* none */
2205 + /* needed to avoid dtc warning */
2206 + #address-cells = <1>;
2207 + #size-cells = <0>;
2209 + ads7846: ads7846@1 {
2210 + compatible = "ti,ads7846";
2212 + pinctrl-names = "default";
2213 + pinctrl-0 = <&ads7846_pins>;
2215 + spi-max-frequency = <2000000>;
2216 + interrupts = <255 2>; /* high-to-low edge triggered */
2217 + interrupt-parent = <&gpio>;
2218 + pendown-gpio = <&gpio 255 0>;
2220 + /* driver defaults */
2221 + ti,x-min = /bits/ 16 <0>;
2222 + ti,y-min = /bits/ 16 <0>;
2223 + ti,x-max = /bits/ 16 <0x0FFF>;
2224 + ti,y-max = /bits/ 16 <0x0FFF>;
2225 + ti,pressure-min = /bits/ 16 <0>;
2226 + ti,pressure-max = /bits/ 16 <0xFFFF>;
2227 + ti,x-plate-ohms = /bits/ 16 <400>;
2232 + cs = <&ads7846>,"reg:0";
2233 + speed = <&ads7846>,"spi-max-frequency:0";
2234 + penirq = <&ads7846_pins>,"brcm,pins:0", /* REQUIRED */
2235 + <&ads7846>,"interrupts:0",
2236 + <&ads7846>,"pendown-gpio:4";
2237 + penirq_pull = <&ads7846_pins>,"brcm,pull:0";
2238 + swapxy = <&ads7846>,"ti,swap-xy?";
2239 + xmin = <&ads7846>,"ti,x-min;0";
2240 + ymin = <&ads7846>,"ti,y-min;0";
2241 + xmax = <&ads7846>,"ti,x-max;0";
2242 + ymax = <&ads7846>,"ti,y-max;0";
2243 + pmin = <&ads7846>,"ti,pressure-min;0";
2244 + pmax = <&ads7846>,"ti,pressure-max;0";
2245 + xohms = <&ads7846>,"ti,x-plate-ohms;0";
2249 +++ b/arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
2251 +// Definitions for BMP085/BMP180 digital barometric pressure and temperature sensors from Bosch Sensortec
2256 + compatible = "brcm,bcm2708";
2259 + target = <&i2c_arm>;
2261 + #address-cells = <1>;
2262 + #size-cells = <0>;
2266 + compatible = "bosch,bmp085";
2268 + default-oversampling = <3>;
2275 +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
2278 + * Overlay for the DHT11/21/22 humidity/temperature sensor modules.
2284 + compatible = "brcm,bcm2708";
2287 + target-path = "/";
2291 + compatible = "dht11";
2292 + pinctrl-names = "default";
2293 + pinctrl-0 = <&dht11_pins>;
2294 + gpios = <&gpio 4 0>;
2303 + dht11_pins: dht11_pins {
2305 + brcm,function = <0>; // in
2306 + brcm,pull = <0>; // off
2312 + gpiopin = <&dht11_pins>,"brcm,pins:0",
2313 + <&dht11>,"gpios:4";
2317 +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
2319 +// Overlay for the Microchip ENC28J60 Ethernet Controller
2324 + compatible = "brcm,bcm2708";
2329 + /* needed to avoid dtc warning */
2330 + #address-cells = <1>;
2331 + #size-cells = <0>;
2336 + status = "disabled";
2340 + compatible = "microchip,enc28j60";
2341 + reg = <0>; /* CE0 */
2342 + pinctrl-names = "default";
2343 + pinctrl-0 = <ð1_pins>;
2344 + interrupt-parent = <&gpio>;
2345 + interrupts = <25 0x2>; /* falling edge */
2346 + spi-max-frequency = <12000000>;
2355 + eth1_pins: eth1_pins {
2357 + brcm,function = <0>; /* in */
2358 + brcm,pull = <0>; /* none */
2364 + int_pin = <ð1>, "interrupts:0",
2365 + <ð1_pins>, "brcm,pins:0";
2366 + speed = <ð1>, "spi-max-frequency:0";
2370 +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
2372 +// Definitions for gpio-poweroff module
2377 + compatible = "brcm,bcm2708";
2380 + target-path = "/";
2382 + power_ctrl: power_ctrl {
2383 + compatible = "gpio-poweroff";
2384 + gpios = <&gpio 26 0>;
2393 + power_ctrl_pins: power_ctrl_pins {
2395 + brcm,function = <1>; // out
2401 + gpiopin = <&power_ctrl>,"gpios:4",
2402 + <&power_ctrl_pins>,"brcm,pins:0";
2403 + active_low = <&power_ctrl>,"gpios:8";
2407 +++ b/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
2409 +// Definitions for HiFiBerry Amp/Amp+
2414 + compatible = "brcm,bcm2708";
2417 + target = <&sound>;
2419 + compatible = "hifiberry,hifiberry-amp";
2420 + i2s-controller = <&i2s>;
2435 + #address-cells = <1>;
2436 + #size-cells = <0>;
2440 + #sound-dai-cells = <0>;
2441 + compatible = "ti,tas5713";
2449 +++ b/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
2451 +// Definitions for HiFiBerry DAC
2456 + compatible = "brcm,bcm2708";
2459 + target = <&sound>;
2461 + compatible = "hifiberry,hifiberry-dac";
2462 + i2s-controller = <&i2s>;
2475 + target-path = "/";
2478 + #sound-dai-cells = <0>;
2479 + compatible = "ti,pcm5102a";
2486 +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
2488 +// Definitions for HiFiBerry DAC+
2493 + compatible = "brcm,bcm2708";
2496 + target = <&sound>;
2498 + compatible = "hifiberry,hifiberry-dacplus";
2499 + i2s-controller = <&i2s>;
2514 + #address-cells = <1>;
2515 + #size-cells = <0>;
2519 + #sound-dai-cells = <0>;
2520 + compatible = "ti,pcm5122";
2528 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
2530 +// Definitions for HiFiBerry Digi
2535 + compatible = "brcm,bcm2708";
2538 + target = <&sound>;
2540 + compatible = "hifiberry,hifiberry-digi";
2541 + i2s-controller = <&i2s>;
2556 + #address-cells = <1>;
2557 + #size-cells = <0>;
2561 + #sound-dai-cells = <0>;
2562 + compatible = "wlf,wm8804";
2570 +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
2573 + * Device Tree overlay for HY28A display
2581 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
2589 + status = "disabled";
2593 + status = "disabled";
2601 + hy28a_pins: hy28a_pins {
2602 + brcm,pins = <17 25 18>;
2603 + brcm,function = <0 1 1>; /* in out out */
2611 + /* needed to avoid dtc warning */
2612 + #address-cells = <1>;
2613 + #size-cells = <0>;
2616 + compatible = "ilitek,ili9320";
2618 + pinctrl-names = "default";
2619 + pinctrl-0 = <&hy28a_pins>;
2621 + spi-max-frequency = <32000000>;
2628 + startbyte = <0x70>;
2629 + reset-gpios = <&gpio 25 0>;
2630 + led-gpios = <&gpio 18 1>;
2634 + hy28a_ts: hy28a-ts@1 {
2635 + compatible = "ti,ads7846";
2638 + spi-max-frequency = <2000000>;
2639 + interrupts = <17 2>; /* high-to-low edge triggered */
2640 + interrupt-parent = <&gpio>;
2641 + pendown-gpio = <&gpio 17 0>;
2642 + ti,x-plate-ohms = /bits/ 16 <100>;
2643 + ti,pressure-max = /bits/ 16 <255>;
2648 + speed = <&hy28a>,"spi-max-frequency:0";
2649 + rotate = <&hy28a>,"rotate:0";
2650 + fps = <&hy28a>,"fps:0";
2651 + debug = <&hy28a>,"debug:0";
2652 + xohms = <&hy28a_ts>,"ti,x-plate-ohms;0";
2653 + resetgpio = <&hy28a>,"reset-gpios:4",
2654 + <&hy28a_pins>, "brcm,pins:1";
2655 + ledgpio = <&hy28a>,"led-gpios:4",
2656 + <&hy28a_pins>, "brcm,pins:2";
2660 +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
2663 + * Device Tree overlay for HY28b display shield by Texy
2671 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
2679 + status = "disabled";
2683 + status = "disabled";
2691 + hy28b_pins: hy28b_pins {
2692 + brcm,pins = <17 25 18>;
2693 + brcm,function = <0 1 1>; /* in out out */
2701 + /* needed to avoid dtc warning */
2702 + #address-cells = <1>;
2703 + #size-cells = <0>;
2706 + compatible = "ilitek,ili9325";
2708 + pinctrl-names = "default";
2709 + pinctrl-0 = <&hy28b_pins>;
2711 + spi-max-frequency = <48000000>;
2718 + startbyte = <0x70>;
2719 + reset-gpios = <&gpio 25 0>;
2720 + led-gpios = <&gpio 18 1>;
2722 + gamma = "04 1F 4 7 7 0 7 7 6 0\n0F 00 1 7 4 0 0 0 6 7";
2724 + init = <0x10000e7 0x0010
2779 + hy28b_ts: hy28b-ts@1 {
2780 + compatible = "ti,ads7846";
2783 + spi-max-frequency = <2000000>;
2784 + interrupts = <17 2>; /* high-to-low edge triggered */
2785 + interrupt-parent = <&gpio>;
2786 + pendown-gpio = <&gpio 17 0>;
2787 + ti,x-plate-ohms = /bits/ 16 <100>;
2788 + ti,pressure-max = /bits/ 16 <255>;
2793 + speed = <&hy28b>,"spi-max-frequency:0";
2794 + rotate = <&hy28b>,"rotate:0";
2795 + fps = <&hy28b>,"fps:0";
2796 + debug = <&hy28b>,"debug:0";
2797 + xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
2798 + resetgpio = <&hy28b>,"reset-gpios:4",
2799 + <&hy28b_pins>, "brcm,pins:1";
2800 + ledgpio = <&hy28b>,"led-gpios:4",
2801 + <&hy28b_pins>, "brcm,pins:2";
2805 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
2807 +// Definitions for several I2C based Real Time Clocks
2812 + compatible = "brcm,bcm2708";
2815 + target = <&i2c_arm>;
2817 + #address-cells = <1>;
2818 + #size-cells = <0>;
2821 + ds1307: ds1307@68 {
2822 + compatible = "maxim,ds1307";
2824 + status = "disable";
2826 + mcp7941x: mcp7941x@6f {
2827 + compatible = "microchip,mcp7941x";
2829 + status = "disable";
2831 + ds3231: ds3231@68 {
2832 + compatible = "maxim,ds3231";
2834 + status = "disable";
2836 + pcf2127: pcf2127@51 {
2837 + compatible = "nxp,pcf2127";
2839 + status = "disable";
2841 + pcf8523: pcf8523@68 {
2842 + compatible = "nxp,pcf8523";
2844 + status = "disable";
2846 + pcf8563: pcf8563@51 {
2847 + compatible = "nxp,pcf8563";
2849 + status = "disable";
2854 + ds1307 = <&ds1307>,"status";
2855 + ds3231 = <&ds3231>,"status";
2856 + mcp7941x = <&mcp7941x>,"status";
2857 + pcf2127 = <&pcf2127>,"status";
2858 + pcf8523 = <&pcf8523>,"status";
2859 + pcf8563 = <&pcf8563>,"status";
2863 +++ b/arch/arm/boot/dts/overlays/i2s-mmap-overlay.dts
2869 + compatible = "brcm,bcm2708";
2879 +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
2881 +// Definitions for IQaudIO DAC
2886 + compatible = "brcm,bcm2708";
2889 + target = <&sound>;
2891 + compatible = "iqaudio,iqaudio-dac";
2892 + i2s-controller = <&i2s>;
2907 + #address-cells = <1>;
2908 + #size-cells = <0>;
2912 + #sound-dai-cells = <0>;
2913 + compatible = "ti,pcm5122";
2921 +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
2923 +// Definitions for IQaudIO DAC+
2928 + compatible = "brcm,bcm2708";
2931 + target = <&sound>;
2933 + compatible = "iqaudio,iqaudio-dac";
2934 + i2s-controller = <&i2s>;
2949 + #address-cells = <1>;
2950 + #size-cells = <0>;
2954 + #sound-dai-cells = <0>;
2955 + compatible = "ti,pcm5122";
2963 +++ b/arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
2965 +// Definitions for lirc-rpi module
2970 + compatible = "brcm,bcm2708";
2973 + target-path = "/";
2975 + lirc_rpi: lirc_rpi {
2976 + compatible = "rpi,lirc-rpi";
2977 + pinctrl-names = "default";
2978 + pinctrl-0 = <&lirc_pins>;
2981 + // Override autodetection of IR receiver circuit
2982 + // (0 = active high, 1 = active low, -1 = no override )
2983 + rpi,sense = <0xffffffff>;
2985 + // Software carrier
2986 + // (0 = off, 1 = on)
2987 + rpi,softcarrier = <1>;
2990 + // (0 = off, 1 = on)
2993 + // Enable debugging messages
2994 + // (0 = off, 1 = on)
3003 + lirc_pins: lirc_pins {
3004 + brcm,pins = <17 18>;
3005 + brcm,function = <1 0>; // out in
3006 + brcm,pull = <0 1>; // off down
3012 + gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
3013 + gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
3014 + gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
3016 + sense = <&lirc_rpi>,"rpi,sense:0";
3017 + softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
3018 + invert = <&lirc_rpi>,"rpi,invert:0";
3019 + debug = <&lirc_rpi>,"rpi,debug:0";
3023 +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
3026 + * Device tree overlay for mcp251x/can0 on spi0.0
3033 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
3034 + /* disable spi-dev for spi0.0 */
3040 + status = "disabled";
3045 + /* the interrupt pin of the can-controller */
3049 + can0_pins: can0_pins {
3051 + brcm,function = <0>; /* input */
3056 + /* the clock/oscillator of the can-controller */
3058 + target-path = "/clocks";
3060 + /* external oscillator of mcp2515 on SPI0.0 */
3061 + can0_osc: can0_osc {
3062 + compatible = "fixed-clock";
3063 + #clock-cells = <0>;
3064 + clock-frequency = <16000000>;
3069 + /* the spi config of the can-controller itself binding everything together */
3073 + /* needed to avoid dtc warning */
3074 + #address-cells = <1>;
3075 + #size-cells = <0>;
3078 + compatible = "microchip,mcp2515";
3079 + pinctrl-names = "default";
3080 + pinctrl-0 = <&can0_pins>;
3081 + spi-max-frequency = <10000000>;
3082 + interrupt-parent = <&gpio>;
3083 + interrupts = <25 0x2>;
3084 + clocks = <&can0_osc>;
3089 + oscillator = <&can0_osc>,"clock-frequency:0";
3090 + spimaxfrequency = <&can0>,"spi-max-frequency:0";
3091 + interrupt = <&can0_pins>,"brcm,pins:0",<&can0>,"interrupts:0";
3095 +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
3098 + * Device tree overlay for mcp251x/can1 on spi0.1 edited by petit_miner
3105 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
3106 + /* disable spi-dev for spi0.1 */
3112 + status = "disabled";
3117 + /* the interrupt pin of the can-controller */
3121 + can1_pins: can1_pins {
3123 + brcm,function = <0>; /* input */
3128 + /* the clock/oscillator of the can-controller */
3130 + target-path = "/clocks";
3132 + /* external oscillator of mcp2515 on spi0.1 */
3133 + can1_osc: can1_osc {
3134 + compatible = "fixed-clock";
3135 + #clock-cells = <0>;
3136 + clock-frequency = <16000000>;
3141 + /* the spi config of the can-controller itself binding everything together */
3145 + /* needed to avoid dtc warning */
3146 + #address-cells = <1>;
3147 + #size-cells = <0>;
3150 + compatible = "microchip,mcp2515";
3151 + pinctrl-names = "default";
3152 + pinctrl-0 = <&can1_pins>;
3153 + spi-max-frequency = <10000000>;
3154 + interrupt-parent = <&gpio>;
3155 + interrupts = <25 0x2>;
3156 + clocks = <&can1_osc>;
3161 + oscillator = <&can1_osc>,"clock-frequency:0";
3162 + spimaxfrequency = <&can1>,"spi-max-frequency:0";
3163 + interrupt = <&can1_pins>,"brcm,pins:0",<&can1>,"interrupts:0";
3167 +++ b/arch/arm/boot/dts/overlays/mmc-overlay.dts
3173 + compatible = "brcm,bcm2708";
3177 + frag0: __overlay__ {
3178 + pinctrl-names = "default";
3179 + pinctrl-0 = <&mmc_pins>;
3181 + brcm,overclock-50 = <0>;
3189 + mmc_pins: mmc_pins {
3190 + brcm,pins = <48 49 50 51 52 53>;
3191 + brcm,function = <7>; /* alt3 */
3197 + target = <&sdhost>;
3199 + status = "disabled";
3204 + overclock_50 = <&frag0>,"brcm,overclock-50:0";
3205 + force_pio = <&frag0>,"brcm,force-pio?";
3209 +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
3212 + * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
3220 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
3228 + status = "disabled";
3232 + status = "disabled";
3240 + mz61581_pins: mz61581_pins {
3241 + brcm,pins = <4 15 18 25>;
3242 + brcm,function = <0 1 1 1>; /* in out out out */
3250 + /* needed to avoid dtc warning */
3251 + #address-cells = <1>;
3252 + #size-cells = <0>;
3254 + mz61581: mz61581@0{
3255 + compatible = "samsung,s6d02a1";
3257 + pinctrl-names = "default";
3258 + pinctrl-0 = <&mz61581_pins>;
3260 + spi-max-frequency = <128000000>;
3270 + txbuflen = <32768>;
3272 + reset-gpios = <&gpio 15 0>;
3273 + dc-gpios = <&gpio 25 0>;
3274 + led-gpios = <&gpio 18 0>;
3276 + init = <0x10000b0 00
3279 + 0x10000b3 0x02 0x00 0x00 0x00
3280 + 0x10000c0 0x13 0x3b 0x00 0x02 0x00 0x01 0x00 0x43
3281 + 0x10000c1 0x08 0x16 0x08 0x08
3282 + 0x10000c4 0x11 0x07 0x03 0x03
3284 + 0x10000c8 0x03 0x03 0x13 0x5c 0x03 0x07 0x14 0x08 0x00 0x21 0x08 0x14 0x07 0x53 0x0c 0x13 0x03 0x03 0x21 0x00
3288 + 0x1000044 0x00 0x01
3289 + 0x10000d0 0x07 0x07 0x1d 0x03
3290 + 0x10000d1 0x03 0x30 0x10
3291 + 0x10000d2 0x03 0x14 0x04
3295 + /* This is a workaround to make sure the init sequence slows down and doesn't fail */
3299 + mz61581_ts: mz61581_ts@1 {
3300 + compatible = "ti,ads7846";
3303 + spi-max-frequency = <2000000>;
3304 + interrupts = <4 2>; /* high-to-low edge triggered */
3305 + interrupt-parent = <&gpio>;
3306 + pendown-gpio = <&gpio 4 0>;
3308 + ti,x-plate-ohms = /bits/ 16 <60>;
3309 + ti,pressure-max = /bits/ 16 <255>;
3314 + speed = <&mz61581>, "spi-max-frequency:0";
3315 + rotate = <&mz61581>, "rotate:0";
3316 + fps = <&mz61581>, "fps:0";
3317 + txbuflen = <&mz61581>, "txbuflen:0";
3318 + debug = <&mz61581>, "debug:0";
3319 + xohms = <&mz61581_ts>,"ti,x-plate-ohms;0";
3323 +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
3326 + * Device Tree overlay for PiScreen 3.5" display shield by Ozzmaker
3334 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
3342 + status = "disabled";
3346 + status = "disabled";
3354 + piscreen_pins: piscreen_pins {
3355 + brcm,pins = <17 25 24 22>;
3356 + brcm,function = <0 1 1 1>; /* in out out out */
3364 + /* needed to avoid dtc warning */
3365 + #address-cells = <1>;
3366 + #size-cells = <0>;
3368 + piscreen: piscreen@0{
3369 + compatible = "ilitek,ili9486";
3371 + pinctrl-names = "default";
3372 + pinctrl-0 = <&piscreen_pins>;
3374 + spi-max-frequency = <24000000>;
3380 + reset-gpios = <&gpio 25 0>;
3381 + dc-gpios = <&gpio 24 0>;
3382 + led-gpios = <&gpio 22 1>;
3385 + init = <0x10000b0 0x00
3391 + 0x10000c5 0x00 0x00 0x00 0x00
3392 + 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
3393 + 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
3394 + 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
3399 + piscreen_ts: piscreen-ts@1 {
3400 + compatible = "ti,ads7846";
3403 + spi-max-frequency = <2000000>;
3404 + interrupts = <17 2>; /* high-to-low edge triggered */
3405 + interrupt-parent = <&gpio>;
3406 + pendown-gpio = <&gpio 17 0>;
3408 + ti,x-plate-ohms = /bits/ 16 <100>;
3409 + ti,pressure-max = /bits/ 16 <255>;
3414 + speed = <&piscreen>,"spi-max-frequency:0";
3415 + rotate = <&piscreen>,"rotate:0";
3416 + fps = <&piscreen>,"fps:0";
3417 + debug = <&piscreen>,"debug:0";
3418 + xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
3422 +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
3425 + * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
3433 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
3441 + status = "disabled";
3445 + status = "disabled";
3453 + pitft_pins: pitft_pins {
3454 + brcm,pins = <24 25>;
3455 + brcm,function = <0 1>; /* in out */
3456 + brcm,pull = <2 0>; /* pullup none */
3464 + /* needed to avoid dtc warning */
3465 + #address-cells = <1>;
3466 + #size-cells = <0>;
3469 + compatible = "ilitek,ili9340";
3471 + pinctrl-names = "default";
3472 + pinctrl-0 = <&pitft_pins>;
3474 + spi-max-frequency = <32000000>;
3479 + dc-gpios = <&gpio 25 0>;
3484 + #address-cells = <1>;
3485 + #size-cells = <0>;
3486 + compatible = "st,stmpe610";
3489 + spi-max-frequency = <500000>;
3490 + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
3491 + interrupts = <24 2>; /* high-to-low edge triggered */
3492 + interrupt-parent = <&gpio>;
3493 + interrupt-controller;
3495 + stmpe_touchscreen {
3496 + compatible = "st,stmpe-ts";
3497 + st,sample-time = <4>;
3500 + st,adc-freq = <2>;
3501 + st,ave-ctrl = <3>;
3502 + st,touch-det-delay = <4>;
3503 + st,settling = <2>;
3504 + st,fraction-z = <7>;
3508 + stmpe_gpio: stmpe_gpio {
3509 + #gpio-cells = <2>;
3510 + compatible = "st,stmpe-gpio";
3512 + * only GPIO2 is wired/available
3513 + * and it is wired to the backlight
3515 + st,norequest-mask = <0x7b>;
3522 + target-path = "/soc";
3525 + compatible = "gpio-backlight";
3526 + gpios = <&stmpe_gpio 2 0>;
3533 + speed = <&pitft>,"spi-max-frequency:0";
3534 + rotate = <&pitft>,"rotate:0";
3535 + fps = <&pitft>,"fps:0";
3536 + debug = <&pitft>,"debug:0";
3540 +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
3546 + compatible = "brcm,bcm2708";
3548 + target-path = "/";
3551 + compatible = "pps-gpio";
3552 + pinctrl-names = "default";
3553 + pinctrl-0 = <&pps_pins>;
3554 + gpios = <&gpio 18 0>;
3563 + pps_pins: pps_pins {
3565 + brcm,function = <0>; // in
3566 + brcm,pull = <0>; // off
3572 + gpiopin = <&pps>,"gpios:4",
3573 + <&pps_pins>,"brcm,pins:0";
3577 +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
3583 +This is the 2-channel overlay - only use it if you need both channels.
3585 +Legal pin,function combinations for each channel:
3586 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
3587 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
3590 + 1) Pin 18 is the only one available on all platforms, and
3591 + it is the one used by the I2S audio interface.
3592 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
3593 + 2) The onboard analogue audio output uses both PWM channels.
3594 + 3) So be careful mixing audio and PWM.
3601 + pwm_pins: pwm_pins {
3602 + brcm,pins = <18 19>;
3603 + brcm,function = <2 2>; /* Alt5 */
3611 + pinctrl-names = "default";
3612 + pinctrl-0 = <&pwm_pins>;
3618 + pin = <&pwm_pins>,"brcm,pins:0";
3619 + pin2 = <&pwm_pins>,"brcm,pins:4";
3620 + func = <&pwm_pins>,"brcm,function:0";
3621 + func2 = <&pwm_pins>,"brcm,function:4";
3622 + clock = <&clk_pwm>,"clock-frequency:0";
3626 +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
3632 +Legal pin,function combinations for each channel:
3633 + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
3634 + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
3637 + 1) Pin 18 is the only one available on all platforms, and
3638 + it is the one used by the I2S audio interface.
3639 + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
3640 + 2) The onboard analogue audio output uses both PWM channels.
3641 + 3) So be careful mixing audio and PWM.
3648 + pwm_pins: pwm_pins {
3650 + brcm,function = <2>; /* Alt5 */
3658 + pinctrl-names = "default";
3659 + pinctrl-0 = <&pwm_pins>;
3665 + pin = <&pwm_pins>,"brcm,pins:0";
3666 + func = <&pwm_pins>,"brcm,function:0";
3667 + clock = <&clk_pwm>,"clock-frequency:0";
3671 +++ b/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
3673 +// Definitions for RaspiDACv3
3678 + compatible = "brcm,bcm2708";
3681 + target = <&sound>;
3683 + compatible = "jg,raspidacv3";
3684 + i2s-controller = <&i2s>;
3699 + #address-cells = <1>;
3700 + #size-cells = <0>;
3704 + #sound-dai-cells = <0>;
3705 + compatible = "ti,pcm5122";
3710 + tpa6130a2: tpa6130a2@60 {
3711 + compatible = "ti,tpa6130a2";
3719 +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
3721 +// Definitions for RPi DAC
3726 + compatible = "brcm,bcm2708";
3729 + target = <&sound>;
3731 + compatible = "rpi,rpi-dac";
3732 + i2s-controller = <&i2s>;
3745 + target-path = "/";
3748 + #sound-dai-cells = <0>;
3749 + compatible = "ti,pcm1794a";
3756 +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
3759 + * Device Tree overlay for rpi-display by Watterott
3767 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
3775 + status = "disabled";
3779 + status = "disabled";
3787 + rpi_display_pins: rpi_display_pins {
3788 + brcm,pins = <18 23 24 25>;
3789 + brcm,function = <1 1 1 0>; /* out out out in */
3790 + brcm,pull = <0 0 0 2>; /* - - - up */
3798 + /* needed to avoid dtc warning */
3799 + #address-cells = <1>;
3800 + #size-cells = <0>;
3802 + rpidisplay: rpi-display@0{
3803 + compatible = "ilitek,ili9341";
3805 + pinctrl-names = "default";
3806 + pinctrl-0 = <&rpi_display_pins>;
3808 + spi-max-frequency = <32000000>;
3813 + reset-gpios = <&gpio 23 0>;
3814 + dc-gpios = <&gpio 24 0>;
3815 + led-gpios = <&gpio 18 1>;
3819 + rpidisplay_ts: rpi-display-ts@1 {
3820 + compatible = "ti,ads7846";
3823 + spi-max-frequency = <2000000>;
3824 + interrupts = <25 2>; /* high-to-low edge triggered */
3825 + interrupt-parent = <&gpio>;
3826 + pendown-gpio = <&gpio 25 0>;
3827 + ti,x-plate-ohms = /bits/ 16 <60>;
3828 + ti,pressure-max = /bits/ 16 <255>;
3833 + speed = <&rpidisplay>,"spi-max-frequency:0";
3834 + rotate = <&rpidisplay>,"rotate:0";
3835 + fps = <&rpidisplay>,"fps:0";
3836 + debug = <&rpidisplay>,"debug:0";
3837 + xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
3841 +++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
3847 + compatible = "brcm,bcm2708";
3850 + target-path = "/";
3852 + rpi_ft5406: rpi_ft5406 {
3853 + compatible = "rpi,rpi-ft5406";
3854 + firmware = <&firmware>;
3861 +++ b/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
3863 +// Definitions for Rpi-Proto
3868 + compatible = "brcm,bcm2708";
3871 + target = <&sound>;
3873 + compatible = "rpi,rpi-proto";
3874 + i2s-controller = <&i2s>;
3889 + #address-cells = <1>;
3890 + #size-cells = <0>;
3894 + #sound-dai-cells = <0>;
3895 + compatible = "wlf,wm8731";
3903 +++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
3910 + compatible = "brcm,bcm2708", "brcm,bcm2709";
3915 + #address-cells = <1>;
3916 + #size-cells = <0>;
3920 + compatible = "rpi,rpi-sense";
3922 + keys-int-gpios = <&gpio 23 1>;
3927 + compatible = "st,lsm9ds1-magn";
3933 + compatible = "st,lsm9ds1-accel";
3939 + compatible = "st,lps25h-press";
3945 + compatible = "st,hts221-humid";
3953 +++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
3959 + compatible = "brcm,bcm2708";
3964 + status = "disabled";
3969 + target = <&sdhost>;
3970 + frag1: __overlay__ {
3971 + brcm,overclock-50 = <0>;
3972 + brcm,pio-limit = <1>;
3978 + overclock_50 = <&frag1>,"brcm,overclock-50:0";
3979 + force_pio = <&frag1>,"brcm,force-pio?";
3980 + pio_limit = <&frag1>,"brcm,pio-limit:0";
3981 + debug = <&frag1>,"brcm,debug?";
3985 +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
3987 +/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
3989 +/include/ "sdhost-overlay.dts"
3992 + compatible = "brcm,bcm2708";
3996 + sdio_mmc: __overlay__ {
3997 + pinctrl-names = "default";
3998 + pinctrl-0 = <&sdio_pins>;
4007 + sdio_pins: sdio_pins {
4008 + brcm,pins = <22 23 24 25 26 27>;
4009 + brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
4010 + brcm,pull = <0 2 2 2 2 2>;
4016 + poll_once = <&sdio_mmc>,"non-removable?";
4020 +++ b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
4022 +// Description: Overlay to enable character device interface for SMI.
4023 +// Author: Luke Wren <luke@raspberrypi.org>
4033 + compatible = "brcm,bcm2835-smi-dev";
4034 + smi_handle = <&smi>;
4041 +++ b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
4043 +// Description: Overlay to enable NAND flash through
4044 +// the secondary memory interface
4045 +// Author: Luke Wren
4051 + compatible = "brcm,bcm2708";
4056 + pinctrl-names = "default";
4057 + pinctrl-0 = <&smi_pins>;
4065 + #address-cells = <1>;
4066 + #size-cells = <1>;
4069 + compatible = "brcm,bcm2835-smi-nand";
4070 + smi_handle = <&smi>;
4071 + #address-cells = <1>;
4072 + #size-cells = <1>;
4078 + reg = <0 0x20000>;
4082 + label = "firmware";
4084 + reg = <0x20000 0x1000000>;
4089 + // 2G (will need to use 64 bit for >=4G)
4090 + reg = <0x1020000 0x80000000>;
4099 + smi_pins: smi_pins {
4100 + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
4103 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5
4105 + /* /CS, /WE and /OE are pulled high, as they are
4106 + generally active low signals */
4107 + brcm,pull = <2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
4113 +++ b/arch/arm/boot/dts/overlays/smi-overlay.dts
4115 +// Description: Overlay to enable the secondary memory interface peripheral
4116 +// Author: Luke Wren
4122 + compatible = "brcm,bcm2708";
4127 + pinctrl-names = "default";
4128 + pinctrl-0 = <&smi_pins>;
4136 + smi_pins: smi_pins {
4137 + /* Don't configure the top two address bits, as
4138 + these are already used as ID_SD and ID_SC */
4139 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15
4140 + 16 17 18 19 20 21 22 23 24 25>;
4142 + brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
4143 + 5 5 5 5 5 5 5 5 5>;
4144 + /* /CS, /WE and /OE are pulled high, as they are
4145 + generally active low signals */
4146 + brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0
4153 +++ b/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
4156 + * Device tree overlay to move spi0 to gpio 35 to 39 on CM
4163 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
4168 + cs-gpios = <&gpio 36 1>, <&gpio 35 1>;
4173 + target = <&spi0_cs_pins>;
4175 + bcrm,pins = <36 35>;
4180 + target = <&spi0_pins>;
4182 + bcrm,pins = <37 38 39>;
4187 +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
4190 + * tinylcd35-overlay.dts
4192 + * -------------------------------------------------
4193 + * www.tinlylcd.com
4194 + * -------------------------------------------------
4195 + * Device---Driver-----BUS GPIO's
4196 + * display tinylcd35 spi0.0 25 24 18
4197 + * touch ads7846 spi0.1 5
4198 + * rtc ds1307 i2c1-0068
4199 + * rtc pcf8563 i2c1-0051
4200 + * keypad gpio-keys --------- 17 22 27 23 28
4203 + * TinyLCD.com 3.5 inch TFT
4206 + * 5/3/2015 -- Noralf Trønnes Initial Device tree framework
4207 + * 10/3/2015 -- tinylcd@gmail.com added ds1307 support.
4215 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
4223 + status = "disabled";
4227 + status = "disabled";
4235 + tinylcd35_pins: tinylcd35_pins {
4236 + brcm,pins = <25 24 18>;
4237 + brcm,function = <1>; /* out */
4239 + tinylcd35_ts_pins: tinylcd35_ts_pins {
4241 + brcm,function = <0>; /* in */
4243 + keypad_pins: keypad_pins {
4244 + brcm,pins = <4 17 22 23 27>;
4245 + brcm,function = <0>; /* in */
4246 + brcm,pull = <1>; /* down */
4254 + /* needed to avoid dtc warning */
4255 + #address-cells = <1>;
4256 + #size-cells = <0>;
4258 + tinylcd35: tinylcd35@0{
4259 + compatible = "neosec,tinylcd";
4261 + pinctrl-names = "default";
4262 + pinctrl-0 = <&tinylcd35_pins>,
4263 + <&tinylcd35_ts_pins>;
4265 + spi-max-frequency = <48000000>;
4270 + reset-gpios = <&gpio 25 0>;
4271 + dc-gpios = <&gpio 24 0>;
4272 + led-gpios = <&gpio 18 1>;
4275 + init = <0x10000B0 0x80
4276 + 0x10000C0 0x0A 0x0A
4277 + 0x10000C1 0x01 0x01
4279 + 0x10000C5 0x00 0x42 0x80
4280 + 0x10000B1 0xD0 0x11
4282 + 0x10000B6 0x00 0x22 0x3B
4285 + 0x10000F0 0x36 0xA5 0xD3
4290 + 0x10000F0 0x36 0xA5 0x53
4291 + 0x10000E0 0x00 0x35 0x33 0x00 0x00 0x00 0x00 0x35 0x33 0x00 0x00 0x00
4298 + tinylcd35_ts: tinylcd35_ts@1 {
4299 + compatible = "ti,ads7846";
4301 + status = "disabled";
4303 + spi-max-frequency = <2000000>;
4304 + interrupts = <5 2>; /* high-to-low edge triggered */
4305 + interrupt-parent = <&gpio>;
4306 + pendown-gpio = <&gpio 5 0>;
4307 + ti,x-plate-ohms = /bits/ 16 <100>;
4308 + ti,pressure-max = /bits/ 16 <255>;
4318 + #address-cells = <1>;
4319 + #size-cells = <0>;
4321 + pcf8563: pcf8563@51 {
4322 + compatible = "nxp,pcf8563";
4324 + status = "disabled";
4332 + #address-cells = <1>;
4333 + #size-cells = <0>;
4335 + ds1307: ds1307@68 {
4336 + compatible = "maxim,ds1307";
4338 + status = "disabled";
4344 + * Values for input event code is found under the
4345 + * 'Keys and buttons' heading in include/uapi/linux/input.h
4348 + target-path = "/soc";
4351 + compatible = "gpio-keys";
4352 + #address-cells = <1>;
4353 + #size-cells = <0>;
4354 + pinctrl-names = "default";
4355 + pinctrl-0 = <&keypad_pins>;
4356 + status = "disabled";
4360 + label = "GPIO KEY_UP";
4361 + linux,code = <103>;
4362 + gpios = <&gpio 17 0>;
4365 + label = "GPIO KEY_DOWN";
4366 + linux,code = <108>;
4367 + gpios = <&gpio 22 0>;
4370 + label = "GPIO KEY_LEFT";
4371 + linux,code = <105>;
4372 + gpios = <&gpio 27 0>;
4375 + label = "GPIO KEY_RIGHT";
4376 + linux,code = <106>;
4377 + gpios = <&gpio 23 0>;
4380 + label = "GPIO KEY_ENTER";
4381 + linux,code = <28>;
4382 + gpios = <&gpio 4 0>;
4389 + speed = <&tinylcd35>,"spi-max-frequency:0";
4390 + rotate = <&tinylcd35>,"rotate:0";
4391 + fps = <&tinylcd35>,"fps:0";
4392 + debug = <&tinylcd35>,"debug:0";
4393 + touch = <&tinylcd35_ts>,"status";
4394 + touchgpio = <&tinylcd35_ts_pins>,"brcm,pins:0",
4395 + <&tinylcd35_ts>,"interrupts:0",
4396 + <&tinylcd35_ts>,"pendown-gpio:4";
4397 + xohms = <&tinylcd35_ts>,"ti,x-plate-ohms;0";
4398 + rtc-pcf = <&i2c1>,"status",
4399 + <&pcf8563>,"status";
4400 + rtc-ds = <&i2c1>,"status",
4401 + <&ds1307>,"status";
4402 + keypad = <&keypad>,"status";
4406 +++ b/arch/arm/boot/dts/overlays/uart1-overlay.dts
4412 + compatible = "brcm,bcm2708";
4415 + target = <&uart1>;
4417 + pinctrl-names = "default";
4418 + pinctrl-0 = <&uart1_pins>;
4426 + uart1_pins: uart1_pins {
4427 + brcm,pins = <14 15>;
4428 + brcm,function = <2>; /* alt5 */
4429 + brcm,pull = <0 2>;
4435 + target-path = "/chosen";
4437 + bootargs = "8250.nr_uarts=1";
4442 + txd1_pin = <&uart1_pins>,"brcm,pins:0";
4443 + rxd1_pin = <&uart1_pins>,"brcm,pins:4";
4447 +++ b/arch/arm/boot/dts/overlays/vga666-overlay.dts
4453 + compatible = "brcm,bcm2708";
4455 + // There is no VGA driver module, but we need a platform device
4456 + // node (that doesn't already use pinctrl) to hang the pinctrl
4457 + // reference on - leds will do
4462 + pinctrl-names = "default";
4463 + pinctrl-0 = <&vga666_pins>;
4470 + vga666_pins: vga666_pins {
4471 + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12
4472 + 13 14 15 16 17 18 19 20 21>;
4473 + brcm,function = <6>; /* alt2 */
4474 + brcm,pull = <0>; /* no pull */
4480 +++ b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
4482 +// Definitions for w1-gpio module (without external pullup)
4487 + compatible = "brcm,bcm2708";
4490 + target-path = "/";
4494 + compatible = "w1-gpio";
4495 + pinctrl-names = "default";
4496 + pinctrl-0 = <&w1_pins>;
4497 + gpios = <&gpio 4 0>;
4498 + rpi,parasitic-power = <0>;
4507 + w1_pins: w1_pins {
4509 + brcm,function = <0>; // in (initially)
4510 + brcm,pull = <0>; // off
4516 + gpiopin = <&w1>,"gpios:4",
4517 + <&w1_pins>,"brcm,pins:0";
4518 + pullup = <&w1>,"rpi,parasitic-power:0";
4522 +++ b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
4524 +// Definitions for w1-gpio module (with external pullup)
4529 + compatible = "brcm,bcm2708";
4532 + target-path = "/";
4536 + compatible = "w1-gpio";
4537 + pinctrl-names = "default";
4538 + pinctrl-0 = <&w1_pins>;
4539 + gpios = <&gpio 4 0>, <&gpio 5 1>;
4540 + rpi,parasitic-power = <0>;
4549 + w1_pins: w1_pins {
4550 + brcm,pins = <4 5>;
4551 + brcm,function = <0 1>; // in out
4552 + brcm,pull = <0 0>; // off off
4558 + gpiopin = <&w1>,"gpios:4",
4559 + <&w1_pins>,"brcm,pins:0";
4560 + extpullup = <&w1>,"gpios:16",
4561 + <&w1_pins>,"brcm,pins:4";
4562 + pullup = <&w1>,"rpi,parasitic-power:0";