From patchwork Sun Nov 26 06:07:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Luo X-Patchwork-Id: 17108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2317826vqx; Sat, 25 Nov 2023 22:08:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4FigBLDAELuZGQ/4yxCSz5e6L3APpsGy2Fk+ICJ34FHot/67bhKdrdOkCu/MZx2lqKoH+ X-Received: by 2002:a05:6358:7213:b0:16d:ff7a:a066 with SMTP id h19-20020a056358721300b0016dff7aa066mr7908179rwa.27.1700978929122; Sat, 25 Nov 2023 22:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700978929; cv=none; d=google.com; s=arc-20160816; b=gmWf1oeiPUxhsjJgMCxO67IPGKULh+HTDQiAFtY9v0mFEmQUrEOMzqXlP9mf8jCx5F 4fPg98xzoc0UqRMBV6Ge2WmOFfKx0Xbz1kCCZ9dRab8G7yNh6Pf3AdvjUoUTZlNyyT9R tGHX1/AvCfupY7SevlOaNpT6L536Cnv+6jCwPT1IynE80XZtAfCM36VOx5bLxjT9rptR 4auRP+oyljXd8/9ux4HzPA8U5Xi9WVl2IqfH8Tvi3ztO85MC+vSk87ZVCQYD+FTGvfrF O51SDjvp3fsoK5ElI/2xY+zAZqqRb1Z49zSd2GpmRbt2hF4d9pC2J/Qztr/fGYDpJGYH IAJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5akeRdGBH0Gei6ryYFUrDZ30FvI2MMkj0LH1ePIIkPw=; fh=CzJZH1Mq0+1gFor3WuKjwLRRL9rPD0zvQs0go/fRLgA=; b=sUsP3pfW5ef/fYfEeuXZKofePsnBNJdA4VBHonWu/KYyHqNo0Y6+GtJYqZ515Mss73 oPP/C5lFrzMBl+i8+c3ghQUz8rGdZFzp6AFBh40Fe5+sw9p7cEwuf6G45n7vRugh6bys ojmN/uAO0LPGgsQA50+oGRmWaPr7C02vpdtOT6NNGHzdyy+vWdmjbldMm1YFXlKWsexU Yh/GNEDI/cjHQnffVLK5TAc2oXnEo2iO9iK9xsvxzLIceIktfZMbi0QdSsKvhcUP2wib EH1wyk/be73wUQTccW94HleA2mqSyC4nI+D2AzJAPzYgbMZuSyw7nN1ZjLLaCSk0VYFm BSmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CLYhTMfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h6-20020a635746000000b005855f67e490si7182751pgm.690.2023.11.25.22.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 22:08:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CLYhTMfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 368EC80C9A7C; Sat, 25 Nov 2023 22:08:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjKZGId (ORCPT + 99 others); Sun, 26 Nov 2023 01:08:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKZGIb (ORCPT ); Sun, 26 Nov 2023 01:08:31 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 314F8E4; Sat, 25 Nov 2023 22:08:38 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AQ62oWC001113; Sun, 26 Nov 2023 06:08:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=5akeRdGBH0Gei6ryYFUrDZ30FvI2MMkj0LH1ePIIkPw=; b=CLYhTMfyZTz1ueNf0tLIfzK3YKEdl9kisbST62bAlYmQK3ZwT6koIbZUvspM4VqnLHR2 xiymWzzx3HlynWTYME6QN+I0pcb/G5BdU4J/LSTD3+4W8eYLVHlbvA0jhIwbYNzXsrz4 tPLsOPciW+/MGOGdymeILyz8YDNIRjvv6Pezp4keywREiZn1egJ0Kpc2RYzE22AF/UEY zRzLg2H+pecBJPD5v9SzMsMMaFbsmttbKp2ESK7eGPIbYHUGJ9CGJKZK0xVg+kVScuI+ V7XGSyR0V1DAYY7KxNeUb437KiTRk0hGnH2L5fsBA74MjznhjnEuk2NvFPRsxek3bGag PA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uk8h8hsjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 26 Nov 2023 06:08:09 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AQ688W7024506 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 26 Nov 2023 06:08:08 GMT Received: from akronite-sh-dev02.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sat, 25 Nov 2023 22:08:04 -0800 From: Luo Jie To: , , , , , , , , , , CC: , , , Subject: [PATCH v6 0/6] add qca8084 ethernet phy driver Date: Sun, 26 Nov 2023 14:07:26 +0800 Message-ID: <20231126060732.31764-1-quic_luoj@quicinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: AJoocCCCaCLmBEODcVVnZ-AjEYznKAJH X-Proofpoint-GUID: AJoocCCCaCLmBEODcVVnZ-AjEYznKAJH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-26_04,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=574 impostorscore=0 bulkscore=0 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311260042 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 25 Nov 2023 22:08:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783605681306800439 X-GMAIL-MSGID: 1783605681306800439 QCA8084 is four-port PHY with maximum link capability 2.5G, which supports the interface mode qusgmii and sgmii mode, there are two PCSs available to connected with ethernet port. QCA8084 can work in switch mode or PHY mode. For switch mode, both PCS0 and PCS1 work on sgmii mode. For PHY mode, PCS1 works on qusgmii mode. The fourth PHY connected with PCS0 works on sgmii mode. Besides this PHY driver patches, the PCS driver is also needed to bring up the qca8084 device, which mainly configurs PCS and clocks. Changes in v3: * pick the two patches to introduce the interface mode 10g-qxgmii from Vladimir Oltean(olteanv@gmail.com). * add the function phydev_id_is_qca808x to identify the PHY qca8081 and qca8084. * update the interface mode name PHY_INTERFACE_MODE_QUSGMII to PHY_INTERFACE_MODE_10G_QXGMII. Changes in v4: * remove the following patch: . * split out 10g_qxgmii change of ethernet-controller.yaml. Changes in v5: * update the author of the patch below. . Changes in v6: * drop the "inline" keyword. * apply the patches with "--max-line-length=80". Luo Jie (4): net: phy: at803x: add QCA8084 ethernet phy support net: phy: at803x: add the function phydev_id_is_qca808x net: phy: at803x: Add qca8084_config_init function net: phy: qca8084: add qca8084_link_change_notify Vladimir Oltean (2): net: phy: introduce core support for phy-mode = "10g-qxgmii" dt-bindings: net: ethernet-controller: add 10g-qxgmii mode .../bindings/net/ethernet-controller.yaml | 1 + Documentation/networking/phy.rst | 6 + drivers/net/phy/at803x.c | 139 +++++++++++++++++- drivers/net/phy/phy-core.c | 1 + drivers/net/phy/phylink.c | 11 +- include/linux/phy.h | 4 + include/linux/phylink.h | 2 + 7 files changed, 156 insertions(+), 8 deletions(-) base-commit: 8c9660f6515396aba78d1168d2e17951d653ebf2