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