ramips: soc wmac eeprom cleanup
[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         wmac@480000 {
63                 ralink,mtd-eeprom = <&factory 0>;
64         };
65
66         gpio-keys-polled {
67                 compatible = "gpio-keys-polled";
68                 #address-cells = <1>;
69                 #size-cells = <0>;
70                 poll-interval = <100>;
71                 wps {
72                         label = "wps";
73                         gpios = <&gpio0 0 1>;
74                         linux,code = <0x211>;
75                 };
76                 bandwidth {
77                         label = "bandwidth";
78                         gpios = <&gpio0 8 0>;
79                         linux,code = <0x198>;
80                 };
81                 reset {
82                         label = "reset";
83                         gpios = <&gpio0 9 1>;
84                         linux,code = <0x198>;
85                 };
86         };
87
88         gpio-leds {
89                 compatible = "gpio-leds";
90
91                 diag {
92                         label = "buffalo:red:diag";
93                         gpios = <&gpio0 10 1>;
94                 };
95                 power {
96                         label = "buffalo:blue:power";
97                         gpios = <&gpio0 12 1>;
98                 };
99                 security {
100                         label = "buffalo:blue:security";
101                         gpios = <&gpio0 13 1>;
102                 };
103         };
104 };