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