diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/dts/mt7621_hilink_hlk-7621a-evb.dts | 109 | ||||
-rw-r--r-- | target/linux/ramips/image/mt7621.mk | 10 |
2 files changed, 119 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_hilink_hlk-7621a-evb.dts b/target/linux/ramips/dts/mt7621_hilink_hlk-7621a-evb.dts new file mode 100644 index 0000000000..4b807fcaa5 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_hilink_hlk-7621a-evb.dts @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "mt7621.dtsi" + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +/ { + compatible = "hilink,hlk-7621a-evb", "mediatek,mt7621-soc"; + model = "HiLink HLK-7621A evaluation board"; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_RESTART>; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <44000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; +}; + +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan1"; + }; + + port@1 { + status = "okay"; + label = "lan2"; + }; + + port@2 { + status = "okay"; + label = "lan3"; + }; + + port@3 { + status = "okay"; + label = "lan4"; + }; + + port@4 { + status = "okay"; + label = "wan"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie2 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + }; +}; + +&state_default { + gpio { + groups = "wdt"; + function = "gpio"; + }; +}; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index a0236234d1..3b68a76b3e 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -610,6 +610,16 @@ define Device/gnubee_gb-pc2 endef TARGET_DEVICES += gnubee_gb-pc2 +define Device/hilink_hlk-7621a-evb + $(Device/dsa-migration) + $(Device/uimage-lzma-loader) + DEVICE_VENDOR := HiLink + DEVICE_MODEL := HLK-7621A evaluation board + DEVICE_PACKAGES += kmod-mt76x2 kmod-usb3 + IMAGE_SIZE := 32448k +endef +TARGET_DEVICES += hilink_hlk-7621a-evb + define Device/hiwifi_hc5962 $(Device/dsa-migration) BLOCKSIZE := 128k |