1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Ctera C200 V1 Board Description
4 * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com>
9 #include "kirkwood.dtsi"
10 #include "kirkwood-6281.dtsi"
11 #include <dt-bindings/leds/common.h>
14 model = "Ctera C200 V1";
15 compatible = "ctera,c200-v1", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 bootargs = "console=ttyS0,115200";
23 device_type = "memory";
24 reg = <0x00000000 0x20000000>;
28 compatible = "gpio-keys";
29 pinctrl-0 = <&pmx_buttons>;
30 pinctrl-names = "default";
33 label = "Power Button";
34 linux,code = <KEY_POWER>;
35 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
39 label = "Reset Button";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
45 label = "USB1 Button";
47 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
51 label = "USB2 Button";
53 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-poweroff";
59 pinctrl-0 = <&pmx_poweroff>;
60 pinctrl-names = "default";
61 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-leds";
66 pinctrl-0 = <&pmx_leds>;
67 pinctrl-names = "default";
70 function = LED_FUNCTION_DISK;
71 function-enumerator = <2>;
72 color = <LED_COLOR_ID_RED>;
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
77 function = LED_FUNCTION_DISK;
78 function-enumerator = <1>;
79 color = <LED_COLOR_ID_GREEN>;
80 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
84 function = LED_FUNCTION_DISK;
85 function-enumerator = <2>;
86 color = <LED_COLOR_ID_GREEN>;
87 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
91 function = LED_FUNCTION_DISK;
92 function-enumerator = <1>;
93 color = <LED_COLOR_ID_RED>;
94 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
98 function = LED_FUNCTION_STATUS;
99 color = <LED_COLOR_ID_RED>;
100 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
104 function = LED_FUNCTION_STATUS;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
110 function = LED_FUNCTION_INDICATOR;
111 color = <LED_COLOR_ID_BLUE>;
112 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
116 function = LED_FUNCTION_DISK_ERR;
117 color = <LED_COLOR_ID_RED>;
118 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
122 function = LED_FUNCTION_DISK_ERR;
123 color = <LED_COLOR_ID_GREEN>;
124 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
128 function = LED_FUNCTION_USB;
129 function-enumerator = <1>;
130 color = <LED_COLOR_ID_RED>;
131 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
135 function = LED_FUNCTION_USB;
136 function-enumerator = <1>;
137 color = <LED_COLOR_ID_GREEN>;
138 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
139 linux,default-trigger = "usbport";
140 trigger-sources = <&hub_port2>;
144 function = LED_FUNCTION_USB;
145 function-enumerator = <2>;
146 color = <LED_COLOR_ID_RED>;
147 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
151 function = LED_FUNCTION_USB;
152 function-enumerator = <2>;
153 color = <LED_COLOR_ID_GREEN>;
154 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
155 linux,default-trigger = "usbport";
156 trigger-sources = <&hub_port1>;
166 phy-handle = <ðphy9>;
173 compatible = "s35390a";
178 compatible = "national,lm63";
186 ethphy9: ethernet-phy@9 {
197 reg = <0x0000000 0x200000>;
201 label = "certificate";
202 reg = <0x0200000 0x100000>;
206 label = "preset_cfg";
207 reg = <0x0300000 0x100000>;
211 label = "dev_params";
212 reg = <0x0400000 0x100000>;
216 label = "active_bank";
217 reg = <0x0500000 0x0100000>;
222 reg = <0x0600000 0x0100000>;
227 reg = <0x0700000 0x2800000>;
232 reg = <0x2f00000 0x2800000>;
235 /* 0x5700000-0x5a00000 undefined in vendor firmware */
239 reg = <0x5a00000 0x2000000>;
244 reg = <0x7a00000 0x8600000>;
249 /* Buzzer gpios are connected to two pins of buzzer.
250 * This buzzer require a modulated signal from gpio.
251 * Leave it as is due lack of proper driver.
253 pmx_buzzer: pmx-buzzer {
254 marvell,pins = "mpp12", "mpp13";
255 marvell,function = "gpio";
259 marvell,pins = "mpp14", "mpp15", "mpp16", "mpp17", "mpp38",
260 "mpp39", "mpp40", "mpp42", "mpp43", "mpp44",
261 "mpp45", "mpp46", "mpp47";
262 marvell,function = "gpio";
265 pmx_buttons: pmx-buttons {
266 marvell,pins = "mpp28", "mpp29", "mpp48", "mpp49";
267 marvell,function = "gpio";
270 pmx_poweroff: pmx-poweroff {
271 marvell,pins = "mpp34";
272 marvell,function = "gpio";
290 #address-cells = <1>;
295 #address-cells = <1>;
298 #trigger-source-cells = <0>;
302 #trigger-source-cells = <0>;
307 #trigger-source-cells = <0>;