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