ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620n_snr_cpe-w4n-mt.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "snr,cpe-w4n-mt", "ralink,mt7620n-soc";
11 model = "SNR-CPE-W4N (rev.M)";
12
13 aliases {
14 led-boot = &led_wps;
15 led-failsafe = &led_sys;
16 led-running = &led_wps;
17 led-upgrade = &led_sys;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_sys: sys {
24 color = <LED_COLOR_ID_GREEN>;
25 function = LED_FUNCTION_STATUS;
26 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // GPIO#38
27 panic-indicator;
28 };
29
30 led_wps: wps {
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_WPS;
33 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; // GPIO#39
34 };
35
36 wlan {
37 color = <LED_COLOR_ID_GREEN>;
38 function = LED_FUNCTION_WLAN;
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // GPIO#72
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "Reset Button";
48 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; // GPIO#1
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &gpio0 {
55 status = "okay";
56 };
57
58 &gpio1 {
59 status = "okay";
60 };
61
62 &gpio3 {
63 status = "okay";
64 };
65
66 &spi0 {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <48000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "Bootloader";
81 reg = <0x0 0x30000>;
82 read-only;
83 };
84
85 partition@30000 {
86 label = "Config";
87 reg = <0x30000 0x10000>;
88 };
89
90 partition@40000 {
91 label = "Factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 eeprom_factory_0: eeprom@0 {
101 reg = <0x0 0x200>;
102 };
103 };
104 };
105
106 partition@50000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x50000 0x7b0000>;
110 };
111
112 partition@30000_1 {
113 label = "uboot-env";
114 reg = <0x30000 0x1000>;
115 };
116 };
117 };
118 };
119
120 &state_default {
121 gpio {
122 groups = "i2c", "spi refclk";
123 function = "gpio";
124 };
125 };
126
127 &wmac {
128 nvmem-cells = <&eeprom_factory_0>;
129 nvmem-cell-names = "eeprom";
130 };