1 From 5668d088ee4ea05db9daaae0645d1d1f579b20f9 Mon Sep 17 00:00:00 2001
2 From: Pawel Dembicki <paweldembicki@gmail.com>
3 Date: Mon, 3 Oct 2022 09:34:43 +0200
4 Subject: ARM: dts: kirkwood: Add Endian 4i Edge 200 board
6 Add Endian 4i Edge 200 is 5-port firewall.
7 It have also clone: Endian UTM Mini (The same hardware, with added WLAN
11 - SoC: Marvell 88F6281-A1 ARMv5TE Processor 1.2GHz
12 - Ram: 512MB (4x Nanya NT5TU128M8GE-AC)
13 - NAND Flash: 512MB (Micron 29F4G08AAC)
14 - Lan 1-4: 4x GBE (Marvell 88E6171R-TFJ2)
15 - Lan 5: 1x GBE (Marvell 88E1116R-NNC1)
16 - Storage: MicroSD Slot
17 - MCPIE: MiniPCIe Slot present [fitted with SparkLan WPEA-110N/E
18 (Atheros AR9280 chipset) in Endian UTM Mini WLAN only]
19 - USB: 1x USB 2.0 port
21 - LEDs: 3x GPIO controlled
23 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
24 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
25 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
27 arch/arm/boot/dts/Makefile | 1 +
28 arch/arm/boot/dts/kirkwood-4i-edge-200.dts | 205 +++++++++++++++++++++++++++++
29 2 files changed, 206 insertions(+)
30 create mode 100644 arch/arm/boot/dts/kirkwood-4i-edge-200.dts
32 --- a/arch/arm/boot/dts/Makefile
33 +++ b/arch/arm/boot/dts/Makefile
34 @@ -265,6 +265,7 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \
35 keystone-k2g-evm.dtb \
37 dtb-$(CONFIG_MACH_KIRKWOOD) += \
38 + kirkwood-4i-edge-200.dtb \
40 kirkwood-blackarmor-nas220.dtb \
41 kirkwood-c200-v1.dtb \
43 +++ b/arch/arm/boot/dts/kirkwood-4i-edge-200.dts
45 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
47 + * Endian 4i Edge 200 Board Description
48 + * Note: Endian UTM Mini is hardware clone of Endian Edge 200
49 + * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com>
54 +#include "kirkwood.dtsi"
55 +#include "kirkwood-6281.dtsi"
56 +#include <dt-bindings/leds/common.h>
59 + model = "Endian 4i Edge 200";
60 + compatible = "endian,4i-edge-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
63 + device_type = "memory";
64 + reg = <0x00000000 0x20000000>;
68 + bootargs = "console=ttyS0,115200n8";
69 + stdout-path = &uart0;
73 + compatible = "gpio-leds";
74 + pinctrl-0 = <&pmx_led>;
75 + pinctrl-names = "default";
78 + function = LED_FUNCTION_SD;
79 + color = <LED_COLOR_ID_AMBER>;
80 + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
81 + linux,default-trigger = "mmc0";
85 + function = LED_FUNCTION_STATUS;
86 + color = <LED_COLOR_ID_AMBER>;
87 + gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
91 + function = LED_FUNCTION_STATUS;
92 + color = <LED_COLOR_ID_GREEN>;
93 + gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
112 + phy-handle = <ðphyb>;
118 + ethphyb: ethernet-phy@b {
122 + /* link-activity, bi-color mode 4 */
123 + <3 0x10 0xfff0 0xf>; /* Reg 3,16 <- 0xzzzf */
126 + switch0: switch@11 {
127 + compatible = "marvell,mv88e6085";
131 + #address-cells = <1>;
156 + phy-mode = "rgmii-id";
157 + ethernet = <ð0port>;
170 + pinctrl-0 = <&pmx_nand>;
171 + pinctrl-names = "default";
175 + reg = <0x00000000 0x000a0000>;
180 + label = "u-boot-env";
181 + reg = <0x000a0000 0x00060000>;
187 + reg = <0x00100000 0x00400000>;
192 + reg = <0x00500000 0x1fb00000>;
205 + pinctrl-0 = <&pmx_sysrst>;
206 + pinctrl-names = "default";
208 + pmx_sysrst: pmx-sysrst {
209 + marvell,pins = "mpp6";
210 + marvell,function = "sysrst";
213 + pmx_sdio_cd: pmx-sdio-cd {
214 + marvell,pins = "mpp28";
215 + marvell,function = "gpio";
219 + marvell,pins = "mpp34", "mpp35", "mpp49";
220 + marvell,function = "gpio";
229 + status = "disabled";
233 + status = "disabled";
237 + pinctrl-0 = <&pmx_sdio_cd>;
238 + pinctrl-names = "default";
240 + cd-gpios = <&gpio0 28 9>;