mvebu: add support for Fortinet FortiGate 30E
[openwrt/openwrt.git] / target / linux / mvebu / files / arch / arm / boot / dts / armada-385-fortinet-fg-50e.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 50E";
7 compatible = "fortinet,fg-50e", "marvell,armada385", "marvell,armada380";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x00000000 0x80000000>; /* 2GB */
12 };
13 };
14
15 &gpio_leds {
16 led-14 {
17 label = "green:speed_wan1";
18 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
19 color = <LED_COLOR_ID_GREEN>;
20 linux,default-trigger = "f1072004.mdio-mii:00:1Gbps";
21 };
22
23 led-15 {
24 label = "green:speed_wan2";
25 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
26 color = <LED_COLOR_ID_GREEN>;
27 linux,default-trigger = "f1072004.mdio-mii:01:1Gbps";
28 };
29
30 led-16 {
31 label = "amber:speed_lan5";
32 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
33 color = <LED_COLOR_ID_AMBER>;
34 linux,default-trigger = "mv88e6xxx-1:00:100Mbps";
35 };
36
37 led-17 {
38 label = "green:speed_lan5";
39 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
40 color = <LED_COLOR_ID_GREEN>;
41 linux,default-trigger = "mv88e6xxx-1:00:1Gbps";
42 };
43 };
44
45 &pinctrl {
46 pmx_phy_switch_pins: phy-switch-pins {
47 marvell,pins = "mpp19", "mpp20", "mpp23", "mpp34", "mpp41";
48 marvell,function = "gpio";
49 };
50 };
51
52 &eth1 {
53 status = "okay";
54
55 phy-handle = <&ethphy0>;
56 phy-connection-type = "sgmii";
57 buffer-manager = <&bm>;
58 bm,pool-long = <2>;
59 nvmem-cells = <&macaddr_bdinfo_d880>;
60 nvmem-cell-names = "mac-address";
61 mac-address-increment = <1>;
62 };
63
64 &eth2 {
65 status = "okay";
66
67 phy-handle = <&ethphy1>;
68 phy-connection-type = "sgmii";
69 buffer-manager = <&bm>;
70 bm,pool-long = <3>;
71 nvmem-cells = <&macaddr_bdinfo_d880>;
72 nvmem-cell-names = "mac-address";
73 mac-address-increment = <2>;
74 };
75
76 &mdio {
77 pinctrl-names = "default";
78 pinctrl-0 = <&mdio_pins>, <&pmx_phy_switch_pins>;
79
80 /* Marvell 88E1512 */
81 ethphy0: ethernet-phy@0 {
82 compatible = "ethernet-phy-id0141,0dd1",
83 "ethernet-phy-ieee802.3-c22";
84 reg = <0>;
85 interrupt-parent = <&gpio0>;
86 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
87 reset-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
88 reset-assert-us = <10000>;
89 reset-deassert-us = <10000>;
90 /*
91 * LINK/ACT (Green): LED[0], Active Low
92 * SPEED 100M (Amber): LED[1], Active High
93 */
94 marvell,reg-init = <3 16 0 0x71>,
95 <3 17 0 0x4>;
96 };
97
98 /* Marvell 88E1512 */
99 ethphy1: ethernet-phy@1 {
100 compatible = "ethernet-phy-id0141,0dd1",
101 "ethernet-phy-ieee802.3-c22";
102 reg = <1>;
103 interrupt-parent = <&gpio1>;
104 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
105 reset-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
106 reset-assert-us = <10000>;
107 reset-deassert-us = <10000>;
108 /*
109 * LINK/ACT (Green): LED[0], Active Low
110 * SPEED 100M (Amber): LED[1], Active High
111 */
112 marvell,reg-init = <3 16 0 0x71>,
113 <3 17 0 0x4>;
114 };
115
116 /* Marvell 88E6176 */
117 switch@2 {
118 compatible = "marvell,mv88e6085";
119 reg = <0x2>;
120 reset-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
121
122 ports {
123 #address-cells = <1>;
124 #size-cells = <0>;
125
126 port@0 {
127 reg = <0>;
128 label = "lan5";
129 nvmem-cells = <&macaddr_bdinfo_d880>;
130 nvmem-cell-names = "mac-address";
131 mac-address-increment = <7>;
132 };
133
134 port@1 {
135 reg = <1>;
136 label = "lan4";
137 nvmem-cells = <&macaddr_bdinfo_d880>;
138 nvmem-cell-names = "mac-address";
139 mac-address-increment = <6>;
140 };
141
142 port@2 {
143 reg = <2>;
144 label = "lan3";
145 nvmem-cells = <&macaddr_bdinfo_d880>;
146 nvmem-cell-names = "mac-address";
147 mac-address-increment = <5>;
148 };
149
150 port@3 {
151 reg = <3>;
152 label = "lan2";
153 nvmem-cells = <&macaddr_bdinfo_d880>;
154 nvmem-cell-names = "mac-address";
155 mac-address-increment = <4>;
156 };
157
158 port@4 {
159 reg = <4>;
160 label = "lan1";
161 nvmem-cells = <&macaddr_bdinfo_d880>;
162 nvmem-cell-names = "mac-address";
163 mac-address-increment = <3>;
164 };
165
166 port@6 {
167 reg = <6>;
168 ethernet = <&eth0>;
169 phy-connection-type = "rgmii-id";
170
171 fixed-link {
172 speed = <1000>;
173 full-duplex;
174 };
175 };
176 };
177 };
178 };