540c976d2bec8dd921a816188cc38a2d07ab3013
[openwrt/openwrt.git] / target / linux / ramips / dts / AR725W.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "airlink101,ar725w", "ralink,rt2880-soc";
10 model = "Airlink101 AR725W";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 cfi@bdc00000 {
17 compatible = "cfi-flash";
18 reg = <0xbc400000 0x800000>;
19 bank-width = <2>;
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 u-boot@0 {
24 reg = <0x0 0x30000>;
25 label = "u-boot";
26 read-only;
27 };
28
29 u-boot-env@30000 {
30 reg = <0x30000 0x10000>;
31 label = "u-boot-env";
32 };
33
34 factory: factory@40000 {
35 reg = <0x40000 0x10000>;
36 label = "factory";
37 read-only;
38 };
39
40 firmware@50000 {
41 reg = <0x50000 0x3B0000>;
42 label = "firmware";
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48
49 led_power: power {
50 label = "ar725w:green:power";
51 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 wpsred {
55 label = "ar725w:red:wps";
56 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
57 };
58
59 wpsblue {
60 label = "ar725w:blue:wps";
61 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 #address-cells = <1>;
68 #size-cells = <0>;
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 reset {
78 label = "reset";
79 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
81 };
82 };
83 };
84
85 &gpio0 {
86 status = "okay";
87 };
88
89 &pinctrl {
90 state_default: pinctrl0 {
91 gpio {
92 ralink,group = "i2c", "spi", "uartlite";
93 ralink,function = "gpio";
94 };
95 };
96 };
97
98 &ethernet {
99 status = "okay";
100 mtd-mac-address = <&factory 0x4>;
101
102 port@0 {
103 phy-handle = <&phy0>;
104 phy-mode = "mii";
105 };
106
107 mdio-bus {
108 status = "okay";
109
110 phy0: ethernet-phy@0 {
111 phy-mode = "mii";
112 reg = <0>;
113 };
114 };
115 };
116
117 &wmac {
118 status = "okay";
119 ralink,mtd-eeprom = <&factory 0>;
120 };