kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / rt2880_buffalo_wzr-agl300nh.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         #address-cells = <1>;
10         #size-cells = <1>;
11         compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
12         model = "Buffalo WZR-AGL300NH";
13
14         aliases {
15                 led-boot = &led_router;
16                 led-failsafe = &led_router;
17                 led-running = &led_router;
18                 led-upgrade = &led_router;
19         };
20
21         cfi@1f000000 {
22                 compatible = "cfi-flash";
23                 reg = <0x1f000000 0x800000>;
24                 bank-width = <2>;
25                 device-width = <2>;
26
27                 partitions {
28                         compatible = "fixed-partitions";
29                         #address-cells = <1>;
30                         #size-cells = <1>;
31
32                         partition@0 {
33                                 label = "uboot";
34                                 reg = <0x0 0x30000>;
35                                 read-only;
36                         };
37
38                         partition@30000 {
39                                 label = "uboot-env";
40                                 reg = <0x30000 0x10000>;
41                                 read-only;
42                         };
43
44                         factory: partition@40000 {
45                                 label = "factory";
46                                 reg = <0x40000 0x10000>;
47                                 read-only;
48                         };
49
50                         partition@50000 {
51                                 compatible = "denx,uimage";
52                                 label = "firmware";
53                                 reg = <0x50000 0x3b0000>;
54                         };
55                 };
56         };
57
58         rtl8366s {
59                 compatible = "realtek,rtl8366s";
60                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
61                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
62         };
63
64         keys {
65                 compatible = "gpio-keys-polled";
66                 poll-interval = <100>;
67
68                 wps {
69                         label = "wps";
70                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
71                         linux,code = <KEY_WPS_BUTTON>;
72                 };
73
74                 router {
75                         label = "router_switch";
76                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
77                         linux,code = <BTN_0>;
78                 };
79
80                 reset {
81                         label = "reset";
82                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
83                         linux,code = <KEY_RESTART>;
84                 };
85         };
86
87         leds {
88                 compatible = "gpio-leds";
89
90                 led_router: router {
91                         label = "wzr-agl300nh:green:router";
92                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
93                 };
94
95                 diag {
96                         label = "wzr-agl300nh:red:diag";
97                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
98                 };
99
100                 security_g {
101                         label = "wzr-agl300nh:orange:security_g";
102                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
103                 };
104
105                 security_n {
106                         label = "wzr-agl300nh:orange:security_n";
107                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
108                 };
109         };
110 };
111
112 &gpio0 {
113         status = "okay";
114 };
115
116 &state_default {
117         gpio {
118                 groups = "i2c", "uartlite", "mdio";
119                 function = "gpio";
120         };
121 };
122
123 &ethernet {
124         status = "okay";
125         mtd-mac-address = <&factory 0x4>;
126
127         port@0 {
128                 mediatek,fixed-link = <1000 1 1 1>;
129         };
130
131         mdio-bus {
132                 status = "okay";
133
134                 phy0: ethernet-phy@0 {
135                         phy-mode = "mii";
136                         reg = <0>;
137                 };
138         };
139 };
140
141 &pci {
142         status = "okay";
143 };
144
145 &wmac {
146         ralink,mtd-eeprom = <&factory 0>;
147 };