1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Device Tree file for Ctera C200-V2
5 * Copyright (C) 2022 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 bootargs = "console=ttyS0,115200";
22 stdout-path = "serial0:115200n8";
26 device_type = "memory";
27 reg = <0x00000000 0x40000000>; /* 1024 MB */
31 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
32 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
33 MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
38 polling-delay = <20000>;
39 polling-delay-passive = <2000>;
41 thermal-sensors = <ðphy0>;
44 ethphy_alert1: trip1 {
45 temperature = <65000>;
51 temperature = <100000>;
60 compatible = "pwm-beeper";
61 pinctrl-0 = <&pmx_beeper>;
62 pinctrl-names = "default";
63 pwms = <&gpio1 31 4000>;
67 compatible = "gpio-poweroff";
68 pinctrl-0 = <&pmx_poweroff>;
69 pinctrl-names = "default";
70 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
74 compatible = "gpio-keys";
75 pinctrl-0 = <&pmx_buttons>;
76 pinctrl-names = "default";
79 label = "Power Button";
80 linux,code = <KEY_POWER>;
81 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
85 label = "Reset Button";
86 linux,code = <KEY_RESTART>;
87 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
91 label = "USB1 Button";
93 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
97 label = "USB2 Button";
99 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
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>;
123 function = LED_FUNCTION_USB;
124 function-enumerator = <1>;
125 color = <LED_COLOR_ID_RED>;
126 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
130 function = LED_FUNCTION_USB;
131 function-enumerator = <1>;
132 color = <LED_COLOR_ID_GREEN>;
133 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
137 function = LED_FUNCTION_DISK;
138 function-enumerator = <2>;
139 color = <LED_COLOR_ID_GREEN>;
140 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
144 function = LED_FUNCTION_DISK;
145 function-enumerator = <1>;
146 color = <LED_COLOR_ID_RED>;
147 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
151 function = LED_FUNCTION_DISK;
152 function-enumerator = <2>;
153 color = <LED_COLOR_ID_RED>;
154 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
158 function = LED_FUNCTION_INDICATOR;
159 color = <LED_COLOR_ID_BLUE>;
160 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
164 function = LED_FUNCTION_DISK_ERR;
165 color = <LED_COLOR_ID_RED>;
166 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
170 function = LED_FUNCTION_DISK_ERR;
171 color = <LED_COLOR_ID_GREEN>;
172 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
176 function = LED_FUNCTION_STATUS;
177 color = <LED_COLOR_ID_RED>;
178 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
182 function = LED_FUNCTION_DISK;
183 function-enumerator = <1>;
184 color = <LED_COLOR_ID_GREEN>;
185 gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
189 function = LED_FUNCTION_STATUS;
190 color = <LED_COLOR_ID_GREEN>;
191 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
201 pinctrl-0 = <&ge1_rgmii_pins>;
202 pinctrl-names = "default";
204 phy-handle = <ðphy0>;
205 phy-connection-type = "rgmii-id";
209 pinctrl-0 = <&i2c0_pins>;
210 pinctrl-names = "default";
211 clock-frequency = <100000>;
215 compatible = "nuvoton,nct7802";
220 compatible = "sii,s35390a";
226 pinctrl-0 = <&mdio_pins>;
227 pinctrl-names = "default";
229 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
231 #thermal-sensor-cells = <0>;
240 label = "pxa3xx_nand-0";
242 marvell,nand-keep-config;
244 nand-ecc-strength = <4>;
245 nand-ecc-step-size = <512>;
248 compatible = "fixed-partitions";
249 #address-cells = <1>;
254 reg = <0x0000000 0x200000>;
259 label = "certificate";
260 reg = <0x0200000 0x100000>;
265 label = "preset_cfg";
266 reg = <0x0300000 0x100000>;
271 label = "dev_params";
272 reg = <0x0400000 0x100000>;
276 label = "active_bank";
277 reg = <0x0500000 0x0100000>;
282 reg = <0x0600000 0x0100000>;
288 reg = <0x0700000 0x2800000>;
293 reg = <0x2f00000 0x2800000>;
296 /* 0x5700000-0x5a00000 undefined in vendor firmware */
300 reg = <0x5a00000 0x2000000>;
305 reg = <0x7a00000 0x8600000>;
314 pcie@1,0 { /* Renesas uPD720202 USB 3.0 controller */
315 pinctrl-0 = <&pmx_pcie>;
316 pinctrl-names = "default";
318 reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
323 pmx_poweroff: pmx-poweroff {
324 marvell,pins = "mpp7";
325 marvell,function = "gpo";
328 pmx_power_cpu: pmx-power-cpu {
329 marvell,pins = "mpp4";
330 marvell,function = "vdd";
333 pmx_buttons: pmx-buttons {
334 marvell,pins = "mpp6", "mpp10", "mpp14", "mpp32";
335 marvell,function = "gpio";
338 pmx_leds1: pmx-leds1 {
339 marvell,pins = "mpp47";
340 marvell,function = "gpo";
343 pmx_leds2: pmx-leds2 {
344 marvell,pins = "mpp12", "mpp13", "mpp15", "mpp16", "mpp50", "mpp51",
345 "mpp52", "mpp53", "mpp55", "mpp56", "mpp57", "mpp58";
346 marvell,function = "gpio";
350 marvell,pins = "mpp59";
351 marvell,function = "gpio";
354 pmx_beeper: pmx-beeper {
355 marvell,pins = "mpp63";
356 marvell,function = "gpio";
361 pinctrl-0 = <&pmx_power_cpu>;
362 pinctrl-names = "default";
372 #address-cells = <1>;
375 hdd0_temp: sata-port@0 {
377 #thermal-sensor-cells = <0>;
380 hdd1_temp: sata-port@1 {
382 #thermal-sensor-cells = <0>;