ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-router-4a-100m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7628an_xiaomi_mi-router-4.dtsi"
6
7 / {
8 compatible = "xiaomi,mi-router-4a-100m", "mediatek,mt7628an-soc";
9 model = "Xiaomi Mi Router 4A (100M Edition)";
10
11 aliases {
12 led-boot = &led_power_yellow;
13 led-failsafe = &led_power_yellow;
14 led-running = &led_power_blue;
15 led-upgrade = &led_power_yellow;
16 label-mac-device = &ethernet;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power_blue: power_blue {
23 function = LED_FUNCTION_POWER;
24 color = <LED_COLOR_ID_BLUE>;
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power_yellow: power_yellow {
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_YELLOW>;
31 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
32 };
33
34 wan {
35 function = LED_FUNCTION_WAN;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 };
42
43 &partitions {
44 partition@60000 {
45 label = "overlay";
46 reg = <0x60000 0x100000>;
47 read-only;
48 };
49
50 partition@160000 {
51 label = "firmware";
52 reg = <0x160000 0xea0000>;
53 compatible = "denx,uimage";
54 };
55 };
56
57 &pcie {
58 status = "okay";
59 };
60
61 &pcie0 {
62 wifi@0,0 {
63 compatible = "mediatek,mt76";
64 reg = <0x0000 0 0 0 0>;
65 nvmem-cells = <&eeprom_factory_8000>;
66 nvmem-cell-names = "eeprom";
67 ieee80211-freq-limit = <5000000 6000000>;
68 };
69 };
70
71 &ethernet {
72 nvmem-cells = <&macaddr_factory_4 (-1)>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &esw {
77 mediatek,portmap = <0x3e>;
78 mediatek,portdisable = <0x2a>;
79 };