ramips: select kmod-rt2800-soc by default (if available)
[openwrt.git] / target / linux / ramips / dts / DIR-610-A1.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "DIR-610-A1", "ralink,rt5350-soc";
7         model = "D-Link DIR-610 A1";
8
9         palmbus@10000000 {
10                 spi@b00 {
11                         status = "okay";
12                         m25p80@0 {
13                                 #address-cells = <1>;
14                                 #size-cells = <1>;
15                                 compatible = "f25l32pa", "m25p80";
16                                 reg = <0 0>;
17                                 linux,modalias = "m25p80";
18                                 spi-max-frequency = <10000000>;
19
20                                 partition@0 {
21                                         label = "u-boot";
22                                         reg = <0x0 0x30000>;
23                                         read-only;
24                                 };
25
26                                 devdata: partition@30000 {
27                                         label = "devdata";
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 0x3b0000>;
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                 };
53         };
54
55         esw@10110000 {
56                 status = "okay";
57                 ralink,portmap = <0x2f>;
58                 ralink,led_polarity = <0x17>;
59         };
60
61         wmac@10180000 {
62                 status = "okay";
63                 ralink,led-polarity = <1>;
64                 ralink,mtd-eeprom = <&devdata 16384>;
65         };
66
67         gpio-leds {
68                 compatible = "gpio-leds";
69                 status {
70                         label = "d-link:green:status";
71                         gpios = <&gpio0 9 1>;
72                 };
73                 wps {
74                         label = "d-link:green:wps";
75                         gpios = <&gpio0 13 1>;
76                 };
77         };
78
79         gpio-keys-polled {
80                 gpio-keys-polled {
81                 compatible = "gpio-keys-polled";
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84                 poll-interval = <20>;
85                         reset {
86                                 label = "reset";
87                                 gpios = <&gpio0 10 1>;
88                                 linux,code = <0x198>;
89                         };
90                         wps {
91                                 label = "wps";
92                                 gpios = <&gpio0 0 1>;
93                                 linux,code = <0x211>;
94                         };
95                 };
96         };
97 };