ramips: mt7621: nix mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_dlink_dap-1522-a1.dts
1 #include "rt2880.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
8 model = "D-Link DAP-1522 A1";
9
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 flash@bc400000 {
18 compatible = "cfi-flash";
19 reg = <0xbc400000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "uboot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 factory: partition@30000 {
35 label = "factory";
36 reg = <0x30000 0x10000>;
37 read-only;
38
39 nvmem-layout {
40 compatible = "fixed-layout";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 eeprom_factory_2000: eeprom@2000 {
45 reg = <0x2000 0x200>;
46 };
47
48 macaddr_factory_2004: macaddr@2004 {
49 reg = <0x2004 0x6>;
50 };
51 };
52 };
53
54 partition@40000 {
55 compatible = "wrg";
56 label = "firmware";
57 reg = <0x40000 0x3a0000>;
58 };
59 };
60 };
61
62 rtl8366s {
63 compatible = "realtek,rtl8366s";
64 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
65 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
66 };
67
68 keys {
69 compatible = "gpio-keys-polled";
70 poll-interval = <100>;
71
72 reset {
73 label = "reset";
74 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
76 };
77
78 wps {
79 label = "wps";
80 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83
84 ap {
85 label = "ap";
86 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
87 linux,code = <BTN_0>;
88 linux,input-type = <EV_SW>;
89 };
90
91 bridge {
92 label = "bridge";
93 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
94 linux,code = <BTN_1>;
95 linux,input-type = <EV_SW>;
96 };
97 };
98
99 leds {
100 compatible = "gpio-leds";
101
102 wps {
103 label = "blue:wps";
104 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
105 };
106
107 ap {
108 label = "blue:ap";
109 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
110 };
111
112 sta {
113 label = "red:sta";
114 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
115 };
116
117 led_status: status {
118 label = "blue:status";
119 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
120 };
121 };
122 };
123
124 &gpio2 {
125 status = "okay";
126 };
127
128 &state_default {
129 gpio {
130 groups = "i2c", "uartlite", "pci";
131 function = "gpio";
132 };
133 };
134
135 &ethernet {
136 status = "okay";
137 nvmem-cells = <&macaddr_factory_2004>;
138 nvmem-cell-names = "mac-address";
139
140 port@0 {
141 mediatek,fixed-link = <1000 1 1 1>;
142 };
143
144 mdio-bus {
145 status = "okay";
146
147 phy0: ethernet-phy@0 {
148 phy-mode = "mii";
149 reg = <0>;
150 };
151 };
152 };
153
154 &wmac {
155 nvmem-cells = <&eeprom_factory_2000>;
156 nvmem-cell-names = "eeprom";
157 };