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 label = "red:status";
182 function = LED_FUNCTION_STATUS;
183 color = <LED_COLOR_ID_RED>;
184 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
188 function = LED_FUNCTION_DISK;
189 function-enumerator = <1>;
190 color = <LED_COLOR_ID_GREEN>;
191 gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
192 linux,default-trigger = "ata1";
195 led_status_green: led-12 {
196 label = "green:status";
197 function = LED_FUNCTION_STATUS;
198 color = <LED_COLOR_ID_GREEN>;
199 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
209 pinctrl-0 = <&ge1_rgmii_pins>;
210 pinctrl-names = "default";
212 phy-handle = <ðphy0>;
213 phy-connection-type = "rgmii-id";
217 pinctrl-0 = <&i2c0_pins>;
218 pinctrl-names = "default";
219 clock-frequency = <100000>;
223 compatible = "nuvoton,nct7802";
228 compatible = "sii,s35390a";
234 pinctrl-0 = <&mdio_pins>;
235 pinctrl-names = "default";
237 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
239 #thermal-sensor-cells = <0>;
248 label = "pxa3xx_nand-0";
250 marvell,nand-keep-config;
252 nand-ecc-strength = <4>;
253 nand-ecc-step-size = <512>;
256 compatible = "fixed-partitions";
257 #address-cells = <1>;
262 reg = <0x0000000 0x200000>;
267 label = "certificate";
268 reg = <0x0200000 0x100000>;
273 label = "preset_cfg";
274 reg = <0x0300000 0x100000>;
279 label = "dev_params";
280 reg = <0x0400000 0x100000>;
284 label = "active_bank";
285 reg = <0x0500000 0x0100000>;
290 reg = <0x0600000 0x0100000>;
296 reg = <0x0700000 0x2800000>;
301 reg = <0x2f00000 0x2800000>;
304 /* 0x5700000-0x5a00000 undefined in vendor firmware */
308 reg = <0x5a00000 0x2000000>;
313 reg = <0x7a00000 0x8600000>;
323 pinctrl-0 = <&pmx_pcie>;
324 pinctrl-names = "default";
326 reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
328 /* -[0000:00]---01.0-[01]----00.0 */
329 /* usbport trigger won't work */
331 compatible = "pci11ab,6710";
332 reg = <0x3800 0 0 0 0>;
333 #address-cells = <3>;
337 /* Renesas uPD720202 */
338 compatible = "pci1912,0015";
339 reg = <0x1000 0 0 0 0>;
340 #address-cells = <3>;
345 #trigger-source-cells = <1>;
350 #trigger-source-cells = <1>;
358 pmx_poweroff: pmx-poweroff {
359 marvell,pins = "mpp7";
360 marvell,function = "gpo";
363 pmx_power_cpu: pmx-power-cpu {
364 marvell,pins = "mpp4";
365 marvell,function = "vdd";
368 pmx_buttons: pmx-buttons {
369 marvell,pins = "mpp6", "mpp10", "mpp14", "mpp32";
370 marvell,function = "gpio";
373 pmx_leds1: pmx-leds1 {
374 marvell,pins = "mpp47";
375 marvell,function = "gpo";
378 pmx_leds2: pmx-leds2 {
379 marvell,pins = "mpp12", "mpp13", "mpp15", "mpp16", "mpp50", "mpp51",
380 "mpp52", "mpp53", "mpp55", "mpp56", "mpp57", "mpp58";
381 marvell,function = "gpio";
385 marvell,pins = "mpp59";
386 marvell,function = "gpio";
389 /* this gpio is connected to the pin of buzzer
390 * leave it as is due lack of proper driver
392 pmx_buzzer: pmx-buzzer {
393 marvell,pins = "mpp63";
394 marvell,function = "gpio";
399 pinctrl-0 = <&pmx_power_cpu>;
400 pinctrl-names = "default";
410 #address-cells = <1>;
413 hdd0_temp: sata-port@0 {
415 #thermal-sensor-cells = <0>;
418 hdd1_temp: sata-port@1 {
420 #thermal-sensor-cells = <0>;