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