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