mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ath79: update upsteam
This commit is contained in:
parent
fc725ed2ca
commit
90eaa19f4e
@ -8,7 +8,7 @@ SUBTARGETS:=generic nand tiny
|
||||
|
||||
FEATURES:=ramdisk
|
||||
|
||||
KERNEL_PATCHVER:=4.14
|
||||
KERNEL_PATCHVER:=4.19
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
|
@ -1,36 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2018 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
comfast,cf-e5)
|
||||
ucidef_add_gpio_switch "lte_power" "LTE Power" "14" "1"
|
||||
ucidef_add_gpio_switch "lte_wakeup" "LTE Wakeup" "11" "1"
|
||||
ucidef_add_gpio_switch "lte_poweroff" "LTE Poweroff" "1" "1"
|
||||
ucidef_add_gpio_switch "lte_reset" "LTE Reset" "12" "1"
|
||||
;;
|
||||
dlink,dir-825-c1|\
|
||||
dlink,dir-835-a1)
|
||||
ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
|
||||
;;
|
||||
librerouter,librerouter-v1)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "1" "0"
|
||||
;;
|
||||
ubnt,nanostation-ac)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
|
||||
;;
|
||||
ubnt,acb-isp)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
@ -1,226 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/system.sh
|
||||
|
||||
ath9k_eeprom_die() {
|
||||
echo "ath9k eeprom: " "$*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ath9k_eeprom_extract() {
|
||||
local part=$1
|
||||
local offset=$2
|
||||
local count=$3
|
||||
local mtd
|
||||
|
||||
mtd=$(find_mtd_chardev $part)
|
||||
[ -n "$mtd" ] || \
|
||||
ath9k_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 || \
|
||||
ath9k_eeprom_die "failed to extract from $mtd"
|
||||
}
|
||||
|
||||
ath9k_eeprom_extract_reverse() {
|
||||
local part=$1
|
||||
local offset=$2
|
||||
local count=$3
|
||||
local mtd
|
||||
local reversed
|
||||
local caldata
|
||||
|
||||
mtd=$(find_mtd_chardev "$part")
|
||||
reversed=$(hexdump -v -s $offset -n $count -e '/1 "%02x "' $mtd)
|
||||
|
||||
for byte in $reversed; do
|
||||
caldata="\x${byte}${caldata}"
|
||||
done
|
||||
|
||||
printf "%b" "$caldata" > /lib/firmware/$FIRMWARE
|
||||
}
|
||||
|
||||
xor() {
|
||||
local val
|
||||
local ret="0x$1"
|
||||
local retlen=${#1}
|
||||
|
||||
shift
|
||||
while [ -n "$1" ]; do
|
||||
val="0x$1"
|
||||
ret=$((ret ^ val))
|
||||
shift
|
||||
done
|
||||
|
||||
printf "%0${retlen}x" "$ret"
|
||||
}
|
||||
|
||||
ath9k_patch_fw_mac() {
|
||||
local mac=$1
|
||||
local mac_offset=$2
|
||||
local chksum_offset=$3
|
||||
local xor_mac
|
||||
local xor_fw_mac
|
||||
local xor_fw_chksum
|
||||
|
||||
[ -z "$mac" -o -z "$mac_offset" ] && return
|
||||
|
||||
[ -n "$chksum_offset" ] && {
|
||||
xor_mac=${mac//:/}
|
||||
xor_mac="${xor_mac:0:4} ${xor_mac:4:4} ${xor_mac:8:4}"
|
||||
|
||||
xor_fw_mac=$(hexdump -v -n 6 -s $mac_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
|
||||
xor_fw_mac="${xor_fw_mac:0:4} ${xor_fw_mac:4:4} ${xor_fw_mac:8:4}"
|
||||
|
||||
xor_fw_chksum=$(hexdump -v -n 2 -s $chksum_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
|
||||
xor_fw_chksum=$(xor $xor_fw_chksum $xor_fw_mac $xor_mac)
|
||||
|
||||
printf "%b" "\x${xor_fw_chksum:0:2}\x${xor_fw_chksum:2:2}" | \
|
||||
dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=$chksum_offset count=2
|
||||
}
|
||||
|
||||
macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc oflag=seek_bytes bs=6 seek=$mac_offset count=1
|
||||
}
|
||||
|
||||
ath9k_patch_fw_mac_crc() {
|
||||
local mac=$1
|
||||
local mac_offset=$2
|
||||
local chksum_offset=$((mac_offset - 10))
|
||||
|
||||
ath9k_patch_fw_mac "${mac}" "${mac_offset}" "${chksum_offset}"
|
||||
}
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$FIRMWARE" in
|
||||
"ath9k-eeprom-ahb-18100000.wmac.bin")
|
||||
case $board in
|
||||
avm,fritz4020)
|
||||
ath9k_eeprom_extract_reverse "urlader" 5441 1088
|
||||
;;
|
||||
dlink,dir-825-c1|\
|
||||
dlink,dir-835-a1)
|
||||
ath9k_eeprom_extract "art" 4096 1088
|
||||
ath9k_patch_fw_mac_crc $(mtd_get_mac_text "mac" 4) 2
|
||||
;;
|
||||
dlink,dir-859-a1)
|
||||
ath9k_eeprom_extract "art" 4096 1088
|
||||
ath9k_patch_fw_mac $(mtd_get_mac_ascii devdata "wlan24mac") 2
|
||||
;;
|
||||
engenius,epg5000|\
|
||||
iodata,wn-ac1167dgr|\
|
||||
iodata,wn-ac1600dgr|\
|
||||
iodata,wn-ac1600dgr2|\
|
||||
iodata,wn-ag300dgr)
|
||||
ath9k_eeprom_extract "art" 4096 1088
|
||||
ath9k_patch_fw_mac $(mtd_get_mac_ascii u-boot-env ethaddr) 2
|
||||
;;
|
||||
nec,wg1200cr)
|
||||
ath9k_eeprom_extract "art" 4096 1088
|
||||
ath9k_patch_fw_mac $(mtd_get_mac_ascii devdata wlan24mac) 2
|
||||
;;
|
||||
nec,wg800hp)
|
||||
ath9k_eeprom_extract "art" 4096 1088
|
||||
ath9k_patch_fw_mac $(mtd_get_mac_text board_data 1664) 2
|
||||
;;
|
||||
*)
|
||||
ath9k_eeprom_die "board $board is not supported yet"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"ath9k-eeprom-pci-0000:00:00.0.bin")
|
||||
case $board in
|
||||
avm,fritz300e)
|
||||
ath9k_eeprom_extract_reverse "urloader" 5441 1088
|
||||
;;
|
||||
buffalo,whr-g301n|\
|
||||
buffalo,wzr-hp-g302h-a1a0|\
|
||||
tplink,tl-wr841-v5|\
|
||||
tplink,tl-wr941-v4)
|
||||
ath9k_eeprom_extract "art" 4096 3768
|
||||
;;
|
||||
buffalo,wzr-hp-g450h)
|
||||
ath9k_eeprom_extract "ART" 4096 1088
|
||||
;;
|
||||
dlink,dir-825-c1|\
|
||||
dlink,dir-835-a1)
|
||||
ath9k_eeprom_extract "art" 20480 1088
|
||||
ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "mac" 24) 1) 2
|
||||
;;
|
||||
ocedo,raccoon|\
|
||||
tplink,tl-wdr3600|\
|
||||
tplink,tl-wdr4300|\
|
||||
tplink,tl-wdr4900-v2|\
|
||||
winchannel,wb2000)
|
||||
ath9k_eeprom_extract "art" 20480 1088
|
||||
;;
|
||||
netgear,wnr612-v2|\
|
||||
on,n150r|\
|
||||
pcs,cap324|\
|
||||
tplink,tl-mr3220-v1|\
|
||||
tplink,tl-mr3420-v1|\
|
||||
tplink,tl-wr2543-v1|\
|
||||
tplink,tl-wr740n-v1|\
|
||||
tplink,tl-wr740n-v3|\
|
||||
tplink,tl-wr741-v1|\
|
||||
tplink,tl-wr743nd-v1|\
|
||||
tplink,tl-wr841-v7|\
|
||||
tplink,tl-wr842n-v1|\
|
||||
ubnt,airrouter|\
|
||||
ubnt,bullet-m|\
|
||||
ubnt,nano-m|\
|
||||
ubnt,rocket-m)
|
||||
ath9k_eeprom_extract "art" 4096 4096
|
||||
;;
|
||||
pqi,air-pen)
|
||||
ath9k_eeprom_extract "art" 4096 2002
|
||||
;;
|
||||
ubnt,unifi)
|
||||
ath9k_eeprom_extract "art" 4096 2048
|
||||
;;
|
||||
wd,mynet-wifi-rangeextender)
|
||||
ath9k_eeprom_extract "art" 4096 4096
|
||||
ath9k_patch_fw_mac_crc $(nvram get wl0_hwaddr) "$mac" 2
|
||||
;;
|
||||
*)
|
||||
ath9k_eeprom_die "board $board is not supported yet"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"ath9k-eeprom-pci-0000:00:11.0.bin")
|
||||
case $board in
|
||||
buffalo,wzr-hp-ag300h|\
|
||||
netgear,wndr3700|\
|
||||
netgear,wndr3700v2|\
|
||||
netgear,wndr3800)
|
||||
ath9k_eeprom_extract "art" 4096 3768
|
||||
;;
|
||||
dlink,dir-825-b1)
|
||||
ath9k_eeprom_extract "caldata" 4096 3768
|
||||
ath9k_patch_fw_mac_crc $(mtd_get_mac_text "caldata" 65440) 524
|
||||
;;
|
||||
*)
|
||||
ath9k_eeprom_die "board $board is not supported yet"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"ath9k-eeprom-pci-0000:00:12.0.bin")
|
||||
case $board in
|
||||
buffalo,wzr-hp-ag300h|\
|
||||
netgear,wndr3700|\
|
||||
netgear,wndr3700v2|\
|
||||
netgear,wndr3800)
|
||||
ath9k_eeprom_extract "art" 20480 3768
|
||||
;;
|
||||
dlink,dir-825-b1)
|
||||
ath9k_eeprom_extract "caldata" 20480 3768
|
||||
ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "caldata" 65460) 1) 524
|
||||
;;
|
||||
*)
|
||||
ath9k_eeprom_die "board $board is not supported yet"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
@ -1,197 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions/k2t.sh
|
||||
|
||||
# xor multiple hex values of the same length
|
||||
xor() {
|
||||
local val
|
||||
local ret="0x$1"
|
||||
local retlen=${#1}
|
||||
|
||||
shift
|
||||
while [ -n "$1" ]; do
|
||||
val="0x$1"
|
||||
ret=$((ret ^ val))
|
||||
shift
|
||||
done
|
||||
|
||||
printf "%0${retlen}x" "$ret"
|
||||
}
|
||||
|
||||
ath10kcal_die() {
|
||||
echo "ath10cal: " "$*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ath10kcal_from_file() {
|
||||
local source=$1
|
||||
local offset=$2
|
||||
local count=$3
|
||||
|
||||
dd if=$source of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
|
||||
ath10kcal_die "failed to extract calibration data from $source"
|
||||
}
|
||||
|
||||
ath10kcal_extract() {
|
||||
local part=$1
|
||||
local offset=$2
|
||||
local count=$3
|
||||
local mtd
|
||||
|
||||
mtd=$(find_mtd_chardev $part)
|
||||
[ -n "$mtd" ] || \
|
||||
ath10kcal_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 || \
|
||||
ath10kcal_die "failed to extract calibration data from $mtd"
|
||||
}
|
||||
|
||||
ath10kcal_patch_mac() {
|
||||
local mac=$1
|
||||
|
||||
[ -z "$mac" ] && return
|
||||
|
||||
macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc oflag=seek_bytes bs=6 seek=6 count=1
|
||||
}
|
||||
|
||||
ath10kcal_patch_mac_crc() {
|
||||
local mac=$1
|
||||
local mac_offset=6
|
||||
local chksum_offset=2
|
||||
local xor_mac
|
||||
local xor_fw_mac
|
||||
local xor_fw_chksum
|
||||
|
||||
xor_fw_mac=$(hexdump -v -n 6 -s $mac_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
|
||||
xor_fw_mac="${xor_fw_mac:0:4} ${xor_fw_mac:4:4} ${xor_fw_mac:8:4}"
|
||||
|
||||
ath10kcal_patch_mac "$mac" && {
|
||||
xor_mac=${mac//:/}
|
||||
xor_mac="${xor_mac:0:4} ${xor_mac:4:4} ${xor_mac:8:4}"
|
||||
|
||||
xor_fw_chksum=$(hexdump -v -n 2 -s $chksum_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
|
||||
xor_fw_chksum=$(xor $xor_fw_chksum $xor_fw_mac $xor_mac)
|
||||
|
||||
printf "%b" "\x${xor_fw_chksum:0:2}\x${xor_fw_chksum:2:2}" | \
|
||||
dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=$chksum_offset count=2
|
||||
}
|
||||
}
|
||||
|
||||
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/system.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$FIRMWARE" in
|
||||
"ath10k/cal-pci-0000:00:00.0.bin")
|
||||
case $board in
|
||||
devolo,dvl1200e|\
|
||||
devolo,dvl1200i|\
|
||||
devolo,dvl1750c|\
|
||||
devolo,dvl1750e|\
|
||||
devolo,dvl1750i)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0) -1)
|
||||
;;
|
||||
dlink,dir-859-a1)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac")
|
||||
;;
|
||||
elecom,wrc-1750ghbk2-i)
|
||||
ath10kcal_extract "ART" 20480 2116
|
||||
;;
|
||||
engenius,epg5000|\
|
||||
iodata,wn-ac1167dgr|\
|
||||
iodata,wn-ac1600dgr2)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
||||
;;
|
||||
engenius,ews511ap|\
|
||||
glinet,gl-ar750s|\
|
||||
glinet,gl-x750|\
|
||||
tplink,re450-v2)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
|
||||
;;
|
||||
nec,wg800hp)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 2176)
|
||||
;;
|
||||
ocedo,koala|\
|
||||
ocedo,ursus)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(mtd_get_mac_binary art 12)
|
||||
;;
|
||||
openmesh,om5p-ac-v2)
|
||||
ath10kcal_extract "ART" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
|
||||
;;
|
||||
tplink,archer-c2-v3)
|
||||
ath10kcal_extract "ART" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
|
||||
;;
|
||||
tplink,archer-c5-v1|\
|
||||
tplink,archer-c7-v2)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
|
||||
;;
|
||||
tplink,archer-a7-v5|\
|
||||
tplink,archer-c7-v4|\
|
||||
tplink,archer-c7-v5)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
|
||||
;;
|
||||
tplink,re350k-v1)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +2)
|
||||
;;
|
||||
ubnt,unifiac-lite|\
|
||||
ubnt,unifiac-mesh|\
|
||||
ubnt,unifiac-mesh-pro|\
|
||||
ubnt,lap-120|\
|
||||
ubnt,nanobeam-ac|\
|
||||
ubnt,nanostation-ac|\
|
||||
ubnt,nanostation-ac-loco|\
|
||||
ubnt,unifiac-pro)
|
||||
ath10kcal_extract "EEPROM" 20480 2116
|
||||
;;
|
||||
yuncore,a770)
|
||||
ath10kcal_extract "art" 20480 2116
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"ath10k/pre-cal-pci-0000:00:00.0.bin")
|
||||
case $board in
|
||||
nec,wg1200cr)
|
||||
ath10kcal_extract "art" 20480 12064
|
||||
ath10kcal_patch_mac_crc $(mtd_get_mac_ascii devdata wlan5mac)
|
||||
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
||||
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
||||
;;
|
||||
netgear,ex6400|\
|
||||
netgear,ex7300)
|
||||
ath10kcal_extract "caldata" 20480 12064
|
||||
ath10kcal_patch_mac $(mtd_get_mac_binary caldata 12)
|
||||
;;
|
||||
phicomm,k2t)
|
||||
ath10kcal_extract "art" 20480 12064
|
||||
ath10kcal_patch_mac_crc $(k2t_get_mac "5g_mac")
|
||||
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
||||
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
||||
;;
|
||||
tplink,archer-c58-v1|\
|
||||
tplink,archer-c59-v1|\
|
||||
tplink,archer-c6-v2)
|
||||
ath10kcal_extract "art" 20480 12064
|
||||
ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 8) -1)
|
||||
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
||||
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
|
||||
WIFI_PATH_CHANGED=0
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
migrate_wifi_path() {
|
||||
local section="$1"
|
||||
local path
|
||||
|
||||
config_get path ${section} path
|
||||
case ${path} in
|
||||
"pci0000:01/0000:01:00.0")
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
tplink,archer-c7-v1|\
|
||||
tplink,archer-c7-v2|\
|
||||
zyxel,nbg6716)
|
||||
path="pci0000:00/0000:00:00.0"
|
||||
WIFI_PATH_CHANGED=1
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"platform/ahb/ahb:apb/18100000.wmac"|\
|
||||
"platform/ar933x_wmac"|\
|
||||
"platform/ar934x_wmac"|\
|
||||
"platform/qca953x_wmac"|\
|
||||
"platform/qca955x_wmac"|\
|
||||
"platform/qca956x_wmac")
|
||||
path="platform/ahb/18100000.wmac"
|
||||
WIFI_PATH_CHANGED=1
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
uci set wireless.${section}.path=${path}
|
||||
}
|
||||
|
||||
[ "${ACTION}" = "add" ] && {
|
||||
[ ! -e /etc/config/wireless ] && return 0
|
||||
|
||||
config_load wireless
|
||||
config_foreach migrate_wifi_path wifi-device
|
||||
|
||||
[ "${WIFI_PATH_CHANGED}" = "1" ] && uci commit wireless
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
WMAC_PATH_CHANGED=0
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
migrate_wmac_path() {
|
||||
local section="$1"
|
||||
local path
|
||||
|
||||
config_get path ${section} path
|
||||
case ${path} in
|
||||
"platform/qca955x_wmac")
|
||||
path="platform/ahb/ahb:apb/18100000.wmac"
|
||||
WMAC_PATH_CHANGED=1
|
||||
;;
|
||||
"platform/ar933x_wmac")
|
||||
path="platform/ahb/18100000.wmac"
|
||||
WMAC_PATH_CHANGED=1
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
uci set wireless.${section}.path=${path}
|
||||
}
|
||||
|
||||
[ "${ACTION}" = "add" ] && {
|
||||
[ ! -e /etc/config/wireless ] && return 0
|
||||
|
||||
config_load wireless
|
||||
config_foreach migrate_wmac_path wifi-device
|
||||
|
||||
[ "${WMAC_PATH_CHANGED}" = "1" ] && uci commit wireless
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
#!/bin/ash
|
||||
|
||||
[ "$ACTION" == "add" ] || exit 0
|
||||
|
||||
PHYNBR=${DEVPATH##*/phy}
|
||||
|
||||
[ -n $PHYNBR ] || exit 0
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/system.sh
|
||||
. /lib/functions/k2t.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
iodata,wn-ag300dgr)
|
||||
# There is no eeprom data for 5 GHz wlan in "art" partition
|
||||
# which would allow to patch the macaddress
|
||||
[ "$PHYNBR" -eq 1 ] && \
|
||||
echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
iodata,wn-ac1600dgr)
|
||||
# There is no eeprom data for 5 GHz wlan in "art" partition
|
||||
# which would allow to patch the macaddress
|
||||
[ "$PHYNBR" -eq 0 ] && \
|
||||
echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
phicomm,k2t)
|
||||
# The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address
|
||||
[ "$PHYNBR" -eq 1 ] && \
|
||||
echo $(k2t_get_mac "lan_mac") > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/migrations.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
engenius,epg5000)
|
||||
migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
|
||||
;;
|
||||
esac
|
||||
|
||||
migrations_apply system
|
||||
|
||||
exit 0
|
@ -27,6 +27,7 @@ CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
|
||||
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
|
||||
CONFIG_ATH79=y
|
||||
CONFIG_ATH79_WDT=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CEVT_R4K=y
|
||||
CONFIG_CLKDEV_LOOKUP=y
|
||||
CONFIG_CLONE_BACKWARDS=y
|
||||
@ -179,12 +180,20 @@ CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
|
||||
# CONFIG_NO_IOPORT_MAP is not set
|
||||
CONFIG_OF=y
|
||||
CONFIG_OF_ADDRESS=y
|
||||
CONFIG_OF_ADDRESS_PCI=y
|
||||
CONFIG_OF_EARLY_FLATTREE=y
|
||||
CONFIG_OF_FLATTREE=y
|
||||
CONFIG_OF_GPIO=y
|
||||
CONFIG_OF_IRQ=y
|
||||
CONFIG_OF_MDIO=y
|
||||
CONFIG_OF_NET=y
|
||||
CONFIG_OF_PCI=y
|
||||
CONFIG_OF_PCI_IRQ=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCI_AR71XX=y
|
||||
CONFIG_PCI_AR724X=y
|
||||
CONFIG_PCI_DISABLE_COMMON_QUIRKS=y
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_DRIVERS_LEGACY=y
|
||||
CONFIG_PERF_USE_VMALLOC=y
|
||||
CONFIG_PGTABLE_LEVELS=2
|
||||
|
@ -20,6 +20,7 @@ CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
|
||||
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
|
||||
CONFIG_ATH79=y
|
||||
CONFIG_ATH79_WDT=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CEVT_R4K=y
|
||||
CONFIG_CLKDEV_LOOKUP=y
|
||||
CONFIG_CLONE_BACKWARDS=y
|
||||
@ -167,6 +168,7 @@ CONFIG_MTD_PARSER_CYBERTAN=y
|
||||
CONFIG_MTD_PHYSMAP=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
CONFIG_MTD_SPLIT_LZMA_FW=y
|
||||
CONFIG_MTD_SPLIT_SEAMA_FW=y
|
||||
CONFIG_MTD_SPLIT_TPLINK_FW=y
|
||||
CONFIG_MTD_SPLIT_UIMAGE_FW=y
|
||||
CONFIG_MTD_TPLINK_PARTS=y
|
||||
@ -184,6 +186,11 @@ CONFIG_OF_IRQ=y
|
||||
CONFIG_OF_KOBJ=y
|
||||
CONFIG_OF_MDIO=y
|
||||
CONFIG_OF_NET=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCI_AR71XX=y
|
||||
CONFIG_PCI_AR724X=y
|
||||
CONFIG_PCI_DISABLE_COMMON_QUIRKS=y
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_DRIVERS_LEGACY=y
|
||||
CONFIG_PERF_USE_VMALLOC=y
|
||||
CONFIG_PGTABLE_LEVELS=2
|
||||
|
@ -11,16 +11,16 @@
|
||||
model = "I-O DATA WN-AG300DGR";
|
||||
|
||||
aliases {
|
||||
led-boot = &router;
|
||||
led-failsafe = &router;
|
||||
led-running = &router;
|
||||
led-upgrade = &router;
|
||||
led-boot = &led_router;
|
||||
led-failsafe = &led_router;
|
||||
led-running = &led_router;
|
||||
led-upgrade = &led_router;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
router: router {
|
||||
led_router: router {
|
||||
label = "wn-ag300dgr:green:router";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -55,8 +55,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
eco {
|
||||
label = "eco";
|
||||
@ -109,9 +108,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
@ -213,5 +213,6 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
172
target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
Normal file
172
target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
Normal file
@ -0,0 +1,172 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Sitecom WLR-7100 v1 002 (X7 AC1200)";
|
||||
compatible = "sitecom,wlr-7100", "qca,ar9344";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wlan2g {
|
||||
label = "2.4GHz";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
wlan5g {
|
||||
label = "5GHz";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
ops {
|
||||
label = "wlr-7100:white:ops";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power: power {
|
||||
label = "wlr-7100:amber:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
wlan2g {
|
||||
label = "wlr-7100:blue:wlan2g";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
pll-data = <0x06000000 0x00000101 0x00001616>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rgmii-gmac0 = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
|
||||
qca,ar8327-initvals = <
|
||||
0x04 0x87a00000 /* PORT0 PAD Mode */
|
||||
0x0c 0x01000000 /* PORT6 PAD Mode */
|
||||
0x10 0x80000000 /* PWS_REG_VALUE */
|
||||
0x7c 0x000000fe /* PORT0_STATUS */
|
||||
0x94 0x000000fe /* PORT6_STATUS */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
wifi@0,0 {
|
||||
compatible = "qcom,ath10k";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x000000 0x030000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
uenv: partition@30000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x030000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x040000 0x750000>;
|
||||
};
|
||||
|
||||
partition@790000 {
|
||||
label = "backup";
|
||||
reg = <0x790000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@7a0000 {
|
||||
label = "storage";
|
||||
reg = <0x7a0000 0x050000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
qca,no-eeprom;
|
||||
};
|
9
target/linux/ath79/dts/ar7161_adtran_bsap1800-v2.dts
Normal file
9
target/linux/ath79/dts/ar7161_adtran_bsap1800-v2.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7161_adtran_bsap1880.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Adtran/Bluesocket BSAP-1800 v2";
|
||||
compatible = "adtran,bsap1800-v2", "qca,ar7161";
|
||||
};
|
9
target/linux/ath79/dts/ar7161_adtran_bsap1840.dts
Normal file
9
target/linux/ath79/dts/ar7161_adtran_bsap1840.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7161_adtran_bsap1880.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Adtran/Bluesocket BSAP-1840";
|
||||
compatible = "adtran,bsap1840", "qca,ar7161";
|
||||
};
|
100
target/linux/ath79/dts/ar7161_adtran_bsap1880.dtsi
Normal file
100
target/linux/ath79/dts/ar7161_adtran_bsap1880.dtsi
Normal file
@ -0,0 +1,100 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7100.dtsi"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status_green;
|
||||
led-failsafe = &led_status_yellow;
|
||||
led-running = &led_status_green;
|
||||
led-upgrade = &led_status_yellow;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan5g {
|
||||
label = "bluesocket:green:wifi5g";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
|
||||
wlan2g {
|
||||
label = "bluesocket:green:wifi2g";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
led_status_green: status_green {
|
||||
label = "bluesocket:green:status";
|
||||
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_yellow: status_yellow {
|
||||
label = "bluesocket:yellow:status";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <0x1>;
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "ecoscentric,redboot-fis-partitions";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
192
target/linux/ath79/dts/ar7161_aruba_ap-105.dts
Normal file
192
target/linux/ath79/dts/ar7161_aruba_ap-105.dts
Normal file
@ -0,0 +1,192 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7100.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "aruba,ap-105", "qca,ar7161";
|
||||
model = "Aruba AP-105";
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,9600";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_green;
|
||||
led-failsafe = &led_power_red;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_green;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-output-names = "ref";
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power_green {
|
||||
label = "ap-105:green:power";
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_red: power_red {
|
||||
label = "ap-105:red:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
panic-indicator;
|
||||
};
|
||||
|
||||
wifi_2g_red {
|
||||
label = "ap-105:red:wlan2g";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wifi_5g_red {
|
||||
label = "ap-105:red:wlan5g";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wifi_2g_green {
|
||||
label = "ap-105:green:wlan2g";
|
||||
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
wifi_5g_green {
|
||||
label = "ap-105:green:wlan5g";
|
||||
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c {
|
||||
compatible = "i2c-gpio";
|
||||
|
||||
sda-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
||||
scl-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
/* can be removed on 4.19 */
|
||||
gpios = <&gpio 5 GPIO_ACTIVE_LOW>,
|
||||
<&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
tpm@29 {
|
||||
compatible = "atmel,at97sc3203s";
|
||||
reg = <0x29>;
|
||||
|
||||
/* triggering it, will also kill system */
|
||||
reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
status = "okay";
|
||||
|
||||
ath9k0: wifi@0,11 { /* 2.4 GHz */
|
||||
compatible = "pci168c,0029";
|
||||
mtd-mac-address = <&hwinfo 0x1c>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
reg = <0x8800 0 0 0 0>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
|
||||
ath9k1: wifi@0,12 { /* 5 GHz */
|
||||
compatible = "pci168c,0029";
|
||||
mtd-mac-address = <&hwinfo 0x1c>;
|
||||
mtd-mac-address-increment = <2>;
|
||||
reg = <0x9000 0 0 0 0>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <0x1>;
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
mtd-mac-address = <&hwinfo 0x1c>;
|
||||
|
||||
pll-data = <0x00110000 0x00001099 0x00991099>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x000000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "firmware";
|
||||
reg = <0x40000 0xfa0000>;
|
||||
compatible = "denx,uimage";
|
||||
};
|
||||
|
||||
hwinfo: partition@fe0000 {
|
||||
label = "hwinfo";
|
||||
reg = <0xfe0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -11,9 +11,9 @@
|
||||
model = "Buffalo WZR-HP-AG300H/WZR-600DHP";
|
||||
|
||||
aliases {
|
||||
led-boot = &diag;
|
||||
led-failsafe = &diag;
|
||||
led-upgrade = &diag;
|
||||
led-boot = &led_diag;
|
||||
led-failsafe = &led_diag;
|
||||
led-upgrade = &led_diag;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -27,19 +27,18 @@
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
diag: diag {
|
||||
led_diag: diag {
|
||||
label = "buffalo:red:diag";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
// those leds are indeed attached to the wifi chips
|
||||
|
||||
compatible = "gpio-leds";
|
||||
|
||||
band2g_a {
|
||||
label = "buffalo:amber:band2g";
|
||||
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
|
||||
@ -81,8 +80,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
@ -229,6 +227,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <2>;
|
||||
cs-gpios = <0>, <0>;
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
||||
model = "D-Link DIR825B1";
|
||||
|
||||
aliases {
|
||||
led-boot = &orange_power;
|
||||
led-failsafe = &orange_power;
|
||||
led-running = &blue_power;
|
||||
led-upgrade = &orange_power;
|
||||
led-boot = &led_power_orange;
|
||||
led-failsafe = &led_power_orange;
|
||||
led-running = &led_power_blue;
|
||||
led-upgrade = &led_power_orange;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -30,35 +30,36 @@
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_usb {
|
||||
|
||||
usb {
|
||||
label = "d-link:blue:usb";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
|
||||
orange_power: orange_power {
|
||||
led_power_orange: power_orange {
|
||||
label = "d-link:orange:power";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
blue_power: blue_power {
|
||||
led_power_blue: power_blue {
|
||||
label = "d-link:blue:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
blue_wps {
|
||||
wps {
|
||||
label = "d-link:blue:wps";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
orange_planet {
|
||||
planet_orange {
|
||||
label = "d-link:orange:planet";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
blue_planet {
|
||||
planet_blue {
|
||||
label = "d-link:blue:planet";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -81,21 +82,18 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -120,7 +118,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&usb1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -177,6 +174,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -222,9 +220,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
pll-data = <0x11110000 0x00001099 0x00991099>;
|
||||
|
||||
fixed-link {
|
||||
@ -235,6 +233,7 @@
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
pll-data = <0x11110000 0x00001099 0x00991099>;
|
||||
|
||||
phy-handle = <&phy4>;
|
||||
|
@ -20,10 +20,10 @@
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &d2;
|
||||
led-failsafe = &d2;
|
||||
led-running = &d2;
|
||||
led-upgrade = &d2;
|
||||
led-boot = &led_d2;
|
||||
led-failsafe = &led_d2;
|
||||
led-running = &led_d2;
|
||||
led-upgrade = &led_d2;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -36,7 +36,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
d2: d2 {
|
||||
led_d2: d2 {
|
||||
label = "ja76pf2:green:d2";
|
||||
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -53,8 +53,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
sw1 {
|
||||
label = "sw1";
|
||||
@ -106,12 +105,13 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <104000000>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
#address-cells = <1>;
|
||||
|
@ -8,10 +8,11 @@
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
led-boot = &power_orange;
|
||||
led-failsafe = &power_orange;
|
||||
led-running = &power_green;
|
||||
led-upgrade = &power_orange;
|
||||
led-boot = &led_power_orange;
|
||||
led-failsafe = &led_power_orange;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_orange;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -36,7 +37,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wps {
|
||||
@ -44,12 +45,12 @@
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
power_green: power_green {
|
||||
led_power_green: power_green {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
power_orange: power_orange {
|
||||
led_power_orange: power_orange {
|
||||
label = "netgear:orange:power";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -68,6 +69,7 @@
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan2g {
|
||||
label = "netgear:green:wlan2g";
|
||||
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
|
||||
@ -81,8 +83,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
@ -105,6 +106,7 @@
|
||||
|
||||
rtl8366s {
|
||||
compatible = "realtek,rtl8366s";
|
||||
|
||||
gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
||||
gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@ -177,6 +179,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -33,4 +33,3 @@
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
|
||||
|
36
target/linux/ath79/dts/ar7161_netgear_wndr3800ch.dts
Normal file
36
target/linux/ath79/dts/ar7161_netgear_wndr3800ch.dts
Normal file
@ -0,0 +1,36 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7161_netgear_wndr3700.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wndr3800ch", "qca,ar7161";
|
||||
model = "Netgear WNDR3800CH";
|
||||
};
|
||||
|
||||
&partitions {
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x050000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x050000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@70000 {
|
||||
label = "firmware";
|
||||
reg = <0x070000 0xf80000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
|
@ -12,10 +12,10 @@
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &rf;
|
||||
led-failsafe = &rf;
|
||||
led-running = &rf;
|
||||
led-upgrade = &rf;
|
||||
led-boot = &led_rf;
|
||||
led-failsafe = &led_rf;
|
||||
led-running = &led_rf;
|
||||
led-upgrade = &led_rf;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -28,15 +28,14 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
rf: rf_green {
|
||||
led_rf: rf_green {
|
||||
label = "ubnt:green:rf";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "sw4";
|
||||
|
@ -11,14 +11,13 @@
|
||||
model = "Buffalo WHR-G301N";
|
||||
|
||||
aliases {
|
||||
led-boot = &diag;
|
||||
led-failsafe = &diag;
|
||||
led-upgrade = &diag;
|
||||
led-boot = &led_diag;
|
||||
led-failsafe = &led_diag;
|
||||
led-upgrade = &led_diag;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
router_on {
|
||||
label = "router_on";
|
||||
@ -51,7 +50,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_pins>;
|
||||
@ -61,7 +60,7 @@
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
diag: diag {
|
||||
led_diag: diag {
|
||||
label = "whr-g301n:red:diag";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -110,6 +109,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
204
target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts
Normal file
204
target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts
Normal file
@ -0,0 +1,204 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7240.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wnr1000-v2", "qca,ar7240";
|
||||
model = "Netgear WNR1000 v2";
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_amber;
|
||||
led-failsafe = &led_power_amber;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_amber;
|
||||
label-mac-device = ð1;
|
||||
};
|
||||
|
||||
ath9k-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
|
||||
|
||||
led_power_green: power_green {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_amber: power_amber {
|
||||
label = "netgear:amber:power";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
wan_green {
|
||||
label = "netgear:green:wan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_amber {
|
||||
label = "netgear:amber:wan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_green {
|
||||
label = "netgear:green:lan1";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_amber {
|
||||
label = "netgear:amber:lan1";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_green {
|
||||
label = "netgear:green:lan2";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_amber {
|
||||
label = "netgear:amber:lan2";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_green {
|
||||
label = "netgear:green:lan3";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_amber {
|
||||
label = "netgear:amber:lan3";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_green {
|
||||
label = "netgear:green:lan4";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_amber {
|
||||
label = "netgear:amber:lan4";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wps_green {
|
||||
label = "netgear:green:wps";
|
||||
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan_blue {
|
||||
label = "netgear:blue:wlan";
|
||||
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x10000>;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x3a0000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
art: partition@3f0000 {
|
||||
label = "art";
|
||||
reg = <0x3f0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,002b";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
@ -4,7 +4,6 @@
|
||||
#include "ar7240_netgear_wnr612-v2.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Netgear WNR612 v2";
|
||||
compatible = "netgear,wnr612-v2", "qca,ar7240";
|
||||
model = "Netgear WNR612 v2";
|
||||
};
|
||||
|
||||
|
@ -8,13 +8,14 @@
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
led-boot = &power;
|
||||
led-failsafe = &power;
|
||||
led-running = &power;
|
||||
led-upgrade = &power;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
label-mac-device = ð1;
|
||||
};
|
||||
|
||||
keys {
|
||||
ath9k-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
@ -28,7 +29,11 @@
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
power: power {
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
|
||||
|
||||
led_power: power {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -47,8 +52,12 @@
|
||||
label = "netgear:green:wan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
wlan: wlan {
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan {
|
||||
label = "netgear:green:wlan";
|
||||
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
@ -58,6 +67,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -70,7 +80,7 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
partition@0 {
|
||||
reg = <0x0 0x40000>;
|
||||
label = "u-boot";
|
||||
read-only;
|
||||
@ -87,7 +97,7 @@
|
||||
label = "firmware";
|
||||
};
|
||||
|
||||
partition@3f0000 {
|
||||
art: partition@3f0000 {
|
||||
reg = <0x3f0000 0x10000>;
|
||||
label = "art";
|
||||
read-only;
|
||||
@ -99,15 +109,13 @@
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
@ -116,6 +124,8 @@
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,002b";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include "ar7240_netgear_wnr612-v2.dtsi"
|
||||
|
||||
/ {
|
||||
model = "ON Network N150R";
|
||||
compatible = "on,n150r", "qca,ar7240";
|
||||
model = "ON Network N150R";
|
||||
};
|
||||
|
||||
|
@ -11,11 +11,11 @@
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = &ath9k;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -32,7 +32,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_pins>;
|
||||
@ -86,6 +86,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -78,7 +78,7 @@
|
||||
};
|
||||
|
||||
ð1 {
|
||||
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
|
||||
compatible = "qca,ar7241-eth", "syscon";
|
||||
|
||||
pll-data = <0x00110000 0x00001099 0x00991099>;
|
||||
|
||||
|
208
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
Normal file
208
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
Normal file
@ -0,0 +1,208 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7241.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wnr2000-v3", "qca,ar7241";
|
||||
model = "Netgear WNR2000 v3";
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_amber;
|
||||
led-failsafe = &led_power_amber;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_amber;
|
||||
label-mac-device = ð1;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
|
||||
|
||||
wan_green {
|
||||
label = "netgear:green:wan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_amber {
|
||||
label = "netgear:amber:wan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_green {
|
||||
label = "netgear:green:lan1";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_amber {
|
||||
label = "netgear:amber:lan1";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_green {
|
||||
label = "netgear:green:lan2";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_amber {
|
||||
label = "netgear:amber:lan2";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_green {
|
||||
label = "netgear:green:lan3";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_amber {
|
||||
label = "netgear:amber:lan3";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_green {
|
||||
label = "netgear:green:lan4";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_amber {
|
||||
label = "netgear:amber:lan4";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps_green {
|
||||
label = "netgear:green:wps";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power_green {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_amber: power_amber {
|
||||
label = "netgear:amber:power";
|
||||
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
wlan_blue {
|
||||
label = "netgear:blue:wlan";
|
||||
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x10000>;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x3a0000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
art: partition@3f0000 {
|
||||
label = "art";
|
||||
reg = <0x3f0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,002e";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
34
target/linux/ath79/dts/ar7241_netgear_wnr2200-16m.dts
Normal file
34
target/linux/ath79/dts/ar7241_netgear_wnr2200-16m.dts
Normal file
@ -0,0 +1,34 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7241_netgear_wnr2200.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wnr2200-16m", "qca,ar7241";
|
||||
model = "Netgear WNR2200 (16M)";
|
||||
};
|
||||
|
||||
&partitions {
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x10000>;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
reg = <0x50000 0xfa0000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
34
target/linux/ath79/dts/ar7241_netgear_wnr2200-8m.dts
Normal file
34
target/linux/ath79/dts/ar7241_netgear_wnr2200-8m.dts
Normal file
@ -0,0 +1,34 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7241_netgear_wnr2200.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wnr2200-8m", "qca,ar7241";
|
||||
model = "Netgear WNR2200 (8M)";
|
||||
};
|
||||
|
||||
&partitions {
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x10000>;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x7a0000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
207
target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi
Normal file
207
target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi
Normal file
@ -0,0 +1,207 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7241.dtsi"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_amber;
|
||||
led-failsafe = &led_power_amber;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_amber;
|
||||
label-mac-device = ð1;
|
||||
};
|
||||
|
||||
ath9k-keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
|
||||
|
||||
wan_green {
|
||||
label = "netgear:green:wan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_amber {
|
||||
label = "netgear:amber:wan";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_green {
|
||||
label = "netgear:green:lan1";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1_amber {
|
||||
label = "netgear:amber:lan1";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_green {
|
||||
label = "netgear:green:lan2";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2_amber {
|
||||
label = "netgear:amber:lan2";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_green {
|
||||
label = "netgear:green:lan3";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3_amber {
|
||||
label = "netgear:amber:lan3";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_green {
|
||||
label = "netgear:green:lan4";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4_amber {
|
||||
label = "netgear:amber:lan4";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps_green {
|
||||
label = "netgear:green:wps";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb_green {
|
||||
label = "netgear:green:usb";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_green: power_green {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_amber: power_amber {
|
||||
label = "netgear:amber:power";
|
||||
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
wlan_blue {
|
||||
label = "netgear:blue:wlan";
|
||||
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions: partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,002e";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
|
||||
usb_power {
|
||||
gpio-hog;
|
||||
line-name = "netgear:power:usb";
|
||||
gpios = <4 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
hub_port: port@1 {
|
||||
reg = <1>;
|
||||
#trigger-source-cells = <0>;
|
||||
};
|
||||
};
|
@ -11,11 +11,11 @@
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = &ath9k;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -32,7 +32,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio_leds: gpio-leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -49,6 +49,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -15,7 +15,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
&gpio_leds {
|
||||
&leds {
|
||||
led3g {
|
||||
label = "tp-link:green:3g";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
|
@ -15,11 +15,11 @@
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = &ath9k;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
@ -36,7 +36,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
@ -95,6 +95,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -8,16 +8,17 @@
|
||||
model = "Ubiquiti AirRouter";
|
||||
|
||||
aliases {
|
||||
led-boot = &globe;
|
||||
led-failsafe = &globe;
|
||||
led-running = &globe;
|
||||
led-upgrade = &globe;
|
||||
led-boot = &led_globe;
|
||||
led-failsafe = &led_globe;
|
||||
led-running = &led_globe;
|
||||
led-upgrade = &led_globe;
|
||||
label-mac-device = &wifi;
|
||||
};
|
||||
|
||||
airrouter-leds {
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
globe: globe {
|
||||
led_globe: globe {
|
||||
label = "ubnt:green:globe";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -30,9 +31,9 @@
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -11,10 +11,11 @@
|
||||
model = "Ubiquiti UniFi AP";
|
||||
|
||||
aliases {
|
||||
led-boot = &dome_green;
|
||||
led-failsafe = &dome_green;
|
||||
led-running = &dome_green;
|
||||
led-upgrade = &dome_green;
|
||||
led-boot = &led_dome_green;
|
||||
led-failsafe = &led_dome_green;
|
||||
led-running = &led_dome_green;
|
||||
led-upgrade = &led_dome_green;
|
||||
label-mac-device = &wifi;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -24,8 +25,8 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
@ -35,12 +36,13 @@
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
dome_green: dome-green {
|
||||
|
||||
led_dome_green: dome_green {
|
||||
label = "ubnt:green:dome";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
dome-orange {
|
||||
dome_orange {
|
||||
label = "ubnt:orange:dome";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
@ -57,6 +59,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -75,30 +78,30 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@1 {
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
};
|
||||
|
||||
partition@2 {
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x050000 0x750000>;
|
||||
};
|
||||
|
||||
partition@3 {
|
||||
partition@7a0000 {
|
||||
label = "board_config";
|
||||
reg = <0x7a0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@4 {
|
||||
partition@7b0000 {
|
||||
label = "cfg";
|
||||
reg = <0x7b0000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@5 {
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
@ -110,7 +113,7 @@
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
wifi@0,0 {
|
||||
wifi: wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
@ -9,15 +9,9 @@
|
||||
compatible = "ubnt,xm", "qca,ar7241";
|
||||
model = "Ubiquiti Networks XM (rev 1.0) board";
|
||||
|
||||
/* extosc: ref {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
*/
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
@ -30,12 +24,9 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/*&pll {
|
||||
clocks = <&extosc>;
|
||||
};*/
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -54,30 +45,30 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@1 {
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
};
|
||||
|
||||
partition@2 {
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x050000 0x750000>;
|
||||
};
|
||||
|
||||
partition@3 {
|
||||
partition@7a0000 {
|
||||
label = "board_config";
|
||||
reg = <0x7a0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@4 {
|
||||
partition@7b0000 {
|
||||
label = "cfg";
|
||||
reg = <0x7b0000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@5 {
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
@ -89,7 +80,7 @@
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
wifi@0,0 {
|
||||
wifi: wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
@ -1,18 +1,17 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7241_ubnt_xm.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
led-boot = &link4;
|
||||
led-failsafe = &link4;
|
||||
led-boot = &led_link4;
|
||||
led-failsafe = &led_link4;
|
||||
label-mac-device = &wifi;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
link1 {
|
||||
label = "ubnt:red:link1";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
@ -28,7 +27,7 @@
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link4: link4 {
|
||||
led_link4: link4 {
|
||||
label = "ubnt:green:link4";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
@ -45,7 +45,7 @@
|
||||
};
|
||||
|
||||
ð0 {
|
||||
compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
|
||||
compatible = "qca,ar7242-eth", "syscon";
|
||||
|
||||
pll-data = <0x16000000 0x00000101 0x00001616>;
|
||||
pll-reg = <0x4 0x2c 17>;
|
||||
@ -72,7 +72,7 @@
|
||||
};
|
||||
|
||||
ð1 {
|
||||
compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
|
||||
compatible = "qca,ar7242-eth", "syscon";
|
||||
|
||||
resets = <&rst 13>;
|
||||
reset-names = "mac";
|
||||
|
@ -11,15 +11,15 @@
|
||||
model = "AVM FRITZ!WLAN Repeater 300E";
|
||||
|
||||
aliases {
|
||||
led-boot = &power;
|
||||
led-failsafe = &power;
|
||||
led-running = &power;
|
||||
led-upgrade = &power;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
label-mac-device = &ath9k;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
@ -32,7 +32,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
power: power {
|
||||
led_power: power {
|
||||
label = "fritz300e:green:power";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -96,6 +96,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -8,10 +8,13 @@
|
||||
model = "Buffalo BHR-4GRV";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
mtd-mac-address = <&ART 0x0>;
|
||||
&leds {
|
||||
sec_vpn {
|
||||
label = "buffalo:orange:vpn";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
&sec_vpn {
|
||||
label = "buffalo:orange:vpn";
|
||||
ð0 {
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
led-boot = &diag;
|
||||
led-failsafe = &diag;
|
||||
led-upgrade = &diag;
|
||||
led-boot = &led_diag;
|
||||
led-failsafe = &led_diag;
|
||||
led-upgrade = &led_diag;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -20,8 +20,7 @@
|
||||
};
|
||||
|
||||
keys: keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
usb {
|
||||
label = "usb";
|
||||
@ -38,14 +37,10 @@
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
sec_vpn: sec_vpn {
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
diag: diag {
|
||||
led_diag: diag {
|
||||
label = "buffalo:red:diag";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -89,9 +84,9 @@
|
||||
label = "u-boot-env";
|
||||
};
|
||||
|
||||
ART: partition@50000 {
|
||||
art: partition@50000 {
|
||||
reg = <0x50000 0x10000>;
|
||||
label = "ART";
|
||||
label = "art";
|
||||
read-only;
|
||||
};
|
||||
|
||||
@ -112,6 +107,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
cs-gpios = <0>, <0>;
|
||||
num-cs = <2>;
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
model = "Buffalo WZR-HP-G302H A1A0";
|
||||
|
||||
aliases {
|
||||
led-boot = &diag;
|
||||
led-failsafe = &diag;
|
||||
led-upgrade = &diag;
|
||||
led-boot = &led_diag;
|
||||
led-failsafe = &led_diag;
|
||||
led-upgrade = &led_diag;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -23,8 +23,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -33,7 +32,7 @@
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
button_usb {
|
||||
usb {
|
||||
label = "usb";
|
||||
linux,code = <BTN_2>;
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
@ -67,7 +66,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
diag: diag {
|
||||
led_diag: diag {
|
||||
label = "buffalo:red:diag";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -164,6 +163,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
cs-gpios = <0>, <0>;
|
||||
num-cs = <2>;
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7242_buffalo_wzr-bhr.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
|
||||
model = "Buffalo WZR-HP-G450H/WZR-450HP";
|
||||
|
||||
aliases {
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
ath9k-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
@ -56,12 +57,15 @@
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
mtd-mac-address = <&ART 0x1002>;
|
||||
&leds {
|
||||
sec_vpn {
|
||||
label = "buffalo:orange:security";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
&sec_vpn {
|
||||
label = "buffalo:orange:security";
|
||||
ð0 {
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
@ -70,7 +74,7 @@
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,0030";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&ART 0x1002>;
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
|
@ -11,10 +11,11 @@
|
||||
model = "TP-Link TL-WR2543N/ND";
|
||||
|
||||
aliases {
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_wps;
|
||||
led-failsafe = &led_wps;
|
||||
led-running = &led_wps;
|
||||
led-upgrade = &led_wps;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -28,8 +29,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -49,7 +49,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system: wps {
|
||||
led_wps: wps {
|
||||
label = "tplink:green:wps";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -102,6 +102,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
|
@ -75,7 +75,15 @@
|
||||
#pinctrl-cells = <2>;
|
||||
|
||||
jtag_disable_pins: pinmux_jtag_disable_pins {
|
||||
pinctrl-single,bits = <0x0 0x1 0x1>;
|
||||
pinctrl-single,bits = <0x0 0x1 0x1>;
|
||||
};
|
||||
|
||||
switch_led_disable_pins: pinmux_switch_led_disable_pins {
|
||||
pinctrl-single,bits = <0x0 0x0 0xf8>;
|
||||
};
|
||||
|
||||
clks_disable_pins: pinmux_clks_disable_pins {
|
||||
pinctrl-single,bits = <0x0 0x0 0x81f00>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -11,10 +11,11 @@
|
||||
model = "TP-Link TL-WA901ND v2";
|
||||
|
||||
aliases {
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -44,7 +45,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system: system {
|
||||
led_system: system {
|
||||
label = "tp-link:green:system";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -72,6 +73,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -125,6 +127,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -11,10 +11,11 @@
|
||||
model = "TP-Link TL-WR1043ND v1";
|
||||
|
||||
aliases {
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
extosc: ref {
|
||||
@ -26,14 +27,14 @@
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button0 {
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
button1 {
|
||||
qss {
|
||||
label = "qss";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
@ -43,6 +44,7 @@
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
usb {
|
||||
label = "tp-link:green:usb";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
@ -50,7 +52,7 @@
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
|
||||
system: system {
|
||||
led_system: system {
|
||||
label = "tp-link:green:system";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
@ -103,6 +105,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -150,6 +153,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -15,19 +15,20 @@
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button0 {
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
button1 {
|
||||
qss {
|
||||
label = "qss";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||||
|
@ -74,8 +74,8 @@
|
||||
pinctrl-single,bits = <0x0 0x1 0x1>;
|
||||
};
|
||||
|
||||
switch_led_pins: pinmux_switch_led_pins {
|
||||
pinctrl-single,bits = <0x0 0x1f 0xf8>;
|
||||
switch_led_disable_pins: pinmux_switch_led_disable_pins {
|
||||
pinctrl-single,bits = <0x0 0x0 0xf8>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -86,6 +86,16 @@
|
||||
#clock-cells = <1>;
|
||||
};
|
||||
|
||||
wdt: wdt@18060008 {
|
||||
compatible = "qca,ar7130-wdt";
|
||||
reg = <0x18060008 0x8>;
|
||||
|
||||
interrupts = <4>;
|
||||
|
||||
clocks = <&pll ATH79_CLK_AHB>;
|
||||
clock-names = "wdt";
|
||||
};
|
||||
|
||||
rst: reset-controller@1806001c {
|
||||
compatible = "qca,ar7100-reset";
|
||||
reg = <0x1806001c 0x4>;
|
||||
@ -192,7 +202,7 @@
|
||||
};
|
||||
|
||||
ð1 {
|
||||
compatible = "qca,ar9330-eth", "syscon", "simple-mfd";
|
||||
compatible = "qca,ar9330-eth", "syscon";
|
||||
|
||||
pll-data = <0x00110000 0x00001099 0x00991099>;
|
||||
phy-mode = "gmii";
|
||||
|
@ -12,15 +12,16 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &wlan;
|
||||
led-failsafe = &wlan;
|
||||
led-upgrade = &wlan;
|
||||
led-boot = &led_wlan;
|
||||
led-failsafe = &led_wlan;
|
||||
led-upgrade = &led_wlan;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan: wlan {
|
||||
led_wlan: wlan {
|
||||
label = "gl-ar150:orange:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
@ -38,8 +39,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
manual {
|
||||
label = "manual";
|
||||
@ -80,9 +80,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-chipselects = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
@ -111,7 +112,7 @@
|
||||
};
|
||||
|
||||
art: partition@3 {
|
||||
label = "ART";
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
@ -140,6 +141,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
@ -12,15 +12,15 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &wlan;
|
||||
led-failsafe = &wlan;
|
||||
led-upgrade = &wlan;
|
||||
led-boot = &led_wlan;
|
||||
led-failsafe = &led_wlan;
|
||||
led-upgrade = &led_wlan;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan: wlan {
|
||||
led_wlan: wlan {
|
||||
label = "air-pen:blue:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
@ -33,8 +33,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
@ -70,9 +69,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
@ -136,11 +136,13 @@
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x2>;
|
||||
};
|
||||
|
135
target/linux/ath79/dts/ar9331_8dev_carambola2.dts
Normal file
135
target/linux/ath79/dts/ar9331_8dev_carambola2.dts
Normal file
@ -0,0 +1,135 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "8devices Carambola2";
|
||||
compatible = "8dev,carambola2", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan {
|
||||
label = "carambola2:green:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
eth0 {
|
||||
label = "carambola2:orange:eth0";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
eth1 {
|
||||
label = "carambola2:orange:eth1";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <0>;
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
reg = <0>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0xfa0000>;
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
|
||||
switch-phy-addr-swap = <1>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
138
target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts
Normal file
138
target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts
Normal file
@ -0,0 +1,138 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "ALFA Network AP121F";
|
||||
compatible = "alfa-network,ap121f", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
label-mac-device = &wmac;
|
||||
led-boot = &led_vpn;
|
||||
led-failsafe = &led_vpn;
|
||||
led-upgrade = &led_vpn;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
switch {
|
||||
label = "switch";
|
||||
linux,code = <BTN_0>;
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
label = "ap121f:green:lan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_vpn: vpn {
|
||||
label = "ap121f:green:vpn";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "ap121f:green:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-addr-swap = <0>;
|
||||
switch-phy-swap = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x000000 0x030000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x030000 0x010000>;
|
||||
};
|
||||
|
||||
art: partition@40000 {
|
||||
label = "art";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x050000 0xfb0000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
dr_mode = "host";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
@ -1,69 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "DPTechnics DPT-Module";
|
||||
compatible = "dptechnics,dpt-module", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system {
|
||||
label = "dpt-module:green:system";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
button0 {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
/* Winbond 25Q128FVSG SPI flash */
|
||||
flash@0 {
|
||||
compatible = "winbond,w25q128", "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
@ -1,90 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Dragino MS14 (Dragino 2)";
|
||||
compatible = "dragino,ms14", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wlan {
|
||||
label = "dragino2:red:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
lan {
|
||||
label = "dragino2:red:lan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "dragino2:red:wan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
system {
|
||||
label = "dragino2:red:system";
|
||||
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
button0 {
|
||||
label = "jumpstart";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
button1 {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
/* Winbond 25Q128BVFG SPI flash */
|
||||
flash@0 {
|
||||
compatible = "winbond,w25q128", "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
@ -11,25 +11,24 @@
|
||||
compatible = "embeddedwireless,dorin", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
led-boot = &status;
|
||||
led-failsafe = &status;
|
||||
led-running = &status;
|
||||
led-upgrade = &status;
|
||||
led-boot = &led_status;
|
||||
led-failsafe = &led_status;
|
||||
led-running = &led_status;
|
||||
led-upgrade = &led_status;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status: status {
|
||||
led_status: status {
|
||||
label = "dorin:green:status";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
@ -63,9 +62,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-chipselects = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
@ -94,7 +94,7 @@
|
||||
};
|
||||
|
||||
art: partition@3 {
|
||||
label = "ART";
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
@ -116,6 +116,6 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
@ -11,28 +11,32 @@
|
||||
compatible = "etactica,eg200", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_etactica;
|
||||
led-failsafe = &led_etactica;
|
||||
led-upgrade = &led_etactica;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <50>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
restore {
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_disable_pins>;
|
||||
|
||||
modbus {
|
||||
label = "eg200:red:modbus";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
etactica {
|
||||
led_etactica: etactica {
|
||||
label = "eg200:red:etactica";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
@ -123,5 +127,4 @@
|
||||
&wmac {
|
||||
status = "okay";
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
@ -1,69 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Onion Omega";
|
||||
compatible = "onion,omega", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system {
|
||||
label = "onion:amber:system";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <100>;
|
||||
|
||||
button0 {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
/* Winbond 25Q128FVSG SPI flash */
|
||||
flash@0 {
|
||||
compatible = "winbond,w25q128", "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
116
target/linux/ath79/dts/ar9331_pisen_ts-d084.dts
Normal file
116
target/linux/ath79/dts/ar9331_pisen_ts-d084.dts
Normal file
@ -0,0 +1,116 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Pisen TS-D084";
|
||||
compatible = "pisen,ts-d084", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system: system {
|
||||
label = "ts-d084:blue:system";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
reg = <0x0 0x20000>;
|
||||
label = "u-boot";
|
||||
read-only;
|
||||
};
|
||||
|
||||
firmware: partition@20000 {
|
||||
compatible = "tplink,firmware";
|
||||
reg = <0x20000 0x7d0000>;
|
||||
label = "firmware";
|
||||
};
|
||||
|
||||
art: partition@7f0000 {
|
||||
reg = <0x7f0000 0x10000>;
|
||||
label = "art";
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
|
||||
switch-phy-addr-swap = <0>;
|
||||
switch-phy-swap = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
@ -19,8 +19,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
|
@ -12,10 +12,11 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_wps;
|
||||
led-failsafe = &led_wps;
|
||||
led-running = &led_wps;
|
||||
led-upgrade = &led_wps;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
leds {
|
||||
@ -32,7 +33,7 @@
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
system: wps {
|
||||
led_wps: wps {
|
||||
label = "tp-link:green:wps";
|
||||
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -48,14 +49,14 @@
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button0 {
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
button1 {
|
||||
sw1 {
|
||||
label = "sw1";
|
||||
linux,input-type = <EV_SW>;
|
||||
linux,code = <BTN_0>;
|
||||
@ -63,7 +64,7 @@
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
button2 {
|
||||
sw2 {
|
||||
label = "sw2";
|
||||
linux,input-type = <EV_SW>;
|
||||
linux,code = <BTN_1>;
|
||||
@ -112,9 +113,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-chipselects = <1>;
|
||||
|
||||
/* Spansion S25FL032PIF SPI flash */
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
@ -153,7 +155,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
@ -168,11 +169,13 @@
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -13,11 +13,15 @@
|
||||
aliases {
|
||||
led-boot = &led_lan;
|
||||
led-failsafe = &led_lan;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_disable_pins>;
|
||||
|
||||
wlan {
|
||||
label = "tp-link:green:wlan";
|
||||
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
||||
@ -38,8 +42,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -105,9 +108,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-chipselects = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <104000000>;
|
||||
@ -153,11 +157,13 @@
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -9,15 +9,15 @@
|
||||
/ {
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -30,7 +30,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system: system {
|
||||
led_system: system {
|
||||
label = "tl-wr703n:blue:system";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -43,11 +43,11 @@
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -66,7 +66,7 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
firmware: partition@20000 {
|
||||
partition@20000 {
|
||||
compatible = "tplink,firmware";
|
||||
reg = <0x20000 0x3d0000>;
|
||||
label = "firmware";
|
||||
@ -96,6 +96,7 @@
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
@ -119,6 +120,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -16,11 +16,11 @@
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -47,7 +47,6 @@
|
||||
gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
||||
enable-active-high;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&spi {
|
||||
|
@ -12,15 +12,15 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -39,8 +39,9 @@
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_pins>;
|
||||
pinctrl-0 = <&switch_led_disable_pins>;
|
||||
|
||||
lan1 {
|
||||
label = "tp-link:green:lan1";
|
||||
@ -67,7 +68,7 @@
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
system: system {
|
||||
led_system: system {
|
||||
label = "tp-link:green:system";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -87,6 +88,7 @@
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -151,6 +153,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -12,15 +12,14 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &status;
|
||||
led-failsafe = &status;
|
||||
led-running = &status;
|
||||
led-upgrade = &status;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
@ -43,7 +42,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status: power {
|
||||
led_power: power {
|
||||
label = "pcs:amber:power";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -140,7 +139,6 @@
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
||||
ð0 {
|
||||
|
225
target/linux/ath79/dts/ar9341_pisen_wmb001n.dts
Normal file
225
target/linux/ath79/dts/ar9341_pisen_wmb001n.dts
Normal file
@ -0,0 +1,225 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9341.dtsi"
|
||||
|
||||
/ {
|
||||
model = "PISEN WMB001N";
|
||||
compatible = "pisen,wmb001n", "qca,ar9341";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &led_wifi;
|
||||
led-failsafe = &led_wifi;
|
||||
led-running = &led_wifi;
|
||||
led-upgrade = &led_wifi;
|
||||
};
|
||||
|
||||
i2c {
|
||||
compatible = "i2c-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pmx_i2c_gpio &pmx_i2s_spdif>;
|
||||
|
||||
sda-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
scl-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
|
||||
/*
|
||||
* Pull-up resistor for scl is missing on this board.
|
||||
* Following settings trick i2c-gpio to use output mode
|
||||
* instead of open-drain for scl.
|
||||
*/
|
||||
i2c-gpio,scl-output-only;
|
||||
i2c-gpio,scl-open-drain;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
vol_down {
|
||||
label = "volume down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
vol_up {
|
||||
label = "volume up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
volume1 {
|
||||
label = "wmb001n:blue:volume1";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
volume2 {
|
||||
label = "wmb001n:blue:volume2";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
volume3 {
|
||||
label = "wmb001n:blue:volume3";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
volume4 {
|
||||
label = "wmb001n:blue:volume4";
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
volume5 {
|
||||
label = "wmb001n:blue:volume5";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
led_wifi: wifi {
|
||||
label = "wmb001n:blue:wifi";
|
||||
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
virtual_flash {
|
||||
compatible = "mtd-concat";
|
||||
devices = <&fwpart1 &fwpart2>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
reg = <0x0 0x0>;
|
||||
label = "firmware";
|
||||
compatible = "openwrt,okli";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
pmx_i2c_gpio: pinmux_i2c_gpio {
|
||||
pinctrl-single,bits = <0x10 0x0 0xff>,
|
||||
<0x14 0x0 0xff>;
|
||||
};
|
||||
|
||||
pmx_i2s_spdif: pinmux_i2s_spdif {
|
||||
pinctrl-single,bits = <0x8 0x0e000000 0xff000000>,
|
||||
<0xc 0x0f0c0d 0xffffff>,
|
||||
<0x14 0x1900 0xff00>;
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@10000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x10000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
fwpart1: partition@20000 {
|
||||
label = "fwpart1";
|
||||
reg = <0x20000 0xdc0000>;
|
||||
};
|
||||
|
||||
partition@de0000 {
|
||||
label = "loader";
|
||||
reg = <0xde0000 0x10000>;
|
||||
};
|
||||
|
||||
fwpart2: partition@df0000 {
|
||||
label = "fwpart2";
|
||||
reg = <0xdf0000 0x1f0000>;
|
||||
};
|
||||
|
||||
partition@fe0000 {
|
||||
label = "mib0";
|
||||
reg = <0xfe0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
phy-handle = <&swphy4>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
compatible = "syscon", "simple-mfd";
|
||||
status = "okay";
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
115
target/linux/ath79/dts/ar9341_tplink.dtsi
Normal file
115
target/linux/ath79/dts/ar9341_tplink.dtsi
Normal file
@ -0,0 +1,115 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9341.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
keys: keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
rfkill {
|
||||
label = "WiFi";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power: power {
|
||||
label = "tp-link:green:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "tp-link:green:wlan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
qss {
|
||||
label = "tp-link:green:qss";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "tp-link:green:wan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1 {
|
||||
label = "tp-link:green:lan1";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2 {
|
||||
label = "tp-link:green:lan2";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3 {
|
||||
label = "tp-link:green:lan3";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4 {
|
||||
label = "tp-link:green:lan4";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy0>;
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
87
target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
Normal file
87
target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
Normal file
@ -0,0 +1,87 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9341_tplink.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TP-Link TL-MR3420 v2";
|
||||
compatible = "tplink,tl-mr3420-v2", "qca,ar9341";
|
||||
};
|
||||
|
||||
&keys {
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
&leds {
|
||||
usb {
|
||||
label = "tp-link:green:usb";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
};
|
||||
|
||||
&gpio {
|
||||
usb_power {
|
||||
gpio-hog;
|
||||
gpios = <4 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
line-name = "tp-link:power:usb";
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@20000 {
|
||||
compatible = "tplink,firmware";
|
||||
label = "firmware";
|
||||
reg = <0x020000 0x3d0000>;
|
||||
};
|
||||
|
||||
art: partition@3f0000 {
|
||||
label = "art";
|
||||
reg = <0x3f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
hub_port: port@1 {
|
||||
reg = <1>;
|
||||
#trigger-source-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
@ -1,102 +1,20 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9341.dtsi"
|
||||
#include "ar9341_tplink.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TP-Link TL-WR841N/ND v8";
|
||||
compatible = "tplink,tl-wr841-v8", "qca,ar9341";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "WiFi";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system: power {
|
||||
label = "tp-link:green:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "tp-link:green:wlan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
qss {
|
||||
label = "tp-link:green:qss";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "tp-link:green:wan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1 {
|
||||
label = "tp-link:green:lan1";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2 {
|
||||
label = "tp-link:green:lan2";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3 {
|
||||
label = "tp-link:green:lan3";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4 {
|
||||
label = "tp-link:green:lan4";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
&keys {
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
@ -134,31 +52,3 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy0>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
|
||||
pll-data = <0x06000000 0x00000101 0x00001616>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -1,98 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9341.dtsi"
|
||||
#include "ar9341_tplink.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TP-Link TL-WR842N/ND v2";
|
||||
compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "WiFi";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
system: power {
|
||||
label = "tp-link:green:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "tp-link:green:wlan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
qss {
|
||||
label = "tp-link:green:qss";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "tp-link:green:wan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan1 {
|
||||
label = "tp-link:green:lan1";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2 {
|
||||
label = "tp-link:green:lan2";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan3 {
|
||||
label = "tp-link:green:lan3";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan4 {
|
||||
label = "tp-link:green:lan4";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb {
|
||||
label = "tp-link:green:usb";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
};
|
||||
|
||||
gpio-export {
|
||||
compatible = "gpio-export";
|
||||
|
||||
@ -104,23 +18,29 @@
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <25000000>;
|
||||
&keys {
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
&leds {
|
||||
usb {
|
||||
label = "tp-link:green:usb";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
@ -167,31 +87,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy0>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy4>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
phy-mode = "gmii";
|
||||
pll-data = <0x06000000 0x00000101 0x00001616>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
};
|
||||
|
@ -11,16 +11,16 @@
|
||||
model = "I-O DATA ETG3-R";
|
||||
|
||||
aliases {
|
||||
led-boot = &power;
|
||||
led-failsafe = &power;
|
||||
led-running = &power;
|
||||
led-upgrade = &power;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
power: power {
|
||||
led_power: power {
|
||||
label = "etg3-r:green:power";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -33,8 +33,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -50,9 +49,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
@ -93,7 +93,7 @@
|
||||
};
|
||||
|
||||
partition@7f0000 {
|
||||
label = "ART";
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
@ -26,7 +26,7 @@
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&eeprom 0x0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy4>;
|
||||
|
@ -51,7 +51,7 @@
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&eeprom 0x0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy4>;
|
||||
|
@ -27,7 +27,7 @@
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&eeprom 0x0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy4>;
|
||||
|
@ -58,7 +58,7 @@
|
||||
/* default for ar934x, except for 1000M and 10M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&eeprom 0x0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
@ -73,6 +73,5 @@
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&eeprom 0x1000>;
|
||||
mtd-mac-address = <&eeprom 0x1002>;
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
@ -75,8 +75,8 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
eeprom: partition@ff0000 {
|
||||
label = "EEPROM";
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
@ -88,6 +88,5 @@
|
||||
status = "okay";
|
||||
|
||||
qca,disable-5ghz;
|
||||
mtd-cal-data = <&eeprom 0x1000>;
|
||||
mtd-mac-address = <&eeprom 0x1002>;
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
@ -10,10 +10,11 @@
|
||||
model = "Ubiquiti Networks XW board";
|
||||
|
||||
aliases {
|
||||
led-boot = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-failsafe = &system;
|
||||
led-boot = &led_link4;
|
||||
led-running = &led_link4;
|
||||
led-upgrade = &led_link4;
|
||||
led-failsafe = &led_link4;
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
leds {
|
||||
@ -34,7 +35,7 @@
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
system: link4 {
|
||||
led_link4: link4 {
|
||||
label = "ubnt:green:link4";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -96,14 +97,14 @@
|
||||
reg = <0x050000 0x760000>;
|
||||
};
|
||||
|
||||
partition@fb0000 {
|
||||
partition@7b0000 {
|
||||
label = "cfg";
|
||||
reg = <0x7b0000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
eeprom: partition@ff0000 {
|
||||
label = "EEPROM";
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
@ -114,10 +115,9 @@
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&eeprom 0x1000>;
|
||||
mtd-mac-address = <&eeprom 0x1002>;
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
|
||||
ð0 {
|
||||
mtd-mac-address = <&eeprom 0x0>;
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
@ -31,7 +31,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
&apb {
|
||||
&ahb {
|
||||
pcie: pcie-controller@180c0000 {
|
||||
compatible = "qcom,ar9340-pci", "qcom,ar7240-pci";
|
||||
#address-cells = <3>;
|
||||
|
238
target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts
Normal file
238
target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts
Normal file
@ -0,0 +1,238 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "aerohive,hiveap-121", "qca,ar9344";
|
||||
model = "Aerohive HiveAP 121";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_white;
|
||||
led-failsafe = &led_power_orange;
|
||||
led-running = &led_power_white;
|
||||
led-upgrade = &led_power_orange;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,9600";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "Reset button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_power_orange: power_orange {
|
||||
label = "hiveap-121:orange:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_white: power_white {
|
||||
label = "hiveap-121:white:power";
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c {
|
||||
compatible = "i2c-gpio";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_HIGH /* sda */
|
||||
&gpio 12 GPIO_ACTIVE_HIGH /* scl */
|
||||
>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
tpm@29 {
|
||||
compatible = "atmel,at97sc3204t";
|
||||
reg = <0x29>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
gpio_ext_lna0 {
|
||||
gpio-hog;
|
||||
gpios = <20 0>;
|
||||
output-low;
|
||||
line-name = "hiveap-121:ext:lna0";
|
||||
};
|
||||
|
||||
gpio_ext_lna1 {
|
||||
gpio-hog;
|
||||
gpios = <19 0>;
|
||||
output-low;
|
||||
line-name = "hiveap-121:ext:lna1";
|
||||
};
|
||||
|
||||
gpio_usb_power {
|
||||
gpio-hog;
|
||||
gpios = <15 0>;
|
||||
output-high;
|
||||
line-name = "hiveap-121:power:usb";
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
wifi@0,0 {
|
||||
compatible = "pci168c,0030";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
|
||||
mtd-mac-address = <&hw_info 0x0>;
|
||||
mtd-mac-address-increment = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
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 = "u-boot";
|
||||
reg = <0x000000 0x80000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x80000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
hw_info: partition@90000 {
|
||||
label = "hw-info";
|
||||
reg = <0x90000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@a0000 {
|
||||
label = "boot-info";
|
||||
reg = <0xa0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@b0000 {
|
||||
label = "boot-sinfo";
|
||||
reg = <0xb0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&hw_info 0x0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot1";
|
||||
reg = <0x0 0x400000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@400000 {
|
||||
label = "u-boot-env1";
|
||||
reg = <0x400000 0x400000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@800000 {
|
||||
label = "kernel";
|
||||
reg = <0x800000 0x500000>;
|
||||
};
|
||||
|
||||
partition@d00000 {
|
||||
label = "ubi";
|
||||
reg = <0xd00000 0x6f00000>;
|
||||
};
|
||||
|
||||
partition@2e00000 {
|
||||
label = "wifi-info";
|
||||
reg = <0x7c00000 0x400000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&hw_info 0x0>;
|
||||
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy0>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
rgmii-gmac0 = <1>;
|
||||
rxd-delay = <1>;
|
||||
rxdv-delay = <1>;
|
||||
};
|
||||
};
|
@ -12,9 +12,10 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &wan;
|
||||
led-failsafe = &wan;
|
||||
led-upgrade = &wan;
|
||||
led-boot = &led_wan;
|
||||
led-failsafe = &led_wan;
|
||||
led-upgrade = &led_wan;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
leds {
|
||||
@ -23,7 +24,7 @@
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&led_rssimediumhigh_pin>;
|
||||
|
||||
wan: wan {
|
||||
led_wan: wan {
|
||||
label = "cf-e120a-v3:green:wan";
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -61,8 +62,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
@ -74,13 +74,14 @@
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
|
||||
pinctrl-single,bits = <0x10 0x0 0xff>;
|
||||
};
|
||||
led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
|
||||
pinctrl-single,bits = <0x10 0x0 0xff>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
@ -93,7 +94,7 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x010000>;
|
||||
read-only;
|
||||
@ -105,13 +106,13 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
firmware: partition@20000 {
|
||||
partition@20000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x020000 0x7d0000>;
|
||||
};
|
||||
|
||||
nvram: partition@7f0000 {
|
||||
partition@7f0000 {
|
||||
label = "nvram";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
|
@ -8,10 +8,10 @@
|
||||
compatible = "dlink,dir-825-c1", "qca,ar9344";
|
||||
|
||||
aliases {
|
||||
led-boot = &orange_power;
|
||||
led-failsafe = &orange_power;
|
||||
led-running = &blue_power;
|
||||
led-upgrade = &orange_power;
|
||||
led-boot = &led_power_orange;
|
||||
led-failsafe = &led_power_orange;
|
||||
led-running = &led_power_blue;
|
||||
led-upgrade = &led_power_orange;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
@ -21,40 +21,40 @@
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&enable_gpio_11>;
|
||||
|
||||
blue_power: blue_power {
|
||||
led_power_blue: power_blue {
|
||||
label = "d-link:blue:power";
|
||||
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
blue_usb {
|
||||
usb {
|
||||
label = "d-link:blue:usb";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "usbport";
|
||||
trigger-sources = <&hub_port1>;
|
||||
};
|
||||
|
||||
blue_wan {
|
||||
wan_blue {
|
||||
label = "d-link:blue:wan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
blue_wlan2g {
|
||||
wlan2g {
|
||||
label = "d-link:blue:wlan2g";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
blue_wps {
|
||||
wps {
|
||||
label = "d-link:blue:wps";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
orange_power: orange_power {
|
||||
led_power_orange: power_orange {
|
||||
label = "d-link:orange:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
orange_wan {
|
||||
wan_orange {
|
||||
label = "d-link:orange:wan";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -63,7 +63,7 @@
|
||||
leds-ath9k {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
blue_wlan5g {
|
||||
wlan5g {
|
||||
label = "d-link:blue:wlan5g";
|
||||
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
@ -76,4 +76,3 @@
|
||||
pinctrl-single,bits = <0x8 0x0 0xff000000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -8,40 +8,39 @@
|
||||
compatible = "dlink,dir-835-a1", "qca,ar9344";
|
||||
|
||||
aliases {
|
||||
led-boot = &orange_power;
|
||||
led-failsafe = &orange_power;
|
||||
led-running = &green_power;
|
||||
led-upgrade = &orange_power;
|
||||
led-boot = &led_power_orange;
|
||||
led-failsafe = &led_power_orange;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_orange;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_power: green_power {
|
||||
led_power_green: power_green {
|
||||
label = "d-link:green:power";
|
||||
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
green_wan {
|
||||
wan_green {
|
||||
label = "d-link:green:wan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
green_wps {
|
||||
wps {
|
||||
label = "d-link:green:wps";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
orange_power: orange_power {
|
||||
led_power_orange: power_orange {
|
||||
label = "d-link:orange:power";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
orange_wan {
|
||||
wan_orange {
|
||||
label = "d-link:orange:wan";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -148,4 +148,3 @@
|
||||
status = "okay";
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
||||
|
290
target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
Normal file
290
target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
Normal file
@ -0,0 +1,290 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power_amber;
|
||||
led-failsafe = &led_power_amber;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_amber;
|
||||
label-mac-device = ð0;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&enable_gpio_11>;
|
||||
|
||||
led_power_green: power_green {
|
||||
label = "netgear:green:power";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power_amber: power_amber {
|
||||
label = "netgear:amber:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
wan_green {
|
||||
label = "netgear:green:wan";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_amber {
|
||||
label = "netgear:amber:wan";
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan2g_green {
|
||||
label = "netgear:green:wlan2g";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
wlan5g_blue {
|
||||
label = "netgear:blue:wlan5g";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
|
||||
wps_green {
|
||||
label = "netgear:green:wps";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps_amber {
|
||||
label = "netgear:amber:wps";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb_green {
|
||||
label = "netgear:green:usb";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
enable_gpio_11: pinmux_enable_gpio_11 {
|
||||
pinctrl-single,bits = <0x8 0x0 0xff000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x40000>;
|
||||
};
|
||||
|
||||
art: partition@80000 {
|
||||
label = "caldata";
|
||||
reg = <0x80000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@c0000 {
|
||||
label = "pot";
|
||||
reg = <0xc0000 0x80000>;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
label = "language";
|
||||
reg = <0x140000 0x200000>;
|
||||
};
|
||||
|
||||
partition@340000 {
|
||||
label = "config";
|
||||
reg = <0x340000 0x80000>;
|
||||
};
|
||||
|
||||
partition@3c0000 {
|
||||
label = "traffic_meter";
|
||||
reg = <0x3c0000 0x300000>;
|
||||
};
|
||||
|
||||
kernel@6c0000 {
|
||||
label = "kernel";
|
||||
reg = <0x6c0000 0x200000>;
|
||||
};
|
||||
|
||||
ubi@8c0000 {
|
||||
label = "ubi";
|
||||
reg = <0x8c0000 0x1700000>;
|
||||
};
|
||||
|
||||
partition@6c0000 {
|
||||
label = "firmware";
|
||||
reg = <0x6c0000 0x1900000>;
|
||||
compatible = "netgear,uimage";
|
||||
};
|
||||
|
||||
partition@1fc0000 {
|
||||
label = "caldata_backup";
|
||||
reg = <0x1fc0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@2000000 {
|
||||
label = "reserved";
|
||||
reg = <0x2000000 0x6000000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&builtin_switch {
|
||||
resets = <&rst 8>, <&rst 12>;
|
||||
reset-names = "switch", "switch-analog";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mask = <0>;
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
qca,mib-poll-interval = <500>;
|
||||
|
||||
qca,ar8327-initvals = <
|
||||
0x04 0x07600000
|
||||
0x0c 0x01000000
|
||||
0x10 0xc1000000
|
||||
0x50 0xcc35cc35
|
||||
0x54 0xcb37cb37
|
||||
0x58 0x00000000
|
||||
0x5c 0x00f3cf00
|
||||
0x7c 0x0000007e
|
||||
0x94 0x0000007e
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001616>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
|
||||
lna0 {
|
||||
gpio-hog;
|
||||
line-name = "netgear:ext:lna0";
|
||||
gpios = <18 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
};
|
||||
|
||||
lna1 {
|
||||
gpio-hog;
|
||||
line-name = "netgear:ext:lna1";
|
||||
gpios = <19 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,0033";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address = <&art 0xc>;
|
||||
qca,no-eeprom;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
|
||||
usb_power {
|
||||
gpio-hog;
|
||||
line-name = "netgear:power:usb";
|
||||
gpios = <0 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
hub_port: port@1 {
|
||||
reg = <1>;
|
||||
#trigger-source-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
9
target/linux/ath79/dts/ar9344_netgear_wndr3700-v4.dts
Normal file
9
target/linux/ath79/dts/ar9344_netgear_wndr3700-v4.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_netgear_wndr.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wndr3700-v4", "qca,ar9344";
|
||||
model = "Netgear WNDR3700 v4";
|
||||
};
|
9
target/linux/ath79/dts/ar9344_netgear_wndr4300.dts
Normal file
9
target/linux/ath79/dts/ar9344_netgear_wndr4300.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_netgear_wndr.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "netgear,wndr4300", "qca,ar9344";
|
||||
model = "Netgear WNDR4300";
|
||||
};
|
@ -15,10 +15,10 @@
|
||||
};
|
||||
|
||||
aliases {
|
||||
led-boot = &system;
|
||||
led-failsafe = &system;
|
||||
led-running = &system;
|
||||
led-upgrade = &system;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
leds {
|
||||
@ -36,7 +36,7 @@
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
system: system {
|
||||
led_system: system {
|
||||
label = "raccoon:blue:sys";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
@ -53,8 +53,7 @@
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
@ -77,10 +76,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
@ -162,18 +161,16 @@
|
||||
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
/* default for ar934x, except for 1000M */
|
||||
pll-data = <0x06000000 0x00000101 0x00001616>;
|
||||
pll-data = <0x06000000 0x00000101 0x00001313>;
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
|
@ -12,15 +12,14 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &status;
|
||||
led-failsafe = &status;
|
||||
led-running = &running;
|
||||
led-upgrade = &status;
|
||||
led-boot = &led_power_amber;
|
||||
led-failsafe = &led_power_amber;
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_power_amber;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
@ -36,12 +35,12 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status: power_amber {
|
||||
led_power_amber: power_amber {
|
||||
label = "pcs:amber:power";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
running: power_green {
|
||||
led_power_green: power_green {
|
||||
label = "pcs:green:power";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
@ -84,10 +83,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
|
@ -12,15 +12,14 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
led-boot = &status;
|
||||
led-failsafe = &status;
|
||||
led-running = &status;
|
||||
led-upgrade = &status;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys-polled";
|
||||
poll-interval = <20>;
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
@ -43,7 +42,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
status: power {
|
||||
led_power: power {
|
||||
label = "pcs:amber:power";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
|
||||
<&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
@ -76,10 +75,10 @@
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-cs = <1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
@ -177,7 +176,6 @@
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
|
||||
|
||||
aliases {
|
||||
ag0 = ð1;
|
||||
};
|
||||
@ -222,5 +220,4 @@
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
236
target/linux/ath79/dts/ar9344_qihoo_c301.dts
Normal file
236
target/linux/ath79/dts/ar9344_qihoo_c301.dts
Normal file
@ -0,0 +1,236 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qihoo 360 C301";
|
||||
compatible = "qihoo,c301";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_wlan_g;
|
||||
led-failsafe = &led_wlan_o;
|
||||
led-upgrade = &led_wlan_o;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&jtag_disable_pins>;
|
||||
|
||||
led_wlan_g: wlan_g {
|
||||
label = "c301:green:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_wlan_o: wlan_o {
|
||||
label = "c301:orange:wlan";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy1tpt";
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
reg_eth_led_vbus {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "eth_led_vbus";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-always-on;
|
||||
gpio = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
reg_usb_vbus {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "usb_vbus";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
pmx_spi_cs1: pinmux_spi_cs1 {
|
||||
pinctrl-single,bits = <0xc 0x07 0xff>;
|
||||
};
|
||||
|
||||
pmx_led_switch: pinmux_led_switch {
|
||||
pinctrl-single,bits = <0x0 0x2b2a2d00 0xffffff00>;
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
|
||||
gpio_ext_lna0 {
|
||||
gpio-hog;
|
||||
gpios = <14 0>;
|
||||
output-high;
|
||||
line-name = "c301:ext:lna0";
|
||||
};
|
||||
|
||||
gpio_ext_lna1 {
|
||||
gpio-hog;
|
||||
gpios = <15 0>;
|
||||
output-high;
|
||||
line-name = "c301:ext:lna1";
|
||||
};
|
||||
};
|
||||
|
||||
&builtin_switch {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pmx_led_switch>;
|
||||
};
|
||||
|
||||
&spi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pmx_spi_cs1>;
|
||||
status = "okay";
|
||||
|
||||
num-cs = <2>;
|
||||
cs-gpios= <0>, <0>;
|
||||
|
||||
flash@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "devdata";
|
||||
reg = <0x50000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@60000 {
|
||||
label = "devconf";
|
||||
reg = <0x60000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@70000 {
|
||||
compatible = "seama";
|
||||
label = "firmware";
|
||||
reg = <0x70000 0xf60000>;
|
||||
};
|
||||
|
||||
partition@fd0000 {
|
||||
label = "warm_start";
|
||||
reg = <0xfd0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@fe0000 {
|
||||
label = "action_image_config";
|
||||
reg = <0xfe0000 0x10000>;
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
label = "radiocfg";
|
||||
reg = <0xff0000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flash@1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "firmware2";
|
||||
reg = <0x0 0xf00000>;
|
||||
};
|
||||
|
||||
partition@f00000 {
|
||||
label = "privatedata";
|
||||
reg = <0xf00000 0x100000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
|
||||
wifi@0,0 {
|
||||
compatible = "qcom,ath10k";
|
||||
reg = <0 0 0 0 0>;
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
qca,no-eeprom;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <1>;
|
||||
switch-only-mode = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
phy-handle = <&swphy0>;
|
||||
};
|
113
target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
Normal file
113
target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
Normal file
@ -0,0 +1,113 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <25000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@20000 {
|
||||
label = "partition-table";
|
||||
reg = <0x020000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
info: partition@30000 {
|
||||
label = "info";
|
||||
reg = <0x030000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "firmware";
|
||||
reg = <0x040000 0x780000>;
|
||||
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "kernel";
|
||||
reg = <0x000000 0x200000>;
|
||||
};
|
||||
|
||||
partition@200000 {
|
||||
label = "rootfs";
|
||||
reg = <0x200000 0x580000>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@7c0000 {
|
||||
label = "config";
|
||||
reg = <0x7c0000 0x030000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
mtd-mac-address = <&info 0x08>;
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy4>;
|
||||
|
||||
mtd-mac-address = <&info 0x8>;
|
||||
};
|
13
target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts
Normal file
13
target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts
Normal file
@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_tplink_cpe_2port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "tplink,cpe210-v1", "qca,ar9344";
|
||||
model = "TP-Link CPE210 v1";
|
||||
};
|
||||
|
||||
&led_link4 {
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
13
target/linux/ath79/dts/ar9344_tplink_cpe220-v2.dts
Normal file
13
target/linux/ath79/dts/ar9344_tplink_cpe220-v2.dts
Normal file
@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_tplink_cpe_2port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "tplink,cpe220-v2", "qca,ar9344";
|
||||
model = "TP-Link CPE220 v2";
|
||||
};
|
||||
|
||||
&led_link4 {
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
13
target/linux/ath79/dts/ar9344_tplink_cpe510-v1.dts
Normal file
13
target/linux/ath79/dts/ar9344_tplink_cpe510-v1.dts
Normal file
@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_tplink_cpe_2port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "tplink,cpe510-v1", "qca,ar9344";
|
||||
model = "TP-Link CPE510 v1";
|
||||
};
|
||||
|
||||
&led_link4 {
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
9
target/linux/ath79/dts/ar9344_tplink_cpe510-v2.dts
Normal file
9
target/linux/ath79/dts/ar9344_tplink_cpe510-v2.dts
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9344_tplink_cpe_1port.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "tplink,cpe510-v2", "qca,ar9344";
|
||||
model = "TP-Link CPE510 v2";
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user