openwrt-6.x/target/linux
Lech Perczak ca7324134d ath79: add support for Ruckus R500
Ruckus R500 datasheet: https://webresources.ruckuswireless.com/datasheets/r500/ds-ruckus-r500.html

Specifications:

SoC: 720Mhz QCA9558
RAM: 256MB
Storage: 64MB of FLASH (SPI NOR - S25FL512S)
1x AR8327 GB switch
Ethernet: 1x1000M port #3 on AR8327,
          1x1000M (802.3at POE), port #5 on AR8327
Wireless: QCA988X HW2.0 802.11ac
AR9550 2.4GHz 802.11b/g/n
5x GPIO LED
1x GPIO Reset Button
1x DC Jack 12v
1x UART, 3.3v, 115200
1x TPM, SLB9645TT12
2x Beamforming antennas configured via 74LV164

MAC addresses:
 1. art 0x807E | Factory bridged | f0:3e:90:XX:XX:80 |
 2. art 0x66   | eth0            | f0:3e:90:XX:XX:83 | (port 5, cpu port 6) - PoE port
 3. art 0x6c   | eth1            | f0:3e:90:XX:XX:84 | (port 3, cpu port 0) - non PoE port

Serial console: 115200-8-N-1 on internal H4 header.
Pinout:

H1
-----------
|1|x|3|4|5|
-----------

Pin 1 is near the "H4" marking.
1 - RX
x - no pin
3 - VCC (3.3V)
4 - GND
5 - TX

JTAG: Connector H2, similar to MIPS eJTAG, standard, unpoulated.

H9
----------------------
|2 |4 |6 |8 |10|12|14|
----------------------
|1 |3 |5 |7 |9 |11|13|
----------------------

3 - TDI
5 - TDO
7 - TMS
9 - TCK
2,4,6,8,10 - GND
14 - Vref
1,11,12,13 - Not connected

I²C: connector H2, near power LED, unpopulated:

------
|1|2|3
------
    H2

1 - SCL
2 - SDA
3 - GND

Installation:

Serial Port/TFTP

1. Setup tftp server on the local network
2. Connect to UART with TTL
3. Interupt U-boot process with Ctrl-C
4. Setup appropriate ipaddr and serverip in setenv:
  - setenv ipaddr 192.168.1.1
  - setenv serverip 192.168.1.2
5. On TFTP Server - copy openwrt-ath79-generic-ruckus_r500-initramfs-kernel.bin to /srv/tftp
6. On R500 boot into initrd image
  - tftpboot 0x81000000 openwrt-ath79-generic-ruckus_r500-initramfs-kernel.bin
  - bootm 0x81000000
7. On TFTP server - scp -O openwrt-ath79-generic-ruckus_r500-squashfs-sysupgrade.bin root@192.168.1.1:/tmp
8. Ensure the boot command is set before flashing the image:
    fw_setenv bootcmd 'bootm 0xbf1c0000'
9. On R500 - sysupgrade /tmp/openwrt-ath79-generic-ruckus_r500-squashfs-sysupgrade.bin
10. If not done in 8; set boot command from U-boot shell itself:
  - setenv bootcmd bootm 0xbf1c0000
  - saveenv
  - reset

This patch adapted from https://github.com/victhor393/openwrt-ruckus-r500/tree/ruckus-r500-master

Signed-off-by: Damien Mascord <tusker@tusker.org>

- Heavily refactored the device tree
- Extended commit message
- Documented onboad connectors
- Refactored MAC and calibration data setups to use nvmem-layout
- Made both network interfaces LAN ports and bridge them, this makes
  more sense for an access point and is consistent with the rest of
  Ruckus APs.
- Enable lzma-loader for compressed initramfs
- Enabled the optional internal USB port
- Added missing LEDs and according pinctrl settings
- Added reserved memory region used for bootloader communication
- Added the bit-banged I²C bus and onboard TPM
- Refactored boot scheme and flash layout to match earlier Ruckus
  devices and maximize usable space for user data.

Quirks:
- H7 is the physical presence switch for the SLB9645TT12 TPM.

TODO:
- Link state reporting on the Ethernet ports doesn't work and both ports
  report "up" due to limitation of swconfig ar8327 driver. With DSA
  conversion, this shall be rectified.
- Locate 2nd shift register (U7) controlling beamforming antennas, probably
  on ath10k GPIOs which are currently unsupported in the driver. For
  this, there is a device tree node describing that - but explicitly
  disabled.
- At the moment of adding support, there is an endianness bug in the TPM
  driver causing it to not detect the TPM module because of ID mismatch.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17550
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-01-20 23:59:45 +01:00
..
airoha airoha: an7581: add pending PCI patch 2025-01-17 22:09:05 +01:00
apm821xx apm821xx: fixes WNDAP620 + WNDAP660 sysupgrade failures 2025-01-12 10:19:05 +01:00
archs38
armsr armsr: change image names to 'combined-efi' 2025-01-15 01:51:47 +00:00
at91
ath79 ath79: add support for Ruckus R500 2025-01-20 23:59:45 +01:00
bcm27xx kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
bcm47xx
bcm53xx kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
bcm4908
bmips generic: move gpio-regmap request/free ops patch from realtek 2025-01-08 18:10:46 +01:00
d1 d1: Use correct module for devices with wifi 2025-01-13 23:38:19 +01:00
gemini
generic generic: add leds_st1202 patch to fix NULL pointer access 2025-01-19 11:07:05 +01:00
imx
ipq40xx ipq4019: patch initialization of Lantiq DSL on FritzBox 7530. 2025-01-18 18:50:51 +01:00
ipq806x ipq806x: chromium: Support Chromium "crossystem" GPIO tooling 2025-01-10 11:50:44 +01:00
ixp4xx
kirkwood
lantiq lantiq: fritz_cal_extract with reverse option for AVM FritzBox 7430 2025-01-20 13:07:22 +01:00
layerscape
loongarch64
malta
mediatek mediatek: EX5601-T0 add Zyxel EX5601-T1 and T-56 alias 2025-01-19 17:51:06 +01:00
mpc85xx
mvebu mvebu: WD Cloud Mirror Gen2: Remove stty dependency 2025-01-13 23:56:09 +01:00
mxs
octeon
omap
pistachio
qoriq
qualcommax qualcommax: dl-wrx36: fix 2.5G port LED-s 2025-01-18 16:09:32 +01:00
ramips ramips: fixes for Keenetic KN-1711,1713,1910 2025-01-19 18:03:05 +01:00
realtek realtek: Switch RTL8231 driver on Zyxel GS1900-48 2025-01-18 14:14:52 +01:00
rockchip rockchip: disable kernel preemption 2025-01-12 13:22:11 +01:00
sifiveu
siflower
starfive kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
stm32
sunxi
tegra
uml
x86
zynq
Makefile