openwrt/target/linux/ath79/dts/qca9563_ubnt_uk-ultra.dts
David Bauer bf94e0a383 ath79: add support for UniFi UK-Ultra
Hardware
--------
CPU:   Qualcomm Atheros QCA9563
RAM:   128M DDR2
FLASH: 16MB SPI-NOR
WiFi:  Qualcomm Atheros QCA9563 2x2:2 802.11n 2.4GHz
       Qualcomm Atheros QCA9880 2x2:2 802.11ac 5GHz

Antennas
--------
The device features internal antennas as well as external antenna
connectors. By default, the internal antennas are used.

Two GPIOs are exported by name, which can be used to control the
antenna-path mux. Writing a logical 0 enables the external antenna
connectors.

Installation
------------
1. Download the OpenWrt sysupgrade image to the device. You can use scp
   for this task. The default username and password are "ubnt" and the
   device is reachable at 192.168.1.20.

   $ scp -O openwrt-sysupgrade.bin ubnt@192.168.1.20:/tmp/firmware.bin

2. Connect to the device using SSH.

   $ ssh ubnt@192.168.1.20

3. Disable the write-protect

   $ echo "5edfacbf" > /proc/ubnthal/.uf

4. Verify kernel0 and kernel1 match mtd2 and mtd3

   $ cat /proc/mtd

5. Write the sysupgrade image to kernel0 and kernel1

   $ dd if=/tmp/firmware.bin of=/dev/mtdblock2
   $ dd if=/tmp/firmware.bin of=/dev/mtdblock3

6. Write the bootselect flag to boot from kernel0

   $ dd if=/dev/zero bs=1 count=1 of=/dev/mtd4

7. Reboot the device

   $ reboot

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-01-07 23:06:17 +01:00

36 lines
622 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca9563_ubnt_unifiac-lite.dtsi"
/ {
compatible = "ubnt,uk-ultra", "qca,qca9563";
model = "Ubiquiti UniFi Swiss Army Knife Ultra";
};
&leds {
led-rssi0 {
label = "white:rssi0";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
};
led-rssi1 {
label = "white:rssi1";
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
};
led-rssi2 {
label = "white:rssi2";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
led-rssi3 {
label = "white:rssi3";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
};
/**
* Antenna selection on GPIO5 and GPIO6
* High = Internal ; Low = External
*/