ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N14U.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
9 model = "Asus RT-N14U";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 wan {
15 label = "rt-n14u:blue:wan";
16 gpios = <&gpio2 0 1>;
17 };
18
19 lan {
20 label = "rt-n14u:blue:lan";
21 gpios = <&gpio2 1 1>;
22 };
23
24 usb {
25 label = "rt-n14u:blue:usb";
26 gpios = <&gpio2 2 1>;
27 };
28
29 power {
30 label = "rt-n14u:blue:power";
31 gpios = <&gpio2 3 1>;
32 };
33
34 air {
35 label = "rt-n14u:blue:air";
36 gpios = <&gpio3 0 1>;
37 };
38 };
39
40 gpio-keys-polled {
41 compatible = "gpio-keys-polled";
42 #address-cells = <1>;
43 #size-cells = <0>;
44 poll-interval = <20>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 1 1>;
49 linux,code = <KEY_RESTART>;
50 };
51
52 wps {
53 label = "wps";
54 gpios = <&gpio0 2 1>;
55 linux,code = <KEY_WPS_BUTTON>;
56 };
57 };
58 };
59
60 &gpio2 {
61 status = "okay";
62 };
63
64 &gpio3 {
65 status = "okay";
66 };
67
68 &spi0 {
69 status = "okay";
70
71 m25p80@0 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <10000000>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x30000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 read-only;
88 };
89
90 factory: partition@40000 {
91 label = "factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94 };
95
96 partition@50000 {
97 label = "firmware";
98 reg = <0x50000 0xfb0000>;
99 };
100 };
101 };
102
103 &ehci {
104 status = "okay";
105 };
106
107 &ohci {
108 status = "okay";
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0x4>;
113 mediatek,portmap = "wllll";
114 };
115
116 &wmac {
117 ralink,mtd-eeprom = <&factory 0>;
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 default {
123 ralink,group = "ephy", "wled", "i2c";
124 ralink,function = "gpio";
125 };
126 };
127 };