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