octeon: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / octeon / files / arch / mips / boot / dts / cavium-octeon / cn7130_ubnt_edgerouter-e300.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "cn71xx.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,edgerouter-e300", "cavium,cn7130";
10 model = "Ubiquiti EdgeRouter E300 series";
11
12 aliases {
13 /* White + Blinking Blue */
14 led-boot = &led_power_white;
15 /* Blue + Blinking White */
16 led-failsafe = &led_power_blue;
17 /* Constant Blue */
18 led-running = &led_power_blue;
19 /* Blue + Blinking White */
20 led-upgrade = &led_power_blue;
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x00000000>,
26 <0x0 0x10000000>,
27 <0x0 0x20000000>,
28 <0x0 0x30000000>;
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power_blue: power_blue {
35 label = "blue:power";
36 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
37 };
38
39 led_power_white: power_white {
40 label = "white:power";
41 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys-polled";
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
54 };
55 };
56
57 sfp: sfp {
58 compatible = "sff,sfp";
59 i2c-bus = <&twsi0>;
60 /* Pins 12, 13 and 14 gets pulled low when SFP is plugged in */
61 mod-def0-gpio = <&gpio 12 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 &uart0 {
66 status = "okay";
67 };
68
69 &usb0 {
70 status = "okay";
71 };
72
73 &xhci0 {
74 status = "okay";
75 dr_mode = "host";
76 };
77
78 &twsi0 {
79 status = "okay";
80
81 sfp_eeprom@50 {
82 compatible = "at,24c04";
83 reg = <0x50>;
84 };
85
86 sfp_eeprom@51 {
87 compatible = "at,24c04";
88 reg = <0x51>;
89 };
90 };
91
92 &spi {
93 status = "okay";
94
95 flash@0 {
96 #address-cells = <1>;
97 #size-cells = <1>;
98 compatible = "Macronix,mx25l6405d", "spi-flash";
99 reg = <0>;
100 spi-max-frequency = <25000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "boot0";
109 read-only;
110 reg = <0x000000 0x300000>;
111 };
112
113 partition@300000 {
114 label = "dummy";
115 read-only;
116 reg = <0x300000 0x100000>;
117 };
118
119 partition@400000 {
120 label = "eeprom";
121 read-only;
122 reg = <0x400000 0x10000>;
123
124 nvmem-layout {
125 compatible = "fixed-layout";
126 #address-cells = <1>;
127 #size-cells = <1>;
128
129 macaddr_eeprom_0: macaddr@0 {
130 compatible = "mac-base";
131 reg = <0x0 0x6>;
132 #nvmem-cell-cells = <1>;
133 };
134 };
135 };
136 };
137 };
138 };
139
140 &mmc {
141 status = "okay";
142
143 mmc-slot@0 {
144 compatible = "mmc-slot";
145 reg = <0>;
146 non-removable;
147 max-frequency = <26000000>;
148 voltage-ranges = <3300 3300>;
149 bus-width = <8>;
150 };
151 };
152
153 &smi0 {
154 status = "okay";
155
156 phy4: ethernet-phy@4 {
157 device_type = "ethernet-phy";
158 interrupts = <17 8>;
159 interrupt-parent = <&gpio>;
160 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
161 reg = <4>;
162 sfp = <&sfp>;
163 };
164
165 phy5: ethernet-phy@5 {
166 device_type = "ethernet-phy";
167 interrupts = <17 8>;
168 interrupt-parent = <&gpio>;
169 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
170 reg = <5>;
171 };
172
173 phy6: ethernet-phy@6 {
174 device_type = "ethernet-phy";
175 interrupts = <17 8>;
176 interrupt-parent = <&gpio>;
177 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
178 reg = <6>;
179 };
180
181 phy7: ethernet-phy@7 {
182 device_type = "ethernet-phy";
183 interrupts = <17 8>;
184 interrupt-parent = <&gpio>;
185 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
186 reg = <7>;
187 };
188 };
189
190 &pip {
191 status = "okay";
192
193 interface@0 {
194 status = "okay";
195
196 ethernet@1 {
197 label = "lan0";
198 status = "okay";
199 phy-mode = "sgmii";
200 phy-handle = <&phy5>;
201 nvmem-cells = <&macaddr_eeprom_0 1>;
202 nvmem-cell-names = "mac-address";
203 };
204
205 ethernet@2 {
206 label = "lan1";
207 status = "okay";
208 phy-mode = "sgmii";
209 phy-handle = <&phy6>;
210 nvmem-cells = <&macaddr_eeprom_0 2>;
211 nvmem-cell-names = "mac-address";
212 };
213
214 ethernet@3 {
215 label = "lan2";
216 status = "okay";
217 phy-mode = "sgmii";
218 phy-handle = <&phy7>;
219 nvmem-cells = <&macaddr_eeprom_0 3>;
220 nvmem-cell-names = "mac-address";
221 };
222 };
223 };