e02296cd5ae76136dba8ecd45648eb435d34994f
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt2880_buffalo_wli-tx4-ag300n.dts
1 #include "rt2880.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 #address-cells = <1>;
8 #size-cells = <1>;
9 compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
10 model = "Buffalo WLI-TX4-AG300N";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 flash@1f000000 {
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
22 bank-width = <2>;
23 device-width = <2>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "uboot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "uboot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 compatible = "nvmem-cells";
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 #address-cells = <1>;
47 #size-cells = <1>;
48 read-only;
49
50 eeprom_factory_0: eeprom@0 {
51 reg = <0x0 0x200>;
52 };
53
54 macaddr_factory_4: macaddr@4 {
55 reg = <0x4 0x6>;
56 };
57 };
58
59 partition@50000 {
60 compatible = "denx,uimage";
61 label = "firmware";
62 reg = <0x50000 0x3b0000>;
63 };
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys-polled";
69 poll-interval = <100>;
70
71 wps {
72 label = "wps";
73 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
75 };
76
77 bandwidth {
78 label = "bandwidth";
79 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
80 linux,code = <KEY_RESTART>;
81 };
82
83 reset {
84 label = "reset";
85 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
87 };
88 };
89
90 leds {
91 compatible = "gpio-leds";
92
93 diag {
94 label = "red:diag";
95 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
96 };
97
98 led_power: power {
99 label = "blue:power";
100 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
101 };
102
103 security {
104 label = "blue:security";
105 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &ethernet {
111 status = "okay";
112 nvmem-cells = <&macaddr_factory_4>;
113 nvmem-cell-names = "mac-address";
114
115 port@0 {
116 mediatek,fixed-link = <100 1 1 1>;
117 };
118
119 mdio-bus {
120 status = "okay";
121
122 phy0: ethernet-phy@0 {
123 phy-mode = "mii";
124 reg = <0>;
125 };
126 };
127 };
128
129 &wmac {
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 };