1 From 655d142ec4bcf46f10c4e09099f9a9846e078454 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <wahrenst@gmx.net>
3 Date: Sun, 19 May 2019 12:26:21 +0200
4 Subject: [PATCH 634/725] ARM: dts: bcm283x: Move BCM2835/6/7 specific to
7 We want all common BCM2835/6/7/8 functions in bcm283x.dtsi and all
8 BCM2835/6/7 specific in the new bcm2835-common.dtsi.
10 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
12 arch/arm/boot/dts/bcm2835-common.dtsi | 53 +++++++++++++++++++++++++++
13 arch/arm/boot/dts/bcm2835.dtsi | 1 +
14 arch/arm/boot/dts/bcm2836.dtsi | 1 +
15 arch/arm/boot/dts/bcm2837.dtsi | 1 +
16 arch/arm/boot/dts/bcm283x.dtsi | 43 +---------------------
17 5 files changed, 57 insertions(+), 42 deletions(-)
18 create mode 100644 arch/arm/boot/dts/bcm2835-common.dtsi
21 +++ b/arch/arm/boot/dts/bcm2835-common.dtsi
23 +// SPDX-License-Identifier: GPL-2.0
25 +/* This include file covers the common peripherals and configuration between
26 + * bcm2835, bcm2836 and bcm2837 implementations.
32 + compatible = "brcm,bcm2835-system-timer";
33 + reg = <0x7e003000 0x1000>;
34 + interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
35 + /* This could be a reference to BCM2835_CLOCK_TIMER,
36 + * but we don't have the driver using the common clock
39 + clock-frequency = <1000000>;
42 + intc: interrupt-controller@7e00b200 {
43 + compatible = "brcm,bcm2835-armctrl-ic";
44 + reg = <0x7e00b200 0x200>;
45 + interrupt-controller;
46 + #interrupt-cells = <2>;
49 + thermal: thermal@7e212000 {
50 + compatible = "brcm,bcm2835-thermal";
51 + reg = <0x7e212000 0x8>;
52 + clocks = <&clocks BCM2835_CLOCK_TSENS>;
53 + #thermal-sensor-cells = <0>;
54 + status = "disabled";
58 + compatible = "brcm,bcm2835-v3d";
59 + reg = <0x7ec00000 0x1000>;
60 + interrupts = <1 10>;
66 + i2c_slave_gpio18: i2c_slave_gpio18 {
67 + brcm,pins = <18 19 20 21>;
68 + brcm,function = <BCM2835_FSEL_ALT3>;
71 + jtag_gpio4: jtag_gpio4 {
72 + brcm,pins = <4 5 6 12 13>;
73 + brcm,function = <BCM2835_FSEL_ALT5>;
76 --- a/arch/arm/boot/dts/bcm2835.dtsi
77 +++ b/arch/arm/boot/dts/bcm2835.dtsi
79 // SPDX-License-Identifier: GPL-2.0
80 #include "bcm283x.dtsi"
81 +#include "bcm2835-common.dtsi"
84 compatible = "brcm,bcm2835";
85 --- a/arch/arm/boot/dts/bcm2836.dtsi
86 +++ b/arch/arm/boot/dts/bcm2836.dtsi
88 // SPDX-License-Identifier: GPL-2.0
89 #include "bcm283x.dtsi"
90 +#include "bcm2835-common.dtsi"
93 compatible = "brcm,bcm2836";
94 --- a/arch/arm/boot/dts/bcm2837.dtsi
95 +++ b/arch/arm/boot/dts/bcm2837.dtsi
97 #include "bcm283x.dtsi"
98 +#include "bcm2835-common.dtsi"
101 compatible = "brcm,bcm2837";
102 --- a/arch/arm/boot/dts/bcm283x.dtsi
103 +++ b/arch/arm/boot/dts/bcm283x.dtsi
105 #address-cells = <1>;
109 - compatible = "brcm,bcm2835-system-timer";
110 - reg = <0x7e003000 0x1000>;
111 - interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
112 - /* This could be a reference to BCM2835_CLOCK_TIMER,
113 - * but we don't have the driver using the common clock
116 - clock-frequency = <1000000>;
120 compatible = "brcm,bcm2835-txp";
121 reg = <0x7e004000 0x20>;
123 brcm,dma-channel-mask = <0x7f35>;
126 - intc: interrupt-controller@7e00b200 {
127 - compatible = "brcm,bcm2835-armctrl-ic";
128 - reg = <0x7e00b200 0x200>;
129 - interrupt-controller;
130 - #interrupt-cells = <2>;
134 compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
135 #power-domain-cells = <1>;
137 interrupt-controller;
138 #interrupt-cells = <2>;
140 - /* Defines pin muxing groups according to
141 - * BCM2835-ARM-Peripherals.pdf page 102.
142 + /* Defines common pin muxing groups
144 * While each pin can have its mux selected
145 * for various functions individually, some
148 brcm,function = <BCM2835_FSEL_ALT2>;
150 - i2c_slave_gpio18: i2c_slave_gpio18 {
151 - brcm,pins = <18 19 20 21>;
152 - brcm,function = <BCM2835_FSEL_ALT3>;
155 - jtag_gpio4: jtag_gpio4 {
156 - brcm,pins = <4 5 6 12 13>;
157 - brcm,function = <BCM2835_FSEL_ALT5>;
159 jtag_gpio22: jtag_gpio22 {
160 brcm,pins = <22 23 24 25 26 27>;
161 brcm,function = <BCM2835_FSEL_ALT4>;
166 - thermal: thermal@7e212000 {
167 - compatible = "brcm,bcm2835-thermal";
168 - reg = <0x7e212000 0x8>;
169 - clocks = <&clocks BCM2835_CLOCK_TSENS>;
170 - #thermal-sensor-cells = <0>;
171 - status = "disabled";
175 compatible = "brcm,bcm2835-aux";
178 phy-names = "usb2-phy";
181 - v3d: v3d@7ec00000 {
182 - compatible = "brcm,bcm2835-v3d";
183 - reg = <0x7ec00000 0x1000>;
184 - interrupts = <1 10>;
188 compatible = "brcm,bcm2835-vc4";