1 From 3f902645280baf0d7dab57c227cc14f43edb45ef Mon Sep 17 00:00:00 2001
2 From: Matthew Hagan <mnhagan88@gmail.com>
3 Date: Fri, 6 Aug 2021 21:44:34 +0100
4 Subject: [PATCH] ARM: dts: NSP: Add DT files for Meraki MX64 series
6 MX64 & MX64W Hardware info:
7 - CPU: Broadcom BCM58625 Cortex A9 @ 1200Mhz
8 - RAM: 2 GB (4 x 4Gb SK Hynix H5TC4G83CFR)
9 - Storage: 1 GB (Micron MT29F8G08ABACA)
10 - Networking: BCM58625 internal switch (5x 1GbE ports)
12 - Serial: Internal header
13 - WLAN(MX64W only): 2x Broadcom BCM43520KMLG on the PCI bus
15 This patch adds the Meraki MX64 series-specific bindings. Since some
16 devices make use of the older A0 SoC, changes need to be made to
17 accommodate this case, including removal of coherency options and
18 modification to the secondary-boot-reg.
20 Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
21 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
23 arch/arm/boot/dts/Makefile | 4 +
24 .../boot/dts/bcm958625-meraki-kingpin.dtsi | 163 ++++++++++++++++++
25 .../arm/boot/dts/bcm958625-meraki-mx64-a0.dts | 25 +++
26 arch/arm/boot/dts/bcm958625-meraki-mx64.dts | 24 +++
27 .../boot/dts/bcm958625-meraki-mx64w-a0.dts | 33 ++++
28 arch/arm/boot/dts/bcm958625-meraki-mx64w.dts | 32 ++++
29 6 files changed, 281 insertions(+)
30 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi
31 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64-a0.dts
32 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64.dts
33 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64w-a0.dts
34 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64w.dts
36 --- a/arch/arm/boot/dts/Makefile
37 +++ b/arch/arm/boot/dts/Makefile
38 @@ -159,6 +159,10 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
42 + bcm958625-meraki-mx64.dtb \
43 + bcm958625-meraki-mx64-a0.dtb \
44 + bcm958625-meraki-mx64w.dtb \
45 + bcm958625-meraki-mx64w-a0.dtb \
50 +++ b/arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi
52 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
54 + * Device Tree Bindings for Cisco Meraki MX64 series (Kingpin).
56 + * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
59 +#include "bcm958625-meraki-mx6x-common.dtsi"
64 + compatible = "gpio-keys-polled";
66 + poll-interval = <20>;
70 + linux,code = <KEY_RESTART>;
71 + gpios = <&gpioa 6 GPIO_ACTIVE_LOW>;
76 + compatible = "gpio-leds";
79 + /* green:lan1-left */
80 + function = LED_FUNCTION_ACTIVITY;
81 + function-enumerator = <0>;
82 + color = <LED_COLOR_ID_GREEN>;
83 + gpios = <&gpioa 19 GPIO_ACTIVE_LOW>;
87 + /* green:lan1-right */
88 + function = LED_FUNCTION_ACTIVITY;
89 + function-enumerator = <1>;
90 + color = <LED_COLOR_ID_GREEN>;
91 + gpios = <&gpioa 18 GPIO_ACTIVE_LOW>;
95 + /* green:lan2-left */
96 + function = LED_FUNCTION_ACTIVITY;
97 + function-enumerator = <2>;
98 + color = <LED_COLOR_ID_GREEN>;
99 + gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
103 + /* green:lan2-right */
104 + function = LED_FUNCTION_ACTIVITY;
105 + function-enumerator = <3>;
106 + color = <LED_COLOR_ID_GREEN>;
107 + gpios = <&gpioa 20 GPIO_ACTIVE_LOW>;
111 + /* green:lan3-left */
112 + function = LED_FUNCTION_ACTIVITY;
113 + function-enumerator = <4>;
114 + color = <LED_COLOR_ID_GREEN>;
115 + gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
119 + /* green:lan3-right */
120 + function = LED_FUNCTION_ACTIVITY;
121 + function-enumerator = <5>;
122 + color = <LED_COLOR_ID_GREEN>;
123 + gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
127 + /* green:lan4-left */
128 + function = LED_FUNCTION_ACTIVITY;
129 + function-enumerator = <6>;
130 + color = <LED_COLOR_ID_GREEN>;
131 + gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
135 + /* green:lan4-right */
136 + function = LED_FUNCTION_ACTIVITY;
137 + function-enumerator = <7>;
138 + color = <LED_COLOR_ID_GREEN>;
139 + gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
143 + /* green:wan-left */
144 + function = LED_FUNCTION_ACTIVITY;
145 + function-enumerator = <8>;
146 + color = <LED_COLOR_ID_GREEN>;
147 + gpios = <&gpioa 30 GPIO_ACTIVE_LOW>;
151 + /* green:wan-right */
152 + function = LED_FUNCTION_ACTIVITY;
153 + function-enumerator = <9>;
154 + color = <LED_COLOR_ID_GREEN>;
155 + gpios = <&gpioa 29 GPIO_ACTIVE_LOW>;
160 + function = LED_FUNCTION_POWER;
161 + color = <LED_COLOR_ID_AMBER>;
162 + gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
163 + default-state = "on";
168 + function = LED_FUNCTION_STATUS;
169 + color = <LED_COLOR_ID_WHITE>;
170 + gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
176 + compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
206 + ethernet = <&amac2>;
216 +++ b/arch/arm/boot/dts/bcm958625-meraki-mx64-a0.dts
218 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
220 + * Device Tree Bindings for Cisco Meraki MX64 with A0 SoC.
222 + * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
227 +#include "bcm958625-meraki-kingpin.dtsi"
228 +#include "bcm-nsp-ax.dtsi"
231 + model = "Cisco Meraki MX64(A0)";
232 + compatible = "meraki,mx64-a0", "brcm,bcm58625", "brcm,nsp";
235 + stdout-path = "serial0:115200n8";
239 + device_type = "memory";
240 + reg = <0x60000000 0x80000000>;
244 +++ b/arch/arm/boot/dts/bcm958625-meraki-mx64.dts
246 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
248 + * Device Tree Bindings for Cisco Meraki MX64 with B0+ SoC.
250 + * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
255 +#include "bcm958625-meraki-kingpin.dtsi"
258 + model = "Cisco Meraki MX64";
259 + compatible = "meraki,mx64", "brcm,bcm58625", "brcm,nsp";
262 + stdout-path = "serial0:115200n8";
266 + device_type = "memory";
267 + reg = <0x60000000 0x80000000>;
271 +++ b/arch/arm/boot/dts/bcm958625-meraki-mx64w-a0.dts
273 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
275 + * Device Tree Bindings for Cisco Meraki MX64W with A0 SoC.
277 + * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
282 +#include "bcm958625-meraki-kingpin.dtsi"
283 +#include "bcm-nsp-ax.dtsi"
286 + model = "Cisco Meraki MX64W(A0)";
287 + compatible = "meraki,mx64w-a0", "brcm,bcm58625", "brcm,nsp";
290 + stdout-path = "serial0:115200n8";
294 + device_type = "memory";
295 + reg = <0x60000000 0x80000000>;
307 +++ b/arch/arm/boot/dts/bcm958625-meraki-mx64w.dts
309 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
311 + * Device Tree Bindings for Cisco Meraki MX64W with B0+ SoC.
313 + * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
318 +#include "bcm958625-meraki-kingpin.dtsi"
321 + model = "Cisco Meraki MX64W";
322 + compatible = "meraki,mx64w", "brcm,bcm58625", "brcm,nsp";
325 + stdout-path = "serial0:115200n8";
329 + device_type = "memory";
330 + reg = <0x60000000 0x80000000>;