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>
79 lines
1.3 KiB
Text
79 lines
1.3 KiB
Text
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7628an_hiwifi_hc5x61a.dtsi"
|
|
|
|
/ {
|
|
compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
|
|
model = "HiWiFi HC5661A";
|
|
|
|
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_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-1 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WAN;
|
|
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-2 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_WLAN;
|
|
gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
};
|
|
};
|
|
|
|
&esw {
|
|
mediatek,portmap = <0x2f>;
|
|
mediatek,portdisable = <0x20>;
|
|
};
|
|
|
|
&pinctrl {
|
|
ephy-analog;
|
|
|
|
sdxc_router_mode: sdxc_router_mode {
|
|
groups = "esd", "gpio", "i2c", "sdmode", "uart1";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&sdxc_router_mode>;
|
|
pinctrl-1 = <&sdxc_router_mode>;
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "i2s", "refclk", "wdt", "wled_an";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
&ehci {
|
|
status = "disabled";
|
|
};
|
|
|
|
&ohci {
|
|
status = "disabled";
|
|
};
|
|
|
|
&usbphy {
|
|
status = "disabled";
|
|
};
|