diff --git a/target/linux/ath79/dts/qca9531_alfa-network_wifi-camppro-nano-duo.dts b/target/linux/ath79/dts/qca9531_alfa-network_wifi-camppro-nano-duo.dts new file mode 100644 index 0000000000..e505081f98 --- /dev/null +++ b/target/linux/ath79/dts/qca9531_alfa-network_wifi-camppro-nano-duo.dts @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include + +#include "qca9531_alfa-network_r36a.dtsi" + +/ { + model = "ALFA Network WiFi CampPro Nano Duo"; + compatible = "alfa-network,wifi-camppro-nano-duo", "qca,qca9531"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + pinctrl-names = "default"; + pinctrl-0 = <&enable_gpio4>; + + lan { + function = LED_FUNCTION_LAN; + color = ; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + led_status: status { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + function = LED_FUNCTION_WLAN_2GHZ; + color = ; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + }; +}; + +ð0 { + nvmem-cells = <&macaddr_art_1002 (-1)>; + nvmem-cell-names = "mac-address"; +}; + +ð1 { + compatible = "syscon", "simple-mfd"; +}; + +&gpio_export { + usb-power { + gpio-export,name = "usb-power"; + gpio-export,output = <0>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; +}; diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds index 143309a8b2..0e5731dd74 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds @@ -22,6 +22,7 @@ alcatel,hh40v) ;; alfa-network,ap121f|\ alfa-network,ap121fe|\ +alfa-network,wifi-camppro-nano-duo|\ avm,fritz450e|\ glinet,6408|\ glinet,6416|\ diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index 2ad4c899e0..8474c1c4c2 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -14,6 +14,7 @@ ath79_setup_interfaces() alfa-network,ap121f|\ alfa-network,pi-wifi4|\ alfa-network,tube-2hq|\ + alfa-network,wifi-camppro-nano-duo|\ araknis,an-300-ap-i-n|\ araknis,an-500-ap-i-ac|\ araknis,an-700-ap-i-ac|\ @@ -622,6 +623,7 @@ ath79_setup_macs() alfa-network,pi-wifi4|\ alfa-network,r36a|\ alfa-network,tube-2hq|\ + alfa-network,wifi-camppro-nano-duo|\ engenius,eap300-v2|\ engenius,ens202ext-v1) label_mac=$(mtd_get_mac_binary art 0x1002) diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 06448f2172..c075f050db 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -346,6 +346,16 @@ define Device/alfa-network_tube-2hq endef TARGET_DEVICES += alfa-network_tube-2hq +define Device/alfa-network_wifi-camppro-nano-duo + SOC := qca9531 + DEVICE_VENDOR := ALFA Network + DEVICE_MODEL := WiFi CampPro Nano Duo + DEVICE_PACKAGES := kmod-usb2 kmod-mt76x0u -swconfig + IMAGE_SIZE := 15872k + SUPPORTED_DEVICES += campnano-duo +endef +TARGET_DEVICES += alfa-network_wifi-camppro-nano-duo + define Device/allnet_all-wap02860ac $(Device/senao_loader_okli) SOC := qca9558