ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt.git] / target / linux / ramips / dts / WMR-300.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 / {
6         compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
7         model = "Buffalo WMR-300";
8
9         palmbus@10000000 {
10                 gpio2: gpio@660 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "jedec,spi-nor";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80", "en25q64";
23                                 spi-max-frequency = <10000000>;
24
25                                 partition@0 {
26                                         label = "u-boot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "u-boot-env";
33                                         reg = <0x30000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         label = "factory";
39                                         reg = <0x40000 0x10000>;
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         label = "firmware";
45                                         reg = <0x50000 0x7b0000>;
46                                 };
47                         };
48                 };
49         };
50
51         ethernet@10100000 {
52                 mtd-mac-address = <&factory 0x4>;
53                 mediatek,portmap = "wllll";
54         };
55
56         wmac@10180000 {
57                 ralink,mtd-eeprom = <&factory 0>;
58         };
59
60         pinctrl {
61                 state_default: pinctrl0 {
62                         default {
63                                 ralink,group = "i2c", "ephy";
64                                 ralink,function = "gpio";
65                         };
66                 };
67         };
68
69         gpio-leds {
70                 compatible = "gpio-leds";
71
72                 aoss1 {
73                         label = "wmr-300:red:aoss";
74                         gpios = <&gpio2 1 1>;
75                 };
76
77                 aoss2 {
78                         label = "wmr-300:green:aoss";
79                         gpios = <&gpio2 2 1>;
80                 };
81
82                 power {
83                         label = "wmr-300:green:status";
84                         gpios = <&gpio2 4 1>;
85                 };
86         };
87
88         gpio-keys-polled {
89                 compatible = "gpio-keys-polled";
90                 #address-cells = <1>;
91                 #size-cells = <0>;
92                 poll-interval = <20>;
93
94                 reset {
95                         label = "reset";
96                         gpios = <&gpio0 1 1>;
97                         linux,code = <0x198>;
98                 };
99
100                 aoss {
101                         label = "aoss";
102                         gpios = <&gpio0 2 1>;
103                         linux,code = <0x211>;
104                 };
105         };
106 };