mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-04-23 00:25:49 +00:00
Other than GPIO LEDs, PHY LEDs do have an address. Fix node names such that all gpio-leds do *not* contain an '@' sign and PHY leds which do have an address also do contain the '@' sign. This is done to prevent more copy&paste'ry of non-complaint DT fragments. Fixes: 7cbe34170e ("mediatek: add support for the GL.iNet GL-MT3000") Fixes: fe10f97439 ("filogic: add support for GL.iNet GL-MT6000") Fixes: e8f7597317 ("mediatek: filogic: add support for Cudy RE3000 v1") Fixes: c9cb6411c1 ("mediatek: add support for Cudy WR3000 v1") Fixes: 7560af7647 ("mediatek: filogic: migrate ASUS TUF AX6000 to upstream PHY LED control") Fixes: 25ea7ff393 ("mediatek: filogic: migrate Acer W6/W6d to upstream PHY LED control") Fixes: d50d51d74e ("mediatek: filogic: migrate Zyxel NWA50AX Pro to upstream PHY LED control") Fixes: b88de5d507 ("mediatek: filogic: migrate Zyxel EX5700 to upstream PHY LED control") Fixes: 63d56af6c6 ("mediatek: filogic: migrate Netgate N60 to upstream PHY LED control") Fixes: fd76a38190 ("mediatek: filogic: migrate SmartRG Bonanza to upstream PHY LED control") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
198 lines
3.8 KiB
Plaintext
198 lines
3.8 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
#include "mt7986a-acer-w6-common.dtsi"
|
|
|
|
/ {
|
|
model = "Acer Predator Connect W6d";
|
|
compatible = "acer,predator-w6d", "mediatek,mt7986a";
|
|
|
|
aliases {
|
|
serial0 = &uart0;
|
|
led-boot = &led_status_blue;
|
|
led-failsafe = &led_status_blue;
|
|
led-running = &led_status_green;
|
|
led-upgrade = &led_status_red;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_status_red: led-0 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <0>;
|
|
gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_status_green: led-1 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <0>;
|
|
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_status_blue: led-2 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <0>;
|
|
gpios = <&pio 36 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-3 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <1>;
|
|
gpios = <&pio 35 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-4 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <1>;
|
|
gpios = <&pio 34 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-5 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <1>;
|
|
gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-6 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <2>;
|
|
gpios = <&pio 38 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-7 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <2>;
|
|
gpios = <&pio 37 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-8 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <2>;
|
|
gpios = <&pio 26 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-9 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <3>;
|
|
gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-10 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <3>;
|
|
gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-11 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <3>;
|
|
gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-12 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <4>;
|
|
gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-13 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <4>;
|
|
gpios = <&pio 27 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-14 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <4>;
|
|
gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-15 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <5>;
|
|
gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-16 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <5>;
|
|
gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-17 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
function-enumerator = <5>;
|
|
gpios = <&pio 43 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&ssusb {
|
|
vusb33-supply = <®_3p3v>;
|
|
vbus-supply = <®_5v>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
ð {
|
|
gmac1: mac@1 {
|
|
compatible = "mediatek,eth-mac";
|
|
reg = <1>;
|
|
phy-mode = "2500base-x";
|
|
phy-handle = <&phy6>;
|
|
};
|
|
};
|
|
|
|
&mdio {
|
|
phy6: phy@6 {
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
reg = <6>;
|
|
reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
|
|
reset-assert-us = <10000>;
|
|
reset-deassert-us = <10000>;
|
|
|
|
leds {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
led@2 {
|
|
reg = <2>;
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
function = LED_FUNCTION_WAN;
|
|
};
|
|
|
|
led@3 {
|
|
reg = <3>;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_WAN;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&swport0 {
|
|
label = "game";
|
|
};
|