From patchwork Wed Apr 5 05:33:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 96769 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp109675qgd; Tue, 4 Apr 2017 22:33:23 -0700 (PDT) X-Received: by 10.84.177.36 with SMTP id w33mr33680825plb.105.1491370403783; Tue, 04 Apr 2017 22:33:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c75si19578088pfc.89.2017.04.04.22.33.23; Tue, 04 Apr 2017 22:33:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752903AbdDEFdR (ORCPT + 12 others); Wed, 5 Apr 2017 01:33:17 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33975 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbdDEFdP (ORCPT ); Wed, 5 Apr 2017 01:33:15 -0400 Received: by mail-pf0-f195.google.com with SMTP id o126so539087pfb.1; Tue, 04 Apr 2017 22:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=U91oQ4ZDbl/jIEzM/G1b49Dxj/Hy7G+F6qwpSLnkAb4=; b=QmTNHmGnTXEUQ74bbPCTHucTXS5eY0cPMjifxnGPgQfIsys7PLiVYvPOJWryCUg75j t5EsANnERW5OeGAvv6P1hwvsfzyciuolHJ8kvcrlpZEVk7cXz+MeWfaAgd1csdi0rh5w WMBfjTrT69MiuFbY9MXZyj1D+hwmcp744hfvR/olMpjUBzNCxKVqPQSpI4EAe2+ZZkyr w1KvtEWe+TbMeZrUseZJB2Ibq5EZpq/txzDMfsQ8gznq1htOyjlGX7Z/BA51YXDRskIo 5nTbvBkV0an5+Ze6Z1AENY+9t6+GNHE8MpOKqjeufFa0CTis7mVR/d2PNrIMiYBnmAj1 DT3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=U91oQ4ZDbl/jIEzM/G1b49Dxj/Hy7G+F6qwpSLnkAb4=; b=Z2THgII+JrDlfoLPZPRDERUlO2gsxKj4+Z6bNttpJhx6QY6oW4UZsCEbrXxFdmN3dP K0Zm0oIzMaT25BX2eKnTX0Oa/sdzXycfrX36pONbws6mekWrqJtgER5AxfeFqSZ9cqKO PYfDAmh96QYWCq31gKdwP2VfsnJ45hU73gwVTuDECl0PZpLq8gG2vAv0tHgKdGk/3bDJ 9fnxd9P12yRXkr4baQqOyn04NhPr+j6CcLE1OIfY5XHFcKKFj9dWgM7NPmEDPqJP/ZYl SA19d6kzI6jYZyK1U9601GLj9mZYL4Ar0eRSrHG0WpM2SpQqUK4LTAv0QLrTObs3uDJc OpMw== X-Gm-Message-State: AFeK/H05MlvVnrm8jiXSLnDkJ46rAiPpQ7vQgytk7LzGPXdpqTXyt01ZG6rWKNLKdMNYDw== X-Received: by 10.98.113.74 with SMTP id m71mr27306639pfc.231.1491370394687; Tue, 04 Apr 2017 22:33:14 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id b70sm34744284pfc.100.2017.04.04.22.33.10 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 04 Apr 2017 22:33:13 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 05 Apr 2017 15:03:06 +0930 From: Joel Stanley To: Florian Fainelli , David Miller Cc: Jon Mason , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: phy: broadcom: Add support for the BCM54210E Date: Wed, 5 Apr 2017 15:03:04 +0930 Message-Id: <20170405053304.30246-1-joel@jms.id.au> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This device is a single-port RGMII 10/100/1000BASE-T PHY with EEE & WOL. Signed-off-by: Joel Stanley --- drivers/net/phy/broadcom.c | 13 +++++++++++++ include/linux/brcmphy.h | 2 ++ 2 files changed, 15 insertions(+) -- 2.11.0 diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 9cd8b27d1292..3df826323129 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -703,6 +703,18 @@ static struct phy_driver broadcom_drivers[] = { .read_status = genphy_read_status, .ack_interrupt = brcm_fet_ack_interrupt, .config_intr = brcm_fet_config_intr, +}, { + .phy_id = PHY_ID_BCM54210E, + .phy_id_mask = 0xfffffff0, + .name = "Broadcom BCM54210E", + .features = PHY_GBIT_FEATURES | + SUPPORTED_Pause | SUPPORTED_Asym_Pause, + .flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT, + .config_init = bcm54xx_config_init, + .config_aneg = genphy_config_aneg, + .read_status = genphy_read_status, + .ack_interrupt = bcm_phy_ack_intr, + .config_intr = bcm_phy_config_intr, } }; module_phy_driver(broadcom_drivers); @@ -723,6 +735,7 @@ static struct mdio_device_id __maybe_unused broadcom_tbl[] = { { PHY_ID_BCM57780, 0xfffffff0 }, { PHY_ID_BCMAC131, 0xfffffff0 }, { PHY_ID_BCM5241, 0xfffffff0 }, + { PHY_ID_BCM54210E, 0xfffffff0}, { } }; diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h index 55e517130311..53106b9c89f1 100644 --- a/include/linux/brcmphy.h +++ b/include/linux/brcmphy.h @@ -40,6 +40,8 @@ #define PHY_ID_BCM_CYGNUS 0xae025200 +#define PHY_ID_BCM54210E 0x600d84a0 + #define PHY_BCM_OUI_MASK 0xfffffc00 #define PHY_BCM_OUI_1 0x00206000 #define PHY_BCM_OUI_2 0x0143bc00