mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
19c45b95db
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
#include "mt7628an_kroks.dtsi"
|
|
|
|
/ {
|
|
compatible = "kroks,kndrt31r19", "mediatek,mt7628an-soc";
|
|
model = "Kroks KNdRt31R19";
|
|
|
|
leds {
|
|
status {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_RED>;
|
|
};
|
|
|
|
wifi {
|
|
label = "yellow:wifi";
|
|
};
|
|
};
|
|
|
|
gpio_export {
|
|
compatible = "gpio-export";
|
|
#size-cells = <0>;
|
|
|
|
modem1power {
|
|
gpio-export,name = "modem1power";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
modem1sim1 {
|
|
gpio-export,name = "modem1sim1";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1sim2 {
|
|
gpio-export,name = "modem1sim2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1rsim1 {
|
|
gpio-export,name = "modem1rsim1";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1rsim2 {
|
|
gpio-export,name = "modem1rsim2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&esw {
|
|
mediatek,portmap = <0x2f>;
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "i2s", "i2c", "p4led_an", "p3led_an", "wled_an";
|
|
function = "gpio";
|
|
};
|
|
};
|