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