| 1 |
// SPDX-License-Identifier: GPL-2.0+ |
| 2 |
/* |
| 3 |
* Copyright (C) 2024 Josua Mayer <[email protected]> |
| 4 |
* |
| 5 |
* DTS for SolidRun CN9130 Clearfog Base. |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
|
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include <dt-bindings/leds/common.h> |
| 13 |
|
| 14 |
#include "cn9130.dtsi" |
| 15 |
#include "cn9130-sr-som.dtsi" |
| 16 |
|
| 17 |
/* |
| 18 |
* Instantiate the external CP115 |
| 19 |
*/ |
| 20 |
|
| 21 |
#define CP11X_NAME cp1 |
| 22 |
#define CP11X_BASE f4000000 |
| 23 |
#define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x1000000)) |
| 24 |
#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000 |
| 25 |
#define CP11X_PCIE0_BASE f4600000 |
| 26 |
#define CP11X_PCIE1_BASE f4620000 |
| 27 |
#define CP11X_PCIE2_BASE f4640000 |
| 28 |
|
| 29 |
#include "armada-cp115.dtsi" |
| 30 |
|
| 31 |
#undef CP11X_NAME |
| 32 |
#undef CP11X_BASE |
| 33 |
#undef CP11X_PCIEx_MEM_BASE |
| 34 |
#undef CP11X_PCIEx_MEM_SIZE |
| 35 |
#undef CP11X_PCIE0_BASE |
| 36 |
#undef CP11X_PCIE1_BASE |
| 37 |
#undef CP11X_PCIE2_BASE |
| 38 |
|
| 39 |
/ { |
| 40 |
model = "SolidRun CN9131 SolidWAN"; |
| 41 |
compatible = "solidrun,cn9131-solidwan", |
| 42 |
"solidrun,cn9130-sr-som", "marvell,cn9130"; |
| 43 |
|
| 44 |
aliases { |
| 45 |
ethernet0 = &cp1_eth1; |
| 46 |
ethernet1 = &cp1_eth2; |
| 47 |
ethernet2 = &cp0_eth1; |
| 48 |
ethernet3 = &cp0_eth2; |
| 49 |
ethernet4 = &cp0_eth0; |
| 50 |
ethernet5 = &cp1_eth0; |
| 51 |
gpio0 = &ap_gpio; |
| 52 |
gpio1 = &cp0_gpio1; |
| 53 |
gpio2 = &cp0_gpio2; |
| 54 |
gpio3 = &cp1_gpio1; |
| 55 |
gpio4 = &cp1_gpio2; |
| 56 |
gpio5 = &expander0; |
| 57 |
i2c0 = &cp0_i2c0; |
| 58 |
i2c1 = &cp0_i2c1; |
| 59 |
i2c2 = &cp1_i2c1; |
| 60 |
mmc0 = &ap_sdhci0; |
| 61 |
mmc1 = &cp0_sdhci0; |
| 62 |
rtc0 = &cp0_rtc; |
| 63 |
rtc1 = &carrier_rtc; |
| 64 |
}; |
| 65 |
|
| 66 |
leds { |
| 67 |
compatible = "gpio-leds"; |
| 68 |
pinctrl-names = "default"; |
| 69 |
pinctrl-0 = <&cp0_led_pins &cp1_led_pins>; |
| 70 |
|
| 71 |
/* for sfp-1 (J42) */ |
| 72 |
led-sfp1-activity { |
| 73 |
label = "sfp1:green"; |
| 74 |
gpios = <&cp0_gpio1 7 GPIO_ACTIVE_HIGH>; |
| 75 |
}; |
| 76 |
|
| 77 |
/* for sfp-1 (J42) */ |
| 78 |
led-sfp1-link { |
| 79 |
label = "sfp1:yellow"; |
| 80 |
gpios = <&cp0_gpio1 4 GPIO_ACTIVE_HIGH>; |
| 81 |
}; |
| 82 |
|
| 83 |
/* (J28) */ |
| 84 |
led-sfp0-activity { |
| 85 |
label = "sfp0:green"; |
| 86 |
gpios = <&cp1_gpio2 22 GPIO_ACTIVE_HIGH>; |
| 87 |
}; |
| 88 |
|
| 89 |
/* (J28) */ |
| 90 |
led-sfp0-link { |
| 91 |
label = "sfp0:yellow"; |
| 92 |
gpios = <&cp1_gpio2 23 GPIO_ACTIVE_HIGH>; |
| 93 |
}; |
| 94 |
}; |
| 95 |
|
| 96 |
/* Type-A port on J53 */ |
| 97 |
reg_usb_a_vbus0: regulator-usb-a-vbus0 { |
| 98 |
compatible = "regulator-fixed"; |
| 99 |
pinctrl-0 = <&cp0_reg_usb_a_vbus0_pins>; |
| 100 |
pinctrl-names = "default"; |
| 101 |
regulator-name = "vbus0"; |
| 102 |
regulator-min-microvolt = <5000000>; |
| 103 |
regulator-max-microvolt = <5000000>; |
| 104 |
gpios = <&cp0_gpio1 27 GPIO_ACTIVE_HIGH>; |
| 105 |
enable-active-high; |
| 106 |
regulator-always-on; |
| 107 |
}; |
| 108 |
|
| 109 |
reg_usb_a_vbus1: regulator-usb-a-vbus1 { |
| 110 |
compatible = "regulator-fixed"; |
| 111 |
pinctrl-0 = <&cp0_reg_usb_a_vbus1_pins>; |
| 112 |
pinctrl-names = "default"; |
| 113 |
regulator-name = "vbus1"; |
| 114 |
regulator-min-microvolt = <5000000>; |
| 115 |
regulator-max-microvolt = <5000000>; |
| 116 |
gpios = <&cp0_gpio1 28 GPIO_ACTIVE_HIGH>; |
| 117 |
enable-active-high; |
| 118 |
regulator-always-on; |
| 119 |
}; |
| 120 |
|
| 121 |
sfp0: sfp-0 { |
| 122 |
compatible = "sff,sfp"; |
| 123 |
pinctrl-0 = <&cp0_sfp0_pins>; |
| 124 |
pinctrl-names = "default"; |
| 125 |
i2c-bus = <&cp0_i2c1>; |
| 126 |
los-gpios = <&cp0_gpio2 2 GPIO_ACTIVE_HIGH>; |
| 127 |
mod-def0-gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>; |
| 128 |
tx-disable-gpios = <&cp0_gpio2 1 GPIO_ACTIVE_HIGH>; |
| 129 |
tx-fault-gpios = <&cp0_gpio1 31 GPIO_ACTIVE_HIGH>; |
| 130 |
maximum-power-milliwatt = <2000>; |
| 131 |
}; |
| 132 |
|
| 133 |
sfp1: sfp-1 { |
| 134 |
compatible = "sff,sfp"; |
| 135 |
pinctrl-0 = <&cp1_sfp1_pins>; |
| 136 |
pinctrl-names = "default"; |
| 137 |
i2c-bus = <&cp1_i2c1>; |
| 138 |
los-gpios = <&cp1_gpio2 2 GPIO_ACTIVE_HIGH>; |
| 139 |
mod-def0-gpios = <&cp1_gpio2 18 GPIO_ACTIVE_LOW>; |
| 140 |
tx-disable-gpios = <&cp1_gpio2 1 GPIO_ACTIVE_HIGH>; |
| 141 |
tx-fault-gpios = <&cp1_gpio2 17 GPIO_ACTIVE_HIGH>; |
| 142 |
maximum-power-milliwatt = <2000>; |
| 143 |
}; |
| 144 |
}; |
| 145 |
|
| 146 |
&cp0_ethernet { |
| 147 |
status = "okay"; |
| 148 |
}; |
| 149 |
|
| 150 |
/* SRDS #2 - SFP+ 10GE */ |
| 151 |
&cp0_eth0 { |
| 152 |
managed = "in-band-status"; |
| 153 |
phy-mode = "10gbase-r"; |
| 154 |
phys = <&cp0_comphy2 0>; |
| 155 |
sfp = <&sfp0>; |
| 156 |
status = "okay"; |
| 157 |
}; |
| 158 |
|
| 159 |
/* SRDS #3 - SGMII 1GE */ |
| 160 |
&cp0_eth1 { |
| 161 |
managed = "in-band-status"; |
| 162 |
phy-mode = "sgmii"; |
| 163 |
/* Without mdio phy access rely on sgmii auto-negotiation. */ |
| 164 |
phys = <&cp0_comphy3 1>; |
| 165 |
status = "okay"; |
| 166 |
}; |
| 167 |
|
| 168 |
/* SRDS #1 - SGMII */ |
| 169 |
&cp0_eth2 { |
| 170 |
/delete-property/ pinctrl-0; |
| 171 |
/delete-property/ pinctrl-names; |
| 172 |
managed = "in-band-status"; |
| 173 |
phy-mode = "sgmii"; |
| 174 |
phy = <&cp0_phy1>; |
| 175 |
phys = <&cp0_comphy1 2>; |
| 176 |
}; |
| 177 |
|
| 178 |
&cp0_gpio1 { |
| 179 |
pcie0-0-w-disable-hog { |
| 180 |
gpio-hog; |
| 181 |
gpios = <6 GPIO_ACTIVE_LOW>; |
| 182 |
output-low; |
| 183 |
line-name = "pcie0.0-w-disable"; |
| 184 |
}; |
| 185 |
|
| 186 |
/* J34 */ |
| 187 |
m2-full-card-power-off-hog { |
| 188 |
gpio-hog; |
| 189 |
gpios = <8 GPIO_ACTIVE_LOW>; |
| 190 |
output-low; |
| 191 |
line-name = "m2-full-card-power-off"; |
| 192 |
}; |
| 193 |
}; |
| 194 |
|
| 195 |
&cp0_i2c0 { |
| 196 |
/* assembly option */ |
| 197 |
fan-controller@18 { |
| 198 |
compatible = "ti,amc6821"; |
| 199 |
reg = <0x18>; |
| 200 |
}; |
| 201 |
|
| 202 |
expander0: gpio@41 { |
| 203 |
compatible = "nxp,pca9536"; |
| 204 |
reg = <0x41>; |
| 205 |
gpio-controller; |
| 206 |
#gpio-cells = <2>; |
| 207 |
|
| 208 |
usb-a-vbus0-ilimit-hog { |
| 209 |
gpio-hog; |
| 210 |
gpios = <0 GPIO_ACTIVE_LOW>; |
| 211 |
input; |
| 212 |
line-name = "vbus0-ilimit"; |
| 213 |
}; |
| 214 |
|
| 215 |
/* duplicate connection, controlled by soc gpio */ |
| 216 |
usb-vbus0-enable-hog { |
| 217 |
gpio-hog; |
| 218 |
gpios = <1 GPIO_ACTIVE_HIGH>; |
| 219 |
input; |
| 220 |
line-name = "vbus0-enable"; |
| 221 |
}; |
| 222 |
|
| 223 |
usb-a-vbus1-ilimit-hog { |
| 224 |
gpio-hog; |
| 225 |
gpios = <2 GPIO_ACTIVE_LOW>; |
| 226 |
input; |
| 227 |
line-name = "vbus1-ilimit"; |
| 228 |
}; |
| 229 |
|
| 230 |
/* duplicate connection, controlled by soc gpio */ |
| 231 |
usb-vbus1-enable-hog { |
| 232 |
gpio-hog; |
| 233 |
gpios = <3 GPIO_ACTIVE_HIGH>; |
| 234 |
input; |
| 235 |
line-name = "vbus1-enable"; |
| 236 |
}; |
| 237 |
}; |
| 238 |
|
| 239 |
carrier_eeprom: eeprom@52 { |
| 240 |
compatible = "atmel,24c02"; |
| 241 |
reg = <0x52>; |
| 242 |
pagesize = <8>; |
| 243 |
}; |
| 244 |
|
| 245 |
/* usb-hub@60 */ |
| 246 |
|
| 247 |
/* assembly option */ |
| 248 |
carrier_rtc: rtc@68 { |
| 249 |
compatible = "st,m41t83"; |
| 250 |
reg = <0x68>; |
| 251 |
pinctrl-0 = <&cp1_rtc_pins>; |
| 252 |
pinctrl-names = "default"; |
| 253 |
interrupt-parent = <&cp1_gpio1>; |
| 254 |
interrupts = <12 IRQ_TYPE_EDGE_FALLING>; |
| 255 |
reset-gpios = <&cp1_gpio1 13 GPIO_ACTIVE_LOW>; |
| 256 |
}; |
| 257 |
}; |
| 258 |
|
| 259 |
&cp0_i2c1 { |
| 260 |
/* |
| 261 |
* Routed to SFP. |
| 262 |
* Limit to 100kHz for compatibility with SFP modules, |
| 263 |
* featuring AT24C01A/02/04 at addresses 0x50/0x51. |
| 264 |
*/ |
| 265 |
clock-frequency = <100000>; |
| 266 |
pinctrl-0 = <&cp0_i2c1_pins>; |
| 267 |
pinctrl-names = "default"; |
| 268 |
status = "okay"; |
| 269 |
}; |
| 270 |
|
| 271 |
&cp0_mdio { |
| 272 |
/* |
| 273 |
* SoM + Carrier each have a PHY at address 0. |
| 274 |
* Remove the SoM phy node, and skip adding the carrier node. |
| 275 |
* SGMII Auto-Negotation is enabled by bootloader for |
| 276 |
* autonomous operation without mdio control. |
| 277 |
*/ |
| 278 |
/delete-node/ ethernet-phy@0; |
| 279 |
|
| 280 |
/* U17016 */ |
| 281 |
cp0_phy1: ethernet-phy@1 { |
| 282 |
reg = <1>; |
| 283 |
/* |
| 284 |
* Configure LEDs default behaviour: |
| 285 |
* - LED[0]: link is 1000Mbps: On (yellow) |
| 286 |
* - LED[1]: link/activity: On/blink (green) |
| 287 |
* - LED[2]: high impedance (floating) |
| 288 |
*/ |
| 289 |
marvell,reg-init = <3 16 0xf000 0x0a17>; |
| 290 |
|
| 291 |
leds { |
| 292 |
#address-cells = <1>; |
| 293 |
#size-cells = <0>; |
| 294 |
|
| 295 |
led@0 { |
| 296 |
reg = <0>; |
| 297 |
color = <LED_COLOR_ID_YELLOW>; |
| 298 |
function = LED_FUNCTION_LAN; |
| 299 |
default-state = "keep"; |
| 300 |
}; |
| 301 |
|
| 302 |
led@1 { |
| 303 |
reg = <1>; |
| 304 |
color = <LED_COLOR_ID_GREEN>; |
| 305 |
function = LED_FUNCTION_LAN; |
| 306 |
default-state = "keep"; |
| 307 |
}; |
| 308 |
}; |
| 309 |
}; |
| 310 |
}; |
| 311 |
|
| 312 |
/* SRDS #0 - miniPCIe */ |
| 313 |
&cp0_pcie0 { |
| 314 |
num-lanes = <1>; |
| 315 |
phys = <&cp0_comphy0 0>; |
| 316 |
status = "okay"; |
| 317 |
}; |
| 318 |
|
| 319 |
/* SRDS #5 - M.2 B-Key (J34) */ |
| 320 |
&cp0_pcie2 { |
| 321 |
num-lanes = <1>; |
| 322 |
phys = <&cp0_comphy5 2>; |
| 323 |
status = "okay"; |
| 324 |
}; |
| 325 |
|
| 326 |
&cp0_pinctrl { |
| 327 |
pinctrl-0 = <&cp0_m2_0_shutdown_pins &cp0_mpcie_rfkill_pins>; |
| 328 |
pinctrl-names = "default"; |
| 329 |
|
| 330 |
cp0_i2c1_pins: cp0-i2c1-pins { |
| 331 |
marvell,pins = "mpp35", "mpp36"; |
| 332 |
marvell,function = "i2c1"; |
| 333 |
}; |
| 334 |
|
| 335 |
cp0_led_pins: cp0-led-pins { |
| 336 |
marvell,pins = "mpp4", "mpp7"; |
| 337 |
marvell,function = "gpio"; |
| 338 |
}; |
| 339 |
|
| 340 |
cp0_m2_0_shutdown_pins: cp0-m2-0-shutdown-pins { |
| 341 |
marvell,pins = "mpp8"; |
| 342 |
marvell,function = "gpio"; |
| 343 |
}; |
| 344 |
|
| 345 |
cp0_mmc0_pins: cp0-mmc0-pins { |
| 346 |
marvell,pins = "mpp43", "mpp56", "mpp57", "mpp58", |
| 347 |
"mpp59", "mpp60", "mpp61"; |
| 348 |
marvell,function = "sdio"; |
| 349 |
}; |
| 350 |
|
| 351 |
cp0_mpcie_rfkill_pins: cp0-mpcie-rfkill-pins { |
| 352 |
marvell,pins = "mpp6"; |
| 353 |
marvell,function = "gpio"; |
| 354 |
}; |
| 355 |
|
| 356 |
cp0_reg_usb_a_vbus0_pins: cp0-reg-usb-a-vbus0-pins { |
| 357 |
marvell,pins = "mpp27"; |
| 358 |
marvell,function = "gpio"; |
| 359 |
}; |
| 360 |
|
| 361 |
cp0_reg_usb_a_vbus1_pins: cp0-reg-usb-a-vbus1-pins { |
| 362 |
marvell,pins = "mpp28"; |
| 363 |
marvell,function = "gpio"; |
| 364 |
}; |
| 365 |
|
| 366 |
cp0_sfp0_pins: cp0-sfp0-pins { |
| 367 |
marvell,pins = "mpp31", "mpp32", "mpp33", "mpp34"; |
| 368 |
marvell,function = "gpio"; |
| 369 |
}; |
| 370 |
|
| 371 |
cp0_spi1_cs1_pins: cp0-spi1-cs1-pins { |
| 372 |
marvell,pins = "mpp12"; |
| 373 |
marvell,function = "spi1"; |
| 374 |
}; |
| 375 |
}; |
| 376 |
|
| 377 |
/* microSD */ |
| 378 |
&cp0_sdhci0 { |
| 379 |
pinctrl-0 = <&cp0_mmc0_pins>; |
| 380 |
pinctrl-names = "default"; |
| 381 |
bus-width = <4>; |
| 382 |
no-1-8-v; |
| 383 |
status = "okay"; |
| 384 |
}; |
| 385 |
|
| 386 |
&cp0_spi1 { |
| 387 |
/* add pin for chip-select 1 */ |
| 388 |
pinctrl-0 = <&cp0_spi1_pins &cp0_spi1_cs1_pins>; |
| 389 |
|
| 390 |
flash@1 { |
| 391 |
compatible = "jedec,spi-nor"; |
| 392 |
reg = <1>; |
| 393 |
/* read command supports max. 50MHz */ |
| 394 |
spi-max-frequency = <50000000>; |
| 395 |
}; |
| 396 |
}; |
| 397 |
|
| 398 |
/* USB-2.0 Host to USB-Hub */ |
| 399 |
&cp0_usb3_0 { |
| 400 |
phys = <&cp0_utmi0>; |
| 401 |
phy-names = "utmi"; |
| 402 |
dr_mode = "host"; |
| 403 |
status = "okay"; |
| 404 |
}; |
| 405 |
|
| 406 |
/* SRDS #4 - USB-3.0 Host to USB-Hub */ |
| 407 |
&cp0_usb3_1 { |
| 408 |
phys = <&cp0_comphy4 1>, <&cp0_utmi1>; |
| 409 |
phy-names = "comphy", "utmi"; |
| 410 |
dr_mode = "host"; |
| 411 |
status = "okay"; |
| 412 |
}; |
| 413 |
|
| 414 |
&cp0_utmi { |
| 415 |
status = "okay"; |
| 416 |
}; |
| 417 |
|
| 418 |
&cp0_utmi1 { |
| 419 |
status = "disabled"; |
| 420 |
}; |
| 421 |
|
| 422 |
&cp1_ethernet { |
| 423 |
status = "okay"; |
| 424 |
}; |
| 425 |
|
| 426 |
/* SRDS #4 - SFP+ 10GE */ |
| 427 |
&cp1_eth0 { |
| 428 |
managed = "in-band-status"; |
| 429 |
phy-mode = "10gbase-r"; |
| 430 |
phys = <&cp1_comphy4 0>; |
| 431 |
sfp = <&sfp1>; |
| 432 |
status = "okay"; |
| 433 |
}; |
| 434 |
|
| 435 |
/* SRDS #3 - SGMII 1GE */ |
| 436 |
&cp1_eth1 { |
| 437 |
managed = "in-band-status"; |
| 438 |
phy-mode = "sgmii"; |
| 439 |
phy = <&cp1_phy0>; |
| 440 |
phys = <&cp1_comphy3 1>; |
| 441 |
status = "okay"; |
| 442 |
}; |
| 443 |
|
| 444 |
/* SRDS #5 - SGMII 1GE */ |
| 445 |
&cp1_eth2 { |
| 446 |
managed = "in-band-status"; |
| 447 |
phy-mode = "sgmii"; |
| 448 |
phy = <&cp1_phy1>; |
| 449 |
phys = <&cp1_comphy5 2>; |
| 450 |
status = "okay"; |
| 451 |
}; |
| 452 |
|
| 453 |
&cp1_gpio1 { |
| 454 |
status = "okay"; |
| 455 |
|
| 456 |
/* J30 */ |
| 457 |
m2-full-card-power-off-hog-0 { |
| 458 |
gpio-hog; |
| 459 |
gpios = <29 GPIO_ACTIVE_LOW>; |
| 460 |
output-low; |
| 461 |
line-name = "m2-full-card-power-off"; |
| 462 |
}; |
| 463 |
|
| 464 |
/* J44 */ |
| 465 |
m2-full-card-power-off-hog-1 { |
| 466 |
gpio-hog; |
| 467 |
gpios = <30 GPIO_ACTIVE_LOW>; |
| 468 |
output-low; |
| 469 |
line-name = "m2-full-card-power-off"; |
| 470 |
}; |
| 471 |
}; |
| 472 |
|
| 473 |
&cp1_gpio2 { |
| 474 |
status = "okay"; |
| 475 |
}; |
| 476 |
|
| 477 |
&cp1_i2c1 { |
| 478 |
/* |
| 479 |
* Routed to SFP. |
| 480 |
* Limit to 100kHz for compatibility with SFP modules, |
| 481 |
* featuring AT24C01A/02/04 at addresses 0x50/0x51. |
| 482 |
*/ |
| 483 |
clock-frequency = <100000>; |
| 484 |
pinctrl-0 = <&cp1_i2c1_pins>; |
| 485 |
pinctrl-names = "default"; |
| 486 |
status = "okay"; |
| 487 |
}; |
| 488 |
|
| 489 |
&cp1_mdio { |
| 490 |
pinctrl-0 = <&cp1_mdio_pins>; |
| 491 |
pinctrl-names = "default"; |
| 492 |
status = "okay"; |
| 493 |
|
| 494 |
cp1_phy0: ethernet-phy@0 { |
| 495 |
reg = <0>; |
| 496 |
/* |
| 497 |
* Configure LEDs default behaviour: |
| 498 |
* - LED[0]: link is 1000Mbps: On (yellow) |
| 499 |
* - LED[1]: link/activity: On/blink (green) |
| 500 |
* - LED[2]: high impedance (floating) |
| 501 |
*/ |
| 502 |
marvell,reg-init = <3 16 0xf000 0x0a17>; |
| 503 |
|
| 504 |
leds { |
| 505 |
#address-cells = <1>; |
| 506 |
#size-cells = <0>; |
| 507 |
|
| 508 |
led@0 { |
| 509 |
reg = <0>; |
| 510 |
color = <LED_COLOR_ID_YELLOW>; |
| 511 |
function = LED_FUNCTION_LAN; |
| 512 |
default-state = "keep"; |
| 513 |
}; |
| 514 |
|
| 515 |
led@1 { |
| 516 |
reg = <1>; |
| 517 |
color = <LED_COLOR_ID_GREEN>; |
| 518 |
function = LED_FUNCTION_LAN; |
| 519 |
default-state = "keep"; |
| 520 |
}; |
| 521 |
}; |
| 522 |
}; |
| 523 |
|
| 524 |
cp1_phy1: ethernet-phy@1 { |
| 525 |
reg = <1>; |
| 526 |
/* |
| 527 |
* Configure LEDs default behaviour: |
| 528 |
* - LED[0]: link is 1000Mbps: On (yellow) |
| 529 |
* - LED[1]: link/activity: On/blink (green) |
| 530 |
* - LED[2]: high impedance (floating) |
| 531 |
*/ |
| 532 |
marvell,reg-init = <3 16 0xf000 0x0a17>; |
| 533 |
|
| 534 |
leds { |
| 535 |
#address-cells = <1>; |
| 536 |
#size-cells = <0>; |
| 537 |
|
| 538 |
led@0 { |
| 539 |
reg = <0>; |
| 540 |
color = <LED_COLOR_ID_YELLOW>; |
| 541 |
function = LED_FUNCTION_LAN; |
| 542 |
default-state = "keep"; |
| 543 |
}; |
| 544 |
|
| 545 |
led@1 { |
| 546 |
reg = <1>; |
| 547 |
color = <LED_COLOR_ID_GREEN>; |
| 548 |
function = LED_FUNCTION_LAN; |
| 549 |
default-state = "keep"; |
| 550 |
}; |
| 551 |
}; |
| 552 |
}; |
| 553 |
}; |
| 554 |
|
| 555 |
/* SRDS #0 - M.2 (J30) */ |
| 556 |
&cp1_pcie0 { |
| 557 |
num-lanes = <1>; |
| 558 |
phys = <&cp1_comphy0 0>; |
| 559 |
status = "okay"; |
| 560 |
}; |
| 561 |
|
| 562 |
&cp1_rtc { |
| 563 |
status = "disabled"; |
| 564 |
}; |
| 565 |
|
| 566 |
/* SRDS #1 - SATA on M.2 (J44) */ |
| 567 |
&cp1_sata0 { |
| 568 |
status = "okay"; |
| 569 |
|
| 570 |
/* only port 0 is available */ |
| 571 |
sata-port@0 { |
| 572 |
phys = <&cp1_comphy1 0>; |
| 573 |
status = "okay"; |
| 574 |
}; |
| 575 |
}; |
| 576 |
|
| 577 |
&cp1_syscon0 { |
| 578 |
cp1_pinctrl: pinctrl { |
| 579 |
compatible = "marvell,cp115-standalone-pinctrl"; |
| 580 |
pinctrl-0 = <&cp1_m2_1_shutdown_pins &cp1_m2_2_shutdown_pins>; |
| 581 |
pinctrl-names = "default"; |
| 582 |
|
| 583 |
cp1_i2c1_pins: cp0-i2c1-pins { |
| 584 |
marvell,pins = "mpp35", "mpp36"; |
| 585 |
marvell,function = "i2c1"; |
| 586 |
}; |
| 587 |
|
| 588 |
cp1_led_pins: cp1-led-pins { |
| 589 |
marvell,pins = "mpp54", "mpp55"; |
| 590 |
marvell,function = "gpio"; |
| 591 |
}; |
| 592 |
|
| 593 |
cp1_m2_1_shutdown_pins: cp1-m2-1-shutdown-pins { |
| 594 |
marvell,pins = "mpp29"; |
| 595 |
marvell,function = "gpio"; |
| 596 |
}; |
| 597 |
|
| 598 |
cp1_m2_2_shutdown_pins: cp1-m2-2-shutdown-pins { |
| 599 |
marvell,pins = "mpp30"; |
| 600 |
marvell,function = "gpio"; |
| 601 |
}; |
| 602 |
|
| 603 |
cp1_mdio_pins: cp1-mdio-pins { |
| 604 |
marvell,pins = "mpp37", "mpp38"; |
| 605 |
marvell,function = "ge"; |
| 606 |
}; |
| 607 |
|
| 608 |
cp1_rtc_pins: cp1-rtc-pins { |
| 609 |
marvell,pins = "mpp12", "mpp13"; |
| 610 |
marvell,function = "gpio"; |
| 611 |
}; |
| 612 |
|
| 613 |
cp1_sfp1_pins: cp1-sfp1-pins { |
| 614 |
marvell,pins = "mpp33", "mpp34", "mpp49", "mpp50"; |
| 615 |
marvell,function = "gpio"; |
| 616 |
}; |
| 617 |
}; |
| 618 |
}; |
| 619 |
|
| 620 |
/* |
| 621 |
* SRDS #2 - USB-3.0 Host to M.2 (J44) |
| 622 |
* USB-2.0 Host to M.2 (J30) |
| 623 |
*/ |
| 624 |
&cp1_usb3_0 { |
| 625 |
phys = <&cp1_comphy2 0>, <&cp1_utmi0>; |
| 626 |
phy-names = "comphy", "utmi"; |
| 627 |
dr_mode = "host"; |
| 628 |
status = "okay"; |
| 629 |
}; |
| 630 |
|
| 631 |
/* USB-2.0 Host to M.2 (J44) */ |
| 632 |
&cp1_usb3_1 { |
| 633 |
phys = <&cp1_utmi1>; |
| 634 |
phy-names = "utmi"; |
| 635 |
dr_mode = "host"; |
| 636 |
status = "okay"; |
| 637 |
}; |
| 638 |
|
| 639 |
&cp1_utmi { |
| 640 |
status = "okay"; |
| 641 |
}; |