1 From e819b50b0c384f11f4eaf6e1ea76030c320f4511 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 28 May 2019 16:23:51 +0100
4 Subject: [PATCH] BCM270X_DT: Create bcm2708-rpi-zero.dts
6 The Pi Zero deserves a dedicated .dtb file - sharing the b-plus .dtb
7 has been observed to cause an issue with the MAC address of some
10 See: https://github.com/raspberrypi/linux/issues/2990
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 arch/arm/boot/dts/Makefile | 1 +
15 arch/arm/boot/dts/bcm2708-rpi-zero.dts | 117 +++++++++++++++++++++++++
16 2 files changed, 118 insertions(+)
17 create mode 100644 arch/arm/boot/dts/bcm2708-rpi-zero.dts
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
23 bcm2708-rpi-b-plus.dtb \
25 + bcm2708-rpi-zero.dtb \
26 bcm2708-rpi-zero-w.dtb \
30 +++ b/arch/arm/boot/dts/bcm2708-rpi-zero.dts
34 +#include "bcm2708.dtsi"
35 +#include "bcm283x-rpi-csi1-2lane.dtsi"
38 + compatible = "raspberrypi,model-zero", "brcm,bcm2835";
39 + model = "Raspberry Pi Zero";
42 + bootargs = "coherent_pool=1M";
47 + spi0_pins: spi0_pins {
48 + brcm,pins = <9 10 11>;
49 + brcm,function = <4>; /* alt0 */
52 + spi0_cs_pins: spi0_cs_pins {
54 + brcm,function = <1>; /* output */
59 + brcm,function = <4>;
64 + brcm,function = <4>;
68 + brcm,pins = <18 19 20 21>;
69 + brcm,function = <4>; /* alt0 */
72 + audio_pins: audio_pins {
83 + pinctrl-names = "default";
84 + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
85 + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
88 + compatible = "spidev";
89 + reg = <0>; /* CE0 */
90 + #address-cells = <1>;
92 + spi-max-frequency = <125000000>;
96 + compatible = "spidev";
97 + reg = <1>; /* CE1 */
98 + #address-cells = <1>;
100 + spi-max-frequency = <125000000>;
105 + pinctrl-names = "default";
106 + pinctrl-0 = <&i2c0_pins>;
107 + clock-frequency = <100000>;
111 + pinctrl-names = "default";
112 + pinctrl-0 = <&i2c1_pins>;
113 + clock-frequency = <100000>;
117 + clock-frequency = <100000>;
121 + pinctrl-names = "default";
122 + pinctrl-0 = <&i2s_pins>;
128 + linux,default-trigger = "mmc0";
129 + gpios = <&gpio 47 0>;
134 + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
138 + pinctrl-names = "default";
139 + pinctrl-0 = <&audio_pins>;
144 + act_led_gpio = <&act_led>,"gpios:4";
145 + act_led_activelow = <&act_led>,"gpios:8";
146 + act_led_trigger = <&act_led>,"linux,default-trigger";