fix k2t bootup mtd mount

This commit is contained in:
coolsnowwolf 2018-12-24 14:06:55 +08:00
parent 4fd4aec328
commit 6b8ddb276b
116 changed files with 1489 additions and 375 deletions

View File

@ -52,6 +52,13 @@ pcs,cr3000)
ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
;;
tplink,archer-a7-v5)
ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x20"
;;
tplink,archer-c58-v1|\
tplink,archer-c59-v1)
ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E"

View File

@ -29,7 +29,8 @@ ath79_setup_interfaces()
ubnt,unifiac-lite|\
ubnt,unifiac-mesh|\
ubnt,unifi|\
wd,mynet-wifi-rangeextender)
wd,mynet-wifi-rangeextender|\
winchannel,wb2000)
ucidef_set_interface_lan "eth0"
;;
avm,fritz4020|\
@ -62,6 +63,16 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "5@eth0"
;;
dlink,dir-825-c1|\
dlink,dir-835-a1|\
iodata,etg3-r|\
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2|\
iodata,wn-ag300dgr|\
pcs,cr5000)
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
;;
elecom,wrc-300ghbk2-i)
ucidef_add_switch "switch0" \
"0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
@ -78,13 +89,6 @@ ath79_setup_interfaces()
glinet,gl-x750)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
iodata,etg3-r|\
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2|\
pcs,cr5000)
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
;;
netgear,wndr3700|\
netgear,wndr3700v2|\
netgear,wndr3800)
@ -124,11 +128,13 @@ ath79_setup_interfaces()
buffalo,whr-g301n|\
tplink,tl-mr3220-v1|\
tplink,tl-mr3420-v1|\
tplink,tl-wr841-v7)
tplink,tl-wr841-v7|\
ubnt,airrouter)
ucidef_set_interface_wan "eth0"
ucidef_add_switch "switch0" \
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
;;
tplink,archer-a7-v5|\
tplink,tl-wdr3600|\
tplink,tl-wdr4300)
ucidef_add_switch "switch0" \
@ -169,6 +175,7 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
;;
tplink,tl-wr842n-v1|\
tplink,tl-wr842n-v2)
ucidef_set_interface_wan "eth0"
ucidef_add_switch "switch0" \
@ -213,6 +220,11 @@ ath79_setup_macs()
lan_mac=$(mtd_get_mac_text "caldata" 65440)
wan_mac=$(mtd_get_mac_text "caldata" 65460)
;;
dlink,dir-825-c1|\
dlink,dir-835-a1)
lan_mac=$(mtd_get_mac_text "mac" 4)
wan_mac=$(mtd_get_mac_text "mac" 24)
;;
elecom,wrc-300ghbk2-i)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2)
;;
@ -221,7 +233,8 @@ ath79_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" -1)
;;
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2)
iodata,wn-ac1600dgr2|\
iodata,wn-ag300dgr)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
;;

View File

@ -10,6 +10,10 @@ board_config_update
board=$(board_name)
case "$board" in
dlink,dir-825-c1|\
dlink,dir-835-a1)
ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
;;
ubnt,nanostation-ac)
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
;;

View File

@ -1,45 +0,0 @@
#!/bin/sh
. /lib/functions/leds.sh
boot="$(get_dt_led boot)"
failsafe="$(get_dt_led failsafe)"
running="$(get_dt_led running)"
upgrade="$(get_dt_led upgrade)"
set_state() {
status_led="$boot"
case "$1" in
preinit)
status_led_blink_preinit
;;
failsafe)
status_led_off
[ -n "$running" ] && {
status_led="$running"
status_led_off
}
status_led="$failsafe"
status_led_blink_failsafe
;;
preinit_regular)
status_led_blink_preinit_regular
;;
upgrade)
[ -n "$running" ] && {
status_led="$running"
status_led_off
}
status_led="$upgrade"
status_led_blink_preinit_regular
;;
done)
status_led_off
[ -n "$running" ] && {
status_led="$running"
status_led_on
}
;;
esac
}

View File

@ -100,8 +100,14 @@ case "$FIRMWARE" 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
;;
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2)
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
;;
@ -124,10 +130,16 @@ case "$FIRMWARE" in
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)
tplink,tl-wdr4900-v2|\
winchannel,wb2000)
ath9k_eeprom_extract "art" 20480 1088
;;
netgear,wnr612-v2|\
@ -141,6 +153,8 @@ case "$FIRMWARE" in
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)

View File

@ -104,6 +104,7 @@ case "$FIRMWARE" in
ath10kcal_extract "ART" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
;;
tplink,archer-a7-v5|\
tplink,archer-c7-v2)
ath10kcal_extract "art" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)

View File

