ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7628an_xiaomi_mir4a-100m.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 = "xiaomi,mir4a-100m", "mediatek,mt7628an-soc";
10 model = "Xiaomi Mi Router 4A (100M Edition)";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 aliases {
17 led-boot = &power_yellow;
18 led-failsafe = &power_yellow;
19 led-running = &power_blue;
20 led-upgrade = &power_yellow;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 power_blue: power_blue {
27 label = "blue:power";
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 };
30
31 power_yellow: power_yellow {
32 label = "yellow:power";
33 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <10000000>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "bootloader";
63 reg = <0x0 0x20000>;
64 read-only;
65 };
66
67 partition@20000 {
68 label = "config";
69 reg = <0x20000 0x10000>;
70 read-only;
71 };
72
73 factory: partition@30000 {
74 label = "factory";
75 reg = <0x30000 0x10000>;
76 read-only;
77 };
78
79 partition@40000 {
80 label = "crash";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 partition@50000 {
86 label = "cfg_bak";
87 reg = <0x50000 0x10000>;
88 read-only;
89 };
90
91 partition@60000 {
92 label = "overlay";
93 reg = <0x60000 0x100000>;
94 read-only;
95 };
96
97 partition@160000 {
98 label = "firmware";
99 reg = <0x160000 0xea0000>;
100 compatible = "denx,uimage";
101 };
102 };
103 };
104 };
105
106 &pcie {
107 status = "okay";
108 };
109
110 &pcie0 {
111 wifi@0,0 {
112 compatible = "mediatek,mt76";
113 reg = <0x0000 0 0 0 0>;
114 mediatek,mtd-eeprom = <&factory 0x8000>;
115 ieee80211-freq-limit = <5000000 6000000>;
116 };
117 };
118
119 &state_default {
120 gpio {
121 groups = "gpio", "wdt", "wled_an";
122 function = "gpio";
123 };
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x4>;
128 mtd-mac-address-increment = <(-1)>;
129 };
130
131 &esw {
132 mediatek,portmap = <0x3e>;
133 mediatek,portdisable = <0x2a>;
134 };
135
136 &wmac {
137 status = "okay";
138 };