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