ramips: Add support for the NixCore X1 Module
[openwrt/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 cfi@1f000000 {
12 compatible = "cfi-flash";
13 reg = <0x1f000000 0x800000>;
14 bank-width = <2>;
15 device-width = <2>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 partition@0 {
20 label = "uboot";
21 reg = <0x0 0x30000>;
22 read-only;
23 };
24
25 partition@30000 {
26 label = "uboot-env";
27 reg = <0x30000 0x10000>;
28 read-only;
29 };
30
31 factory: partition@40000 {
32 label = "factory";
33 reg = <0x40000 0x10000>;
34 read-only;
35 };
36
37 partition@50000 {
38 label = "linux";
39 reg = <0x50000 0x3b0000>;
40 };
41 };
42
43 gpio-keys-polled {
44 compatible = "gpio-keys-polled";
45 #address-cells = <1>;
46 #size-cells = <0>;
47 poll-interval = <100>;
48
49 wps {
50 label = "wps";
51 gpios = <&gpio0 0 1>;
52 linux,code = <0x211>;
53 };
54
55 bandwidth {
56 label = "bandwidth";
57 gpios = <&gpio0 8 0>;
58 linux,code = <0x198>;
59 };
60
61 reset {
62 label = "reset";
63 gpios = <&gpio0 9 1>;
64 linux,code = <0x198>;
65 };
66 };
67
68 gpio-leds {
69 compatible = "gpio-leds";
70
71 diag {
72 label = "wli-tx4-ag300n:red:diag";
73 gpios = <&gpio0 10 1>;
74 };
75
76 power {
77 label = "wli-tx4-ag300n:blue:power";
78 gpios = <&gpio0 12 1>;
79 };
80
81 security {
82 label = "wli-tx4-ag300n:blue:security";
83 gpios = <&gpio0 13 1>;
84 };
85 };
86 };
87
88 &gpio0 {
89 status = "okay";
90 };
91
92 &ethernet {
93 status = "okay";
94 mtd-mac-address = <&factory 0x4>;
95
96 port@0 {
97 mediatek,fixed-link = <1000 1 1 1>;
98 };
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0>;
103 };