1 From 97425acaefeeb2bf4a704225b544cdd863bc5bc6 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 24 May 2016 16:30:05 +0100
4 Subject: [PATCH] BCM270X_DT: Add bcm2708-rpi-0-w.dts
6 Add DT support for the Pi Zero W. N.B. It will not be loaded
7 automatically without a corresponding change to the firmware.
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
11 arch/arm/boot/dts/Makefile | 1 +
12 arch/arm/boot/dts/bcm2708-rpi-0-w.dts | 200 ++++++++++++++++++++++++++++++++++
13 2 files changed, 201 insertions(+)
14 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-0-w.dts
16 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
17 index 14a491c..bd963ef 100644
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -2,6 +2,7 @@ ifeq ($(CONFIG_OF),y)
22 dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b.dtb
23 dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b-plus.dtb
24 +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-0-w.dtb
25 dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb
26 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb
27 dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb
28 diff --git a/arch/arm/boot/dts/bcm2708-rpi-0-w.dts b/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
30 index 0000000..9f7de60
32 +++ b/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
36 +#include "bcm2708.dtsi"
39 + compatible = "brcm,bcm2708";
40 + model = "Raspberry Pi Zero W";
44 + sdhost_pins: sdhost_pins {
45 + brcm,pins = <48 49 50 51 52 53>;
46 + brcm,function = <4>; /* alt0 */
49 + spi0_pins: spi0_pins {
50 + brcm,pins = <9 10 11>;
51 + brcm,function = <4>; /* alt0 */
54 + spi0_cs_pins: spi0_cs_pins {
56 + brcm,function = <1>; /* output */
61 + brcm,function = <4>;
66 + brcm,function = <4>;
70 + brcm,pins = <18 19 20 21>;
71 + brcm,function = <4>; /* alt0 */
74 + sdio_pins: sdio_pins {
75 + brcm,pins = <34 35 36 37 38 39>;
76 + brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
77 + brcm,pull = <0 2 2 2 2 2>;
82 + brcm,function = <4>; /* alt0:GPCLK2 */
83 + brcm,pull = <0>; /* none */
86 + uart0_pins: uart0_pins {
87 + brcm,pins = <30 31 32 33>;
88 + brcm,function = <7>; /* alt3=UART0 */
89 + brcm,pull = <2 0 0 2>; /* up none none up */
92 + uart1_pins: uart1_pins {
98 + audio_pins: audio_pins {
100 + brcm,function = <>;
105 + pinctrl-names = "default";
106 + pinctrl-0 = <&sdhost_pins>;
112 + pinctrl-names = "default";
113 + pinctrl-0 = <&sdio_pins>;
124 + pinctrl-names = "default";
125 + pinctrl-0 = <&uart0_pins &bt_pins>;
130 + pinctrl-names = "default";
131 + pinctrl-0 = <&uart1_pins>;
136 + pinctrl-names = "default";
137 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
138 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
141 + compatible = "spidev";
142 + reg = <0>; /* CE0 */
143 + #address-cells = <1>;
145 + spi-max-frequency = <500000>;
149 + compatible = "spidev";
150 + reg = <1>; /* CE1 */
151 + #address-cells = <1>;
153 + spi-max-frequency = <500000>;
158 + pinctrl-names = "default";
159 + pinctrl-0 = <&i2c0_pins>;
160 + clock-frequency = <100000>;
164 + pinctrl-names = "default";
165 + pinctrl-0 = <&i2c1_pins>;
166 + clock-frequency = <100000>;
170 + clock-frequency = <100000>;
174 + #sound-dai-cells = <0>;
175 + pinctrl-names = "default";
176 + pinctrl-0 = <&i2s_pins>;
186 + linux,default-trigger = "mmc0";
187 + gpios = <&gpio 47 0>;
192 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
196 + pinctrl-names = "default";
197 + pinctrl-0 = <&audio_pins>;
202 + bootargs = "8250.nr_uarts=1";
208 + uart0 = <&uart0>,"status";
209 + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
210 + uart1 = <&uart1>,"status";
211 + i2s = <&i2s>,"status";
212 + spi = <&spi0>,"status";
213 + i2c0 = <&i2c0>,"status";
214 + i2c1 = <&i2c1>,"status";
215 + i2c2_iknowwhatimdoing = <&i2c2>,"status";
216 + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
217 + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
218 + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
219 + core_freq = <&clk_core>,"clock-frequency:0";
221 + act_led_gpio = <&act_led>,"gpios:4";
222 + act_led_activelow = <&act_led>,"gpios:8";
223 + act_led_trigger = <&act_led>,"linux,default-trigger";
225 + audio = <&audio>,"status";
226 + watchdog = <&watchdog>,"status";
227 + random = <&random>,"status";
228 + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
229 + sd_force_pio = <&sdhost>,"brcm,force-pio?";
230 + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
231 + sd_debug = <&sdhost>,"brcm,debug";