@ -13,6 +13,12 @@ PHYNBR=${DEVPATH##*/phy}
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
;;
phicomm,k2t)
# The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address
[ "$PHYNBR" -eq 1 ] && \

View File

@ -168,10 +168,8 @@ CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_SPI_NOR=y
CONFIG_MTD_SPLIT_FIRMWARE=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_SPLIT_WRGG_FW=y
CONFIG_MTD_TPLINK_PARTS=y
CONFIG_MTD_VIRT_CONCAT=y
CONFIG_NEED_DMA_MAP_STATE=y

View File

@ -0,0 +1,217 @@
// 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"
/ {
compatible = "iodata,wn-ag300dgr", "qca,ar9344";
model = "I-O DATA WN-AG300DGR";
aliases {
led-boot = &router;
led-failsafe = &router;
led-running = &router;
led-upgrade = &router;
};
leds {
compatible = "gpio-leds";
router: router {
label = "wn-ag300dgr:green:router";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
children {
label = "wn-ag300dgr:green:children";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
eco {
label = "wn-ag300dgr:green:eco";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
notification {
label = "wn-ag300dgr:amber:notification";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "wn-ag300dgr:green:wlan2g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "wn-ag300dgr:green:wlan5g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;
eco {
label = "eco";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
debounce-interval = <60>;
};
router {
label = "router";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
debounce-interval = <60>;
};
auto {
label = "auto";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
debounce-interval = <60>;
};
wps {
label = "wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};
reset {
label = "reset";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
children {
label = "children";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
debounce-interval = <60>;
};
};
};
&ref {
clock-frequency = <25000000>;
};
&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>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x030000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x030000 0x010000>;
read-only;
};
partition@40000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x040000 0xf10000>;
};
partition@f50000 {
label = "manufacture";
reg = <0xf50000 0x40000>;
read-only;
};
partition@f90000 {
label = "backup";
reg = <0xf90000 0x10000>;
read-only;
};
partition@fa0000 {
label = "storage";
reg = <0xfa0000 0x50000>;
read-only;
};
partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
};
};
};
};
&mdio0 {
status = "okay";
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "rgmii";
qca,ar8327-initvals = <
0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
0x7c 0x000000fe /* PORT0_STATUS */
>;
};
};
&eth0 {
status = "okay";
pll-data = <0x06000000 0x00000101 0x00001616>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
gmac-config {
device = <&gmac>;
rgmii-gmac0 = <1>;
};
};
&pcie {
status = "okay";
};
&uart {
status = "okay";
};
&usb {
status = "okay";
};
&usb_phy {
status = "okay";
};
&wmac {
status = "okay";
qca,no-eeprom;
};

View File

