1 From 34e658087e54db26ebd86f86a1549a393002a9ad Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 26 Nov 2021 15:20:06 +0000
4 Subject: [PATCH] ARM: dts: Update rpi-400 and cm4 dts to match 4-b
6 The Pi 4B dts file has had numerous updates since the Pi 400 and CM4
7 dts files were written. Apply those updates to the other files to
8 minimise the differences. The change is largely cosmetic, except for
9 the PCI "device-type" to "device_type" rename, and the correction of
10 the labels on the Pi 400 GPIO expander pins.
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 arch/arm/boot/dts/bcm2711-rpi-400.dts | 90 ++++--------------------
15 arch/arm/boot/dts/bcm2711-rpi-cm4.dts | 98 ++++++---------------------
16 2 files changed, 36 insertions(+), 152 deletions(-)
18 --- a/arch/arm/boot/dts/bcm2711-rpi-400.dts
19 +++ b/arch/arm/boot/dts/bcm2711-rpi-400.dts
21 // SPDX-License-Identifier: GPL-2.0
23 #include "bcm2711.dtsi"
24 -#include "bcm2835-rpi.dtsi"
26 -#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
27 +#include "bcm2711-rpi.dtsi"
28 +//#include "bcm283x-rpi-usb-peripheral.dtsi"
31 compatible = "raspberrypi,400", "brcm,bcm2711";
33 stdout-path = "serial1:115200n8";
36 - /* Will be filled by the bootloader */
38 - device_type = "memory";
43 - emmc2bus = &emmc2bus;
46 - blconfig = &blconfig;
51 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
54 regulator-settling-time-us = <5000>;
55 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
56 - states = <1800000 0x1
58 + states = <1800000 0x1>,
68 - firmware_clocks: clocks {
69 - compatible = "raspberrypi,firmware-clocks";
74 - compatible = "raspberrypi,firmware-gpio";
77 - gpio-line-names = "BT_ON",
89 - compatible = "raspberrypi,firmware-reset";
93 + gpio-line-names = "BT_ON",
100 + "SHUTDOWN_REQUEST";
104 @@ -179,23 +149,13 @@
108 - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
109 - clock-names = "hdmi", "bvb", "audio", "cec";
110 - wifi-2.4ghz-coexistence;
115 - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
116 - clock-names = "hdmi", "bvb", "audio", "cec";
117 - wifi-2.4ghz-coexistence;
122 - clocks = <&firmware_clocks 4>;
134 - * RPi4's co-processor will copy the board's bootloader configuration
135 - * into memory for the OS to consume. It'll also update this node with
136 - * its placement information.
138 - blconfig: nvram@0 {
139 - compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
140 - #address-cells = <1>;
142 - reg = <0x0 0x0 0x0>;
144 - status = "disabled";
148 /* SDHCI is used to control the SDIO for wireless */
150 #address-cells = <1>;
155 - device-type = "pci";
156 + device_type = "pci";
157 #address-cells = <3>;
164 - reg = <0x0 0 0 0 0>;
166 resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
174 - interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
180 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
181 +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
183 // SPDX-License-Identifier: GPL-2.0
185 #include "bcm2711.dtsi"
186 -#include "bcm2835-rpi.dtsi"
188 -#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
189 +#include "bcm2711-rpi.dtsi"
190 +//#include "bcm283x-rpi-usb-peripheral.dtsi"
193 compatible = "raspberrypi,4-compute-module", "brcm,bcm2711";
195 stdout-path = "serial1:115200n8";
198 - /* Will be filled by the bootloader */
200 - device_type = "memory";
205 - emmc2bus = &emmc2bus;
206 - ethernet0 = &genet;
208 - blconfig = &blconfig;
213 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
216 regulator-settling-time-us = <5000>;
217 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
218 - states = <1800000 0x1
220 + states = <1800000 0x1>,
230 - firmware_clocks: clocks {
231 - compatible = "raspberrypi,firmware-clocks";
232 - #clock-cells = <1>;
236 - compatible = "raspberrypi,firmware-gpio";
239 - gpio-line-names = "BT_ON",
251 - gpios = <3 GPIO_ACTIVE_HIGH>;
257 - gpios = <7 GPIO_ACTIVE_HIGH>;
263 - compatible = "raspberrypi,firmware-reset";
264 - #reset-cells = <1>;
266 + gpio-line-names = "BT_ON",
277 + gpios = <3 GPIO_ACTIVE_HIGH>;
283 + gpios = <7 GPIO_ACTIVE_HIGH>;
288 @@ -191,23 +161,13 @@
292 - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
293 - clock-names = "hdmi", "bvb", "audio", "cec";
294 - wifi-2.4ghz-coexistence;
299 - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
300 - clock-names = "hdmi", "bvb", "audio", "cec";
301 - wifi-2.4ghz-coexistence;
306 - clocks = <&firmware_clocks 4>;
318 - * RPi4's co-processor will copy the board's bootloader configuration
319 - * into memory for the OS to consume. It'll also update this node with
320 - * its placement information.
322 - blconfig: nvram@0 {
323 - compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
324 - #address-cells = <1>;
326 - reg = <0x0 0x0 0x0>;
328 - status = "disabled";
332 /* SDHCI is used to control the SDIO for wireless */
334 #address-cells = <1>;