Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / AR670W.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "AR670W", "ralink,rt2880-soc";
9         model = "Airlink101 AR670W";
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                 factory: factory@30000 {
25                         reg = <0x30000 0x10000>;
26                         label = "factory";
27                         read-only;
28                 };
29
30                 firmware@40000 {
31                         reg = <0x40000 0x3c0000>;
32                         label = "firmware";
33                 };
34         };
35
36         gpio-leds {
37                 compatible = "gpio-leds";
38
39                 status {
40                         label = "ar670w:green:power";
41                         gpios = <&gpio0 7 1>;
42                 };
43
44                 wpsblue {
45                         label = "ar670w:blue:wps";
46                         gpios = <&gpio0 13 1>;
47                 };
48         };
49
50         gpio-keys-polled {
51                 compatible = "gpio-keys-polled";
52                 #address-cells = <1>;
53                 #size-cells = <0>;
54                 poll-interval = <100>;
55
56                 wps {
57                         label = "wps";
58                         gpios = <&gpio0 0 1>;
59                         linux,code = <KEY_WPS_BUTTON>;
60                 };
61
62                 reset {
63                         label = "reset";
64                         gpios = <&gpio0 9 1>;
65                         linux,code = <KEY_RESTART>;
66                 };
67         };
68 };
69
70 &gpio0 {
71         status = "okay";
72 };
73
74 &pinctrl {
75         state_default: pinctrl0 {
76                 gpio {
77                         ralink,group = "i2c", "spi", "uartlite";
78                         ralink,function = "gpio";
79                 };
80         };
81 };
82
83 &ethernet {
84         status = "okay";
85         mtd-mac-address = <&factory 0x2004>;
86
87         port@0 {
88                 phy-handle = <&phy0>;
89                 phy-mode = "mii";
90         };
91
92         mdio-bus {
93                 status = "okay";
94
95                 phy0: ethernet-phy@0 {
96                         phy-mode = "mii";
97                         reg = <0>;
98                 };
99         };
100 };
101
102 &wmac {
103         status = "okay";
104         ralink,mtd-eeprom = <&factory 0x2000>;
105 };