Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / CF-WR800N.dts
1 /dts-v1/;
2
3 /include/ "mt7620n.dtsi"
4
5 / {
6         compatible = "cf-wr800n", "ralink,mt7620n-soc";
7         model = "Comfast CF-WR800N";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 gpio0: gpio@600 {
15                         status = "okay";
16                 };
17
18                 gpio1: gpio@638 {
19                         status = "okay";
20                 };
21
22                 gpio2: gpio@660 {
23                         status = "okay";
24                 };
25
26                 gpio3: gpio@688 {
27                         status = "okay";
28                 };
29
30                 spi@b00 {
31                         status = "okay";
32
33                         m25p80@0 {
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36                                 compatible = "mx25l6405d";
37                                 reg = <0 0>;
38                                 linux,modalias = "m25p80", "w25q64";
39                                 spi-max-frequency = <10000000>;
40
41                                 partition@0 {
42                                         label = "u-boot";
43                                         reg = <0x0 0x30000>;
44                                         read-only;
45                                 };
46
47                                 partition@30000 {
48                                         label = "u-boot-env";
49                                         reg = <0x30000 0x10000>;
50                                         read-only;
51                                 };
52
53                                 factory: partition@40000 {
54                                         label = "factory";
55                                         reg = <0x40000 0x10000>;
56                                         read-only;
57                                 };
58
59                                 partition@50000 {
60                                         label = "firmware";
61                                         reg = <0x50000 0x7b0000>;
62                                 };
63                         };
64                 };
65         };
66
67         ethernet@10100000 {
68                 mtd-mac-address = <&factory 0x4>;
69         };
70
71         wmac@10180000 {
72                 ralink,mtd-eeprom = <&factory 0>;
73         };
74
75         pinctrl {
76                 state_default: pinctrl0 {
77                         default {
78                                 ralink,group = "ephy", "wled", "spi refclk", "i2c";
79                                 ralink,function = "gpio";
80                         };
81                 };
82         };
83
84         gpio-leds {
85                 compatible = "gpio-leds";
86
87                 ethernet {
88                         label = "comfast:white:ethernet";
89                         gpios = <&gpio2 4 1>;
90                 };
91
92                 wifi {
93                         label = "comfast:white:wifi";
94                         gpios = <&gpio3 0 1>;
95                 };
96
97                 wps {
98                         label = "comfast:white:wps";
99                         gpios = <&gpio1 15 1>;
100                 };
101         };
102
103         gpio-keys-polled {
104                 compatible = "gpio-keys-polled";
105                 #address-cells = <1>;
106                 #size-cells = <0>;
107                 poll-interval = <20>;
108                 reset {
109                         label = "reset";
110                         gpios = <&gpio0 2 1>;
111                         linux,code = <0x198>;
112                 };
113         };
114 };