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