openwrt/target/linux/ath79/dts/qca9557_extreme-networks_ws-ap3805i.dts
Albin Hellström e497818e18 ath79: add support for Extreme Networks WS-AP3805i
Specifications:

 - SoC:    Qualcomm Atheros QCA9557-AT4A
 - RAM:	   2x 128MB Nanya NT5TU64M16HG
 - FLASH:  64MB - SPANSION FL512SAIFG1
 - LAN:    Atheros AR8035-A (RGMII GbE with PoE+ IN)
 - WLAN2:  Qualcomm Atheros QCA9557 2x2 2T2R
 - WLAN5:  Qualcomm Atheros QCA9882-BR4A 2x2 2T2R
 - SERIAL: UART pins at J10 (115200 8n1)
           Pinout is 3.3V - GND - TX - RX (Arrow Pad is 3.3V)
 - LEDs: Power (Green/Amber)
   WiFi 5 (Green)
   WiFi 2 (Green)
 - BTN: Reset

Installation:

1. Download the OpenWrt initramfs-image.

Place it into a TFTP server root directory and rename it to 1D01A8C0.img
Configure the TFTP server to listen at 192.168.1.66/24.

2. Connect the TFTP server to the access point.

3. Connect to the serial console of the access point.

Attach power and interrupt the boot procedure when prompted.

Credentials are admin / new2day

4. Configure U-Boot for booting OpenWrt from ram and flash:

 $ setenv boot_openwrt 'setenv bootargs; bootm 0xa1280000'
 $ setenv ramboot_openwrt 'setenv serverip 192.168.1.66;
   tftpboot 0x89000000 1D01A8C0.img; bootm'
 $ setenv bootcmd 'run boot_openwrt'
 $ saveenv

5. Load OpenWrt into memory:

 $ run ramboot_openwrt

6. Transfer the OpenWrt sysupgrade image to the device.

Write the image to flash using sysupgrade:

 $ sysupgrade -n /path/to/openwrt-sysupgrade.bin

Signed-off-by: Albin Hellström <albin.hellstrom@gmail.com>
[rename vendor - minor style fixes - update commit message]
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit f8c87aa2d2)
2022-08-29 02:37:36 +02:00

200 lines
3.1 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca955x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "extreme-networks,ws-ap3805i", "qca,qca9557";
model = "Extreme Networks AP3805i";
aliases {
led-boot = &led_power_green;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
label-mac-device = &eth0;
};
leds {
compatible = "gpio-leds";
led_power_green: power_green {
label = "green:power";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "amber:power";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
wlan5 {
label = "green:wlan5";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan2 {
label = "green:wlan2";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <20000>;
always-running;
};
};
&wdt {
status = "disabled";
};
&wmac {
status = "okay";
qca,no-eeprom;
};
&pcie0 {
status = "okay";
wifi@0,0,0 {
compatible = "qcom,ath10k";
reg = <0x0 0 0 0 0>;
};
};
&mdio0 {
status = "okay";
phy5: ethernet-phy@5 {
reg = <5>;
};
};
&eth0 {
status = "okay";
phy-handle = <&phy5>;
phy-mode = "rgmii-id";
pll-data = <0x82000000 0x80000101 0x80001313>;
gmac-config {
device = <&gmac>;
rgmii-enabled = <1>;
};
};
&spi {
status = "okay";
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-bak";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "u-boot";
reg = <0x080000 0x80000>;
read-only;
};
partition@100000 {
label = "cfg1";
reg = <0x100000 0x40000>;
read-only;
};
partition@140000 {
label = "cfg2";
reg = <0x140000 0x40000>;
read-only;
};
partition@180000 {
label = "nvram4";
reg = <0x180000 0x40000>;
read-only;
};
partition@1c0000 {
label = "nvram3";
reg = <0x1c0000 0x40000>;
read-only;
};
partition@200000 {
label = "nvram2";
reg = <0x200000 0x40000>;
read-only;
};
partition@240000 {
label = "nvram1";
reg = <0x240000 0x40000>;
read-only;
};
partition@280000 {
label = "PriImg";
reg = <0x280000 0x1000000>;
read-only;
};
partition@1280000 {
label = "SecImg";
reg = <0x1280000 0x1000000>;
read-only;
};
partition@2280000 {
label = "firmware";
compatible = "denx,uimage";
reg = <0x2280000 0x1cc0000>;
};
partition@3f40000 {
label = "cert";
reg = <0x3f40000 0x80000>;
read-only;
};
partition@3fc0000 {
label = "art";
reg = <0x3fc0000 0x40000>;
read-only;
};
};
};
};