This patch contains various minor FDT improvements for ramips HiWiFi series devices: * Add mt76 driver compatibles. * Remove useless platform compatibles. * Add default USB LED trigger for HC5861. * Disable unused usbphy for HC5661, HC5661A and HC581B. * Add switch port map properties based on 02_network scripts. * Move aliases node to device dts because the LED nodes it references only exist in the device specific dts. * Rename gpio-leds nodes to follow the upstream dt-bindings suggested pattern "(^led-[0-9a-f]$|led)". * Convert deprecated LED label property to color and function. "system" LED has been renamed to "status", it is acceptable because these LEDs do not have text labels. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18251 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
40 lines
755 B
Text
40 lines
755 B
Text
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7628an_hiwifi_hc5x61a.dtsi"
|
|
|
|
/ {
|
|
compatible = "hiwifi,hc5611", "mediatek,mt7628an-soc";
|
|
model = "HiWiFi HC5611";
|
|
|
|
aliases {
|
|
label-mac-device = ðernet;
|
|
led-boot = &led_status;
|
|
led-failsafe = &led_status;
|
|
led-running = &led_status;
|
|
led-upgrade = &led_status;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_status: led-0 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
|
|
led-1 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_WAN;
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "gpio", "spi cs1", "wdt";
|
|
function = "gpio";
|
|
};
|
|
};
|