ramips: Unielec u7621-01: remove invalid led status
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_totolink_lr1200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "totolink,lr1200", "mediatek,mt7628dan";
10 model = "TOTOLINK LR1200";
11
12 aliases {
13 led-boot = &led_sys;
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_sys: sys {
23 label = "blue:sys";
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 };
26
27 sms {
28 label = "blue:sms";
29 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
30 };
31
32 wifi {
33 label = "blue:wifi";
34 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
36 };
37
38 3g {
39 label = "blue:3g";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
41 };
42
43 4g {
44 label = "blue:4g";
45 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
46 };
47
48 rssi1 {
49 label = "blue:rssi1";
50 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
51 };
52
53 rssi2 {
54 label = "blue:rssi2";
55 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 };
57
58 rssi3 {
59 label = "blue:rssi3";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 };
62
63 rssi4 {
64 label = "blue:rssi4";
65 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys";
71
72 reset {
73 label = "reset";
74 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
76 };
77 };
78 };
79
80 &gpio {
81 gpio_modem_reset {
82 gpio-hog;
83 gpios = <45 GPIO_ACTIVE_HIGH>;
84 output-high;
85 line-name = "modem-reset";
86 };
87 };
88
89 &state_default {
90 gpio {
91 groups = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an";
92 function = "gpio";
93 };
94 };
95
96 &pcie {
97 status = "okay";
98 };
99
100 &pcie0 {
101 mt76@0,0 {
102 reg = <0x0000 0 0 0 0>;
103 nvmem-cells = <&eeprom_factory_8000>;
104 nvmem-cell-names = "eeprom";
105 ieee80211-freq-limit = <5000000 6000000>;
106 };
107 };
108
109 &wmac {
110 status = "okay";
111
112 nvmem-cells = <&eeprom_factory_0>;
113 nvmem-cell-names = "eeprom";
114 };
115
116 &ethernet {
117 nvmem-cells = <&macaddr_factory_28>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &spi0 {
122 status = "okay";
123
124 flash@0 {
125 compatible = "jedec,spi-nor";
126 reg = <0>;
127 spi-max-frequency = <40000000>;
128
129 partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 partition@0 {
135 label = "u-boot";
136 reg = <0x0 0x30000>;
137 read-only;
138 };
139
140 partition@30000 {
141 label = "u-boot-env";
142 reg = <0x30000 0x10000>;
143 read-only;
144 };
145
146 partition@40000 {
147 label = "factory";
148 reg = <0x40000 0x10000>;
149 read-only;
150
151 nvmem-layout {
152 compatible = "fixed-layout";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 eeprom_factory_0: eeprom@0 {
157 reg = <0x0 0x400>;
158 };
159
160 eeprom_factory_8000: eeprom@8000 {
161 reg = <0x8000 0x200>;
162 };
163
164 macaddr_factory_28: macaddr@28 {
165 reg = <0x28 0x6>;
166 };
167 };
168 };
169
170 partition@50000 {
171 compatible = "denx,uimage";
172 label = "firmware";
173 reg = <0x50000 0x7b0000>;
174 };
175 };
176 };
177 };