@ -104,7 +104,7 @@
#reset-cells = <1>;
};
pcie0: pcie-controller@180c0000 {
pcie0: pcie-controller@17010000 {
compatible = "qca,ar7100-pci";
#address-cells = <3>;
#size-cells = <2>;

View File

@ -33,7 +33,6 @@
diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -44,13 +43,11 @@
band2g_a {
label = "buffalo:amber:band2g";
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
usb {
label = "buffalo:green:usb";
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
linux,default-trigger = "usbport";
};
@ -58,33 +55,28 @@
band2g_g {
label = "buffalo:green:band2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
band5g_g {
label = "buffalo:green:band5g";
gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
movie_engine {
label = "buffalo:blue:movie_engine";
gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
band5g_a {
label = "buffalo:amber:band5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -33,7 +33,6 @@
blue_usb {
label = "d-link:blue:usb";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
linux,default-trigger = "usbport";
};
@ -47,25 +46,21 @@
blue_power: blue_power {
label = "d-link:blue:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "off";
};
blue_wps {
label = "d-link:blue:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
orange_planet {
label = "d-link:orange:planet";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
blue_planet {
label = "d-link:blue:planet";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -75,14 +70,12 @@
wlan2g {
label = "d-link:blue:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "d-link:blue:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
};
@ -209,6 +202,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x610000>;
};

View File

@ -42,13 +42,11 @@
wps {
label = "netgear:orange:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
power_green: power_green {
label = "netgear:green:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "off";
};
power_orange: power_orange {
@ -60,13 +58,11 @@
wps_green {
label = "netgear:green:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan_green {
label = "netgear:green:wan";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -75,13 +71,11 @@
wlan2g {
label = "netgear:green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "netgear:blue:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
};

View File

@ -31,19 +31,18 @@
rf: rf_green {
label = "ubnt:green:rf";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
poll-interval = <20>;
debounce-interval = <60>;
wps {
label = "sw4";
linux,code = <KEY_RESTART>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
};

View File

@ -103,7 +103,6 @@
wlan {
label = "whr-g301n:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -5,6 +5,6 @@
/ {
model = "Netgear WNR612 v2";
compatible = "netgear,wnr612-v2";
compatible = "netgear,wnr612-v2", "qca,ar7240";
};

View File

@ -7,9 +7,6 @@
#include "ar7240.dtsi"
/ {
compatible = "netgear,wnr612-v2", "qca,ar7240";
model = "Netgear WNR612 V2";
aliases {
led-boot = &power;
led-failsafe = &power;
@ -54,7 +51,6 @@
wlan: wlan {
label = "netgear:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -86,6 +82,7 @@
};
partition@50000 {
compatible = "netgear,uimage";
reg = <0x50000 0x3a0000>;
label = "firmware";
};

View File

@ -5,6 +5,6 @@
/ {
model = "ON Network N150R";
compatible = "on,n150r";
compatible = "on,n150r", "qca,ar7240";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR740N v1/v2";
compatible = "tplink,tl-wr740n-v1";
compatible = "tplink,tl-wr740n-v1", "qca,ar7240";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR740N v3";
compatible = "tplink,tl-wr740n-v3";
compatible = "tplink,tl-wr740n-v3", "qca,ar7240";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR741N/ND v1/v2";
compatible = "tplink,tl-wr741-v1";
compatible = "tplink,tl-wr741-v1", "qca,ar7240";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR743ND v1";
compatible = "tplink,tl-wr743nd-v1";
compatible = "tplink,tl-wr743nd-v1", "qca,ar7240";
};

View File

@ -79,7 +79,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -106,6 +105,7 @@
};
firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR841N/ND v5/v6";
compatible = "tplink,tl-wr841-v5";
compatible = "tplink,tl-wr841-v5", "qca,ar7240";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR941N/ND v4";
compatible = "tplink,tl-wr941-v4";
compatible = "tplink,tl-wr941-v4", "qca,ar7240";
};

View File

@ -68,6 +68,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};

View File

@ -13,7 +13,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -13,7 +13,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -19,7 +19,6 @@
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};

View File

@ -13,7 +13,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -0,0 +1,164 @@
// 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 = "tplink,tl-wr842n-v1", "qca,ar7241";
model = "TP-Link TL-WR842N/ND v1";
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;
rfkill {
label = "rfkill";
linux,code = <KEY_RFKILL>;
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
gpio-leds {
compatible = "gpio-leds";
led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
};
ath9k-leds {
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
gpio-export {
compatible = "gpio-export";
gpio_usb_power {
gpio-export,name = "tp-link:power:usb";
gpio-export,output = <1>;
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
};
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {
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 {
reg = <0x0 0x20000>;
label = "u-boot";
read-only;
};
partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x7d0000>;
label = "firmware";
};
partition@7f0000 {
reg = <0x7f0000 0x10000>;
label = "art";
read-only;
};
};
};
};
&pcie {
status = "okay";
ath9k: wifi@0,0 {
compatible = "pci168c,002e";
reg = <0x0000 0 0 0 0>;
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
mtd-mac-address = <&uboot 0x1fc00>;
};
};
&eth0 {
status = "okay";
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>;
};
&eth1 {
status = "okay";
mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <1>;
};
&gpio {
status = "okay";
};
&uart {
status = "okay";
};

View File

@ -0,0 +1,38 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar7241_ubnt_xm.dtsi"
/ {
compatible = "ubnt,airrouter", "ubnt,xm", "qca,ar7241";
model = "Ubiquiti AirRouter";
aliases {
led-boot = &globe;
led-failsafe = &globe;
led-running = &globe;
led-upgrade = &globe;
};
airrouter-leds {
compatible = "gpio-leds";
globe: globe {
label = "ubnt:green:globe";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
power {
label = "ubnt:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
};
};
&usb_phy {
status = "okay";
};
&usb {
status = "okay";
};

View File

@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar7241_ubnt_xm.dtsi"
#include "ar7241_ubnt_xm_outdoor.dtsi"
/ {
compatible = "ubnt,bullet-m", "qca,ar7241";
compatible = "ubnt,bullet-m", "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Bullet M";
};

View File

@ -1,9 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar7241_ubnt_xm.dtsi"
#include "ar7241_ubnt_xm_outdoor.dtsi"
/ {
compatible = "ubnt,nano-m", "qca,ar7241";
compatible = "ubnt,nano-m", "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Nanostation M";
};

View File

@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar7241_ubnt_xm.dtsi"
#include "ar7241_ubnt_xm_outdoor.dtsi"
/ {
compatible = "ubnt,rocket-m", "qca,ar7241";
compatible = "ubnt,rocket-m", "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Rocket M";
};

View File

@ -81,6 +81,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};

View File

@ -9,11 +9,6 @@
compatible = "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Networks XM (rev 1.0) board";
aliases {
led-boot = &link4;
led-failsafe = &link4;
};
/* extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
@ -29,29 +24,6 @@
debounce-interval = <60>;
};
};
leds {
compatible = "gpio-leds";
link1 {
label = "ubnt:red:link1";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
link2 {
label = "ubnt:orange:link2";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
link3 {
label = "ubnt:green:link3";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
link4: link4 {
label = "ubnt:green:link4";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
};
};
&uart {
@ -88,6 +60,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};

View File

@ -0,0 +1,36 @@
// 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;
};
leds {
compatible = "gpio-leds";
link1 {
label = "ubnt:red:link1";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
link2 {
label = "ubnt:orange:link2";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
link3 {
label = "ubnt:green:link3";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
link4: link4 {
label = "ubnt:green:link4";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
};
};

View File

@ -115,6 +115,7 @@
};
partition@20000 {
compatible = "avm,eva-firmware";
reg = <0x20000 0xee0000>;
label = "firmware";
};

View File

@ -43,19 +43,16 @@
sec_vpn: sec_vpn {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
usb {
label = "buffalo:green:usb";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};

View File

@ -70,7 +70,6 @@
diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -80,7 +79,6 @@
usb {
label = "buffalo:blue:usb";
gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -88,32 +86,27 @@
wireless {
label = "buffalo:green:wireless";
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
security {
label = "buffalo:orange:security";
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
default-state = "off";
};
movie_engine_on {
label = "buffalo:blue:movie_engine_on";
gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
default-state = "off";
};
movie_engine_off {
label = "buffalo:blue:movie_engine_off";
gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -16,19 +16,16 @@
led_movie_engine {
label = "buffalo:blue:movie_engine";
gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wireless {
label = "buffalo:green:wireless";
gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -52,13 +52,11 @@
system: wps {
label = "tplink:green:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
usb {
label = "tplink:green:usb";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -70,14 +68,12 @@
wlan2g {
label = "tplink:green:wlan2g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "tplink:green:wlan5g";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -125,6 +121,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -52,13 +52,11 @@
qss {
label = "tp-link:green:qss";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -93,6 +91,7 @@
};
partition@1 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3D0000>;
};

View File

@ -46,7 +46,6 @@
usb {
label = "tp-link:green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -65,7 +64,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -124,6 +122,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7D0000>;
};

View File

@ -56,7 +56,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -131,6 +130,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};

View File

@ -23,20 +23,17 @@
wlan: wlan {
label = "gl-ar150:orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
lan {
label = "gl-ar150:green:lan";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
wan {
label = "gl-ar150:green:wan";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
@ -108,6 +105,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};

View File

@ -23,14 +23,12 @@
wlan: wlan {
label = "air-pen:blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wps {
label = "air-pen:blue:wps";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
@ -109,6 +107,7 @@
};
partition@70000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x070000 0x780000>;
};

View File

@ -20,7 +20,6 @@
system {
label = "dpt-module:green:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -20,25 +20,21 @@
wlan {
label = "dragino2:red:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
lan {
label = "dragino2:red:lan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan {
label = "dragino2:red:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
};
system {
label = "dragino2:red:system";
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};

View File

@ -24,7 +24,6 @@
status: status {
label = "dorin:green:status";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -89,6 +88,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};

View File

@ -8,7 +8,7 @@
/ {
model = "eTactica EG200";
compatible = "etactica,eg200", "rme-eg200";
compatible = "etactica,eg200", "qca,ar9331";
aliases {
serial0 = &uart;
@ -30,25 +30,21 @@
modbus {
label = "eg200:red:modbus";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
etactica {
label = "eg200:red:etactica";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
eth0 {
label = "eg200:red:eth0";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wlan {
label = "eg200:red:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -112,6 +108,7 @@
};
firmware@50000 {
compatible = "denx,uimage";
reg = <0x50000 0xfa0000>;
};

View File

@ -20,7 +20,6 @@
system {
label = "onion:amber:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -70,6 +70,7 @@
};
firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x7d0000>;
label = "firmware";
};

View File

@ -24,26 +24,22 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
lan {
label = "tp-link:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
};
system: wps {
label = "tp-link:green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -137,6 +133,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3c0000>;
};

View File

@ -21,20 +21,17 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
led_lan: lan {
label = "tp-link:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -128,6 +125,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};

View File

@ -67,6 +67,7 @@
};
firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR740N/ND v4";
compatible = "tplink,tl-wr740nd-v4";
compatible = "tplink,tl-wr740nd-v4", "qca,ar9331";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link TL-WR741N/ND v4";
compatible = "tplink,tl-wr741nd-v4";
compatible = "tplink,tl-wr741nd-v4", "qca,ar9331";
};

View File

@ -80,7 +80,6 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -107,6 +106,7 @@
};
firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};

View File

@ -52,38 +52,32 @@
wlan2g {
label = "pcs:blue:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wan {
label = "pcs:blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan1 {
label = "pcs:blue:lan1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan2 {
label = "pcs:blue:lan2";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan3 {
label = "pcs:blue:lan3";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan4 {
label = "pcs:blue:lan4";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
@ -128,6 +122,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x07a0000>;
};

View File

@ -8,7 +8,7 @@
/ {
model = "TP-Link TL-WR842N/ND v2";
compatible = "tplink,tl-wr842n-v2";
compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
aliases {
serial0 = &uart;
@ -52,50 +52,42 @@
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
qss {
label = "tp-link:green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan {
label = "tp-link:green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan1 {
label = "tp-link:green:lan1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan2 {
label = "tp-link:green:lan2";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan3 {
label = "tp-link:green:lan3";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan4 {
label = "tp-link:green:lan4";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
};
usb {
label = "tp-link:green:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -146,6 +138,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -29,7 +29,6 @@
notification {
label = "etg3-r:green:notification";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -46,6 +45,10 @@
};
};
&ref {
clock-frequency = <40000000>;
};
&spi {
num-cs = <1>;
status = "okay";
@ -119,10 +122,18 @@
&eth0 {
status = "okay";
pll-data = <0x06000000 0x00000101 0x00001616>;
pll-data = <0x0e000000 0x00000101 0x00001616>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
gmac-config {
device = <&gmac>;
rgmii-gmac0 = <1>;
rxd-delay = <3>;
rxdv-delay = <3>;
};
};
&uart {

View File

@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
@ -7,7 +7,7 @@
#include "ar9342_ubnt_xw.dtsi"
/ {
compatible = "ubnt,bullet-m-xw", "ubnt,xw";
compatible = "ubnt,bullet-m-xw", "ubnt,xw", "qca,ar9342";
model = "Ubiquiti Bullet M (XW)";
};

View File

@ -6,7 +6,7 @@
#include "ar9342_ubnt_wa.dtsi"
/ {
compatible = "ubnt,lap-120", "ubnt,wa";
compatible = "ubnt,lap-120", "ubnt,wa", "qca,ar9342";
model = "Ubiquiti LiteAP ac (LAP-120)";
};

View File

@ -7,7 +7,7 @@
#include "ar9342_ubnt_wa.dtsi"
/ {
compatible = "ubnt,nanostation-ac-loco", "ubnt,wa";
compatible = "ubnt,nanostation-ac-loco", "ubnt,wa", "qca,ar9342";
model = "Ubiquiti Nanostation AC loco (WA)";
};

View File

@ -7,7 +7,7 @@
#include "ar9342_ubnt_wa.dtsi"
/ {
compatible = "ubnt,nanostation-ac", "ubnt,wa";
compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
model = "Ubiquiti Nanostation AC (WA)";
gpio-leds {

View File

@ -6,7 +6,7 @@
#include "ar9344.dtsi"
/ {
compatible = "ubnt,wa", "qca,ar9344";
compatible = "ubnt,wa", "qca,ar9342";
model = "Ubiquiti Networks WA board";
keys {
@ -64,6 +64,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xf60000>;
};

View File

@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@ -84,6 +84,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x760000>;
};

View File

@ -0,0 +1,79 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar9344_dlink_dir-8x5.dtsi"
/ {
model = "D-LINK DIR-825 C1";
compatible = "dlink,dir-825-c1", "qca,ar9344";
aliases {
led-boot = &orange_power;
led-failsafe = &orange_power;
led-running = &blue_power;
led-upgrade = &orange_power;
serial0 = &uart;
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&enable_gpio_11>;
blue_power: blue_power {
label = "d-link:blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
blue_usb {
label = "d-link:blue:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>;
};
blue_wan {
label = "d-link:blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
blue_wlan2g {
label = "d-link:blue:wlan2g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
blue_wps {
label = "d-link:blue:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
orange_power: orange_power {
label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
orange_wan {
label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};
leds-ath9k {
compatible = "gpio-leds";
blue_wlan5g {
label = "d-link:blue:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
};
};
&pinmux {
enable_gpio_11: pinmux_enable_gpio_11 {
pinctrl-single,bits = <0x8 0x0 0xff000000>;
};
};

View File

@ -0,0 +1,47 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "ar9344_dlink_dir-8x5.dtsi"
/ {
model = "D-LINK DIR-835 A1";
compatible = "dlink,dir-835-a1", "qca,ar9344";
aliases {
led-boot = &orange_power;
led-failsafe = &orange_power;
led-running = &green_power;
led-upgrade = &orange_power;
serial0 = &uart;
};
leds {
compatible = "gpio-leds";
green_power: green_power {
label = "d-link:green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
green_wan {
label = "d-link:green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
green_wps {
label = "d-link:green:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
orange_power: orange_power {
label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
orange_wan {
label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -0,0 +1,151 @@
// 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,115200";
};
keys {
compatible = "gpio-keys";
reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
wps {
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
};
&eth0 {
status = "okay";
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
&mdio0 {
status = "okay";
phy-mask = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
qca,ar8327-initvals = <
/* GPL code drop (bsp.h & athrs17_phy.c) */
0x10 0xc1000000 /* PWS_REG_VALUE */
0x04 0x07600000 /* PORT0 PAD Mode */
0x0c 0x01000000 /* PORT6 PAD Mode */
0x7c 0x0000007e /* PORT0_STATUS */
0x94 0x0000007e /* PORT6_STATUS */
>;
};
};
&pcie {
status = "okay";
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
gpio-controller;
#gpio-cells = <2>;
};
};
&ref {
clock-frequency = <40000000>;
};
&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 = "uboot";
reg = <0x000000 0x010000>;
read-only;
};
partition@10000 {
label = "nvram";
reg = <0x010000 0x010000>;
read-only;
};
partition@20000 {
label = "firmware";
reg = <0x020000 0xF90000>;
compatible = "denx,uimage";
};
partition@fb0000 {
label = "lang";
reg = <0xfb0000 0x030000>;
read-only;
};
partition@fe0000 {
label = "mac";
reg = <0xfe0000 0x010000>;
read-only;
};
partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
};
};
};
};
&uart {
status = "okay";
};
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {
status = "okay";
};
&wmac {
status = "okay";
qca,no-eeprom;
};

View File

@ -33,7 +33,6 @@
wlan2g {
label = "raccoon:yellow:wlan24";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
@ -49,7 +48,6 @@
wlan5g {
label = "raccoon:red:wlan5";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
};

View File

@ -14,7 +14,7 @@
serial0 = &uart;
led-boot = &status;
led-failsafe = &status;
led-running = &status;
led-running = &running;
led-upgrade = &status;
};
@ -36,13 +36,12 @@
leds {
compatible = "gpio-leds";
power_amber {
status: power_amber {
label = "pcs:amber:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
status: power_green {
running: power_green {
label = "pcs:green:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on";
@ -51,27 +50,23 @@
wlan_amber {
label = "pcs:amber:wlan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
wlan_green {
label = "pcs:green:wlan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
lan_amber {
label = "pcs:lan:amber";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan_green {
label = "pcs:lan:green";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
@ -116,6 +111,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x0fa0000>;
};

View File

@ -53,14 +53,12 @@
wlan2g {
label = "pcs:blue:wlan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wps_white {
label = "pcs:white:wps";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
@ -105,6 +103,7 @@
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x07a0000>;
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link WDR3600";
compatible = "tplink,tl-wdr3600";
compatible = "tplink,tl-wdr3600", "qca,ar9344";
};

View File

@ -5,5 +5,5 @@
/ {
model = "TP-Link WDR4300";
compatible = "tplink,tl-wdr4300";
compatible = "tplink,tl-wdr4300", "qca,ar9344";
};

View File

@ -6,9 +6,6 @@
#include "ar9344.dtsi"
/ {
model = "TP-Link WDR4300";
compatible = "tplink,tl-wdr4300";
aliases {
led-boot = &system;
led-failsafe = &system;
@ -22,7 +19,6 @@
usb1 {
label = "tp-link:green:usb1";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port1>;
linux,default-trigger = "usbport";
};
@ -30,7 +26,6 @@
usb2 {
label = "tp-link:green:usb2";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port2>;
linux,default-trigger = "usbport";
};
@ -38,7 +33,6 @@
wlan2g {
label = "tp-link:green:wlan2g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
@ -51,7 +45,6 @@
qss {
label = "tp-link:green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -61,7 +54,6 @@
wlan5g {
label = "tp-link:green:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
};
@ -147,6 +139,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -0,0 +1,220 @@
// 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 = "Winchannel WB2000";
compatible = "winchannel,wb2000", "qca,ar9344";
chosen {
bootargs = "console=ttyS0,115200n8";
};
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
i2c {
compatible = "i2c-gpio";
gpios = <&gpio 17 GPIO_ACTIVE_HIGH
&gpio 16 GPIO_ACTIVE_HIGH
>;
#address-cells = <1>;
#size-cells = <0>;
rtc@68 {
compatible = "dallas,ds1339";
reg = <0x68>;
};
};
leds {
compatible = "gpio-leds";
wlan2g {
label = "wb2000:green:2g";
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
usb {
label = "wb2000:green:usb";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port1>, <&hub_port2>;
linux,default-trigger = "usbport";
};
led_system: system {
label = "wb2000:green:system";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
default-state = "on";
};
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <50>;
reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
ath9k-leds {
compatible = "gpio-leds";
wlan {
label = "wb2000:green:5g";
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
};
};
&ref {
clock-frequency = <40000000>;
};
&uart {
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>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
partition@40000 {
label = "u-boot-env";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "firmware";
reg = <0x50000 0xf80000>;
compatible = "denx,uimage";
};
partition@fd0000 {
label = "nvram";
reg = <0xfd0000 0x10000>;
read-only;
};
art: partition@fe0000 {
label = "art";
reg = <0xfe0000 0x10000>;
read-only;
};
addr: partition@ff0000 {
label = "addr";
reg = <0xff0000 0x10000>;
read-only;
};
};
};
};
&pcie {
status = "okay";
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
mtd-mac-address = <&addr 0x0>;
mtd-mac-address-increment = <0x10>;
#gpio-cells = <2>;
gpio-controller;
};
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
#trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};
};
&usb_phy {
status = "okay";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&addr 0x0>;
};
&mdio0 {
status = "okay";
phy-mask = <0x10>;
phy4: ethernet-phy@4 {
reg = <4>;
};
};
&eth0 {
status = "okay";
pll-data = <0xe000000 0x04000101 0x04001313>;
mtd-mac-address = <&addr 0x0>;
mtd-mac-address-increment = <0x21>;
phy-mode = "rgmii-rxid";
phy-handle = <&phy4>;
gmac-config {
device = <&gmac>;
rgmii-gmac0 = <1>;
rxd-delay = <1>;
rxdv-delay = <1>;
};
};

View File

@ -1,6 +1,11 @@
/dts-v1/;
#include "qca9533_glinet_ar300m.dtsi"
#include "qca9531_glinet_ar300m.dtsi"
/ {
compatible = "glinet,ar300m-nand", "qca,qca9531";
model = "GL.iNet GL-AR300M (NAND)";
};
&spi {
status = "okay";

View File

@ -3,7 +3,12 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9533_glinet_ar300m.dtsi"
#include "qca9531_glinet_ar300m.dtsi"
/ {
compatible = "glinet,ar300m-nor", "qca,qca9531";
model = "GL.iNet GL-AR300M (NOR)";
};
&spi {
status = "okay";
@ -31,6 +36,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};

View File

@ -3,12 +3,9 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9533.dtsi"
#include "qca953x.dtsi"
/ {
compatible = "glinet,ar300m", "qca,qca9533";
model = "GL.iNet GL-AR300M";
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;

View File

@ -4,10 +4,10 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9533.dtsi"
#include "qca953x.dtsi"
/ {
compatible = "glinet,gl-x750", "qca,qca9533";
compatible = "glinet,gl-x750", "qca,qca9531";
model = "GL.iNet GL-X750";
keys {
@ -48,13 +48,11 @@
wan {
label = "gl-x750:green:wan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
4g {
label = "gl-x750:green:4g";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
@ -113,6 +111,7 @@
};
partition@60000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x060000 0xfa0000>;
};

View File

@ -22,12 +22,10 @@
system_led: system {
label = "tp-link:green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan_orange {
label = "tp-link:orange:wan";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -4,7 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9533.dtsi"
#include "qca953x.dtsi"
/ {
chosen {
@ -17,44 +17,37 @@
wifi {
label = "tp-link:green:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
qss_led: qss {
label = "tp-link:green:qss";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan {
label = "tp-link:green:wan";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan1 {
label = "tp-link:green:lan1";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan2 {
label = "tp-link:green:lan2";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan3 {
label = "tp-link:green:lan3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan4 {
label = "tp-link:green:lan4";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -102,6 +95,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};

View File

@ -3,7 +3,7 @@
#include "ath79.dtsi"
/ {
compatible = "qca,qca9533";
compatible = "qca,qca9530";
#address-cells = <1>;
#size-cells = <1>;

View File

@ -53,8 +53,9 @@
status = "disabled";
};
usb_phy0: usb-phy0 {
usb_phy0: usb-phy0@18030000 {
compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
reg = <0x18030000 4>, <0x18030004 4>;
reset-names = "usb-phy", "usb-suspend-override";
resets = <&rst 4>, <&rst 3>;
@ -64,8 +65,9 @@
status = "disabled";
};
usb_phy1: usb-phy1 {
usb_phy1: usb-phy1@18030010 {
compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
reg = <0x18030010 4>, <0x18030014 4>;
reset-names = "usb-phy", "usb-suspend-override";
resets = <&rst2 4>, <&rst2 3>;
@ -130,8 +132,7 @@
rst: reset-controller@1806001c {
compatible = "qca,qca9550-reset",
"qca,ar7100-reset",
"simple-bus";
"qca,ar7100-reset";
reg = <0x1806001c 0x4>;
#reset-cells = <1>;

View File

@ -33,19 +33,16 @@
diag {
label = "bhr-4grv2:orange:diag";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
default-state = "off";
};
vpn_orange {
label = "bhr-4grv2:orange:vpn";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
vpn_green {
label = "bhr-4grv2:green:vpn";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -30,33 +30,28 @@
copy {
label = "iodata:green:copy";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "off";
};
eco {
label = "iodata:green:eco";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wlan5g {
label = "iodata:green:wlan5g";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wlan2g {
label = "iodata:green:wlan2g";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
notification {
label = "iodata:amber:notification";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -34,20 +34,17 @@
label = "koala:yellow:wlan2";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
default-state = "off";
};
wifi5 {
label = "koala:red:wlan58";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
default-state = "off";
};
system: system {
label = "koala:blue:sys";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -23,25 +23,21 @@
power {
label = "om5pac:blue:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wifi_green {
label = "om5pac:green:wifi";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wifi_yellow {
label = "om5pac:yellow:wifi";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wifi_red {
label = "om5pac:red:wifi";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -121,6 +117,7 @@
};
partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x850000 0x7a0000>;
};

View File

@ -24,7 +24,6 @@
wlan5g {
label = "tp-link:green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
@ -36,6 +35,7 @@
};
firmware@20000 {
compatible = "tplink,firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -24,7 +24,6 @@
wlan5g {
label = "tp-link:green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
};

View File

@ -30,7 +30,6 @@
usb1 {
label = "tp-link:green:usb1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port1>;
linux,default-trigger = "usbport";
};
@ -38,7 +37,6 @@
usb2 {
label = "tp-link:green:usb2";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
@ -46,14 +44,12 @@
led_wlan2g: wlan2g {
label = "tp-link:green:wlan2g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
qss {
label = "tp-link:green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};

View File

@ -33,7 +33,6 @@
usb1 {
label = "tp-link:green:usb1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port1>;
linux,default-trigger = "usbport";
};
@ -41,7 +40,6 @@
usb2 {
label = "tp-link:green:usb2";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
@ -49,14 +47,12 @@
wlan2g {
label = "tp-link:blue:wlan2g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
qss {
label = "tp-link:blue:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -66,7 +62,6 @@
wlan5g {
label = "tp-link:blue:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy1tpt";
};
};
@ -168,6 +163,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -30,7 +30,6 @@
usb {
label = "tp-link:green:usb";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "off";
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
@ -38,14 +37,12 @@
wifi_green {
label = "tp-link:green:wlan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wifi_wps {
label = "tp-link:green:wps";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -123,6 +120,7 @@
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};

View File

@ -61,31 +61,26 @@
label = "fritz4020:green:wlan";
gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
default-state = "off";
};
lan {
label = "fritz4020:green:lan";
gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan {
label = "fritz4020:green:wan";
gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
info {
label = "fritz4020:green:info";
gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
info_red: info_red {
label = "fritz4020:red:info";
gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
@ -136,6 +131,7 @@
};
partition@1 {
compatible = "avm,eva-firmware";
label = "firmware";
reg = <0x020000 0xee0000>;
};

View File

@ -30,38 +30,32 @@
label = "tp-link:green:wlan2g";
gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
default-state = "off";
};
wlan5g {
label = "tp-link:green:wlan5g";
gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
default-state = "off";
};
wan_green {
label = "tp-link:green:wan";
gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan_amber {
label = "tp-link:amber:wan";
gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan {
label = "tp-link:green:lan";
gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wps {
label = "tp-link:green:wps";
gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};

View File

@ -30,44 +30,37 @@
label = "tp-link:green:wlan2g";
gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
default-state = "off";
};
wlan5g {
label = "tp-link:green:wlan5g";
gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
default-state = "off";
};
wan_green {
label = "tp-link:green:wan";
gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wan_amber {
label = "tp-link:amber:wan";
gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
default-state = "off";
};
lan {
label = "tp-link:green:lan";
gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wps {
label = "tp-link:green:wps";
gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
default-state = "off";
};
usb {
label = "tp-link:green:usb";
gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
default-state = "off";
linux,default-trigger = "usbport";
trigger-sources = <&hub_port>;
};

View File

@ -33,14 +33,12 @@
wlan2g {
label = "wrc-300ghbk2-i:white:wlan2g";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "phy0tpt";
};
wps {
label = "wrc-300ghbk2-i:red:wps";
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};

Some files were not shown because too many files have changed in this diff Show More