ramips: Archer C50v1: fix power led
[openwrt/openwrt.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 spi-max-frequency = <10000000>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 factory: partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76 };
77
78 factory5g: partition@50000 {
79 label = "factory5g";
80 reg = <0x50000 0x10000>;
81 read-only;
82 };
83
84 partition@60000 {
85 label = "Wolf_Config";
86 reg = <0x60000 0x10000>;
87 read-only;
88 };
89
90 partition@70000 {
91 label = "MyDlink";
92 reg = <0x70000 0x80000>;
93 read-only;
94 };
95
96 partition@e0000 {
97 label = "Jffs2";
98 reg = <0xe0000 0x80000>;
99 read-only;
100 };
101
102 partition@170000 {
103 label = "firmware";
104 reg = <0x170000 0x690000>;
105 };
106 };
107 };
108
109 &pinctrl {
110 state_default: pinctrl0 {
111 gpio {
112 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
113 ralink,function = "gpio";
114 };
115 };
116 };
117
118 &ethernet {
119 mtd-mac-address = <&factory 0x28>;
120 mediatek,portmap = "llllw";
121 };
122
123 &gsw {
124 mediatek,port4 = "ephy";
125 pinctrl-names = "default";
126 pinctrl-0 = <&ephy_pins>;
127 };
128
129 &pcie {
130 status = "okay";
131 };
132
133 &wmac {
134 ralink,mtd-eeprom = <&factory 0>;
135 };