[OpenWrt-Devel] AR8334 switch support
Heiner Kallweit
hkallweit1 at gmail.com
Tue Apr 21 11:19:11 EDT 2015
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.
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?
Rgds, Heiner
On Tue, Apr 21, 2015 at 1:51 PM, Christian Mehlis <christian at m3hlis.de> wrote:
> I was involved in making upstream support for the compex wpj344 and came
> across the AR8334 embedded switch used on this board.
>
> Unfortunately it seems that this switch is not jet supported by the
> ar8327/ar8216 driver in openwrt.
>
> The vendor just did this to their openwrt based sdk:
>
> --- a/target/linux/generic/files/drivers/net/phy/ar8327.c
> +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c
> @@ -508,8 +508,10 @@ ar8327_hw_config_pdata(struct ar8xxx_priv *priv,
> data->port6_status = ar8327_get_port_init_status(&pdata->port6_cfg);
>
> t = ar8327_get_pad_cfg(pdata->pad0_cfg);
> +#if 0
> if (chip_is_ar8337(priv))
> t |= AR8337_PAD_MAC06_EXCHANGE_EN;
> +#endif
>
> ar8xxx_write(priv, AR8327_REG_PAD0_MODE, t);
> t = ar8327_get_pad_cfg(pdata->pad5_cfg);
> --
>
> I tied to find a more generic solution but it seems that my ar8334 is
> identifying itself as "Atheros AR8337 rev. 2 switch". The identification
> read from the device is ver:0x13 rev:0x02.
>
> If you have more information on that chip or some source code, feel free to
> reply (or send me a mail).
>
> The board support went upstream in the mean time:
>
> https://dev.openwrt.org/changeset/45527
>
> Best
> Christian
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list