mvebu: fix LEDs on Fortinet FortiGate devices
[openwrt/staging/stintel.git] / target / linux / mvebu / files-6.1 / arch / arm / boot / dts / armada-385-fortinet-fg-30e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "armada-385-fortinet-fg-x0e.dtsi"
4
5 / {
6 model = "Fortinet FortiGate 30E";
7 compatible = "fortinet,fg-30e", "marvell,armada385", "marvell,armada380";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x00000000 0x40000000>; /* 1GB */
12 };
13 };
14
15 &gpio_leds {
16 led-14 {
17 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
18 color = <LED_COLOR_ID_AMBER>;
19 function = LED_FUNCTION_SPEED_WAN;
20 linux,default-trigger = "mv88e6xxx-1:00:100Mbps";
21 };
22
23 led-15 {
24 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
25 color = <LED_COLOR_ID_GREEN>;
26 function = LED_FUNCTION_SPEED_WAN;
27 linux,default-trigger = "mv88e6xxx-1:00:1Gbps";
28 };
29 };
30
31 &pinctrl {
32 pmx_switch_pins: switch-pins {
33 marvell,pins = "mpp19";
34 marvell,function = "gpio";
35 };
36 };
37
38 &mdio {
39 pinctrl-names = "default";
40 pinctrl-0 = <&mdio_pins>, <&pmx_switch_pins>;
41
42 /* Marvell 88E6176 */
43 switch@2 {
44 compatible = "marvell,mv88e6085";
45 reg = <0x2>;
46 reset-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
47
48 ports {
49 #address-cells = <1>;
50 #size-cells = <0>;
51
52 port@0 {
53 reg = <0>;
54 label = "wan";
55 nvmem-cells = <&macaddr_bdinfo_d880 1>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 port@1 {
60 reg = <1>;
61 label = "lan4";
62 nvmem-cells = <&macaddr_bdinfo_d880 5>;
63 nvmem-cell-names = "mac-address";
64 };
65
66 port@2 {
67 reg = <2>;
68 label = "lan3";
69 nvmem-cells = <&macaddr_bdinfo_d880 4>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 port@3 {
74 reg = <3>;
75 label = "lan2";
76 nvmem-cells = <&macaddr_bdinfo_d880 3>;
77 nvmem-cell-names = "mac-address";
78 };
79
80 port@4 {
81 reg = <4>;
82 label = "lan1";
83 nvmem-cells = <&macaddr_bdinfo_d880 2>;
84 nvmem-cell-names = "mac-address";
85 };
86
87 port@6 {
88 reg = <6>;
89 ethernet = <&eth0>;
90 phy-connection-type = "rgmii-id";
91
92 fixed-link {
93 speed = <1000>;
94 full-duplex;
95 };
96 };
97 };
98 };
99 };