2f656fd1259e96d9797209eeec2935165a8d1c2f
[openwrt/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 = "mdio", "rgmii1", "i2c", "wled", "uartf";
75 ralink,function = "gpio";
76 };
77 };
78 };
79
80 ethernet@10100000 {
81 mtd-mac-address = <&factory 0x28>;
82 ralink,port-map = "llllw";
83 };
84
85 gsw@10110000 {
86 ralink,port4 = "ephy";
87
88 pinctrl-names = "default";
89 pinctrl-0 = <&ephy_pins>;
90 };
91
92 pcie@10140000 {
93 status = "okay";
94 };
95
96 gpio-keys-polled {
97 compatible = "gpio-keys-polled";
98 #address-cells = <1>;
99 #size-cells = <0>;
100 poll-interval = <20>;
101 reset {
102 label = "reset";
103 gpios = <&gpio0 1 1>;
104 linux,code = <0x100>;
105 };
106 wps {
107 label = "wps";
108 gpios = <&gpio0 2 1>;
109 linux,code = <0x100>;
110 };
111 };
112
113 gpio-leds {
114 compatible = "gpio-leds";
115 power {
116 label = "dlink:green:power";
117 gpios = <&gpio0 9 0>;
118 };
119 internet {
120 label = "asus:yellow:internet";
121 gpios = <&gpio0 12 0>;
122 };
123 status {
124 label = "asus:internet:status";
125 gpios = <&gpio0 13 0>;
126 };
127 };
128 };