0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-07-05 18:03:00 +00:00
Files
openwrt/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts
Shiji Yang dd0476aca0 ramips: some minor FDT improvements for HiWiFi devices
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>
2025-06-08 19:37:49 +02:00

99 lines
1.8 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7628an_hiwifi_hc5x61a.dtsi"
/ {
compatible = "hiwifi,hc5761a", "mediatek,mt7628an-soc";
model = "HiWiFi HC5761A";
aliases {
label-mac-device = &ethernet;
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_2GHZ;
gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
led-3 {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN_5GHZ;
gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
};
};
gpio_export {
compatible = "gpio-export";
usb_power {
gpio-export,name = "usb_power";
gpio-export,output = <0>;
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
};
};
&esw {
mediatek,portmap = <0x2f>;
mediatek,portdisable = <0x2c>;
};
&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", "p2led_an", "p3led_an", "wled_an";
function = "gpio";
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_18a 0>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <5000000 6000000>;
};
};