forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipq40xx: add support for Asus Lyra Mini (MAP-AC1300)
Hardware CHIPSET: IPQ4018 + QCA8072 LAN: 2x 1G FLASH: GD5F1GQ4X 128 MiB + MX25L165D 2 MiB RAM: 256 MiB IO: Reset + WPS button LED: Single Bright RGB led POWER: 5V 2A Flash layout similar to other asus brand routers. Mac adresses extarcted from same mtd adress. Created common .dtsi files as similar devices. Orginal -> Openwrt ath0 2C:FD:A1:8D:80:B8 -> phy0-ap0 2C:FD:A1:8D:80:B8 ath1 2C:FD:A1:8D:80:BA -> phy1-ap0 2C:FD:A1:8D:80:BA br0 2C:FD:A1:8D:80:B9 -> br-lan 2C:FD:A1:8D:80:B9 eth0 2C:FD:A1:8D:80:B9 -> lan 2C:FD:A1:8D:80:B9 eth1 2C:FD:A1:8D:80:BB -> wan 2C:FD:A1:8D:80:BB Status: Lan ports: Configured as oem port closer to power jack as wan and other as lan Wlan: radio1@5Ghz 300 Mbps trouhgput. [email protected] 50Mbps troughput Led: works Buttons: reset works, wps untested. Installation: 1. Reset device to orginal settings and enable ssh, set username and password: admin/password 2. Upload openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp 3. ssh to router: ssh [email protected] 4. run in router: mtd-write -d linux -i /tmp/openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb 5. Reboot with command or with powercycling device 6. OpenWrt should boot and is ready after sort brust of flashing blue light 7. wget/scp openwrt-ipq40xx-generic-asus_map-ac1300-squashfs-sysupgrade.bin to /tmp dir of device scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp 8. ssh to OpenWrt device. ssh [email protected] 9. run in router: sysupgrade -n /tmp/openwrt-ipq40xx-generic-asus_map-ac2200-squashfs-sysupgrade.bin 10. After reboot OpenWrt is installed to device. Signed-off-by: Erkki Hietaranta <[email protected]>
- Loading branch information
Showing
7 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-map-ac1300.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "qcom-ipq4019.dtsi" | ||
#include <dt-bindings/leds/common.h> | ||
#include "qcom-ipq4018-asus.dtsi" | ||
#include "qcom-ipq401x-map-acxx00.dtsi" | ||
|
||
/ { | ||
model = "ASUS Lyra Mini"; | ||
compatible = "asus,map-ac1300"; | ||
|
||
aliases { | ||
led-boot = &led_blue0; | ||
led-failsafe = &led_red0; | ||
led-running = &led_blue0; | ||
led-upgrade = &led_red0; | ||
}; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset-button { | ||
label = "reset-button"; | ||
gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
|
||
wps-button { | ||
label = "wps-button"; | ||
gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_WPS_BUTTON>; | ||
}; | ||
}; | ||
|
||
}; | ||
|
||
&tlmm { | ||
i2c_0_pins: i2c_0_pinmux { | ||
pinmux { | ||
function = "blsp_i2c0"; | ||
pins = "gpio58", "gpio59"; | ||
drive-strength = <16>; | ||
bias-disable; | ||
}; | ||
}; | ||
|
||
serial_pins: serial_pinmux { | ||
mux { | ||
pins = "gpio60", "gpio61"; | ||
function = "blsp_uart0"; | ||
bias-disable; | ||
}; | ||
}; | ||
|
||
spi_0_pins: spi_0_pinmux { | ||
mux { | ||
function = "blsp_spi0"; | ||
pins = "gpio55", "gpio56", "gpio57"; | ||
drive-strength = <12>; | ||
bias-disable; | ||
}; | ||
|
||
mux_cs { | ||
function = "gpio"; | ||
pins = "gpio54", "gpio1"; | ||
drive-strength = <2>; | ||
bias-disable; | ||
output-high; | ||
}; | ||
|
||
}; | ||
}; | ||
|
||
&blsp1_spi1 { /* BLSP1 QUP1 */ | ||
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, | ||
<&tlmm 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
&swport4 { | ||
status = "okay"; | ||
label = "wan"; | ||
}; | ||
|
||
&swport5 { | ||
status = "okay"; | ||
label = "lan"; | ||
}; | ||
|
||
&wifi0 { | ||
status = "okay"; | ||
qcom,ath10k-calibration-variant = "ASUS-MAP-AC1300"; | ||
}; | ||
|
||
&wifi1 { | ||
status = "okay"; | ||
qcom,ath10k-calibration-variant = "ASUS-MAP-AC1300"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters