-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: add support for Acer Predator W6d and Acer Vero W6m
This commit adds support for two variants of the already supported router Acer Predator Connect W6: The Acer Predator Connect W6d (W6 without 6 GHz wifi) and the Acer Connect Vero W6m (W6 without 2.5G eth1 port, usb3 port, and the 6 on-board gpio RGB LEDs, and with a KTD2026 RGB LED controller instead of the KTD2061 LED controller of the W6/W6d). The device tree for the W6m refers to the KTD202x driver suggested in PR #16860. Patching target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh removes the code repetition in (old) lines 121 to 124 on the occasion. This is the last of four commits into which the original commit was split to make reviews easier and more targeted. Signed-off-by: George Oldfort <[email protected]> Link: openwrt/openwrt#16861 Signed-off-by: Hauke Mehrtens <[email protected]>
- Loading branch information
Showing
8 changed files
with
312 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
182 changes: 182 additions & 0 deletions
182
target/linux/mediatek/dts/mt7986a-acer-predator-w6d.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
// 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>; | ||
/* LED0: nc ; LED1: nc ; LED2: amber ; LED3: green */ | ||
mxl,led-config = <0x0 0x0 0x370 0x380>; | ||
}; | ||
}; | ||
|
||
&swport0 { | ||
label = "game"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
/dts-v1/; | ||
#include "mt7986a-acer-w6-common.dtsi" | ||
|
||
/ { | ||
model = "Acer Connect Vero W6m"; | ||
compatible = "acer,vero-w6m", "mediatek,mt7986a"; | ||
|
||
aliases { | ||
serial0 = &uart0; | ||
led-boot = &led_status; | ||
led-failsafe = &led_status; | ||
led-running = &led_status; | ||
led-upgrade = &led_status; | ||
}; | ||
}; | ||
|
||
&i2c0 { | ||
led-controller@30 { | ||
compatible = "kinetic,ktd2026"; | ||
reg = <0x30>; | ||
vin-supply = <®_5v>; | ||
vio-supply = <®_3p3v>; | ||
|
||
led_status: multi-led { | ||
color = <LED_COLOR_ID_RGB>; | ||
function = LED_FUNCTION_STATUS; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
led@0 { | ||
reg = <0>; | ||
color = <LED_COLOR_ID_RED>; | ||
}; | ||
|
||
led@1 { | ||
reg = <1>; | ||
color = <LED_COLOR_ID_GREEN>; | ||
}; | ||
|
||
led@2 { | ||
reg = <2>; | ||
color = <LED_COLOR_ID_BLUE>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&nvmem { | ||
eeprom_factory_a0000: eeprom@a0000 { | ||
reg = <0xa0000 0x1000>; | ||
}; | ||
}; | ||
|
||
&slot0 { | ||
radio0: mt7915@0,0 { | ||
reg = <0x0000 0 0 0 0>; | ||
nvmem-cells = <&eeprom_factory_a0000>; | ||
nvmem-cell-names = "eeprom"; | ||
}; | ||
}; | ||
|
||
&swport0 { | ||
label = "internet"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.