kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_buffalo_wmr-300.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
10         model = "Buffalo WMR-300";
11
12         aliases {
13                 led-boot = &led_status;
14                 led-failsafe = &led_status;
15                 led-running = &led_status;
16                 led-upgrade = &led_status;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 aoss1 {
23                         label = "wmr-300:red:aoss";
24                         gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
25                 };
26
27                 aoss2 {
28                         label = "wmr-300:green:aoss";
29                         gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
30                 };
31
32                 led_status: status {
33                         label = "wmr-300:green:status";
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         m25p80@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                         factory: partition@40000 {
85                                 label = "factory";
86                                 reg = <0x40000 0x10000>;
87                                 read-only;
88                         };
89
90                         partition@50000 {
91                                 compatible = "denx,uimage";
92                                 label = "firmware";
93                                 reg = <0x50000 0x7b0000>;
94                         };
95                 };
96         };
97 };
98
99 &ethernet {
100         mtd-mac-address = <&factory 0x4>;
101         mediatek,portmap = "wllll";
102 };
103
104 &wmac {
105         ralink,mtd-eeprom = <&factory 0>;
106 };
107
108 &state_default {
109         default {
110                 groups = "i2c", "ephy";
111                 function = "gpio";
112         };
113 };