diff options
author | Shiji Yang <yangshiji66@qq.com> | 2022-11-05 19:52:08 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-11-05 21:12:24 +0100 |
commit | 7a504c151d26210addc66f029dacda13fb662bdd (patch) | |
tree | 1cfc40adb0cee381f24b029e84b7cbef0b618fff /target/linux/ramips/dts | |
parent | eba0a8deb65de70b0d913f9ec8910640a79d0191 (diff) | |
download | upstream-7a504c151d26210addc66f029dacda13fb662bdd.tar.gz upstream-7a504c151d26210addc66f029dacda13fb662bdd.tar.bz2 upstream-7a504c151d26210addc66f029dacda13fb662bdd.zip |
ramips: add support for Youku X2
Specifications:
SOC: MT7620AN + MT7612EN
RAM: 128 MiB DDR2
Flash: 16 MiB (Winbond W25Q28FVFG)
WLAN: 2.4G + 5G
LAN: LAN ports *2
WAN: WAN port *1
USB: USB2.0 *1
SD Card: MicroSD *1
Buttons: Reset *1
LEDs: ethernet *3, system, usb, wlan2g, wlan5g
MAC Address:
use address source
label 54:36:9b:xx:xx:ac lan
lan 54:36:9b:xx:xx:ac factory.0x0028
wan 54:36:9b:xx:xx:ad factory.0x002e
wlan2g 54:36:9b:xx:xx:ae factory.0x0004
wlan5g 54:36:9b:xx:xx:af factory.0x8004
Installation:
1. Apply initramfs-kernel.bin in stock firmware Web UI.
2. Install sysupgrade.bin on OpenWrt and do not retain any configuration.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620a_youku_x2.dts | 38 | ||||
-rw-r--r-- | target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi | 2 |
2 files changed, 39 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7620a_youku_x2.dts b/target/linux/ramips/dts/mt7620a_youku_x2.dts new file mode 100644 index 0000000000..ad9e252f65 --- /dev/null +++ b/target/linux/ramips/dts/mt7620a_youku_x2.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7620a_youku_yk-l1.dtsi" + +/ { + compatible = "youku,x2", "ralink,mt7620a-soc"; + model = "Youku X2"; +}; + +ðernet { + mediatek,portmap = "wllll"; +}; + +&firmware { + reg = <0x50000 0xfb0000>; +}; + +&led_wlan { + linux,default-trigger = "phy1tpt"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + + led { + led-sources = <2>; + led-active-low; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi index 210b0d7d19..5af7b343d9 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi +++ b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi @@ -15,7 +15,7 @@ leds { compatible = "gpio-leds"; - wlan { + led_wlan: wlan { label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; |