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