ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 nvmem-layout {
48 compatible = "fixed-layout";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 eeprom_factory_0: eeprom@0 {
53 reg = <0x0 0x200>;
54 };
55
56 macaddr_factory_4: macaddr@4 {
57 reg = <0x4 0x6>;
58 };
59 };
60 };
61
62 partition@50000 {
63 compatible = "denx,uimage";
64 label = "firmware";
65 reg = <0x50000 0x3b0000>;
66 };
67 };
68 };
69
70 rtl8366s {
71 compatible = "realtek,rtl8366s";
72 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
73 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
74 };
75
76 keys {
77 compatible = "gpio-keys-polled";
78 poll-interval = <100>;
79
80 wps {
81 label = "wps";
82 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
84 };
85
86 router {
87 label = "router_switch";
88 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
89 linux,code = <BTN_0>;
90 };
91
92 reset {
93 label = "reset";
94 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
96 };
97 };
98
99 leds {
100 compatible = "gpio-leds";
101
102 led_router: router {
103 label = "green:router";
104 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
105 };
106
107 diag {
108 label = "red:diag";
109 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
110 };
111
112 security_g {
113 label = "orange:security_g";
114 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
115 };
116
117 security_n {
118 label = "orange:security_n";
119 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
120 };
121 };
122 };
123
124 &state_default {
125 gpio {
126 groups = "i2c", "uartlite", "mdio";
127 function = "gpio";
128 };
129 };
130
131 &ethernet {
132 status = "okay";
133 nvmem-cells = <&macaddr_factory_4>;
134 nvmem-cell-names = "mac-address";
135
136 port@0 {
137 mediatek,fixed-link = <1000 1 1 1>;
138 };
139
140 mdio-bus {
141 status = "okay";
142
143 phy0: ethernet-phy@0 {
144 phy-mode = "mii";
145 reg = <0>;
146 };
147 };
148 };
149
150 &pci {
151 status = "okay";
152 };
153
154 &wmac {
155 nvmem-cells = <&eeprom_factory_0>;
156 nvmem-cell-names = "eeprom";
157 };