ramips: removing unnecessary compatibility for TP-Link Archer C2 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_netgear_wn3x00rp.dtsi
1 /* This file is released into the public domain */
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_power_green: power_g {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
40 default-state = "on";
41 };
42
43 power_r {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_RED>;
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
47 };
48
49 client_g {
50 label = "green:client";
51 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
52 };
53
54 client_r {
55 label = "red:client";
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57 };
58
59 router_g {
60 label = "green:router";
61 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
62 };
63
64 router_r {
65 label = "red:router";
66 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
67 };
68
69 wps {
70 function = LED_FUNCTION_WPS;
71 color = <LED_COLOR_ID_GREEN>;
72 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
73 };
74
75 l_arrow {
76 label = "blue:leftarrow";
77 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
78 };
79
80 r_arrow {
81 label = "blue:rightarrow";
82 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
83 };
84 };
85 };
86
87 &gpio1 {
88 status = "okay";
89 };
90
91 &spi0 {
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <10000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x30000>;
107 read-only;
108 };
109
110 partition@30000 {
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
113 read-only;
114 };
115
116 partition@40000 {
117 compatible = "denx,uimage";
118 label = "firmware";
119 reg = <0x40000 0x7b0000>;
120 };
121
122 partition@7f0000 {
123 label = "art";
124 reg = <0x7f0000 0x10000>;
125 read-only;
126
127 nvmem-layout {
128 compatible = "fixed-layout";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 macaddr_art_0: macaddr@0 {
133 reg = <0x0 0x6>;
134 };
135
136 macaddr_art_6: macaddr@6 {
137 reg = <0x6 0x6>;
138 };
139
140 eeprom_art_1000: eeprom@1000 {
141 reg = <0x1000 0x200>;
142 };
143 };
144 };
145 };
146 };
147 };
148
149 &ethernet {
150 nvmem-cells = <&macaddr_art_0>;
151 nvmem-cell-names = "mac-address";
152 };
153
154 &wmac {
155 nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
156 nvmem-cell-names = "eeprom", "mac-address";
157 };
158
159 &state_default {
160 default {
161 groups = "i2c", "uartf", "spi refclk";
162 function = "gpio";
163 };
164 };