ramips: fixes XDXRN502J reset button
[openwrt.git] / target / linux / ramips / dts / WLI-TX4-AG300N.dts
1 /dts-v1/;
2
3 /include/ "rt2880.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "WLI-TX4-AG300N", "ralink,rt2880-soc";
9         model = "Buffalo WLI-TX4-AG300N";
10
11         palmbus@300000 {
12                 sysc@0 {
13                         ralink,pinmux = "uartlite";
14                         ralink,uartmux = "gpio";
15                         ralink,wdtmux = <1>;
16                 };
17
18                 gpio0: gpio@600 {
19                         status = "okay";
20                 };
21         };
22
23         cfi@1f000000 {
24                 compatible = "cfi-flash";
25                 reg = <0x1f000000 0x800000>;
26
27                 bank-width = <2>;
28                 device-width = <2>;
29                 #address-cells = <1>;
30                 #size-cells = <1>;
31
32                 partition@0 {
33                         label = "uboot";
34                         reg = <0x0 0x30000>;
35                         read-only;
36                 };
37                 partition@30000 {
38                         label = "uboot-env";
39                         reg = <0x30000 0x10000>;
40                         read-only;
41                 };
42                 factory: partition@40000 {
43                         label = "factory";
44                         reg = <0x40000 0x10000>;
45                         read-only;
46                 };
47                 partition@50000 {
48                         label = "linux";
49                         reg = <0x50000 0x3b0000>;
50                 };
51         };
52
53         ethernet@400000 {
54                 status = "okay";
55                 mtd-mac-address = <&factory 0x4>;
56
57                 port@0 {
58                         ralink,fixed-link = <1000 1 1 1>;
59                 };
60         };
61
62         gpio-keys-polled {
63                 compatible = "gpio-keys-polled";
64                 #address-cells = <1>;
65                 #size-cells = <0>;
66                 poll-interval = <100>;
67                 wps {
68                         label = "wps";
69                         gpios = <&gpio0 0 1>;
70                         linux,code = <0x211>;
71                 };
72                 bandwidth {
73                         label = "bandwidth";
74                         gpios = <&gpio0 8 0>;
75                         linux,code = <0x198>;
76                 };
77                 reset {
78                         label = "reset";
79                         gpios = <&gpio0 9 1>;
80                         linux,code = <0x198>;
81                 };
82         };
83
84         gpio-leds {
85                 compatible = "gpio-leds";
86
87                 diag {
88                         label = "buffalo:red:diag";
89                         gpios = <&gpio0 10 1>;
90                 };
91                 power {
92                         label = "buffalo:blue:power";
93                         gpios = <&gpio0 12 1>;
94                 };
95                 security {
96                         label = "buffalo:blue:security";
97                         gpios = <&gpio0 13 1>;
98                 };
99         };
100 };