1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Device Tree file for Ctera C200-V2
5 * Copyright (C) 2021 Pawel Dembicki <paweldembicki@gmail.com>
10 #include "armada-370.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/thermal/thermal.h>
14 #include <dt-bindings/leds/common.h>
17 model = "Ctera C200 V2";
18 compatible = "ctera,c200-v2", "marvell,armada370", "marvell,armada-370-xp";
21 led-boot = &led_status_green;
22 led-failsafe = &led_status_red;
23 led-running = &led_status_green;
24 led-upgrade = &led_status_red;
28 bootargs = "console=ttyS0,115200";
29 stdout-path = "serial0:115200n8";
33 device_type = "memory";
34 reg = <0x00000000 0x40000000>; /* 1024 MB */
38 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
39 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
40 MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
45 polling-delay = <20000>;
46 polling-delay-passive = <2000>;
48 thermal-sensors = <ðphy0>;
51 ethphy_alert1: trip1 {
52 temperature = <65000>;
58 temperature = <100000>;
67 compatible = "gpio-keys";
68 pinctrl-0 = <&pmx_buttons>;
69 pinctrl-names = "default";
72 label = "Power Button";
73 linux,code = <KEY_POWER>;
74 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
78 label = "Reset Button";
79 linux,code = <KEY_RESTART>;
80 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
84 label = "USB1 Button";
86 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
90 label = "USB2 Button";
92 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
97 compatible = "gpio-poweroff";
98 pinctrl-0 = <&pmx_poweroff>;
99 pinctrl-names = "default";
100 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
104 compatible = "gpio-leds";
105 pinctrl-0 = <&pmx_leds1 &pmx_leds2>;
106 pinctrl-names = "default";
109 function = LED_FUNCTION_USB;
110 function-enumerator = <2>;
111 color = <LED_COLOR_ID_RED>;
112 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
116 function = LED_FUNCTION_USB;
117 function-enumerator = <2>;
118 color = <LED_COLOR_ID_GREEN>;
119 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "usbport";
121 trigger-sources = <&usb1_port 1>, <&usb2_port 1>;
125 function = LED_FUNCTION_USB;
126 function-enumerator = <1>;
127 color = <LED_COLOR_ID_RED>;
128 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
132 function = LED_FUNCTION_USB;
133 function-enumerator = <1>;
134 color = <LED_COLOR_ID_GREEN>;
135 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
136 linux,default-trigger = "usbport";
137 trigger-sources = <&usb1_port 2>, <&usb2_port 2>;
141 function = LED_FUNCTION_DISK;
142 function-enumerator = <2>;
143 color = <LED_COLOR_ID_GREEN>;
144 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
145 linux,default-trigger = "ata2";
149 function = LED_FUNCTION_DISK;
150 function-enumerator = <1>;
151 color = <LED_COLOR_ID_RED>;
152 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
156 function = LED_FUNCTION_DISK;
157 function-enumerator = <2>;
158 color = <LED_COLOR_ID_RED>;
159 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
163 function = LED_FUNCTION_INDICATOR;
164 color = <LED_COLOR_ID_BLUE>;
165 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
169 function = LED_FUNCTION_DISK_ERR;
170 color = <LED_COLOR_ID_RED>;
171 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
175 function = LED_FUNCTION_DISK_ERR;
176 color = <LED_COLOR_ID_GREEN>;
177 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
180 led_status_red: led-10 {
181 function = LED_FUNCTION_STATUS;
182 color = <LED_COLOR_ID_RED>;
183 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
187 function = LED_FUNCTION_DISK;
188 function-enumerator = <1>;
189 color = <LED_COLOR_ID_GREEN>;
190 gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
191 linux,default-trigger = "ata1";
194 led_status_green: led-12 {
195 function = LED_FUNCTION_STATUS;
196 color = <LED_COLOR_ID_GREEN>;
197 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
207 pinctrl-0 = <&ge1_rgmii_pins>;
208 pinctrl-names = "default";
210 phy-handle = <ðphy0>;
211 phy-connection-type = "rgmii-id";
215 pinctrl-0 = <&i2c0_pins>;
216 pinctrl-names = "default";
217 clock-frequency = <100000>;
221 compatible = "nuvoton,nct7802";
226 compatible = "sii,s35390a";
232 pinctrl-0 = <&mdio_pins>;
233 pinctrl-names = "default";
235 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
237 #thermal-sensor-cells = <0>;
246 label = "pxa3xx_nand-0";
248 marvell,nand-keep-config;
250 nand-ecc-strength = <4>;
251 nand-ecc-step-size = <512>;
254 compatible = "fixed-partitions";
255 #address-cells = <1>;
260 reg = <0x0000000 0x200000>;
265 label = "certificate";
266 reg = <0x0200000 0x100000>;
271 label = "preset_cfg";
272 reg = <0x0300000 0x100000>;
277 label = "dev_params";
278 reg = <0x0400000 0x100000>;
282 label = "active_bank";
283 reg = <0x0500000 0x0100000>;
288 reg = <0x0600000 0x0100000>;
294 reg = <0x0700000 0x2800000>;
299 reg = <0x2f00000 0x2800000>;
302 /* 0x5700000-0x5a00000 undefined in vendor firmware */
306 reg = <0x5a00000 0x2000000>;
311 reg = <0x7a00000 0x8600000>;
321 pinctrl-0 = <&pmx_pcie>;
322 pinctrl-names = "default";
324 reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
326 /* -[0000:00]---01.0-[01]----00.0 */
327 /* usbport trigger won't work */
329 compatible = "pci11ab,6710";
330 reg = <0x3800 0 0 0 0>;
331 #address-cells = <3>;
335 /* Renesas uPD720202 */
336 compatible = "pci1912,0015";
337 reg = <0x1000 0 0 0 0>;
338 #address-cells = <3>;
343 #trigger-source-cells = <1>;
348 #trigger-source-cells = <1>;
356 pmx_poweroff: pmx-poweroff {
357 marvell,pins = "mpp7";
358 marvell,function = "gpo";
361 pmx_power_cpu: pmx-power-cpu {
362 marvell,pins = "mpp4";
363 marvell,function = "vdd";
366 pmx_buttons: pmx-buttons {
367 marvell,pins = "mpp6", "mpp10", "mpp14", "mpp32";
368 marvell,function = "gpio";
371 pmx_leds1: pmx-leds1 {
372 marvell,pins = "mpp47";
373 marvell,function = "gpo";
376 pmx_leds2: pmx-leds2 {
377 marvell,pins = "mpp12", "mpp13", "mpp15", "mpp16", "mpp50", "mpp51",
378 "mpp52", "mpp53", "mpp55", "mpp56", "mpp57", "mpp58";
379 marvell,function = "gpio";
383 marvell,pins = "mpp59";
384 marvell,function = "gpio";
387 /* this gpio is connected to the pin of buzzer
388 * leave it as is due lack of proper driver
390 pmx_buzzer: pmx-buzzer {
391 marvell,pins = "mpp63";
392 marvell,function = "gpio";
397 pinctrl-0 = <&pmx_power_cpu>;
398 pinctrl-names = "default";
408 #address-cells = <1>;
411 hdd0_temp: sata-port@0 {
413 #thermal-sensor-cells = <0>;
416 hdd1_temp: sata-port@1 {
418 #thermal-sensor-cells = <0>;