1 From 09bd29626a880f4bbcd4d3b3ebbdbaf170e0b27c Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 21 Jul 2017 11:33:25 +0100
4 Subject: [PATCH 250/454] BCM270X_DT: Add Pi 3+ dts files
6 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
8 arch/arm/boot/dts/Makefile | 1 +
9 arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts | 183 +++++++++++++++++++++
10 arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 36 ++++
11 arch/arm/boot/dts/overlays/README | 8 +
12 4 files changed, 228 insertions(+)
13 create mode 100644 arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
14 create mode 100644 arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
16 --- a/arch/arm/boot/dts/Makefile
17 +++ b/arch/arm/boot/dts/Makefile
18 @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
22 + bcm2710-rpi-3-b-plus.dtb \
25 dtb-$(CONFIG_ARCH_ALPINE) += \
27 +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
31 +#include "bcm2710.dtsi"
32 +#include "bcm283x-rpi-lan7515.dtsi"
35 + compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837";
36 + model = "Raspberry Pi 3 Model B+";
39 + bootargs = "8250.nr_uarts=1";
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>; // alt3 = SD1
77 + brcm,pull = <0 2 2 2 2 2>;
82 + brcm,function = <4>; /* alt0:GPCLK2 */
86 + uart0_pins: uart0_pins {
87 + brcm,pins = <32 33>;
88 + brcm,function = <7>; /* alt3=UART0 */
92 + uart1_pins: uart1_pins {
98 + audio_pins: audio_pins {
99 + brcm,pins = <40 41>;
100 + brcm,function = <4>;
105 + pinctrl-names = "default";
106 + pinctrl-0 = <&sdio_pins>;
110 + brcm,overclock-50 = <0>;
115 + compatible = "brcm,bcm2835-expgpio";
118 + firmware = <&firmware>;
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 = <125000000>;
149 + compatible = "spidev";
150 + reg = <1>; /* CE1 */
151 + #address-cells = <1>;
153 + spi-max-frequency = <125000000>;
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 + pinctrl-names = "default";
175 + pinctrl-0 = <&i2s_pins>;
181 + linux,default-trigger = "mmc0";
182 + gpios = <&gpio 29 0>;
187 + linux,default-trigger = "default-on";
188 + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
193 + hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>;
197 + pinctrl-names = "default";
198 + pinctrl-0 = <&audio_pins>;
203 + act_led_gpio = <&act_led>,"gpios:4";
204 + act_led_activelow = <&act_led>,"gpios:8";
205 + act_led_trigger = <&act_led>,"linux,default-trigger";
207 + pwr_led_gpio = <&pwr_led>,"gpios:4";
208 + pwr_led_activelow = <&pwr_led>,"gpios:8";
209 + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
213 +++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
217 + ethernet0 = ðernet;
223 + compatible = "usb424,2514";
225 + #address-cells = <1>;
229 + compatible = "usb424,2514";
231 + #address-cells = <1>;
234 + ethernet: usbether@1 {
235 + compatible = "usb424,7800";
237 + microchip,eee-enabled;
238 + microchip,tx-lpi-timer = <600>; /* non-aggressive*/
247 + eee = <ðernet>,"microchip,eee-enabled?";
248 + tx_lpi_timer = <ðernet>,"microchip,tx-lpi-timer:0";
251 --- a/arch/arm/boot/dts/overlays/README
252 +++ b/arch/arm/boot/dts/overlays/README
253 @@ -89,6 +89,10 @@ Params:
254 audio Set to "on" to enable the onboard ALSA audio
255 interface (default "off")
257 + eee Enable Energy Efficient Ethernet support for
258 + compatible devices (default "on"). See also
261 i2c_arm Set to "on" to enable the ARM's i2c interface
264 @@ -125,6 +129,10 @@ Params:
266 sd_debug Enable debug output from SD driver (default off)
268 + tx_lpi_timer Set the delay in microseconds between going idle
269 + and entering the low power state (default 600).
270 + Requires EEE to be enabled - see "eee".
272 uart0 Set to "off" to disable uart0 (default "on")
274 uart1 Set to "on" or "off" to enable or disable uart1