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