Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / AR670W.dts
1 /dts-v1/;
2
3 /include/ "rt2880.dtsi"
4
5 / {
6         compatible = "AR670W", "ralink,rt2880-soc";
7         model = "Airlink101 AR670W";
8
9         palmbus@300000 {
10                 gpio0: gpio@600 {
11                         status = "okay";
12                 };
13         };
14
15         pinctrl {
16                 state_default: pinctrl0 {
17                         gpio {
18                                 ralink,group = "i2c", "spi", "uartlite";
19                                 ralink,function = "gpio";
20                         };
21                 };
22         };
23
24         ethernet@400000 {
25                 status = "okay";
26                 mtd-mac-address = <&factory 0x2004>;
27
28                 port@0 {
29                         phy-handle = <&phy0>;
30                         phy-mode = "mii";
31                 };
32
33                 mdio-bus {
34                         status = "okay";
35                         phy0: ethernet-phy@0 {
36                                 phy-mode = "mii";
37                                 reg = <0>;
38                         };
39                 };
40         };
41
42         wmac@480000 {
43                 status = "okay";
44                 ralink,mtd-eeprom = <&factory 0x2000>;
45         };
46
47         cfi@bdc00000 {
48                 compatible = "cfi-flash";
49                 reg = <0xbc400000 0x800000>;
50
51                 bank-width = <2>;
52                 #address-cells = <1>;
53                 #size-cells = <1>;
54
55                 u-boot@0 {
56                         reg = <0x0 0x30000>;
57                         label = "u-boot";
58                         read-only;
59                 };
60
61                 factory: factory@30000 {
62                         reg = <0x30000 0x10000>;
63                         label = "factory";
64                         read-only;
65                 };
66
67                 firmware@40000 {
68                         reg = <0x40000 0x3c0000>;
69                         label = "firmware";
70                 };
71         };
72
73         gpio-leds {
74                 compatible = "gpio-leds";
75
76                 status {
77                         label = "ar670w:green:power";
78                         gpios = <&gpio0 7 1>;
79                 };
80
81                 wpsblue {
82                         label = "ar670w:blue:wps";
83                         gpios = <&gpio0 13 1>;
84                 };
85         };
86
87         gpio-keys-polled {
88                 compatible = "gpio-keys-polled";
89                 #address-cells = <1>;
90                 #size-cells = <0>;
91                 poll-interval = <100>;
92                 wps {
93                         label = "wps";
94                         gpios = <&gpio0 0 1>;
95                         linux,code = <0x211>;
96                 };
97                 reset {
98                         label = "reset";
99                         gpios = <&gpio0 9 1>;
100                         linux,code = <0x198>;
101                 };
102         };
103 };