ramips: mt7621: nix mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_gehua_ghl-r-001.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "gehua,ghl-r-001", "mediatek,mt7621-soc";
10 model = "GeHua GHL-R-001";
11
12 leds {
13 compatible = "gpio-leds";
14
15 internet {
16 label = "blue:internet";
17 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
18 };
19
20 usb {
21 label = "blue:usb";
22 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
23 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
24 linux,default-trigger = "usbport";
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 reset {
32 label = "reset";
33 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &uartlite3 {
40 status = "okay";
41 };
42
43 &spi0 {
44 status = "okay";
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <25000000>;
50 broken-flash-reset;
51 m25p,fast-read;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74
75 nvmem-layout {
76 compatible = "fixed-layout";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 eeprom_factory_0: eeprom@0 {
81 reg = <0x0 0x400>;
82 };
83
84 eeprom_factory_8000: eeprom@8000 {
85 reg = <0x8000 0x200>;
86 };
87
88 macaddr_factory_e000: macaddr@e000 {
89 compatible = "mac-base";
90 reg = <0xe000 0x6>;
91 #nvmem-cell-cells = <1>;
92 };
93 };
94 };
95
96 partition@50000 {
97 compatible = "denx,uimage";
98 label = "firmware";
99 reg = <0x50000 0x1fb0000>;
100 };
101 };
102 };
103 };
104
105 &pcie {
106 status = "okay";
107 };
108
109 &pcie0 {
110 wifi@0,0 {
111 reg = <0x0000 0 0 0 0>;
112 nvmem-cells = <&eeprom_factory_0>;
113 nvmem-cell-names = "eeprom";
114 };
115 };
116
117 &pcie1 {
118 wifi@0,0 {
119 reg = <0x0000 0 0 0 0>;
120 nvmem-cells = <&eeprom_factory_8000>;
121 nvmem-cell-names = "eeprom";
122 ieee80211-freq-limit = <5000000 6000000>;
123
124 led {
125 led-sources = <2>;
126 led-active-low;
127 };
128 };
129 };
130
131 &gmac0 {
132 nvmem-cells = <&macaddr_factory_e000 0>;
133 nvmem-cell-names = "mac-address";
134 };
135
136 &gmac1 {
137 status = "okay";
138 label = "wan";
139 phy-handle = <&ethphy4>;
140
141 nvmem-cells = <&macaddr_factory_e000 1>;
142 nvmem-cell-names = "mac-address";
143 };
144
145 &mdio {
146 ethphy4: ethernet-phy@4 {
147 reg = <4>;
148 };
149 };
150
151 &switch0 {
152 ports {
153 port@0 {
154 status = "okay";
155 label = "lan1";
156 };
157
158 port@1 {
159 status = "okay";
160 label = "lan2";
161 };
162
163 port@2 {
164 status = "okay";
165 label = "lan3";
166 };
167 };
168 };
169
170 &state_default {
171 gpio {
172 groups = "jtag", "wdt";
173 function = "gpio";
174 };
175 };