Received: by 10.213.65.68 with SMTP id h4csp677460imn; Fri, 23 Mar 2018 13:14:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELvXJ4JIzTe/4KLIBf/L4Q8UrCR4T8Dwi2GQat5AMdhLliyUdCgTLGnO7G+aJEZQMu4Wtehn X-Received: by 10.99.96.79 with SMTP id u76mr21190889pgb.199.1521836063322; Fri, 23 Mar 2018 13:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521836063; cv=none; d=google.com; s=arc-20160816; b=kW7fQWbq3W/lpyhifKCtGI71WJSX8KmYaJhKyF60mz2r2KoFZwcS6Eb3rWeGAxjhiY exZg7ZtfDSUiG+qdnHNOJMV+lD/TePswizuhAv/mVT08MSd1hnLhqxSqGC9FqaXMV1sd RGPg82ly9e2iW3N66sf7U8F0ftsfDvqxq4cBF+1n6bUyIYk6IX4jSYIgDIOI0ptLWPZi pQezwo/ooWc4g2JgBi6BdzizvW6Z5jy1oLfEIFia6cj8RiN8c9S1/Qg1cCVEWm138+3d NVgQnwl4iG4UQgH9A2KGsOGU1c9bih5RqNdCwBZHE1AGN3g6XktY57/K0hZRdW3+NqbO 8Wmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wVZtk5Qu6HuUI/3vZJNB3nhu5pUpzvVAQrHouLAb/SA=; b=MkQQaz1zVFQXMLd/5p3negCsigrUtpxS+62N9YjwIe4Bzp+DyuWTifK2xYU25tYbDs BVIHUy6gVcnE8AEI2NbRNwbwdWxo8Is3QE6WWLWf5yUMM96rMZuFi1EQC/qxLNfKHEi7 juJbDdpFqunahwyZPW6x5nDb/5gmLfHG+LTaTMiKqM4OrJoB/JhbrlGT/NYEkGctboDQ WmYRJLfncdel/CGQiGwCMJJpBXvRuBVEUf0bP1Jumt9ucAGiCjKJNNRLIS5Lmew8B59i oxxLXmSZbC+VLS7TyHAeGOuP5lg3f9lSI1s7xHJDQTDG14vskjjKFOEIT/tWBv75aDu6 rxcA== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90-v6si9124661plc.329.2018.03.23.13.14.09; Fri, 23 Mar 2018 13:14: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; 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 S1752253AbeCWULn (ORCPT + 99 others); Fri, 23 Mar 2018 16:11:43 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34893 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806AbeCWULh (ORCPT ); Fri, 23 Mar 2018 16:11:37 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A27B32071B; Fri, 23 Mar 2018 21:11:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 586022071B; Fri, 23 Mar 2018 21:11:34 +0100 (CET) From: Alexandre Belloni To: "David S . Miller" Cc: Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Andrew Lunn , Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Alexandre Belloni , Raju Lakkaraju Subject: [PATCH net-next 1/8] net: phy: Add initial support for Microsemi Ocelot internal PHYs. Date: Fri, 23 Mar 2018 21:11:10 +0100 Message-Id: <20180323201117.8416-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323201117.8416-1-alexandre.belloni@bootlin.com> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Microsemi Ocelot internal PHY ids. For now, simply use the genphy functions but more features are available. Cc: Raju Lakkaraju Signed-off-by: Alexandre Belloni --- drivers/net/phy/mscc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c index 650c2667d523..e1ab3acd1cdb 100644 --- a/drivers/net/phy/mscc.c +++ b/drivers/net/phy/mscc.c @@ -91,6 +91,7 @@ enum rgmii_rx_clock_delay { #define SECURE_ON_PASSWD_LEN_4 0x4000 /* Microsemi PHY ID's */ +#define PHY_ID_OCELOT 0x00070540 #define PHY_ID_VSC8530 0x00070560 #define PHY_ID_VSC8531 0x00070570 #define PHY_ID_VSC8540 0x00070760 @@ -658,6 +659,19 @@ static int vsc85xx_probe(struct phy_device *phydev) /* Microsemi VSC85xx PHYs */ static struct phy_driver vsc85xx_driver[] = { +{ + .phy_id = PHY_ID_OCELOT, + .name = "Microsemi OCELOT", + .phy_id_mask = 0xfffffff0, + .features = PHY_GBIT_FEATURES, + .soft_reset = &genphy_soft_reset, + .config_init = &genphy_config_init, + .config_aneg = &genphy_config_aneg, + .aneg_done = &genphy_aneg_done, + .read_status = &genphy_read_status, + .suspend = &genphy_suspend, + .resume = &genphy_resume, +}, { .phy_id = PHY_ID_VSC8530, .name = "Microsemi FE VSC8530", @@ -748,6 +762,7 @@ static struct phy_driver vsc85xx_driver[] = { module_phy_driver(vsc85xx_driver); static struct mdio_device_id __maybe_unused vsc85xx_tbl[] = { + { PHY_ID_OCELOT, 0xfffffff0, }, { PHY_ID_VSC8530, 0xfffffff0, }, { PHY_ID_VSC8531, 0xfffffff0, }, { PHY_ID_VSC8540, 0xfffffff0, }, -- 2.16.2