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