2024-11-11 08:25:56 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2023-06-09 11:39:52 +00:00
|
|
|
|
|
|
|
/dts-v1/;
|
2024-11-11 08:25:56 +00:00
|
|
|
#include "mt7986a-acer-w6-common.dtsi"
|
2023-06-09 11:39:52 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Acer Predator W6";
|
|
|
|
compatible = "acer,predator-w6", "mediatek,mt7986a";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
led-boot = &led_status;
|
|
|
|
led-failsafe = &led_status;
|
|
|
|
led-running = &led_status;
|
|
|
|
led-upgrade = &led_status;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led_status: led-0 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant0:red";
|
|
|
|
gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-1 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant0:green";
|
|
|
|
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-2 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant0:blue";
|
|
|
|
gpios = <&pio 36 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-3 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant1:red";
|
|
|
|
gpios = <&pio 35 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-4 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant1:green";
|
|
|
|
gpios = <&pio 34 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-5 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant1:blue";
|
|
|
|
gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-6 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant2:red";
|
|
|
|
gpios = <&pio 38 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-7 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant2:green";
|
|
|
|
gpios = <&pio 37 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-8 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant2:blue";
|
|
|
|
gpios = <&pio 26 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-9 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant3:red";
|
|
|
|
gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-10 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant3:green";
|
|
|
|
gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-11 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant3:blue";
|
|
|
|
gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-12 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant4:red";
|
|
|
|
gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-13 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant4:green";
|
|
|
|
gpios = <&pio 27 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-14 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant4:blue";
|
|
|
|
gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-15 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant5:red";
|
|
|
|
gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-16 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant5:green";
|
|
|
|
gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
led-17 {
|
2023-06-09 11:39:52 +00:00
|
|
|
label = "ant5:blue";
|
|
|
|
gpios = <&pio 43 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
&ssusb {
|
|
|
|
vusb33-supply = <®_3p3v>;
|
|
|
|
vbus-supply = <®_5v>;
|
2023-06-09 11:39:52 +00:00
|
|
|
status = "okay";
|
2024-11-11 08:25:56 +00:00
|
|
|
};
|
2023-06-09 11:39:52 +00:00
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
&nvmem {
|
|
|
|
eeprom_factory_a0000: eeprom@a0000 {
|
|
|
|
reg = <0xa0000 0x1000>;
|
|
|
|
};
|
|
|
|
};
|
2023-06-09 11:39:52 +00:00
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
&slot0 {
|
|
|
|
radio0: mt7915@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
nvmem-cells = <&eeprom_factory_a0000>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2023-06-09 11:39:52 +00:00
|
|
|
};
|
2024-11-11 08:25:56 +00:00
|
|
|
};
|
2023-06-09 11:39:52 +00:00
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ð {
|
2023-06-09 11:39:52 +00:00
|
|
|
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>;
|
2024-11-11 08:25:56 +00:00
|
|
|
/* LED0: nc ; LED1: nc ; LED2: amber ; LED3: green */
|
2023-06-09 11:39:52 +00:00
|
|
|
mxl,led-config = <0x0 0x0 0x370 0x80>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-11 08:25:56 +00:00
|
|
|
&swport0 {
|
|
|
|
label = "game";
|
2023-06-09 11:39:52 +00:00
|
|
|
};
|