Based on OpenWrt main branch (shallow clone). Added: - target/linux/ramips/dts/mt7621_tplink_archer-ax53-v1.dts Device tree for Archer AX53 v1 (MT7621DAT, MT7975DN WiFi 6) - target/linux/ramips/image/mt7621.mk Image build recipe appended to existing MT7621 target - target/linux/ramips/patches-6.6/ Kernel patch for MT7621DAT DRAM initialization - package/pf-router/ Portugal Futurista router meta-package (pf-mesh, pf-crowdsec, pf-mqtt, pf-health, pf-ota) WARNING: UNTESTED — GPIOs and flash layout need serial console validation.
229 lines
4.9 KiB
Text
229 lines
4.9 KiB
Text
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
//
|
|
// Device Tree for TP-Link Archer AX53 v1 (EU)
|
|
//
|
|
// SoC: MediaTek MT7621DAT (dual-core MIPS 1004Kc @ 880MHz)
|
|
// — integrated 256MB DDR3 in SoC package
|
|
// WiFi: MediaTek MT7975DN (2x2 2.4GHz + 2x2 5GHz, 802.11ax)
|
|
// — PCIe-based, driven by mt76 driver
|
|
// Flash: 16MB SPI NOR (en25qh128 or similar)
|
|
// Switch: MT7530 (built into MT7621)
|
|
//
|
|
// Based on: tplink_archer-ax23-v1 (same WiFi chipset, same SoC family)
|
|
// Ported by: Portugal Futurista — OpenWrt PF Fork
|
|
//
|
|
// WARNING: This DTS is UNTESTED. Requires serial console access to verify
|
|
// GPIO mappings, flash layout, and MAC address locations. Flash only via
|
|
// TFTP recovery (hold reset while powering on) — do NOT flash from stock
|
|
// firmware web UI without prior TFTP/UART validation.
|
|
|
|
/dts-v1/;
|
|
|
|
#include "mt7621.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
compatible = "tplink,archer-ax53-v1", "mediatek,mt7621-soc";
|
|
model = "TP-Link Archer AX53 v1";
|
|
|
|
aliases {
|
|
led-boot = &led_power;
|
|
led-failsafe = &led_power;
|
|
led-running = &led_power;
|
|
led-upgrade = &led_power;
|
|
label-mac-device = &gmac1;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_power: power {
|
|
label = "green:power";
|
|
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wlan2g {
|
|
label = "green:wlan2g";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0radio";
|
|
};
|
|
|
|
wlan5g {
|
|
label = "green:wlan5g";
|
|
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1radio";
|
|
};
|
|
|
|
// TODO: Verify with serial — these are best guesses from AX23
|
|
wan_green {
|
|
label = "green:wan";
|
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lan_green {
|
|
label = "green:lan";
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
|
|
wps {
|
|
label = "wps";
|
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
};
|
|
};
|
|
};
|
|
|
|
// ── SPI Flash (16MB) ────────────────────────────────────────────────────
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <50000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x00000 0x30000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@30000 {
|
|
label = "u-boot-env";
|
|
reg = <0x30000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@40000 {
|
|
label = "factory";
|
|
reg = <0x40000 0x10000>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_factory_4: macaddr@4 {
|
|
reg = <0x4 0x6>;
|
|
};
|
|
|
|
macaddr_factory_28: macaddr@28 {
|
|
reg = <0x28 0x6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@50000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x50000 0xf60000>;
|
|
};
|
|
|
|
partition@fb0000 {
|
|
label = "config";
|
|
reg = <0xfb0000 0x40000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@ff0000 {
|
|
label = "product-info";
|
|
reg = <0xff0000 0x10000>;
|
|
read-only;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
// ── Ethernet (MT7530 switch) ─────────────────────────────────────────────
|
|
&gmac1 {
|
|
status = "okay";
|
|
label = "wan";
|
|
phy-handle = <ðphy4>;
|
|
|
|
nvmem-cells = <&macaddr_factory_4>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
&mdio {
|
|
ethphy4: ethernet-phy@4 {
|
|
reg = <4>;
|
|
};
|
|
};
|
|
|
|
&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";
|
|
};
|
|
};
|
|
};
|
|
|
|
// ── PCIe WiFi (MT7975DN) ─────────────────────────────────────────────────
|
|
&pcie {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
wifi@0,0 {
|
|
compatible = "pci14c3,7975";
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
nvmem-cells = <&macaddr_factory_28>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
// MT7975DN is a combo chip — 2.4GHz + 5GHz on single PCIe device
|
|
// The mt76 driver handles band split internally
|
|
};
|
|
};
|
|
|
|
// ── UART (serial console — accessible via test pads on PCB) ──────────────
|
|
&uartlite {
|
|
status = "okay";
|
|
};
|
|
|
|
// ── GPIO ─────────────────────────────────────────────────────────────────
|
|
&state_default {
|
|
gpio {
|
|
groups = "i2c", "uart2", "uart3", "wdt";
|
|
function = "gpio";
|
|
};
|
|
};
|