ramips: removing unnecessary compatibility for TP-Link Archer C2 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_buffalo_wmr-300.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
9 model = "Buffalo WMR-300";
10
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 aoss1 {
22 label = "red:aoss";
23 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
24 };
25
26 aoss2 {
27 label = "green:aoss";
28 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
29 };
30
31 led_status: status {
32 function = LED_FUNCTION_STATUS;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46
47 aoss {
48 label = "aoss";
49 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52 };
53 };
54
55 &gpio2 {
56 status = "okay";
57 };
58
59 &spi0 {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <10000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x0 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "u-boot-env";
80 reg = <0x30000 0x10000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88
89 nvmem-layout {
90 compatible = "fixed-layout";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 eeprom_factory_0: eeprom@0 {
95 reg = <0x0 0x200>;
96 };
97
98 macaddr_factory_4: macaddr@4 {
99 reg = <0x4 0x6>;
100 };
101 };
102 };
103
104 partition@50000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x50000 0x7b0000>;
108 };
109 };
110 };
111 };
112
113 &ethernet {
114 nvmem-cells = <&macaddr_factory_4>;
115 nvmem-cell-names = "mac-address";
116
117 mediatek,portmap = "wllll";
118 };
119
120 &wmac {
121 nvmem-cells = <&eeprom_factory_0>;
122 nvmem-cell-names = "eeprom";
123 };
124
125 &state_default {
126 default {
127 groups = "i2c", "ephy";
128 function = "gpio";
129 };
130 };