kernel: bump 4.9 to 4.9.65
[oweals/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         pci@440000 {
15                 status = "ok";
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                 #address-cells = <1>;
59                 #size-cells = <0>;
60                 poll-interval = <100>;
61
62                 wps {
63                         label = "wps";
64                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
65                         linux,code = <KEY_WPS_BUTTON>;
66                 };
67
68                 router {
69                         label = "router_switch";
70                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
71                         linux,code = <BTN_0>;
72                 };
73
74                 reset {
75                         label = "reset";
76                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
77                         linux,code = <KEY_RESTART>;
78                 };
79         };
80
81         gpio-leds {
82                 compatible = "gpio-leds";
83
84                 router {
85                         label = "wzr-agl300nh:green:router";
86                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
87                 };
88
89                 diag {
90                         label = "wzr-agl300nh:red:diag";
91                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
92                 };
93
94                 security_g {
95                         label = "wzr-agl300nh:orange:security_g";
96                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
97                 };
98
99                 security_n {
100                         label = "wzr-agl300nh:orange:security_n";
101                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
102                 };
103         };
104 };
105
106 &gpio0 {
107         status = "okay";
108 };
109
110 &pinctrl {
111         state_default: pinctrl0 {
112                 gpio {
113                         ralink,group = "i2c", "uartlite", "mdio";
114                         ralink,function = "gpio";
115                 };
116         };
117 };
118
119 &ethernet {
120         status = "okay";
121         mtd-mac-address = <&factory 0x4>;
122
123         port@0 {
124                 mediatek,fixed-link = <1000 1 1 1>;
125         };
126
127         mdio-bus {
128                 status = "okay";
129
130                 phy0: ethernet-phy@0 {
131                         phy-mode = "mii";
132                         reg = <0>;
133                 };
134         };
135 };
136
137 &wmac {
138         ralink,mtd-eeprom = <&factory 0>;
139 };