ramips: select kmod-rt2800-soc by default (if available)
[openwrt.git] / target / linux / ramips / dts / DIR-810L.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
7         model = "D-Link DIR-810L";
8
9         palmbus@10000000 {
10                 spi@b00 {
11                         status = "okay";
12
13                         m25p80@0 {
14                                 #address-cells = <1>;
15                                 #size-cells = <1>;
16                                 compatible = "mx25l6405d";
17                                 reg = <0 0>;
18                                 linux,modalias = "m25p80";
19                                 spi-max-frequency = <10000000>;
20
21                                 partition@0 {
22                                         label = "u-boot";
23                                         reg = <0x0 0x30000>;
24                                         read-only;
25                                 };
26
27                                 partition@30000 {
28                                         label = "u-boot-env";
29                                         reg = <0x30000 0x10000>;
30                                         read-only;
31                                 };
32
33                                 factory: partition@40000 {
34                                         label = "factory";
35                                         reg = <0x40000 0x10000>;
36                                         read-only;
37                                 };
38
39                                 factory5g: partition@50000 {
40                                         label = "factory5g";
41                                         reg = <0x50000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 partition@60000 {
46                                         label = "Wolf_Config";
47                                         reg = <0x60000 0x10000>;
48                                         read-only;
49                                 };
50
51                                 partition@70000 {
52                                         label = "MyDlink";
53                                         reg = <0x70000 0x80000>;
54                                         read-only;
55                                 };
56
57                                 partition@e0000 {
58                                         label = "Jffs2";
59                                         reg = <0xe0000 0x80000>;
60                                         read-only;
61                                 };
62
63                                 partition@170000 {
64                                         label = "firmware";
65                                         reg = <0x170000 0x690000>;
66                                 };
67                         };
68                 };
69         };
70
71         pinctrl {
72                 state_default: pinctrl0 {
73                         gpio {
74                                 ralink,group = "jtag", "mdio", "rgmii1", "rgmii1", "i2c", "wled", "uartf";
75                                 ralink,function = "gpio";
76                         };
77                 };
78         };
79
80         gsw@10110000 {
81                 ralink,port4 = "ephy";
82
83                 pinctrl-names = "default";
84                 pinctrl-0 = <&ephy_pins>;
85         };
86
87         pcie@10140000 {
88                 status = "okay";
89         };
90
91         gpio-keys-polled {
92                 compatible = "gpio-keys-polled";
93                 #address-cells = <1>;
94                 #size-cells = <0>;
95                 poll-interval = <20>;
96                 reset {
97                         label = "reset";
98                         gpios = <&gpio0 1 1>;
99                         linux,code = <0x100>;
100                 };
101                 wps {
102                         label = "wps";
103                         gpios = <&gpio0 2 1>;
104                         linux,code = <0x100>;
105                 };
106         };
107
108         gpio-leds {
109                 compatible = "gpio-leds";
110                 power {
111                         label = "dlink:green:power";
112                         gpios = <&gpio0 9 0>;
113                 };
114                 internet {
115                         label = "asus:yellow:internet";
116                         gpios = <&gpio0 12 0>;
117                 };
118                 status {
119                         label = "asus:internet:status";
120                         gpios = <&gpio0 13 0>;
121                 };
122         };
123 };