Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2350849pxb; Fri, 22 Oct 2021 20:29:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkQqlI1xzyXnUikE5nAp+5XvFkj5MZmbDFxl+sj5kBV5IyPxTT1p1p7W2kMQVvgM7oxW9X X-Received: by 2002:a17:906:4d01:: with SMTP id r1mr320809eju.311.1634959759673; Fri, 22 Oct 2021 20:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634959759; cv=none; d=google.com; s=arc-20160816; b=p+lQYwy1Jg6J3w7iy1cwP6MTpsaslBJSux2YmJLW6MMiPuRxFDBUIAgJO1f25qjgfj 4OtSjjR/rUdpf24Okk2Kauf2kNiknxUqSWA3jTiYLv6mTPQExOwUvuHLv3H3DqksZzKF 8Pum8/vXyFUXal0KDb/qhaNiP/XBZVZE+GEoGEe0sxei77U4r0W+ulJ4Is3LwSasCH/I S/LWRa2Hbnscnggla8d67vtvghRG8baeonk9M4JzmDcEyI3QgqLsYF+/8dTCYd7lntsk CwQK6qM1M9OrT9+7H5vEaBqdiHHe3xm9sZEaz5wn+apHh5YXV26GRb7GY6o1oGBSEXOZ JjLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=wx0o/+FDlE5lrjOxVv1UP3CP7rS1Bx+HM110kv/93QQ=; b=x6C9Dw9CCf4j9MEWAywDYjPpTKsM2C4q0YzI1aOwVkWbdWFVgGgc+VDZHa+hX47h6h 1UH/Okg2AqJ5nMWYH6QZNGtLKMdle2v9FA1CMnjmBLz3Ll+Mc/zexoUNVH6Yuonv/XyS JLXRqXODBJDVSIEuZuNc0ujxkyheZ/LK+bXdtQczcHoWGsHH8DpKQZqf+APtMC0sBghV OZG788ZvnAJGhqA1r74n+g+hsw2Nd0/YCf/JFMCiezjngYOucKYYkT77kXLvv2v+/kjf 6UJWxAB19oEojZu8YsQpL2FopjAT/k9N6pXvEc0yShEsmvN6tn43kqDSymMM7xdKx1xY fAiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sNu1mAPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz15si14436740ejc.443.2021.10.22.20.28.26; Fri, 22 Oct 2021 20:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sNu1mAPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231712AbhJWD1Q (ORCPT + 99 others); Fri, 22 Oct 2021 23:27:16 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:45512 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231293AbhJWD1E (ORCPT ); Fri, 22 Oct 2021 23:27:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634959485; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=wx0o/+FDlE5lrjOxVv1UP3CP7rS1Bx+HM110kv/93QQ=; b=sNu1mAPDDVSJKt/ksgn2qzKemQTFDVwNT0U1XDDmZBsTEHqbdUailEYQvYCm2CoTL6VrTw20 odHS4TDj0BINI3LE3rKO9scqPeq3VOsCHVhtP6JRMWzoCG6ORO9cbQRLUcHSWurUpW1C06e7 8g2zgbJMV4eREBhuV2QQoTi3zrk= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 61738076fd91319f0f9579d6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 23 Oct 2021 03:24:38 GMT Sender: luoj=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D677EC4361A; Sat, 23 Oct 2021 03:24:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from akronite-sh-dev02.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luoj) by smtp.codeaurora.org (Postfix) with ESMTPSA id DB0E2C4360D; Sat, 23 Oct 2021 03:24:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org DB0E2C4360D Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Luo Jie To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sricharan@codeaurora.org, Luo Jie Subject: [PATCH v5 05/14] net: phy: add qca8081 ethernet phy driver Date: Sat, 23 Oct 2021 11:24:03 +0800 Message-Id: <20211023032412.30479-6-luoj@codeaurora.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211023032412.30479-1-luoj@codeaurora.org> References: <20211023032412.30479-1-luoj@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org qca8081 is a single port ethernet phy chip that supports 10/100/1000/2500 Mbps mode. Add the basic phy driver features, and reuse the at803x phy driver functions. Signed-off-by: Luo Jie --- drivers/net/phy/at803x.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 3465f2bb6356..aae27fe3e1e1 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -158,6 +158,8 @@ #define ATH8035_PHY_ID 0x004dd072 #define AT8030_PHY_ID_MASK 0xffffffef +#define QCA8081_PHY_ID 0x004dd101 + #define QCA8327_A_PHY_ID 0x004dd033 #define QCA8327_B_PHY_ID 0x004dd034 #define QCA8337_PHY_ID 0x004dd036 @@ -173,7 +175,7 @@ #define AT803X_KEEP_PLL_ENABLED BIT(0) #define AT803X_DISABLE_SMARTEEE BIT(1) -MODULE_DESCRIPTION("Qualcomm Atheros AR803x PHY driver"); +MODULE_DESCRIPTION("Qualcomm Atheros AR803x and QCA808X PHY driver"); MODULE_AUTHOR("Matus Ujhelyi"); MODULE_LICENSE("GPL"); @@ -1591,6 +1593,18 @@ static struct phy_driver at803x_driver[] = { .get_stats = at803x_get_stats, .suspend = qca83xx_suspend, .resume = qca83xx_resume, +}, { + /* Qualcomm QCA8081 */ + PHY_ID_MATCH_EXACT(QCA8081_PHY_ID), + .name = "Qualcomm QCA8081", + .config_intr = at803x_config_intr, + .handle_interrupt = at803x_handle_interrupt, + .get_tunable = at803x_get_tunable, + .set_tunable = at803x_set_tunable, + .set_wol = at803x_set_wol, + .get_wol = at803x_get_wol, + .suspend = genphy_suspend, + .resume = genphy_resume, }, }; module_phy_driver(at803x_driver); @@ -1605,6 +1619,7 @@ static struct mdio_device_id __maybe_unused atheros_tbl[] = { { PHY_ID_MATCH_EXACT(QCA8327_A_PHY_ID) }, { PHY_ID_MATCH_EXACT(QCA8327_B_PHY_ID) }, { PHY_ID_MATCH_EXACT(QCA9561_PHY_ID) }, + { PHY_ID_MATCH_EXACT(QCA8081_PHY_ID) }, { } }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project