mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
Revert "ramips: sync with upsteam target"
This reverts commit 9cd0dc0dc9
.
This commit is contained in:
parent
281b7eb92b
commit
1933bc8bfa
@ -38,10 +38,6 @@ alfa-network,ac1200rm)
|
||||
alfa-network,awusfree1)
|
||||
set_wifi_led "$boardname:blue:wlan"
|
||||
;;
|
||||
alfa-network,tube-e4g)
|
||||
ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0"
|
||||
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0"
|
||||
;;
|
||||
all0256n-4M|\
|
||||
all0256n-8M)
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
@ -64,10 +60,6 @@ bdcom,wap2100-sk|\
|
||||
hiwifi,hc5861b)
|
||||
set_wifi_led "$boardname:green:wlan2g"
|
||||
;;
|
||||
belkin,f9k1109v1)
|
||||
set_usb_led "$boardname:green:usb1"
|
||||
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0"
|
||||
;;
|
||||
broadway)
|
||||
set_wifi_led "$boardname:red:wps_active"
|
||||
;;
|
||||
@ -196,11 +188,6 @@ ht-tm02)
|
||||
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
|
||||
set_wifi_led "$boardname:blue:wlan"
|
||||
;;
|
||||
iodata,wn-ac1167gr|\
|
||||
iodata,wn-ac733gr3)
|
||||
ucidef_set_led_wlan "wlan5g" "WLAN5G" "$boardname:green:wlan5g" "phy0radio"
|
||||
ucidef_set_led_wlan "wlan2g" "WLAN2G" "$boardname:green:wlan2g" "phy1radio"
|
||||
;;
|
||||
kimax,u35wf)
|
||||
set_wifi_led "$boardname:blue:wifi"
|
||||
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
|
||||
@ -236,6 +223,16 @@ mikrotik,rbm11g)
|
||||
miniembplug)
|
||||
set_wifi_led "$boardname:red:wlan"
|
||||
;;
|
||||
mir3g)
|
||||
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
|
||||
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
|
||||
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
|
||||
;;
|
||||
mir4)
|
||||
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x08" "0x08"
|
||||
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x01" "0x08"
|
||||
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x02" "0x08"
|
||||
;;
|
||||
mlw221|\
|
||||
mlwg2)
|
||||
set_wifi_led "$boardname:blue:wifi"
|
||||
@ -256,8 +253,8 @@ mzk-ex750np)
|
||||
;;
|
||||
netgear,r6120)
|
||||
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
|
||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
|
||||
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
|
||||
ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt"
|
||||
;;
|
||||
oy-0001)
|
||||
set_wifi_led "$boardname:green:wifi"
|
||||
@ -283,9 +280,6 @@ netgear,r6350)
|
||||
ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
|
||||
set_wifi_led "$boardname:green:wifi"
|
||||
;;
|
||||
rakwireless,rak633)
|
||||
set_wifi_led "$boardname:blue:wifi"
|
||||
;;
|
||||
re350-v1)
|
||||
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
|
||||
ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
|
||||
@ -347,8 +341,7 @@ tplink,c20-v4)
|
||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
||||
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
|
||||
;;
|
||||
tplink,c50-v3|\
|
||||
tplink,c50-v4)
|
||||
tplink,c50-v3)
|
||||
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
|
||||
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
||||
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
|
||||
@ -399,31 +392,20 @@ wavlink,wl-wn570ha1)
|
||||
ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
|
||||
set_wifi_led "$boardname:green:wifi"
|
||||
;;
|
||||
wavlink,wl-wn575a3)
|
||||
we1026-5g-16m)
|
||||
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
|
||||
set_wifi_led "we1026-5g:green:wifi"
|
||||
;;
|
||||
wl-wn575a3)
|
||||
ucidef_set_rssimon "wlan1" "200000" "1"
|
||||
ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49"
|
||||
ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84"
|
||||
ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100"
|
||||
;;
|
||||
we1026-5g-16m)
|
||||
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
|
||||
set_wifi_led "we1026-5g:green:wifi"
|
||||
;;
|
||||
wrh-300cr)
|
||||
set_wifi_led "$boardname:green:wlan"
|
||||
ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
|
||||
;;
|
||||
xiaomi,mir3g)
|
||||
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
|
||||
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x08" "0x08"
|
||||
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
|
||||
;;
|
||||
xiaomi,mir3p)
|
||||
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x10" "0x08"
|
||||
ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$boardname:amber:lan1" "switch0" "0x02" "0x08"
|
||||
ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$boardname:amber:lan2" "switch0" "0x04" "0x08"
|
||||
ucidef_set_led_switch "lan3-amber" "LAN3 (amber)" "$boardname:amber:lan3" "switch0" "0x08" "0x08"
|
||||
;;
|
||||
xzwifi,creativebox-v1)
|
||||
ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10"
|
||||
;;
|
||||
@ -471,9 +453,6 @@ zyxel,keenetic-extra-ii)
|
||||
set_wifi_led "$boardname:green:wifi"
|
||||
ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
|
||||
;;
|
||||
zyxel,keenetic-start)
|
||||
set_wifi_led "rt2800pci-phy0::radio"
|
||||
;;
|
||||
youku-yk1)
|
||||
set_wifi_led "$boardname:blue:air"
|
||||
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
|
||||
|
@ -33,7 +33,6 @@ ramips_setup_interfaces()
|
||||
case $board in
|
||||
11acnas|\
|
||||
d-team,newifi-d2|\
|
||||
dir-615-h1|\
|
||||
w2914nsv2|\
|
||||
zbt-we2026)
|
||||
ucidef_add_switch "switch0" \
|
||||
@ -108,6 +107,7 @@ ramips_setup_interfaces()
|
||||
mtc,wr1201|\
|
||||
mzk-750dhp|\
|
||||
mzk-w300nh2|\
|
||||
netgear,r6120|\
|
||||
nixcore-x1-8M|\
|
||||
nixcore-x1-16M|\
|
||||
oy-0001|\
|
||||
@ -123,14 +123,13 @@ ramips_setup_interfaces()
|
||||
unielec,u7621-06-512m-64m|\
|
||||
vr500|\
|
||||
wavlink,wl-wn570ha1|\
|
||||
wavlink,wl-wn575a3|\
|
||||
wf-2881|\
|
||||
whr-g300n|\
|
||||
mqmaker,witi-256m|\
|
||||
mqmaker,witi-512m|\
|
||||
wl-wn575a3|\
|
||||
wndr3700v5|\
|
||||
youku-yk1|\
|
||||
youku,yk-l2|\
|
||||
zbt-ape522ii|\
|
||||
zbt-we1326|\
|
||||
zbtlink,zbt-we3526|\
|
||||
@ -148,7 +147,6 @@ ramips_setup_interfaces()
|
||||
"0:lan" "1:lan" "2:lan" "4:wan" "6@eth0"
|
||||
;;
|
||||
alfa-network,awusfree1|\
|
||||
alfa-network,tube-e4g|\
|
||||
cs-qr10|\
|
||||
d105|\
|
||||
dlink,dap-1522-a1|\
|
||||
@ -163,7 +161,6 @@ ramips_setup_interfaces()
|
||||
ravpower,wd03|\
|
||||
tama,w06|\
|
||||
tplink,tl-mr3020-v3|\
|
||||
tplink,tl-wr802n-v4|\
|
||||
u25awf-h1|\
|
||||
wli-tx4-ag300n|\
|
||||
wmdr-143n|\
|
||||
@ -180,6 +177,14 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan:2" "2:lan:1" "3:lan:3" "4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
mir3g)
|
||||
ucidef_add_switch "switch0" \
|
||||
"2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
|
||||
;;
|
||||
mir4)
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan:1" "2:lan:2" "4:wan" "6t@eth0"
|
||||
;;
|
||||
psg1218b)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@eth0"
|
||||
@ -193,12 +198,10 @@ ramips_setup_interfaces()
|
||||
;;
|
||||
ar670w|\
|
||||
ar725w|\
|
||||
rakwireless,rak633|\
|
||||
rt-ac51u)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
|
||||
;;
|
||||
belkin,f9k1109v1|\
|
||||
rt-n15|\
|
||||
wl-351)
|
||||
ucidef_add_switch "switch0" \
|
||||
@ -223,14 +226,13 @@ ramips_setup_interfaces()
|
||||
jhr-n805r|\
|
||||
jhr-n825r|\
|
||||
jhr-n926r|\
|
||||
mikrotik,rb750gr3|\
|
||||
mikrotik,rbm33g|\
|
||||
mzk-wdpr|\
|
||||
rb750gr3|\
|
||||
rt-n14u|\
|
||||
skylab,skw92a|\
|
||||
tplink,c20-v4|\
|
||||
tplink,c50-v3|\
|
||||
tplink,c50-v4|\
|
||||
tplink,tl-mr3420-v5|\
|
||||
tplink,tl-wr842n-v5|\
|
||||
tl-wr840n-v4|\
|
||||
@ -322,11 +324,6 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "1:lan" "5:wan" "6@eth0"
|
||||
;;
|
||||
iodata,wn-ac1167gr|\
|
||||
iodata,wn-ac733gr3)
|
||||
ucidef_add_switch "switch1" \
|
||||
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
|
||||
;;
|
||||
kn_rf)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"
|
||||
@ -345,10 +342,6 @@ ramips_setup_interfaces()
|
||||
"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
|
||||
ucidef_set_interface_wan "usb0"
|
||||
;;
|
||||
netgear,r6120)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
|
||||
;;
|
||||
hc5761)
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan" "4:lan" "0:wan" "6@eth0"
|
||||
@ -367,9 +360,6 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5:wan" "6@eth0"
|
||||
;;
|
||||
dlink,dir-510l|\
|
||||
glinet,vixmini|\
|
||||
netgear,ex6150|\
|
||||
re350-v1)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "6@eth0"
|
||||
@ -433,32 +423,20 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "1:lan" "2:wan" "6@eth0"
|
||||
;;
|
||||
wiznet,wizfi630s)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:wan" "3:lan" "4:lan" "6@eth0"
|
||||
;;
|
||||
wt3020-4M|\
|
||||
wt3020-8M)
|
||||
ucidef_add_switch "switch0" \
|
||||
"4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
xiaomi,mir3g)
|
||||
xiaomi,miwifi-r3)
|
||||
ucidef_add_switch "switch0" \
|
||||
"2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
|
||||
;;
|
||||
xiaomi,mir3p)
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
|
||||
"1:lan" "4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
zbtlink,zbt-we1226|\
|
||||
y1)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:2" "1:lan:1" "4:wan" "6@eth0"
|
||||
;;
|
||||
zyxel,keenetic-start)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:3" "1:lan:2" "2:lan:1" "3:lan:0" "4:wan" "6@eth0"
|
||||
;;
|
||||
*)
|
||||
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
|
||||
if [ -n "${RT3X5X}" ]; then
|
||||
@ -506,10 +484,6 @@ ramips_setup_macs()
|
||||
lan_mac=$(macaddr_setbit_la "$lan_mac")
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
;;
|
||||
belkin,f9k1109v1)
|
||||
wan_mac=$(mtd_get_mac_ascii uboot-env HW_WAN_MAC)
|
||||
lan_mac=$(mtd_get_mac_ascii uboot-env HW_LAN_MAC)
|
||||
;;
|
||||
br-6475nd)
|
||||
lan_mac=$(cat /sys/class/net/eth0/address)
|
||||
wan_mac=$(mtd_get_mac_binary devdata 7)
|
||||
@ -526,7 +500,6 @@ ramips_setup_macs()
|
||||
lan_mac=$(mtd_get_mac_ascii factory lanmac)
|
||||
wan_mac=$(mtd_get_mac_ascii factory wanmac)
|
||||
;;
|
||||
dlink,dir-510l|\
|
||||
dlink,dwr-116-a1|\
|
||||
dlink,dwr-118-a1|\
|
||||
dlink,dwr-118-a2|\
|
||||
@ -561,10 +534,6 @@ ramips_setup_macs()
|
||||
[ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
;;
|
||||
iodata,wn-ac1167gr|\
|
||||
iodata,wn-ac733gr3)
|
||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 4)" -1)
|
||||
;;
|
||||
iodata,wn-ax1167gr|\
|
||||
iodata,wn-gx300gr)
|
||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 4)" 1)
|
||||
@ -582,6 +551,14 @@ ramips_setup_macs()
|
||||
lan_mac=$(mtd_get_mac_binary factory_info 13)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
;;
|
||||
mir3g)
|
||||
lan_mac=$(mtd_get_mac_binary Factory 0xe006)
|
||||
;;
|
||||
mir4)
|
||||
lan_mac=$(mtd_get_mac_binary Factory 0xe006)
|
||||
wan_mac=$(mtd_get_mac_binary Factory 0xe000)
|
||||
;;
|
||||
xiaomi,miwifi-r3|\
|
||||
miwifi-mini)
|
||||
wan_mac=$(cat /sys/class/net/eth0/address)
|
||||
lan_mac=$(macaddr_setbit_la "$wan_mac")
|
||||
@ -663,13 +640,6 @@ ramips_setup_macs()
|
||||
wlr-6000)
|
||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 32772)" 2)
|
||||
;;
|
||||
xiaomi,mir3g|\
|
||||
xiaomi,mir3p)
|
||||
lan_mac=$(mtd_get_mac_binary Factory 0xe006)
|
||||
;;
|
||||
zyxel,keenetic-start)
|
||||
wan_mac=$(mtd_get_mac_binary factory 40)
|
||||
;;
|
||||
*)
|
||||
lan_mac=$(cat /sys/class/net/eth0/address)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
|
@ -7,13 +7,6 @@ board_config_update
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
dlink,dir-510l)
|
||||
ucidef_add_gpio_switch "usb_enable1" "USB 1A enable" "12" "0"
|
||||
ucidef_add_gpio_switch "usb_enable05" "USB 0.5A enable" "13" "1"
|
||||
;;
|
||||
mikrotik,rb750gr3)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
|
||||
;;
|
||||
ubnt-erx)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
|
||||
;;
|
||||
|
@ -15,7 +15,7 @@ rt2x00_eeprom_extract() {
|
||||
[ -n "$mtd" ] || \
|
||||
rt2x00_eeprom_die "no mtd device found for partition $part"
|
||||
|
||||
dd if=$mtd of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
|
||||
dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
|
||||
rt2x00_eeprom_die "failed to extract from $mtd"
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ rt2x00_eeprom_set_macaddr() {
|
||||
rt2x00_eeprom_die "invalid wlan mac address"
|
||||
|
||||
macaddr_2bin $macaddr | dd of=/lib/firmware/$FIRMWARE \
|
||||
conv=notrunc oflag=seek_bytes bs=6 seek=4 count=1 2>/dev/null || \
|
||||
conv=notrunc bs=1 seek=4 count=6 2>/dev/null || \
|
||||
rt2x00_eeprom_die "failed to write mac address to eeprom file"
|
||||
}
|
||||
|
||||
@ -54,7 +54,6 @@ board=$(board_name)
|
||||
case "$FIRMWARE" in
|
||||
"soc_wmac.eeprom")
|
||||
case $board in
|
||||
dlink,dir-510l|\
|
||||
dlink,dwr-116-a1|\
|
||||
dlink,dwr-118-a1|\
|
||||
dlink,dwr-118-a2|\
|
||||
|
@ -1,31 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
get_irq() {
|
||||
local name="$1"
|
||||
grep -m 1 "$name" /proc/interrupts | cut -d: -f1 | sed 's, *,,'
|
||||
}
|
||||
|
||||
set_irq_affinity() {
|
||||
local name="$1"
|
||||
local val="$2"
|
||||
local irq="$(get_irq "$name")"
|
||||
[ -n "$irq" ] || return
|
||||
echo "$val" > "/proc/irq/$irq/smp_affinity"
|
||||
}
|
||||
|
||||
start() {
|
||||
if grep -q 'processor.*: 2' /proc/cpuinfo; then
|
||||
mask1=4
|
||||
mask2=8
|
||||
elif grep -q 'processor.*: 1' /proc/cpuinfo; then
|
||||
mask1=2
|
||||
mask2=2
|
||||
else
|
||||
return
|
||||
fi
|
||||
|
||||
set_irq_affinity mt76x2e $mask1
|
||||
set_irq_affinity mt7603e $mask2
|
||||
}
|
@ -277,6 +277,12 @@ ramips_board_detect() {
|
||||
*"Mercury MAC1200R v2")
|
||||
name="mac1200rv2"
|
||||
;;
|
||||
*"Mi Router 3G")
|
||||
name="mir3g"
|
||||
;;
|
||||
*"Mi Router 4")
|
||||
name="mir4"
|
||||
;;
|
||||
*"MicroWRT")
|
||||
name="microwrt"
|
||||
;;
|
||||
@ -412,6 +418,9 @@ ramips_board_detect() {
|
||||
*"R6220")
|
||||
name="r6220"
|
||||
;;
|
||||
*"RB750Gr3")
|
||||
name="rb750gr3"
|
||||
;;
|
||||
*"RE350 v1")
|
||||
name="re350-v1"
|
||||
;;
|
||||
@ -580,6 +589,9 @@ ramips_board_detect() {
|
||||
*"WL-351 v1 002")
|
||||
name="wl-351"
|
||||
;;
|
||||
*"WL-WN575A3")
|
||||
name="wl-wn575a3"
|
||||
;;
|
||||
*"WLI-TX4-AG300N")
|
||||
name="wli-tx4-ag300n"
|
||||
;;
|
||||
|
@ -13,7 +13,6 @@ platform_pre_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
mikrotik,rb750gr3|\
|
||||
mikrotik,rbm11g|\
|
||||
mikrotik,rbm33g)
|
||||
[ -z "$(rootfs_type)" ] && mtd erase firmware
|
||||
@ -37,18 +36,15 @@ platform_do_upgrade() {
|
||||
|
||||
case "$board" in
|
||||
hc5962|\
|
||||
mir3g|\
|
||||
mir4|\
|
||||
r6220|\
|
||||
netgear,r6350|\
|
||||
xiaomi,miwifi-r3|\
|
||||
ubnt-erx|\
|
||||
ubnt-erx-sfp|\
|
||||
xiaomi,mir3g|\
|
||||
xiaomi,mir3p)
|
||||
ubnt-erx-sfp)
|
||||
nand_do_upgrade "$ARGV"
|
||||
;;
|
||||
tplink,c50-v4)
|
||||
MTD_ARGS="-t romfile"
|
||||
default_do_upgrade "$ARGV"
|
||||
;;
|
||||
*)
|
||||
default_do_upgrade "$ARGV"
|
||||
;;
|
||||
|
@ -11,7 +11,7 @@
|
||||
reg = <0x0 0x10000000>;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
usb {
|
||||
|
@ -52,14 +52,14 @@
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "edimax,uimage";
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x390000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -80,7 +80,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -52,14 +52,14 @@
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "edimax,uimage";
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x390000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_internet: internet {
|
||||
@ -73,7 +73,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_ap;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_ap: ap {
|
||||
@ -32,7 +32,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_ap;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
3grouter {
|
||||
@ -52,7 +52,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan2g {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_wlan;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
compatible = "airlive,air3gii", "ralink,rt5350-soc";
|
||||
model = "AirLive Air3GII";
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan {
|
||||
@ -25,7 +25,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/ {
|
||||
compatible = "allnet,all0256n", "ralink,rt3050-soc";
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
rssilow {
|
||||
@ -25,7 +25,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
ld1 {
|
||||
|
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
ld1 {
|
||||
|
@ -85,6 +85,7 @@
|
||||
compatible = "mx25l6405d","jedec,spi-nor";
|
||||
reg = <0 0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -39,14 +39,13 @@
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
compatible = "lzma";
|
||||
reg = <0x40000 0x3c0000>;
|
||||
label = "firmware";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -60,7 +59,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
led-upgrade = &led_power_green;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
eth {
|
||||
|
@ -51,7 +51,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_run: run {
|
||||
@ -65,7 +65,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
};
|
||||
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_wps: wps {
|
||||
@ -26,7 +26,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/ {
|
||||
compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
tx {
|
||||
@ -25,7 +25,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -129,6 +129,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -29,7 +29,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
@ -60,7 +60,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset_wps {
|
||||
|
@ -13,7 +13,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
lan {
|
||||
label = "c20i:blue:lan";
|
||||
@ -39,7 +39,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
rfkill {
|
||||
|
@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
@ -67,7 +67,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
@ -55,7 +55,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
@ -67,7 +67,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
|
@ -1,99 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "TPLINK-8M-SPLIT-UBOOT.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "tplink,c50-v4", "mediatek,mt7628an-soc";
|
||||
model = "TP-Link Archer C50 v4";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RFKILL>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
label = "c50-v4:green:power";
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan2 {
|
||||
label = "c50-v4:green:wlan2g";
|
||||
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan5 {
|
||||
label = "c50-v4:green:wlan5g";
|
||||
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan {
|
||||
label = "c50-v4:green:lan";
|
||||
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "c50-v4:green:wan";
|
||||
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_orange {
|
||||
label = "c50-v4:orange:wan";
|
||||
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "c50-v4:green:wps";
|
||||
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an",
|
||||
"p3led_an", "p4led_an", "wdt", "wled_an";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&radio 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
mtd-mac-address = <&rom 0xf100>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
};
|
||||
};
|
@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
@ -74,7 +74,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
|
@ -46,7 +46,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
usb {
|
||||
@ -57,7 +57,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
usb {
|
||||
@ -40,7 +40,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
|
||||
model = "YUKAI Engineering BOCCO";
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -88,7 +88,7 @@
|
||||
};
|
||||
|
||||
partition@70000 {
|
||||
compatible = "edimax,uimage";
|
||||
compatible = "denx,uimage";
|
||||
reg = <0x00070000 0x00790000>;
|
||||
label = "firmware";
|
||||
};
|
||||
|
@ -33,7 +33,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -122,7 +122,7 @@
|
||||
};
|
||||
|
||||
partition@70000 {
|
||||
compatible = "edimax,uimage";
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x00070000 0x00790000>;
|
||||
};
|
||||
|
@ -46,7 +46,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
diskmounted {
|
||||
@ -62,7 +62,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
sdcard {
|
||||
@ -93,7 +93,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
ethernet {
|
||||
@ -39,7 +39,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -25,7 +25,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -68,7 +68,7 @@
|
||||
realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_wps: wps {
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -69,7 +69,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -91,7 +91,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_blue: power {
|
||||
@ -82,7 +82,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -40,7 +40,6 @@
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
compatible = "wrg";
|
||||
label = "firmware";
|
||||
reg = <0x40000 0x3a0000>;
|
||||
};
|
||||
@ -53,7 +52,7 @@
|
||||
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -84,7 +83,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wps {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -25,7 +25,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wifi {
|
||||
@ -72,7 +72,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
@ -35,7 +35,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -1,142 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7620a.dtsi"
|
||||
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
|
||||
model = "D-Link DIR-510L";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status;
|
||||
led-failsafe = &led_status;
|
||||
led-running = &led_status;
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS1,57600";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
label = "dir-510l:green:status";
|
||||
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
status-red {
|
||||
label = "dir-510l:red:status";
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "jboot";
|
||||
reg = <0x0 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@10000 {
|
||||
label = "recovery";
|
||||
reg = <0x10000 0x200000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@210000 {
|
||||
compatible = "amit,jimage";
|
||||
label = "firmware";
|
||||
reg = <0x210000 0xde0000>;
|
||||
};
|
||||
|
||||
config: partition@ff0000 {
|
||||
label = "config";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
mt76x0e@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&config 0xe490>;
|
||||
mtd-mac-address-increment = <(2)>;
|
||||
mediatek,mtd-eeprom = <&config 0xe05d>;
|
||||
};
|
||||
};
|
||||
|
||||
&gsw {
|
||||
mediatek,port4 = "ephy";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
default {
|
||||
ralink,group = "i2c", "uartf";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status_green;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
@ -46,7 +46,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
@ -30,7 +30,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
inet {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_power_green;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power {
|
||||
|
@ -25,7 +25,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
power {
|
||||
@ -49,7 +49,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -74,6 +74,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -14,7 +14,7 @@
|
||||
reg = <0x0 0x4000000>;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -110,6 +110,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <60000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_internet;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
|
@ -14,7 +14,7 @@
|
||||
led-failsafe = &led_internet;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
sms {
|
||||
|
@ -14,7 +14,7 @@
|
||||
led-failsafe = &led_sstrenghg;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
sms {
|
||||
|
@ -26,7 +26,7 @@
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -67,7 +67,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_run: run {
|
||||
@ -70,6 +70,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -30,7 +30,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power_g {
|
||||
@ -70,7 +70,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power_g {
|
||||
@ -62,7 +62,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -1,248 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "netgear,ex6150", "mediatek,mt7621-soc";
|
||||
model = "Netgear EX6150";
|
||||
|
||||
aliases {
|
||||
led-boot = &power_green;
|
||||
led-failsafe = &power_amber;
|
||||
led-running = &power_green;
|
||||
led-upgrade = &power_amber;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x4000000>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
power_amber: power_amber {
|
||||
label = "ex6150:amber:power";
|
||||
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
power_green: power_green {
|
||||
label = "ex6150:green:power";
|
||||
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "ex6150:green:wps";
|
||||
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
rightarrow {
|
||||
label = "ex6150:blue:rightarrow";
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
leftarrow {
|
||||
label = "ex6150:blue:leftarrow";
|
||||
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
router_green {
|
||||
label = "ex6150:green:router";
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
|
||||
router_red {
|
||||
label = "ex6150:red:router";
|
||||
gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
client_green {
|
||||
label = "ex6150:green:client";
|
||||
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
client_red {
|
||||
label = "ex6150:red:client";
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
toggle {
|
||||
label = "AP/Extender toggle";
|
||||
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <BTN_0>;
|
||||
/* Active when switch is set to "Access Point" */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "config";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@40000 {
|
||||
label = "factory";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0xe80000>;
|
||||
};
|
||||
|
||||
partition@ed0000 {
|
||||
label = "ML1";
|
||||
reg = <0xed0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@ef0000 {
|
||||
label = "ML2";
|
||||
reg = <0xef0000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@f10000 {
|
||||
label = "ML3";
|
||||
reg = <0xf10000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@f30000 {
|
||||
label = "ML4";
|
||||
reg = <0xf30000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@f50000 {
|
||||
label = "ML5";
|
||||
reg = <0xf50000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@f70000 {
|
||||
label = "ML6";
|
||||
reg = <0xf70000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@f90000 {
|
||||
label = "ML7";
|
||||
reg = <0xf90000 0x20000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@fb0000 {
|
||||
label = "T_Meter1";
|
||||
reg = <0xfb0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@fc0000 {
|
||||
label = "T_Meter2";
|
||||
reg = <0xfc0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@fd0000 {
|
||||
label = "POT";
|
||||
reg = <0xfd0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@fe0000 {
|
||||
label = "board_data";
|
||||
reg = <0xfe0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
label = "nvram";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
ieee80211-freq-limit = <2400000 2500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x00000004>;
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "sdhci", "rgmii2", "jtag";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
@ -100,7 +100,7 @@
|
||||
realtek,green-ethernet-features;
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
@ -117,7 +117,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
internet {
|
||||
|
@ -57,7 +57,7 @@
|
||||
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
internet {
|
||||
|
@ -16,7 +16,7 @@
|
||||
led-upgrade = &led_status_orange;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status {
|
||||
@ -40,7 +40,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -1,71 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "F9K110x.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "belkin,f9k1109v1", "ralink,rt3883-soc";
|
||||
model = "Belkin F9K1109 Version 1.0";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status_amber;
|
||||
led-failsafe = &led_status_amber;
|
||||
led-running = &led_status_blue;
|
||||
led-upgrade = &led_status_amber;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status_amber: internet_amber {
|
||||
label = "f9k1109v1:amber:internet";
|
||||
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_blue: internet_blue {
|
||||
label = "f9k1109v1:blue:internet";
|
||||
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb1 {
|
||||
label = "f9k1109v1:green:usb1";
|
||||
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb2 {
|
||||
label = "f9k1109v1:green:usb2";
|
||||
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps_amber {
|
||||
label = "f9k1109v1:amber:wps";
|
||||
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps_blue {
|
||||
label = "f9k1109v1:blue:wps";
|
||||
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
};
|
||||
};
|
@ -1,112 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "rt3883.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "ralink,rt3883-soc";
|
||||
|
||||
rtl8367b {
|
||||
compatible = "realtek,rtl8367b";
|
||||
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
|
||||
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "uboot";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "uboot-env";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@40000 {
|
||||
label = "factory";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x7a0000>;
|
||||
};
|
||||
|
||||
partition@7f0000 {
|
||||
label = "user-cfg";
|
||||
reg = <0x7f0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
port@0 {
|
||||
mediatek,fixed-link = <1000 1 1 1>;
|
||||
phy-mode = "rgmii";
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "i2c", "jtag", "uartf";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
ralink,mtd-eeprom = <&factory 0>;
|
||||
};
|
||||
|
||||
&pci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pci1 {
|
||||
status = "okay";
|
||||
|
||||
wifi@1,0 {
|
||||
compatible = "pci1814,3091";
|
||||
reg = <0x10000 0 0 0 0>;
|
||||
ralink,5ghz = <0>;
|
||||
ralink,mtd-eeprom = <&factory 0x8000>;
|
||||
};
|
||||
};
|
||||
|
||||
&ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ohci {
|
||||
status = "okay";
|
||||
};
|
@ -25,7 +25,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -34,7 +34,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wifi {
|
||||
@ -74,7 +74,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
/*
|
||||
|
@ -25,7 +25,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system {
|
||||
@ -71,8 +71,8 @@
|
||||
m25p80@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
m25p,fast-read;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -25,7 +25,7 @@
|
||||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system {
|
||||
@ -81,8 +81,8 @@
|
||||
m25p80@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
m25p,fast-read;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -55,10 +55,9 @@
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "mx25l25635f", "jedec,spi-nor";
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -13,7 +13,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
@ -37,7 +37,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
reset {
|
||||
|
@ -25,7 +25,7 @@
|
||||
reg = <0x0 0x8000000>;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
@ -45,7 +45,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -105,6 +105,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -13,7 +13,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
@ -32,7 +32,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
reset {
|
||||
|
@ -13,7 +13,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan {
|
||||
@ -32,7 +32,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
reset {
|
||||
|
@ -13,7 +13,7 @@
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
|
@ -25,7 +25,7 @@
|
||||
reg = <0x0 0x8000000>;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -42,7 +42,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -71,6 +71,7 @@
|
||||
reg = <0>;
|
||||
linux,modalias = "m25p80", "w25q128";
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -13,7 +13,7 @@
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
|
@ -13,7 +13,7 @@
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -103,3 +103,10 @@
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
ralink,group = "uartf", "wled", "rgmii2", "ephy";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
|
@ -25,7 +25,7 @@
|
||||
reg = <0x0 0x8000000>;
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -38,7 +38,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -66,6 +66,7 @@
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <10000000>;
|
||||
m25p,chunked-io = <32>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
@ -25,7 +25,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status: status {
|
||||
@ -39,7 +39,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
keys {
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user