[OpenWrt-Devel] AR8334 switch support

Heiner Kallweit hkallweit1 at gmail.com
Wed Apr 22 13:01:09 EDT 2015

Am 21.04.2015 um 19:06 schrieb Christian Mehlis:
> Am 21.04.2015 um 17:19 schrieb Heiner Kallweit:
>> All I found regarding AR8334/QCA8334 is that it supposedly has four ports.
>> (There was even an AR8335 with five ports mentioned).
>> Considering the port / phy layout of AR8337 and the existing boards
>> with AR8334 I'd assume that AR8334 has just two phy's.
>> The 8327/8337 code of the driver at least would have to be extended to
>> not assume a fixed 7 port / 5 phy layout.
> I see.
>> Apart from the fact that the driver treats AR8334 as a 7 port / 5 phy
>> chip it also applies the fixups for AR8327 rev. 2, what is at least
>> questionnable.
>> Is the AR8334 fully functional with this slightly modified driver or
>> are certain thing not working?
> With the vendor patch, Linux is able to talk to the switch, and send/receive data.
> Strange things I discovered:
> 1) on "plug out"
>     Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is down
Can you provide a complete dmesg output?
> is printed, but linux keeps the interface as UP.
> 2) # swconfig list (on this board) shows multiple switches?!
> Found: switch0 - ag71xx-mdio.0
> Found: switch1 - eth1
switch1 is the AR9344-internal (100MBit only) switch.

> 3) swconfig dev switch0 show
>     works as expected.
> files attached:
>     1. boot with ports connected
>     2. disconnect plugs
>     3. dump the files
> If you can supply some sort of patch for the 4 port switch, I would be happy to test. -> I want to have upstream support for the switch (and the compex wpj344).
> In case you really need the actual hardware (the compex wpj344) I can send you a board.
> Best
> Christian

W/o having seen the datasheets for AR8337/AR8334 I'm hesitant to propose a patch.
1. AR8334 identifies itself as AR8337/rev.2. There might be a real AR8337/rev.2 with 7 ports. How to tell between these two chips?
2. The AR8334 name seems to indicate that it's the same as AR8337 just with 4 ports. The required padding patch however shows
   that the difference is not only the number of ports. Having said that there might be more differences.

Rgds, Heiner
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list