ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_netgear_ex2700.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
4 */
5
6 #include "mt7620a.dtsi"
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11
12 / {
13 compatible = "netgear,ex2700", "ralink,mt7620a-soc";
14 model = "Netgear EX2700";
15
16 aliases {
17 led-boot = &led_power_green;
18 led-failsafe = &led_power_green;
19 led-running = &led_power_green;
20 led-upgrade = &led_power_green;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_power_green: power_g {
43 function = LED_FUNCTION_POWER;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
46 default-state = "on";
47 };
48
49 power_r {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
53 };
54
55 device_g {
56 label = "green:device";
57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
58 };
59
60 device_r {
61 label = "red:device";
62 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
63 };
64
65 router_g {
66 label = "green:router";
67 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
68 };
69
70 router_r {
71 label = "red:router";
72 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
73 };
74
75 wps {
76 function = LED_FUNCTION_WPS;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
79 };
80 };
81 };
82
83 &gpio1 {
84 status = "okay";
85 };
86
87 &spi0 {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <10000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x0 0x30000>;
103 read-only;
104 };
105
106 partition@30000 {
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
109 read-only;
110 };
111
112 partition@40000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x40000 0x3b0000>;
116 };
117
118 partition@3f0000 {
119 label = "art";
120 reg = <0x3f0000 0x10000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 macaddr_art_0: macaddr@0 {
129 reg = <0x0 0x6>;
130 };
131
132 macaddr_art_6: macaddr@6 {
133 reg = <0x6 0x6>;
134 };
135
136 eeprom_art_1000: eeprom@1000 {
137 reg = <0x1000 0x200>;
138 };
139 };
140 };
141 };
142 };
143 };
144
145 &ethernet {
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
148 };
149
150 &wmac {
151 nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
152 nvmem-cell-names = "eeprom", "mac-address";
153 };
154
155 &state_default {
156 default {
157 groups = "i2c", "uartf", "spi refclk";
158 function = "gpio";
159 };
160 };