Merge Official Source
This commit is contained in:
commit
0773b7cf51
@ -243,8 +243,7 @@ endef
|
||||
|
||||
ifeq ($(CONFIG_TARGET_ROOTFS_SECURITY_LABELS),y)
|
||||
define Image/mkfs/squashfs
|
||||
echo "LD_LIBRARY_PATH=\$$LD_LIBRARY_PATH:$(STAGING_DIR_HOSTPKG)/lib" \
|
||||
"$(STAGING_DIR_HOSTPKG)/sbin/setfiles -r" \
|
||||
echo "$(STAGING_DIR_HOSTPKG)/bin/setfiles -r" \
|
||||
"$(call mkfs_target_dir,$(1))" \
|
||||
"$(call mkfs_target_dir,$(1))/etc/selinux/targeted/contexts/files/file_contexts " \
|
||||
"$(call mkfs_target_dir,$(1))" > $@.fakeroot-script
|
||||
|
||||
@ -100,7 +100,7 @@ endif
|
||||
DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))
|
||||
|
||||
filter_packages = $(filter-out -% $(patsubst -%,%,$(filter -%,$(1))),$(1))
|
||||
extra_packages = $(if $(filter wpad-mini wpad-basic wpad-basic-wolfssl wpad nas,$(1)),iwinfo)
|
||||
extra_packages = $(if $(filter wpad wpad-% nas,$(1)),iwinfo)
|
||||
|
||||
define ProfileDefault
|
||||
NAME:=
|
||||
|
||||
@ -14,6 +14,10 @@ board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
alfa-network,ap121f|\
|
||||
alfa-network,ap121fe|\
|
||||
alfa-network,n2q|\
|
||||
alfa-network,n5q|\
|
||||
alfa-network,r36a|\
|
||||
allnet,all-wap02860ac|\
|
||||
arduino,yun|\
|
||||
buffalo,bhr-4grv2|\
|
||||
@ -37,6 +41,7 @@ netgear,wnr612-v2|\
|
||||
ocedo,koala|\
|
||||
ocedo,raccoon|\
|
||||
openmesh,om5p-ac-v2|\
|
||||
samsung,wam250|\
|
||||
ubnt,nanostation-m|\
|
||||
yuncore,a770|\
|
||||
yuncore,a782|\
|
||||
@ -75,6 +80,9 @@ netgear,wndr4300sw)
|
||||
qihoo,c301)
|
||||
ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
|
||||
;;
|
||||
wallys,dr531)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
|
||||
;;
|
||||
esac
|
||||
|
||||
config_load ubootenv
|
||||
|
||||
@ -30,6 +30,18 @@ define Package/libsepol/description
|
||||
depend upon or use any of the other SELinux components.
|
||||
endef
|
||||
|
||||
define Package/chkcon
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+libsepol
|
||||
TITLE:=libsepol chkcon security context validation tool
|
||||
URL:=http://selinuxproject.org/page/Main_Page
|
||||
endef
|
||||
|
||||
define Package/chkcon/description
|
||||
chkcon - determine if a security context is valid for a given binary policy
|
||||
endef
|
||||
|
||||
HOST_MAKE_FLAGS += \
|
||||
PREFIX=$(STAGING_DIR_HOSTPKG) \
|
||||
SHLIBDIR=$(STAGING_DIR_HOSTPKG)/lib
|
||||
@ -62,5 +74,11 @@ define Package/libsepol/install
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsepol.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/chkcon/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/chkcon $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
$(eval $(call BuildPackage,libsepol))
|
||||
$(eval $(call BuildPackage,chkcon))
|
||||
|
||||
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=policycoreutils
|
||||
PKG_VERSION:=3.1
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20200710
|
||||
@ -67,9 +67,11 @@ MAKE_FLAGS += \
|
||||
|
||||
HOST_MAKE_FLAGS += \
|
||||
PAMH=$(CONFIG_BUSYBOX_CONFIG_PAM) \
|
||||
PREFIX=$(STAGING_DIR_HOSTPKG) \
|
||||
SBINDIR=$(STAGING_DIR_HOSTPKG)/sbin \
|
||||
ETCDIR=$(STAGING_DIR_HOSTPKG)/etc
|
||||
DESTDIR=$(STAGING_DIR_HOSTPKG) \
|
||||
PREFIX= \
|
||||
SBINDIR=/bin
|
||||
|
||||
HOST_LDFLAGS += -Wl,-rpath=$(STAGING_DIR_HOSTPKG)/lib
|
||||
|
||||
$(eval $(foreach a,$(DIR_SBIN),ALTS_$(a):=300:/sbin/$(a):/sbin/policycoreutils-$(a)$(newline)))
|
||||
$(eval $(foreach a,$(DIR_USR_BIN),ALTS_$(a):=300:/usr/bin/$(a):/usr/bin/policycoreutils-$(a)$(newline)))
|
||||
|
||||
@ -6,7 +6,7 @@ BOARDNAME:=Atheros ATH79
|
||||
CPU_TYPE:=24kc
|
||||
SUBTARGETS:=generic mikrotik nand tiny
|
||||
|
||||
FEATURES:=ramdisk
|
||||
FEATURES:=ramdisk usbgadget
|
||||
|
||||
KERNEL_PATCHVER:=5.4
|
||||
KERNEL_TESTING_PATCHVER:=5.4
|
||||
|
||||
@ -1,38 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "ar9331_alfa-network_ap121f.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";
|
||||
|
||||
@ -54,80 +27,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ð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";
|
||||
};
|
||||
|
||||
&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>;
|
||||
};
|
||||
|
||||
112
target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi
Normal file
112
target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi
Normal file
@ -0,0 +1,112 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
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>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
switch {
|
||||
label = "switch";
|
||||
linux,code = <BTN_0>;
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð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";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
32
target/linux/ath79/dts/ar9331_alfa-network_ap121fe.dts
Normal file
32
target/linux/ath79/dts/ar9331_alfa-network_ap121fe.dts
Normal file
@ -0,0 +1,32 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331_alfa-network_ap121f.dtsi"
|
||||
|
||||
/ {
|
||||
model = "ALFA Network AP121FE";
|
||||
compatible = "alfa-network,ap121fe", "qca,ar9331";
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
label = "ap121fe:green:lan";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_vpn: vpn {
|
||||
label = "ap121fe:green:vpn";
|
||||
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "ap121fe:green:wlan";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
dr_mode = "peripheral";
|
||||
};
|
||||
26
target/linux/ath79/dts/ar9331_hak5_lan-turtle.dts
Normal file
26
target/linux/ath79/dts/ar9331_hak5_lan-turtle.dts
Normal file
@ -0,0 +1,26 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331_hak5_lan-turtle.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Hak5 LAN Turtle";
|
||||
compatible = "hak5,lan-turtle", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&switch_led_disable_pins>;
|
||||
|
||||
led_system: system {
|
||||
label = "lan-turtle:orange:system";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
102
target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi
Normal file
102
target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi
Normal file
@ -0,0 +1,102 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
keys: keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&enable_gpio11>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
|
||||
switch-phy-addr-swap = <1>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&uboot 0x1fc00>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
enable_gpio11: pinmux_enable_gpio11 {
|
||||
pinctrl-single,bits = <0x0 0x0 0x4>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
uboot: partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@20000 {
|
||||
label = "firmware";
|
||||
reg = <0x020000 0xfd0000>;
|
||||
compatible = "tplink,firmware";
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
64
target/linux/ath79/dts/ar9331_hak5_packet-squirrel.dts
Normal file
64
target/linux/ath79/dts/ar9331_hak5_packet-squirrel.dts
Normal file
@ -0,0 +1,64 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331_hak5_lan-turtle.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Hak5 Packet Squirrel";
|
||||
compatible = "hak5,packet-squirrel", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_system_green;
|
||||
led-failsafe = &led_system_green;
|
||||
led-running = &led_system_green;
|
||||
led-upgrade = &led_system_green;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_system_green: system-green {
|
||||
label = "packet-squirrel:green:system";
|
||||
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
system-blue {
|
||||
label = "packet-squirrel:blue:system";
|
||||
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
system-red {
|
||||
label = "packet-squirrel:red:system";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&keys {
|
||||
sw1 {
|
||||
label = "sw1";
|
||||
linux,code = <BTN_0>;
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
sw2 {
|
||||
label = "sw2";
|
||||
linux,code = <BTN_1>;
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
sw3 {
|
||||
label = "sw3";
|
||||
linux,code = <BTN_2>;
|
||||
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
sw4 {
|
||||
label = "sw4";
|
||||
linux,code = <BTN_3>;
|
||||
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
128
target/linux/ath79/dts/ar9331_hak5_wifi-pineapple-nano.dts
Normal file
128
target/linux/ath79/dts/ar9331_hak5_wifi-pineapple-nano.dts
Normal file
@ -0,0 +1,128 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "Hak5 WiFi Pineapple NANO";
|
||||
compatible = "hak5,wifi-pineapple-nano", "qca,ar9331";
|
||||
|
||||
aliases {
|
||||
label-mac-device = &wmac;
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
serial0 = &uart;
|
||||
};
|
||||
|
||||
gpio-export {
|
||||
compatible = "gpio-export";
|
||||
#size-cells = <0>;
|
||||
|
||||
microsd-detect {
|
||||
gpio-export,name = "microsd-detect";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb-alarm {
|
||||
gpio-export,name = "usb-alarm";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb-power {
|
||||
gpio-export,name = "usb-power";
|
||||
gpio-export,output = <0>;
|
||||
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
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 = "wifi-pineapple-nano:blue:system";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
compatible = "syscon", "simple-mfd";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@20000 {
|
||||
label = "firmware";
|
||||
reg = <0x020000 0xfd0000>;
|
||||
compatible = "tplink,firmware";
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
157
target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
Normal file
157
target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
Normal file
@ -0,0 +1,157 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "ALFA Network N5Q";
|
||||
compatible = "alfa-network,n5q", "qca,ar9344";
|
||||
|
||||
aliases {
|
||||
label-mac-device = &wmac;
|
||||
led-boot = &led_signal4;
|
||||
led-failsafe = &led_signal4;
|
||||
led-upgrade = &led_signal4;
|
||||
};
|
||||
|
||||
gpio-export {
|
||||
compatible = "gpio-export";
|
||||
#size-cells = <0>;
|
||||
|
||||
watchdog-enable {
|
||||
gpio-export,name = "watchdog-enable";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan1 {
|
||||
label = "n5q:green:lan1";
|
||||
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2 {
|
||||
label = "n5q:green:lan2";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_signal4: signal4 {
|
||||
label = "n5q:green:signal4";
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal1 {
|
||||
label = "n5q:red:signal1";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal2 {
|
||||
label = "n5q:orange:signal2";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal3 {
|
||||
label = "n5q:green:signal3";
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "n5q:green:wlan";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
|
||||
watchdog {
|
||||
compatible = "linux,wdt-gpio";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
|
||||
hw_algo = "toggle";
|
||||
hw_margin_ms = <25000>;
|
||||
always-running;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
phy-handle = <&swphy4>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x060000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@60000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x060000 0x010000>;
|
||||
};
|
||||
|
||||
art: partition@70000 {
|
||||
label = "art";
|
||||
reg = <0x070000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x080000 0xf80000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
@ -58,12 +58,12 @@
|
||||
};
|
||||
|
||||
lan_amber {
|
||||
label = "pcs:lan:amber";
|
||||
label = "pcs:amber:lan";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan_green {
|
||||
label = "pcs:lan:green";
|
||||
label = "pcs:green:lan";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
163
target/linux/ath79/dts/ar9344_samsung_wam250.dts
Normal file
163
target/linux/ath79/dts/ar9344_samsung_wam250.dts
Normal file
@ -0,0 +1,163 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ar9344.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "Samsung WAM250";
|
||||
compatible = "samsung,wam250", "qca,ar9344";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
led-upgrade = &led_power;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
label = "wam250:white:lan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_power: power {
|
||||
label = "wam250:white:power";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
repeater {
|
||||
label = "wam250:white:repeater";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "wam250:white:wlan";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy0>;
|
||||
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
|
||||
gmac-config {
|
||||
device = <&gmac>;
|
||||
switch-phy-swap = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
status = "okay";
|
||||
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
};
|
||||
|
||||
&gpio {
|
||||
lna0 {
|
||||
line-name = "wam250:ext:lna0";
|
||||
gpios = <19 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
gpio-hog;
|
||||
};
|
||||
};
|
||||
|
||||
&ref {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x040000 0x010000>;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "nvram";
|
||||
reg = <0x050000 0x020000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@70000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x070000 0xf80000>;
|
||||
};
|
||||
|
||||
art: partition@ff0000 {
|
||||
label = "art";
|
||||
reg = <0xff0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
120
target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
Normal file
120
target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
Normal file
@ -0,0 +1,120 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca9531_alfa-network_r36a.dtsi"
|
||||
|
||||
/ {
|
||||
model = "ALFA Network N2Q";
|
||||
compatible = "alfa-network,n2q", "qca,qca9531";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_usb;
|
||||
led-failsafe = &led_usb;
|
||||
led-upgrade = &led_usb;
|
||||
};
|
||||
|
||||
gpio-export-pcf8574 {
|
||||
compatible = "gpio-export";
|
||||
#size-cells = <0>;
|
||||
|
||||
poe-passthrough {
|
||||
gpio-export,name = "poe-passthrough";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&pcf8574 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb-power {
|
||||
gpio-export,name = "usb-power";
|
||||
gpio-export,output = <0>;
|
||||
gpios = <&pcf8574 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c {
|
||||
compatible = "i2c-gpio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
sda-gpios = <&gpio 11 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
scl-gpios = <&gpio 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
|
||||
pcf8574: pcf8574@20 {
|
||||
compatible = "nxp,pcf8574";
|
||||
reg = <0x20>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
|
||||
|
||||
lan1 {
|
||||
label = "n2q:orange:lan1";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
lan2 {
|
||||
label = "n2q:orange:lan2";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_usb: usb {
|
||||
label = "n2q:green:usb";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "usbport";
|
||||
trigger-sources = <&hub_port0>;
|
||||
};
|
||||
|
||||
minipcie {
|
||||
label = "n2q:green:minipcie";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "n2q:green:wlan";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
|
||||
leds-pcf8574 {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
poe-passthrough {
|
||||
label = "n2q:green:poe-passthrough";
|
||||
gpios = <&pcf8574 1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal1 {
|
||||
label = "n2q:red:signal1";
|
||||
gpios = <&pcf8574 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal2 {
|
||||
label = "n2q:orange:signal2";
|
||||
gpios = <&pcf8574 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
signal3 {
|
||||
label = "n2q:green:signal3";
|
||||
gpios = <&pcf8574 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
mtd-mac-address-increment = <(-2)>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
mtd-mac-address = <&art 0x1002>;
|
||||
mtd-mac-address-increment = <(-1)>;
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
status = "okay";
|
||||
};
|
||||
79
target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
Normal file
79
target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
Normal file
@ -0,0 +1,79 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca9531_alfa-network_r36a.dtsi"
|
||||
|
||||
/ {
|
||||
model = "ALFA Network R36A";
|
||||
compatible = "alfa-network,r36a", "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 &enable_gpio16>;
|
||||
|
||||
lan {
|
||||
label = "r36a:blue:lan";
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status: status {
|
||||
label = "r36a:blue:status";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb {
|
||||
label = "r36a:blue:usb";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
trigger-sources = <&hub_port0>;
|
||||
linux,default-trigger = "usbport";
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "r36a:blue:wan";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "r36a:blue:wlan";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
mtd-mac-address = <&art 0x0>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
/* Workaround: keep the Ethernet interfaces order/mapping correct
|
||||
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
|
||||
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
|
||||
|
||||
mtd-mac-address = <&art 0x6>;
|
||||
};
|
||||
|
||||
&gpio_export {
|
||||
usb-power {
|
||||
gpio-export,name = "usb-power";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
&keys {
|
||||
rfkill {
|
||||
label = "rfkill";
|
||||
linux,code = <KEY_RFKILL>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
126
target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi
Normal file
126
target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi
Normal file
@ -0,0 +1,126 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca953x.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
label-mac-device = &wmac;
|
||||
};
|
||||
|
||||
gpio_export: gpio-export {
|
||||
compatible = "gpio-export";
|
||||
#size-cells = <0>;
|
||||
|
||||
watchdog-enable {
|
||||
gpio-export,name = "watchdog-enable";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys: keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
watchdog {
|
||||
compatible = "linux,wdt-gpio";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
hw_algo = "toggle";
|
||||
hw_margin_ms = <25000>;
|
||||
always-running;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy4>;
|
||||
};
|
||||
|
||||
&pinmux {
|
||||
enable_gpio4: pinmux_enable_gpio4 {
|
||||
pinctrl-single,bits = <0x04 0x0 0xff>;
|
||||
};
|
||||
|
||||
enable_gpio16: pinmux_enable_gpio16 {
|
||||
pinctrl-single,bits = <0x10 0x0 0xff>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x060000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@60000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x060000 0x010000>;
|
||||
};
|
||||
|
||||
art: partition@70000 {
|
||||
label = "art";
|
||||
reg = <0x070000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x080000 0xf80000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
hub_port0: port@1 {
|
||||
reg = <1>;
|
||||
#trigger-source-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
158
target/linux/ath79/dts/qca9531_wallys_dr531.dts
Normal file
158
target/linux/ath79/dts/qca9531_wallys_dr531.dts
Normal file
@ -0,0 +1,158 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "qca953x.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "Wallys DR531";
|
||||
compatible = "wallys,dr531", "qca,qca9531";
|
||||
|
||||
aliases {
|
||||
label-mac-device = ð1;
|
||||
led-boot = &led_sig4;
|
||||
led-failsafe = &led_sig4;
|
||||
led-upgrade = &led_sig4;
|
||||
};
|
||||
|
||||
gpio-export {
|
||||
compatible = "gpio-export";
|
||||
|
||||
buzzer {
|
||||
gpio-export,name = "buzzer";
|
||||
gpio-export,output = <0>;
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
label = "dr531:green:lan";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_sig4: sig4 {
|
||||
label = "dr531:green:sig4";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
sig1 {
|
||||
label = "dr531:green:sig1";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
sig2 {
|
||||
label = "dr531:green:sig2";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
sig3 {
|
||||
label = "dr531:green:sig3";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan {
|
||||
label = "dr531:green:wan";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
|
||||
phy-handle = <&swphy4>;
|
||||
mtd-mac-address = <&env 0xf818>;
|
||||
};
|
||||
|
||||
ð1 {
|
||||
/* Workaround: keep the Ethernet interfaces order/mapping correct
|
||||
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
|
||||
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
|
||||
|
||||
mtd-mac-address = <&env 0xf810>;
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
status = "okay";
|
||||
|
||||
num-cs = <1>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x000000 0x030000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
env: partition@30000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x030000 0x010000>;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "partition-table";
|
||||
reg = <0x040000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x050000 0x7a0000>;
|
||||
};
|
||||
|
||||
art: partition@7f0000 {
|
||||
label = "art";
|
||||
reg = <0x7f0000 0x010000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
|
||||
mtd-cal-data = <&art 0x1000>;
|
||||
};
|
||||
@ -13,9 +13,31 @@ case "$board" in
|
||||
ucidef_set_led_switch "wan" "WAN" "$boardname:orange:eth1" "switch0" "0x04"
|
||||
;;
|
||||
alfa-network,ap121f|\
|
||||
alfa-network,ap121fe|\
|
||||
avm,fritz450e)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
|
||||
;;
|
||||
alfa-network,n2q)
|
||||
ucidef_set_led_netdev "lan2" "LAN2" "$boardname:orange:lan2" "eth1"
|
||||
ucidef_set_led_switch "lan1" "LAN1" "$boardname:orange:lan1" "switch0" "0x10"
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
ucidef_set_led_rssi "signal1" "SIGNAL1" "$boardname:red:signal1" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "signal2" "SIGNAL2" "$boardname:orange:signal2" "wlan0" "33" "100"
|
||||
ucidef_set_led_rssi "signal3" "SIGNAL3" "$boardname:green:signal3" "wlan0" "66" "100"
|
||||
;;
|
||||
alfa-network,n5q)
|
||||
ucidef_set_led_netdev "lan2" "LAN2" "$boardname:green:lan2" "eth1"
|
||||
ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x10"
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
ucidef_set_led_rssi "signal1" "SIGNAL1" "$boardname:red:signal1" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "signal2" "SIGNAL2" "$boardname:orange:signal2" "wlan0" "25" "100"
|
||||
ucidef_set_led_rssi "signal3" "SIGNAL3" "$boardname:green:signal3" "wlan0" "50" "100"
|
||||
ucidef_set_led_rssi "signal4" "SIGNAL4" "$boardname:green:signal4" "wlan0" "75" "100"
|
||||
;;
|
||||
alfa-network,r36a)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:blue:lan" "eth0"
|
||||
ucidef_set_led_switch "wan" "WAN" "$boardname:blue:wan" "switch0" "0x10"
|
||||
;;
|
||||
avm,fritz1750e)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
|
||||
ucidef_set_rssimon "wlan1" "200000" "1"
|
||||
@ -183,6 +205,9 @@ glinet,gl-mifi)
|
||||
glinet,gl-x750)
|
||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
|
||||
;;
|
||||
hak5,lan-turtle)
|
||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:orange:system" "eth1"
|
||||
;;
|
||||
meraki,mr16)
|
||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
||||
;;
|
||||
@ -199,7 +224,7 @@ netgear,wnr2200-16m)
|
||||
ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
|
||||
;;
|
||||
pcs,cap324)
|
||||
ucidef_set_led_netdev "lan" "LAN" "pcs:lan:green" "eth0"
|
||||
ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
|
||||
;;
|
||||
pcs,cr3000)
|
||||
ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
|
||||
@ -211,6 +236,9 @@ pcs,cr3000)
|
||||
qihoo,c301)
|
||||
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
|
||||
;;
|
||||
samsung,wam250)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:white:lan" "eth0"
|
||||
;;
|
||||
tplink,archer-a7-v5|\
|
||||
tplink,archer-c7-v4|\
|
||||
tplink,archer-c7-v5)
|
||||
@ -355,10 +383,19 @@ ubnt,powerbeam-5ac-gen2)
|
||||
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:blue:rssi2" "wlan0" "51" "100"
|
||||
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:blue:rssi3" "wlan0" "76" "100"
|
||||
;;
|
||||
wallys,dr531)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
|
||||
ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x2"
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
ucidef_set_led_rssi "sig1" "SIG1" "$boardname:green:sig1" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "sig2" "SIG2" "$boardname:green:sig2" "wlan0" "25" "100"
|
||||
ucidef_set_led_rssi "sig3" "SIG3" "$boardname:green:sig3" "wlan0" "50" "100"
|
||||
ucidef_set_led_rssi "sig4" "SIG4" "$boardname:green:sig4" "wlan0" "75" "100"
|
||||
;;
|
||||
wd,mynet-wifi-rangeextender)
|
||||
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
|
||||
ucidef_set_rssimon "wlan0" "200000" "1"
|
||||
ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:rssi-low" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:blue:rssi-low" "wlan0" "1" "100"
|
||||
ucidef_set_led_rssi "rssimedium" "RSSIMED" "$boardname:blue:rssi-med" "wlan0" "33" "100"
|
||||
ucidef_set_led_rssi "rssihigh" "RSSIMAX" "$boardname:blue:rssi-max" "wlan0" "66" "100"
|
||||
;;
|
||||
|
||||
@ -30,6 +30,7 @@ ath79_setup_interfaces()
|
||||
engenius,ecb1750|\
|
||||
enterasys,ws-ap3705i|\
|
||||
glinet,gl-ar300m-lite|\
|
||||
hak5,wifi-pineapple-nano|\
|
||||
meraki,mr16|\
|
||||
netgear,ex6400|\
|
||||
netgear,ex7300|\
|
||||
@ -75,6 +76,16 @@ ath79_setup_interfaces()
|
||||
winchannel,wb2000)
|
||||
ucidef_set_interface_lan "eth0"
|
||||
;;
|
||||
alfa-network,ap121fe)
|
||||
ucidef_set_interface_lan "eth0 usb0"
|
||||
;;
|
||||
alfa-network,n2q|\
|
||||
alfa-network,n5q|\
|
||||
devolo,dvl1200e|\
|
||||
devolo,dvl1750e|\
|
||||
ocedo,ursus)
|
||||
ucidef_set_interface_lan "eth0 eth1"
|
||||
;;
|
||||
avm,fritz4020|\
|
||||
pcs,cr3000|\
|
||||
tplink,archer-c58-v1|\
|
||||
@ -144,11 +155,6 @@ ath79_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "3:lan" "2:wan"
|
||||
;;
|
||||
devolo,dvl1200e|\
|
||||
devolo,dvl1750e|\
|
||||
ocedo,ursus)
|
||||
ucidef_set_interface_lan "eth0 eth1"
|
||||
;;
|
||||
devolo,magic-2-wifi)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "2:wan" "3:lan" "4:lan"
|
||||
@ -399,6 +405,9 @@ ath79_setup_macs()
|
||||
label_mac=$lan_mac
|
||||
;;
|
||||
alfa-network,ap121f|\
|
||||
alfa-network,ap121fe|\
|
||||
alfa-network,n2q|\
|
||||
alfa-network,r36a|\
|
||||
engenius,ens202ext-v1)
|
||||
label_mac=$(mtd_get_mac_binary art 0x1002)
|
||||
;;
|
||||
@ -496,6 +505,10 @@ ath79_setup_macs()
|
||||
enterasys,ws-ap3705i)
|
||||
label_mac=$(mtd_get_mac_ascii u-boot-env0 ethaddr)
|
||||
;;
|
||||
hak5,lan-turtle|\
|
||||
hak5,packet-squirrel)
|
||||
label_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
|
||||
;;
|
||||
iodata,etg3-r)
|
||||
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
||||
wan_mac=$(macaddr_add "$lan_mac" -1)
|
||||
|
||||
@ -21,6 +21,9 @@ engenius,epg5000)
|
||||
glinet,gl-mifi)
|
||||
migrate_leds ":net=:3g4g"
|
||||
;;
|
||||
pcs,cap324)
|
||||
migrate_leds "lan:amber=amber:lan" "lan:green=green:lan"
|
||||
;;
|
||||
mercury,mw4530r-v1|\
|
||||
tplink,archer-c7-v2|\
|
||||
tplink,tl-wdr3600-v1|\
|
||||
|
||||
@ -202,7 +202,7 @@ define Device/8dev_carambola2
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := 8devices
|
||||
DEVICE_MODEL := Carambola2
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2
|
||||
IMAGE_SIZE := 16000k
|
||||
SUPPORTED_DEVICES += carambola2
|
||||
endef
|
||||
@ -249,12 +249,51 @@ define Device/alfa-network_ap121f
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := AP121F
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2 kmod-usb-storage -swconfig
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-storage -swconfig
|
||||
IMAGE_SIZE := 16064k
|
||||
SUPPORTED_DEVICES += ap121f
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_ap121f
|
||||
|
||||
define Device/alfa-network_ap121fe
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := AP121FE
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-gadget-eth -swconfig
|
||||
IMAGE_SIZE := 16064k
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_ap121fe
|
||||
|
||||
define Device/alfa-network_n2q
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := N2Q
|
||||
DEVICE_PACKAGES := kmod-i2c-gpio kmod-gpio-pcf857x kmod-usb2 \
|
||||
kmod-usb-ledtrig-usbport rssileds
|
||||
IMAGE_SIZE := 15872k
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_n2q
|
||||
|
||||
define Device/alfa-network_n5q
|
||||
SOC := ar9344
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := N5Q
|
||||
DEVICE_PACKAGES := rssileds
|
||||
IMAGE_SIZE := 15872k
|
||||
SUPPORTED_DEVICES += n5q
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_n5q
|
||||
|
||||
define Device/alfa-network_r36a
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := R36A
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
||||
IMAGE_SIZE := 15872k
|
||||
SUPPORTED_DEVICES += r36a
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_r36a
|
||||
|
||||
define Device/allnet_all-wap02860ac
|
||||
SOC := qca9558
|
||||
DEVICE_VENDOR := ALLNET
|
||||
@ -268,7 +307,7 @@ define Device/arduino_yun
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := Arduino
|
||||
DEVICE_MODEL := Yun
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
|
||||
kmod-usb-storage block-mount -swconfig
|
||||
IMAGE_SIZE := 15936k
|
||||
SUPPORTED_DEVICES += arduino-yun
|
||||
@ -1007,6 +1046,45 @@ define Device/glinet_gl-x750
|
||||
endef
|
||||
TARGET_DEVICES += glinet_gl-x750
|
||||
|
||||
define Device/hak5_lan-turtle
|
||||
$(Device/tplink-16mlzma)
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := Hak5
|
||||
DEVICE_MODEL := LAN Turtle
|
||||
TPLINK_HWID := 0x5348334c
|
||||
IMAGES := sysupgrade.bin
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
|
||||
-uboot-envtools -wpad-basic-wolfssl
|
||||
SUPPORTED_DEVICES += lan-turtle
|
||||
endef
|
||||
TARGET_DEVICES += hak5_lan-turtle
|
||||
|
||||
define Device/hak5_packet-squirrel
|
||||
$(Device/tplink-16mlzma)
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := Hak5
|
||||
DEVICE_MODEL := Packet Squirrel
|
||||
TPLINK_HWID := 0x5351524c
|
||||
IMAGES := sysupgrade.bin
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
|
||||
-uboot-envtools -wpad-basic-wolfssl
|
||||
SUPPORTED_DEVICES += packet-squirrel
|
||||
endef
|
||||
TARGET_DEVICES += hak5_packet-squirrel
|
||||
|
||||
define Device/hak5_wifi-pineapple-nano
|
||||
$(Device/tplink-16mlzma)
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := Hak5
|
||||
DEVICE_MODEL := WiFi Pineapple NANO
|
||||
TPLINK_HWID := 0x4e414e4f
|
||||
IMAGES := sysupgrade.bin
|
||||
DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-chipidea2 kmod-usb-storage \
|
||||
-swconfig -uboot-envtools
|
||||
SUPPORTED_DEVICES += wifi-pineapple-nano
|
||||
endef
|
||||
TARGET_DEVICES += hak5_wifi-pineapple-nano
|
||||
|
||||
define Device/iodata_etg3-r
|
||||
SOC := ar9342
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
@ -1378,7 +1456,7 @@ define Device/pisen_ts-d084
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := PISEN
|
||||
DEVICE_MODEL := TS-D084
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2
|
||||
TPLINK_HWID := 0x07030101
|
||||
endef
|
||||
TARGET_DEVICES += pisen_ts-d084
|
||||
@ -1406,7 +1484,7 @@ define Device/pisen_wmm003n
|
||||
SOC := ar9331
|
||||
DEVICE_VENDOR := PISEN
|
||||
DEVICE_MODEL := Cloud Easy Power (WMM003N)
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
|
||||
DEVICE_PACKAGES := kmod-usb-chipidea2
|
||||
TPLINK_HWID := 0x07030101
|
||||
endef
|
||||
TARGET_DEVICES += pisen_wmm003n
|
||||
@ -1433,6 +1511,16 @@ define Device/rosinson_wr818
|
||||
endef
|
||||
TARGET_DEVICES += rosinson_wr818
|
||||
|
||||
define Device/samsung_wam250
|
||||
SOC := ar9344
|
||||
DEVICE_VENDOR := Samsung
|
||||
DEVICE_MODEL := WAM250
|
||||
IMAGE_SIZE := 15872k
|
||||
DEVICE_PACKAGES := kmod-usb2
|
||||
SUPPORTED_DEVICES += wam250
|
||||
endef
|
||||
TARGET_DEVICES += samsung_wam250
|
||||
|
||||
define Device/siemens_ws-ap3610
|
||||
SOC := ar7161
|
||||
DEVICE_VENDOR := Siemens
|
||||
@ -1535,6 +1623,16 @@ define Device/trendnet_tew-823dru
|
||||
endef
|
||||
TARGET_DEVICES += trendnet_tew-823dru
|
||||
|
||||
define Device/wallys_dr531
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := Wallys
|
||||
DEVICE_MODEL := DR531
|
||||
DEVICE_PACKAGES := kmod-usb2 rssileds
|
||||
IMAGE_SIZE := 7808k
|
||||
SUPPORTED_DEVICES += dr531
|
||||
endef
|
||||
TARGET_DEVICES += wallys_dr531
|
||||
|
||||
define Device/wd_mynet-n750
|
||||
$(Device/seama)
|
||||
SOC := ar9344
|
||||
|
||||
@ -359,12 +359,13 @@ TARGET_DEVICES += edgecore_ecw5211
|
||||
define Device/edgecore_oap100
|
||||
$(call Device/FitImage)
|
||||
$(call Device/UbiFit)
|
||||
DEVICE_TITLE := Edgecore OAP100
|
||||
DEVICE_VENDOR := Edgecore
|
||||
DEVICE_MODEL := OAP100
|
||||
SOC := qcom-ipq4019
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
IMAGES := nand-sysupgrade.bin
|
||||
DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
|
||||
DEVICE_DTS := qcom-ipq4019-oap100
|
||||
DEVICE_PACKAGES := ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
|
||||
endef
|
||||
TARGET_DEVICES += edgecore_oap100
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
model = "Asus RT-AC51U";
|
||||
|
||||
aliases {
|
||||
label-mac-device = ðernet;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
@ -35,10 +34,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "i2c", "wled", "uartf";
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
model = "Asus RT-AC54U";
|
||||
|
||||
aliases {
|
||||
label-mac-device = ðernet;
|
||||
led-boot = &led_power;
|
||||
led-failsafe = &led_power;
|
||||
led-running = &led_power;
|
||||
@ -37,10 +36,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "i2c", "wled", "uartf";
|
||||
|
||||
@ -4,6 +4,10 @@
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
label-mac-device = ðernet;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
@ -85,6 +89,8 @@
|
||||
};
|
||||
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user