Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / DIR-615-D.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "DIR-615-D", "ralink,rt3050-soc";
9         model = "D-Link DIR-615 D";
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                 devdata: partition@30000 {
26                         label = "devdata";
27                         reg = <0x30000 0x10000>;
28                         read-only;
29                 };
30
31                 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-keys-polled {
44                 compatible = "gpio-keys-polled";
45                 #address-cells = <1>;
46                 #size-cells = <0>;
47                 poll-interval = <20>;
48
49                 reset {
50                         label = "reset";
51                         gpios = <&gpio0 10 1>;
52                         linux,code = <KEY_RESTART>;
53                 };
54
55                 wps {
56                         label = "wps";
57                         gpios = <&gpio0 0 1>;
58                         linux,code = <KEY_WPS_BUTTON>;
59                 };
60         };
61
62         gpio-leds {
63                 compatible = "gpio-leds";
64
65                 status {
66                         label = "dir-615-d:amber:status";
67                         gpios = <&gpio0 8 1>;
68                 };
69
70                 status2 {
71                         label = "dir-615-d:green:status";
72                         gpios = <&gpio0 9 1>;
73                 };
74
75                 wan {
76                         label = "dir-615-d:amber:wan";
77                         gpios = <&gpio0 14 1>;
78                 };
79
80                 wan2 {
81                         label = "dir-615-d:green:wan";
82                         gpios = <&gpio0 12 1>;
83                 };
84
85                 wps {
86                         label = "dir-615-d:blue:wps";
87                         gpios = <&gpio0 13 1>;
88                 };
89         };
90 };
91
92 &esw {
93         mediatek,portmap = <0x2f>;
94 };
95
96 &wmac {
97         ralink,mtd-eeprom = <&devdata 0x4000>;
98 };
99
100 &pinctrl {
101         state_default: pinctrl0 {
102                 gpio {
103                         ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
104                         ralink,function = "gpio";
105                 };
106         };
107 };
108
109