ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / WN3000RPV3.dts
1 /* This file is released into the public domain */
2
3 /dts-v1/;
4
5 #include "mt7620a.dtsi"
6
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/gpio.h>
9
10 / {
11 compatible = "ralink,mt7620a-soc";
12 model = "Netgear WN3000RPv3";
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 gpio-leds {
19 compatible = "gpio-leds";
20
21 power_g {
22 label = "wn3000rpv3:green:power";
23 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
24 default-state = "on";
25 };
26
27 power_r {
28 label = "wn3000rpv3:red:power";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 };
31
32 client_g {
33 label = "wn3000rpv3:green:client";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
35 };
36
37 client_r {
38 label = "wn3000rpv3:red:client";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 };
41
42 router_g {
43 label = "wn3000rpv3:green:router";
44 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
45 };
46
47 router_r {
48 label = "wn3000rpv3:red:router";
49 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
50 };
51
52 wps {
53 label = "wn3000rpv3:green:wps";
54 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
55 };
56
57 l_arrow {
58 label = "wn3000rpv3:blue:leftarrow";
59 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
60 };
61
62 r_arrow {
63 label = "wn3000rpv3:blue:rightarrow";
64 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
65 };
66 };
67
68 gpio-keys-polled {
69 compatible = "gpio-keys-polled";
70 #address-cells = <1>;
71 #size-cells = <0>;
72 poll-interval = <20>;
73
74 reset {
75 label = "reset";
76 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
78 };
79
80 wps {
81 label = "wps";
82 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
84 };
85 };
86 };
87
88 &gpio1 {
89 status = "okay";
90 };
91
92 &spi0 {
93 status = "okay";
94
95 m25p80@0 {
96 #address-cells = <1>;
97 #size-cells = <1>;
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <10000000>;
101
102 partition@0 {
103 label = "u-boot";
104 reg = <0x0 0x30000>;
105 read-only;
106 };
107
108 partition@30000 {
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
111 read-only;
112 };
113
114 partition@40000 {
115 label = "firmware";
116 reg = <0x40000 0x7b0000>;
117 };
118
119 art: partition@7f0000 {
120 label = "art";
121 reg = <0x7f0000 0x10000>;
122 read-only;
123 };
124 };
125 };
126
127 &ethernet {
128 mtd-mac-address = <&art 0x0>;
129 };
130
131 &wmac {
132 mtd-mac-address = <&art 0x6>;
133 ralink,mtd-eeprom = <&art 0x1000>;
134 };
135
136 &pinctrl {
137 state_default: pinctrl0 {
138 default {
139 ralink,group = "i2c", "uartf", "spi refclk";
140 ralink,function = "gpio";
141 };
142 };
143 };