Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / RT-N10-PLUS.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
9         model = "Asus RT-N10+";
10
11         cfi@1f000000 {
12                 compatible = "cfi-flash";
13                 reg = <0x1f000000 0x800000>;
14                 bank-width = <2>;
15                 device-width = <2>;
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 partition@0 {
20                         label = "u-boot";
21                         reg = <0x0 0x30000>;
22                         read-only;
23                 };
24
25                 partition@30000 {
26                         label = "devdata";
27                         reg = <0x30000 0x10000>;
28                         read-only;
29                 };
30
31                 devconf: partition@40000 {
32                         label = "devconf";
33                         reg = <0x40000 0x10000>;
34                         read-only;
35                 };
36
37                 partition@50000 {
38                         label = "firmware";
39                         reg = <0x50000 0x3b0000>;
40                 };
41         };
42
43         gpio-leds {
44                 compatible = "gpio-leds";
45
46                 wps {
47                         label = "rt-n10-plus:green:wps";
48                         gpios = <&gpio0 14 1>;
49                 };
50         };
51
52         gpio-keys-polled {
53                 compatible = "gpio-keys-polled";
54                 #address-cells = <1>;
55                 #size-cells = <0>;
56                 poll-interval = <20>;
57
58                 reset {
59                         label = "reset";
60                         gpios = <&gpio0 10 1>;
61                         linux,code = <KEY_RESTART>;
62                 };
63
64                 wps {
65                         label = "wps";
66                         gpios = <&gpio0 0 1>;
67                         linux,code = <KEY_WPS_BUTTON>;
68                 };
69         };
70 };
71
72 &ethernet {
73         mtd-mac-address = <&devconf 0x4>;
74 };
75
76 &esw {
77         mediatek,portmap = <0x3e>;
78 };
79
80 &wmac {
81         ralink,mtd-eeprom = <&devconf 0>;
82 };