From patchwork Tue Apr 21 11:51:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Mehlis X-Patchwork-Id: 463085 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A52E914012F for ; Tue, 21 Apr 2015 21:52:08 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E55812800D3; Tue, 21 Apr 2015 13:51:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3F55B2800D3 for ; Tue, 21 Apr 2015 13:50:58 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from phoenix.uberspace.de (phoenix.uberspace.de [95.143.172.135]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 21 Apr 2015 13:50:57 +0200 (CEST) Received: (qmail 28524 invoked from network); 21 Apr 2015 11:51:51 -0000 Received: from localhost (HELO ?IPv6:2001:920:18ae:3:f2de:f1ff:fe3b:a8e8?) (127.0.0.1) by phoenix.uberspace.de with SMTP; 21 Apr 2015 11:51:51 -0000 Message-ID: <553639D5.6090508@m3hlis.de> Date: Tue, 21 Apr 2015 13:51:49 +0200 From: Christian Mehlis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] AR8334 switch support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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);