ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_netgear_ex3x00_ex61xx.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 aliases {
8 led-boot = &led_power_amber;
9 led-failsafe = &led_power_amber;
10 led-running = &led_power_green;
11 led-upgrade = &led_power_green;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power_green: power_green {
34 label = "green:power";
35 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
36 default-state = "on";
37 };
38
39 led_power_amber: power_amber {
40 label = "amber:power";
41 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
42 };
43
44 router_green {
45 label = "green:router";
46 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
47 };
48
49 router_red {
50 label = "red:router";
51 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
52 };
53
54 device_green {
55 label = "green:device";
56 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
57 };
58
59 device_red {
60 label = "red:device";
61 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
62 };
63
64 wps {
65 label = "green:wps";
66 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
67 };
68 };
69 };
70
71 &gpio0 {
72 status = "okay";
73 };
74
75 &gpio2 {
76 status = "okay";
77 };
78
79 &spi0 {
80 status = "okay";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <50000000>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "config";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 factory: partition@40000 {
105 label = "factory";
106 reg = <0x40000 0x10000>;
107 read-only;
108 };
109
110 partition@50000 {
111 compatible = "denx,uimage";
112 label = "firmware";
113 reg = <0x50000 0x790000>;
114 };
115
116 partition@7e0000 {
117 label = "board_data";
118 reg = <0x7e0000 0x10000>;
119 read-only;
120 };
121
122 partition@7f0000 {
123 label = "nvram";
124 reg = <0x7f0000 0x10000>;
125 read-only;
126 };
127 };
128 };
129 };
130
131 &pcie {
132 status = "okay";
133 };
134
135 &pcie0 {
136 mt76@0,0 {
137 reg = <0x0000 0 0 0 0>;
138 mediatek,mtd-eeprom = <&factory 0x8000>;
139 ieee80211-freq-limit = <5000000 6000000>;
140 };
141 };
142
143 &ethernet {
144 mtd-mac-address = <&factory 0x28>;
145 };
146
147 &wmac {
148 ralink,mtd-eeprom = <&factory 0x0>;
149 };
150
151 &state_default {
152 default {
153 groups = "i2c", "rgmii2", "spi refclk";
154 function = "gpio";
155 };
156 };