dbee9ad083657c75a3cdc42ca4c369eaa5cd9089
[15.05/openwrt.git] / target / linux / ramips / dts / WMR300.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 = "mx25l6405d";
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                 ralink,port-map = "wllll";
53         };
54
55         pinctrl {
56                 state_default: pinctrl0 {
57                         default {
58                                 ralink,group = "i2c", "ephy";
59                                 ralink,function = "gpio";
60                         };
61                 };
62         };
63
64         gpio-leds {
65                 compatible = "gpio-leds";
66                 aoss1 {
67                         label = "buffalo:red:aoss";
68                         gpios = <&gpio2 1 1>;
69                 };
70                 aoss2 {
71                         label = "buffalo:green:aoss";
72                         gpios = <&gpio2 2 1>;
73                 };
74                 power {
75                         label = "buffalo:green:status";
76                         gpios = <&gpio2 4 1>;
77                 };
78         };
79
80         gpio-keys-polled {
81                 compatible = "gpio-keys-polled";
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84                 poll-interval = <20>;
85                 reset {
86                         label = "reset";
87                         gpios = <&gpio0 1 1>;
88                         linux,code = <0x198>;
89                 };
90                 aoss {
91                         label = "aoss";
92                         gpios = <&gpio0 2 1>;
93                         linux,code = <0x211>;
94                 };
95         };
96 };