ramips: select kmod-rt2800-soc by default (if available)
[openwrt.git] / target / linux / ramips / dts / DIR-620-D1.dts
1 /dts-v1/;
2
3 /include/ "rt3352.dtsi"
4
5 / {
6         compatible = "DIR-620-D1", "ralink,rt3352-soc";
7         model = "D-Link DIR-620 D1";
8
9         palmbus@10000000 {
10                 spi@b00 {
11                         status = "okay";
12                         m25p80@0 {
13                                 #address-cells = <1>;
14                                 #size-cells = <1>;
15                                 compatible = "mx25l6405d";
16                                 reg = <0 0>;
17                                 linux,modalias = "m25p80", "mx25l6405d";
18                                 spi-max-frequency = <10000000>;
19
20                                 partition@0 {
21                                         label = "u-boot";
22                                         reg = <0x0 0x30000>;
23                                         read-only;
24                                 };
25
26                                 partition@30000 {
27                                         label = "u-boot-env";
28                                         reg = <0x30000 0x10000>;
29                                         read-only;
30                                 };
31
32                                 factory: partition@40000 {
33                                         label = "factory";
34                                         reg = <0x40000 0x10000>;
35                                         read-only;
36                                 };
37
38                                 partition@50000 {
39                                         label = "firmware";
40                                         reg = <0x50000 0x7b0000>;
41                                 };
42                         };
43                 };
44         };
45
46         pinctrl {
47                 state_default: pinctrl0 {
48                         gpio {
49                                 ralink,group = "i2c", "jtag", "uartf";
50                                 ralink,function = "gpio";
51                         };
52                         rgmii {
53                                 ralink,group = "rgmii";
54                                 ralink,function = "rgmii";
55                         };
56                         mdio {
57                                 ralink,group = "mdio";
58                                 ralink,function = "mdio";
59                         };
60                 };
61         };
62
63         esw@10110000 {
64                 ralink,portmap = <0x2f>;
65         };
66
67         gpio-leds {
68                 compatible = "gpio-leds";
69                 status {
70                         label = "d-link:green:status";
71                         gpios = <&gpio0 9 1>;
72                 };
73                 wifi {
74                         label = "d-link:green:wifi";
75                         gpios = <&gpio0 17 1>;
76                 };
77         };
78
79         gpio-keys-polled {
80                 compatible = "gpio-keys-polled";
81                 #address-cells = <1>;
82                 #size-cells = <0>;
83                 poll-interval = <20>;
84                 reset_wps {
85                         label = "reset_wps";
86                         gpios = <&gpio0 7 1>;
87                         linux,code = <0x198>;
88                 };
89         };
90
91         ehci@101c0000 {
92                 status = "okay";
93         };
94
95         ohci@101c1000 {
96                 status = "okay";
97         };
98 };