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