From patchwork Tue Jan 25 17:05:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 536561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0F49C43219 for ; Tue, 25 Jan 2022 17:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237065AbiAYRI7 (ORCPT ); Tue, 25 Jan 2022 12:08:59 -0500 Received: from mx0c-0054df01.pphosted.com ([67.231.159.91]:54701 "EHLO mx0c-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241838AbiAYRFz (ORCPT ); Tue, 25 Jan 2022 12:05:55 -0500 Received: from pps.filterd (m0208999.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20PCEDge028781; Tue, 25 Jan 2022 12:05:49 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2052.outbound.protection.outlook.com [104.47.61.52]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dsvtr0y1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 12:05:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W1D6lZh8MFkg/5p/NJEySP+X4F0Uz/4mnay+VLEIee6zu5I0R4evzT2p7aDrt5lbcDGMYdQNN9DiN6qHqYuwkfUde83s4JIEAjnP+9mx+UTM2RvovZVOx2to3MuWCIYqa3enC8PKRcDufkFdkLnBVJGurTX7edcFY88z4BfxWxJqqggnL74PGHPAb2uePqy7yr4sk5gm5v56yMTYKxTJOjqHvmYJ8WfcnpXmwv0Z2hNwh2CXhsr2UXFBSAJDz6SchZUlRvApQUxmL3ep310VKG9E1UMrC7rmQkPpSPvy8bIYU7UiXhGdejb/3NQRWBPaJgnSWLBMGMGiaAliywCZdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A6He1RJ5IHND7KBTAPhW32Ur5TrYIoxd8nOhj0HGIi8=; b=aHKlsVT78hOTNKQHKeqVBzb6JzyDY+68z8i+jMwAwugQteqAZuoCRPdQbpAbm1x6BjLz92VwbIZKbiuCPW3W+YquoSEl8p4Cg/s6ZqX7ozpgh99J/tOgiacY592KV4XdGIDyJPyqXIg10HE6UP7tfH5mgvBDIFI0Bttcw7kLHLEHfvDLM6KvR20OgCXz/uQGMdlRR8R5dUYQlLLzeEJVEuUiuNIcGjggl0AZ9t5efHgALRclaWUVUqB6P6aOCh1d+xHjlRgNYRo7I7p64+ONaMWhx2XK9lQhi2O8uDV2Z1teCryMuOhbfjz6RBPckl/kdiLZJrqLnzzNZ2YlQaF2Lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A6He1RJ5IHND7KBTAPhW32Ur5TrYIoxd8nOhj0HGIi8=; b=bXngZVgVI8BLSjuL94Hgw8SgOpaf7uIwomdg86TypDBfe572I7QMQHYpCn/H3oAx+cH100rpGiZeG/hhMi04ORy7wTc50sX1xtsNLWHJqvYqHpec9XW/FnXa/Ck1Ib71qdIHg5NuF9nvyX2ZOJYVR1Gx7vU7vEso8XjBOyuwiNk= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR0101MB1144.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:1e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Tue, 25 Jan 2022 17:05:46 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8%2]) with mapi id 15.20.4888.020; Tue, 25 Jan 2022 17:05:46 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, michal.simek@xilinx.com, nicolas.ferre@microchip.com, claudiu.beznea@microchip.com, devicetree@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 1/3] dt-bindings: net: cdns,macb: added generic PHY and reset mappings for ZynqMP Date: Tue, 25 Jan 2022 11:05:31 -0600 Message-Id: <20220125170533.256468-2-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125170533.256468-1-robert.hancock@calian.com> References: <20220125170533.256468-1-robert.hancock@calian.com> X-ClientProxiedBy: MWHPR21CA0031.namprd21.prod.outlook.com (2603:10b6:300:129::17) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca156ce5-dd22-450f-307f-08d9e024edc6 X-MS-TrafficTypeDiagnostic: YQXPR0101MB1144:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LvtMmQhogBC5w/eAKfvpE0IdQLOfGhqtHHXOLTjx+lAbs4dELeK+zM8md2Ai1bt+fiwxQEXk7d+HXfnDqd0IF+FvcPCK8wj/wcGk+rICBh810yYHAEUrG3WfEgwaxp1VTdIhFHE7HNMoJ73X9YVsgXET1K5dQglV1D5/d3ZoUWKuXnkkcSAzTcdGa8MvLhY0c/YFh3QubwLb+JIupsVuJ/1K2T7PxF5BT0lF66XAuFz6ztefUMkUUDm9X7niC9vufFyPmTCpaWRkGlxrcB2eLW0KMw2UGIvhL1s4QF7n52JT+xiFB+hSBC+16cUO4joUvvSEh/sG6YsXhnhbPwsUBB6dBuXuD9mvTefG33LbR02utyDoTnGtl8TNCCuOyqIlpsfLVRG1K2R29raW7OhJLh1Jrre8E3sSXKbLmrwD9xF064jPYh50Z7nBeMj4l33DC/EPqQI+GetVfslnSasnvABqOgYn8B1AYNwlZa+BLVTo4gFJI0/ivdfSFwdItYpkQMlBXLh5sRnmfiQzCTSo1AoI6Mg1OkKKSyLj0uXq8DXuqwhuw0aSfmctwJ22rMsgxYLqsQGf3S6cQKCwsmxMVROxthJo9XHY0n0m4VyJL6Gi3Y7f0cFxRn9sWjmhuxZfNRANM5YZUSWpgSBKd1N/Ruo+KLhoOgRtes7QNKCzDblBoll4zkQvfHvJ7Ylh+hieTZeVoEfvI/Ocv95L9yKw3uAT5+V84ThYkKBSpiNqgoU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(6916009)(8936002)(2616005)(66556008)(6666004)(44832011)(83380400001)(6506007)(38100700002)(8676002)(38350700002)(86362001)(2906002)(6486002)(508600001)(316002)(107886003)(6512007)(1076003)(52116002)(36756003)(4326008)(26005)(186003)(66476007)(5660300002)(66946007)(41533002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6G5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iB6oOZMGvXoSKc4tFuwGNq2bKjU2ojuW4/eKCDIlDUj4nRfDuNus4K/c/vliCyH7dOhE1G9wpFKKdJYr/g/Ey2Tu8ztJOitRNQEnW3Vvg2mGsKWOr5iGZ3d3qaKvyfjCdrELf5Z6+XrYWT5dmYHVXZA3EGgaEXLqHL/b9zQ8a843NmsEZFA6P6bnO+BSbQLMIVQEiTD2wfv0wB1h/KqDDcOPPIzO9sVOsgQV/M1Oln/eF1O2kqRJfb/Uk8GaVaZwUBHNlnW6XW2vTh8/VYurtyySoos1ZzTkC0duNs7bAUp5St2u3h2G8dKa0bPb5pA9EyzNqd/ZMfcRxb1qQIsYF7rlcp+/Dls9zs1ARhY0XzNNk30wR24e1LXppNh554EwF3Yu93PMsBxiHq80tpZli2rnT2VLo5wMWvkCV5w8WGvy0H75/RG+tmHLxLj5gzwNCQBgXIegVMVBQRcJmuHmEPaL8XYaJp4k/G9DnZh4UV7ePuz/JacbCllDQkmbVOofrf/jj2QzKBwH2kDmt3ToeX/geIX1MpR+wIdPqm7H8YndU2d9PNCMO7DbX0UUUYD0hKVbl5hqA5VqaaehAO+mEiFaNh4vQl3fSt2ob8J6+rebW9xaqTgOw= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca156ce5-dd22-450f-307f-08d9e024edc6 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 17:05:46.3518 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: D0KC1xeQTxQRhi0kY6ycz249GQdmJRltMYXB+lqwqdvIv5nWto1vjNXa14lq8+09MsewpLJCRwKmVdMGxxUWYl02Aflpe2OgvJ5/9UcvpKU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR0101MB1144 X-Proofpoint-ORIG-GUID: J5PIIBhl1Cp7ddkIdYKEqUBEWBl9Rb8V X-Proofpoint-GUID: J5PIIBhl1Cp7ddkIdYKEqUBEWBl9Rb8V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-25_03,2022-01-25_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250106 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Updated macb DT binding documentation to reflect the phy-names, phys, resets, reset-names properties which are now used with ZynqMP GEM devices, and added a ZynqMP-specific DT example. Signed-off-by: Robert Hancock --- .../devicetree/bindings/net/cdns,macb.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index 8dd06db34169..efc759e052c4 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -81,6 +81,25 @@ properties: phy-handle: true + phys: + maxItems: 1 + + phy-names: + const: sgmii-phy + description: + Required with ZynqMP SoC when in SGMII mode. + Should reference PS-GTR generic PHY device for this controller + instance. See ZynqMP example. + + resets: + maxItems: 1 + description: + Recommended with ZynqMP, specify reset control for this + controller instance with zynqmp-reset driver. + + reset-names: + maxItems: 1 + fixed-link: true iommus: @@ -157,3 +176,30 @@ examples: reset-gpios = <&pioE 6 1>; }; }; + + gem1: ethernet@ff0c0000 { + compatible = "cdns,zynqmp-gem", "cdns,gem"; + interrupt-parent = <&gic>; + interrupts = <0 59 4>, <0 59 4>; + reg = <0x0 0xff0c0000 0x0 0x1000>; + clocks = <&zynqmp_clk LPD_LSBUS>, <&zynqmp_clk GEM1_REF>, + <&zynqmp_clk GEM1_TX>, <&zynqmp_clk GEM1_RX>, + <&zynqmp_clk GEM_TSU>; + clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk"; + #address-cells = <1>; + #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x875>; + power-domains = <&zynqmp_firmware PD_ETH_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>; + reset-names = "gem1_rst"; + status = "okay"; + phy-mode = "sgmii"; + phy-names = "sgmii-phy"; + phys = <&psgtr 1 PHY_TYPE_SGMII 1 1>; + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; From patchwork Tue Jan 25 17:05:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 536931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0482C433EF for ; Tue, 25 Jan 2022 17:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239331AbiAYRI7 (ORCPT ); Tue, 25 Jan 2022 12:08:59 -0500 Received: from mx0c-0054df01.pphosted.com ([67.231.159.91]:40512 "EHLO mx0c-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239799AbiAYRFz (ORCPT ); Tue, 25 Jan 2022 12:05:55 -0500 Received: from pps.filterd (m0208999.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20PCEDgf028781; Tue, 25 Jan 2022 12:05:49 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2052.outbound.protection.outlook.com [104.47.61.52]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dsvtr0y1c-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 12:05:49 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bVYAYHMSdpSRddDbUCQPLbU1/523ih17hnO1WsILnQlhjGdN5KrlpF5NGM56YTdrFcCxdzgXEPt686hu8xBNvheinTAiKeZQSfgepa4iO9BUxWjH7Sc/R6pwXs4YVonibX7UsFZkhDbn1b0w4Gb/llCGSJaSv8b35I0X5sNK77X3KJeu0Y9kQlQhGYAOwdPA9DeEUatQgMbvIFEIEJRNSAFCE4aSjbDOhQmj4Uvx7r8KnD0UpQGHlQ1B0qDIKDM1iSQmpbQ1NXXKrpD4iRTHUzX0rseuCRs7eGvFegRMHQy2bCk8hJZSZL2DWaKt2cxvwI5TL/a9y/HdS+jor669og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kQ7NoiSYcO0uBl+S4luF/pktSy4roBfQJhzvthSIf7A=; b=OqQHVhXzqBT53PtTKo6zbF7l2OkX+JBmFMo6nHaKIdWD9k3Yb+bMOdQLz1DpFP7kTK5UuDvPVPMneEzudGKsX1ek1R96Y6lJQXjj6ApfCCSShrtFTd2HcW9IsIc3LfGTOfmxPVTGMgGWD1lCib5AKfE0206gWrIQt75u3n47Q1bco5snVqUVBbPlXatj5O1SoYu/1+mfm+SlTWcHG90OYv0UIhKUSgbsQr0IizL0zfDpTRJ/vmY90aMdZ5QQ2iUB0bfoojWojglOohY5BWNiQXTUjNeWWoUQI5jj7A5r8v2YlkMb12O1gxj9Ndyhtaax2g3HfSwcQy19GcrQWJix5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kQ7NoiSYcO0uBl+S4luF/pktSy4roBfQJhzvthSIf7A=; b=Qst0P+2vLvf7xc7sLbu2WmQiAR8Ikr88x3kE7B/o1AGmUTVsFARnpM+DwJJxZKlvPDrkofKZm+pFWs/Y0aUWwFaRUZrKuamsk82c4Bu7vBu/92Due5MYspLIXllOT59VDKrYzvRsUUaB8Xys5j6WE2cVP7bz1ZILeIWHCS0vvbQ= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR0101MB1144.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:1e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Tue, 25 Jan 2022 17:05:48 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8%2]) with mapi id 15.20.4888.020; Tue, 25 Jan 2022 17:05:48 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, michal.simek@xilinx.com, nicolas.ferre@microchip.com, claudiu.beznea@microchip.com, devicetree@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 2/3] net: macb: Added ZynqMP-specific initialization Date: Tue, 25 Jan 2022 11:05:32 -0600 Message-Id: <20220125170533.256468-3-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125170533.256468-1-robert.hancock@calian.com> References: <20220125170533.256468-1-robert.hancock@calian.com> X-ClientProxiedBy: MWHPR21CA0031.namprd21.prod.outlook.com (2603:10b6:300:129::17) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42e40513-f15b-4911-5e29-08d9e024eeb2 X-MS-TrafficTypeDiagnostic: YQXPR0101MB1144:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gwRwu4HlNwzterg/P7ZIM0OZBzuo51UQlU7i+NlqUFvwT5kJg2LPS44QFSsxIfgjI2sFMTJS5D/R8WeeJJ3XqN3ReJ2gmNe/Kv5Iv8LGhVrX0uMwkQQY/Y248mf9WwCAwddzs84sIify58GqvecNDHSg+WheyGnRdgogfiLpugTUTEs7UODv9tEaH4HSmoDUL9GzqvhQSHja+cz+uveTOVGrWVyqj9nh7PMope2P7aiahQXPhNB4zFdpCuAOrQ4umg07f7us7NcCV+m3Hp0G0mxMIScD5DdFOqzz4lM/sHrx0AIc3Vw/auS+BMmjoDyeK+Wf5NBVJ9OjY8zRrSiCZ6YrC7x+OhkDIvGSgW9noqruB8kpQ87emeMf5UdRVi+KbQlz30Vpi/e2Zx//TXuKSswmPXebuV91vb6Vnpn1KCOEGwKFYX6BXLdr1M32qNoz2qCXaO0yE63AR30tpMK8Z+OIe1UYarCx5hDF8NbO5I4/vGOc2TQQyXyu7i8tqnuGmBcFeCqJDshqNW1OfUWO0J21FDRXBSoAsRmJKLH+QNVzIW3ZcVL+cfe9B/cZ7eU/+lnJBianohIrdyOmvEEJxXunjCdcC7op/Pptlynysfl9CqxcflNzCP3GKwOmAYJm4LkS89pHNl95RtS/YVtIS6gNPYKY1/OnubU1Z4DdCfGCIl9CpnEtDicbcx8WXiLXbfIZuFx7r2/SMweO39PUZw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(6916009)(8936002)(2616005)(66556008)(6666004)(44832011)(83380400001)(6506007)(38100700002)(8676002)(38350700002)(86362001)(2906002)(6486002)(508600001)(316002)(107886003)(6512007)(1076003)(52116002)(36756003)(4326008)(26005)(186003)(66476007)(5660300002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Xmgm2unVh0wFiRGZLnmG/o005gf3ZizZBXee1g6HSnFs8ffrvEmlWKSEDiyuRwTkzXwbQGhnGaOzXdd8LnJmsK6bdNSn8a0duPB7WLDWgmUEKa6F5AQQA4eH4FtocP7az2NVjmo3M7g9kfmBJSs0ej3QPAyLefyD/Zwzingi0zng8Az5mPOOGV4ij/8IcJZeiQ/koMwN9wGktpTtMmWLn3NJeVCy6zJBfdacmU+nP+ucmyjIbu2yC6IKLg0ePt0bE3C+GyYcdcSulZG1FfVJZ/uQJR68szMH5ZFQbWo7UZf0btU9jeoBg7eig3OBsT3I5fQor/a6Q/2eKGTWYUBwkaZ1oQcn9AUFewxMOzX2lFlw6s3LvO6EcVGSUDLIS+uKoxVsK/gsXMNQPpyzfGr81OGV/VffakjZQXghPweL1ybv2oyYYeM2gY/rCNm3dZtAqEZtB71JB+c0b0sKlOfWvzU8UVkUVLe5OV77AVtrxTxTXDQul5NlSSl+ooYtJ/NM5jeswkr5YD7vt87T2+ORBsvX6OEmDxN5/2ZhWxNax3TViUKIfrwhbVUocNkDy7Q9Ov6286tlz2Ke5pHpH9fn13dh7CsgN8pDdpu7w2kBXM2un3jn2ersnTlsjgdOSBGY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Z0= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42e40513-f15b-4911-5e29-08d9e024eeb2 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 17:05:47.9309 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4So/JnKE+K+InPzexT+01RG8+CyihF5me10ZikqLLBRHWBpsAEuH3+5tiSDjbYpHXqyxuOmBC7QTOGoxJf/tASMGmnNoRPoxyDtabdWWxgY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR0101MB1144 X-Proofpoint-ORIG-GUID: YU2-yLdSkXCI-lqkYyb65OkqLibvQIN2 X-Proofpoint-GUID: YU2-yLdSkXCI-lqkYyb65OkqLibvQIN2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-25_03,2022-01-25_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250106 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The GEM controllers on ZynqMP were missing some initialization steps which are required in some cases when using SGMII mode, which uses the PS-GTR transceivers managed by the phy-zynqmp driver. The GEM core appears to need a hardware-level reset in order to work properly in SGMII mode in cases where the GT reference clock was not present at initial power-on. This can be done using a reset mapped to the zynqmp-reset driver in the device tree. Also, when in SGMII mode, the GEM driver needs to ensure the PHY is initialized and powered on when it is initializing. Signed-off-by: Robert Hancock --- drivers/net/ethernet/cadence/macb_main.c | 48 +++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index a363da928e8b..80882908a68f 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -34,7 +34,9 @@ #include #include #include +#include #include +#include #include "macb.h" /* This structure is only used for MACB on SiFive FU540 devices */ @@ -4455,6 +4457,50 @@ static int fu540_c000_init(struct platform_device *pdev) return macb_init(pdev); } +static int zynqmp_init(struct platform_device *pdev) +{ + struct net_device *dev = platform_get_drvdata(pdev); + struct macb *bp = netdev_priv(dev); + int ret; + + if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) { + /* Ensure PS-GTR PHY device used in SGMII mode is ready */ + struct phy *sgmii_phy = devm_phy_get(&pdev->dev, "sgmii-phy"); + + if (IS_ERR(sgmii_phy)) { + ret = PTR_ERR(sgmii_phy); + dev_err_probe(&pdev->dev, ret, + "failed to get PS-GTR PHY\n"); + return ret; + } + + ret = phy_init(sgmii_phy); + if (ret) { + dev_err(&pdev->dev, "failed to init PS-GTR PHY: %d\n", + ret); + return ret; + } + + ret = phy_power_on(sgmii_phy); + if (ret) { + dev_err(&pdev->dev, "failed to power on PS-GTR PHY: %d\n", + ret); + return ret; + } + } + + /* Fully reset GEM controller at hardware level using zynqmp-reset driver, + * if mapped in device tree. + */ + ret = device_reset_optional(&pdev->dev); + if (ret) { + dev_err_probe(&pdev->dev, ret, "failed to reset controller"); + return ret; + } + + return macb_init(pdev); +} + static const struct macb_usrio_config sama7g5_usrio = { .mii = 0, .rmii = 1, @@ -4550,7 +4596,7 @@ static const struct macb_config zynqmp_config = { MACB_CAPS_GEM_HAS_PTP | MACB_CAPS_BD_RD_PREFETCH, .dma_burst_length = 16, .clk_init = macb_clk_init, - .init = macb_init, + .init = zynqmp_init, .jumbo_max_len = 10240, .usrio = &macb_default_usrio, }; From patchwork Tue Jan 25 17:05:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 536930 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4B03C43217 for ; Tue, 25 Jan 2022 17:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239447AbiAYRJE (ORCPT ); Tue, 25 Jan 2022 12:09:04 -0500 Received: from mx0c-0054df01.pphosted.com ([67.231.159.91]:41070 "EHLO mx0c-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240000AbiAYRF7 (ORCPT ); Tue, 25 Jan 2022 12:05:59 -0500 Received: from pps.filterd (m0208999.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20PCEDgi028781; Tue, 25 Jan 2022 12:05:52 -0500 Received: from can01-qb1-obe.outbound.protection.outlook.com (mail-qb1can01lp2056.outbound.protection.outlook.com [104.47.60.56]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dsvtr0y1g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 12:05:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uf/ZIsGtJkFdAGoe5nKtCMsg1budViqnhmMsCeFbWtYkt0396buzt2LJaOwDpVuffvn4VOQ0BvQihrqqfdjyAHF4nuHTUFOiAAMVLWaMiD9obsGCQOxOSkM5UuIPU75tfi1ayY1rBLvCXPKbkgA8ypFkdZHRcicxYO/+evt9yVR3WaproXQqMdxm+evJKcJW4L1jpFXyj6ZpsEDwka/dujx+vsoJP/fUhd2e4u0F0+SpNch2HBnJgf2cUY1H3dKDEi4WlF23bMpFF/Nh3OLGylFgqlp3FXK3KWgifeDwUSq0Kxwx+vS5no7KG6a2Sey9VYJ8jt/WpVjmn32EmM4yaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aUWfhsPQjTnLOs5qHErSjEB/rY1tDWBve7TPIWAIcH0=; b=JJGMTCqu6TAt8hB6BLHHUoLW1ugdImtLh93QYXyVFfq/2ky7EKiazu7TEsyU45NrVghk2nx41VmBSB3n34/PQ9zqk8hvwuX02AfdRJ+gfXMKTXGffrBnS8zhSOb6nYJK9i7uqZGc51ElIIkccV/UJejiEm8y84QBY/r8upwGMLHddjfJudlOpyye+frNhhCIXHB41fVb9d5sbBPKlt/0DGmt/GS+xQcm4AFlswBJX6lsBdzlsYops/BCFpzudQIYR94ZQFXfOJaq3oYafAnOGpe0VdLwp8t88232TbXfXBTzVuC/sapaOi05aoxWdqABcSaOI9rOL9fjpAW3TeuXCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aUWfhsPQjTnLOs5qHErSjEB/rY1tDWBve7TPIWAIcH0=; b=k2FQPo/Gsi+/nVek3ezt8K1gNBsdu7UkShy6ljSfgYKpkSJbT7tIPINrVxgHv8QI1kh1QECNaAmkOmtPPsmUB/ceUMy0eRLfHrzjaMeRLIu+0GoiX5E7N65CrmE7++aCn30zojDVkMlMUPWzQBRJRPqheHUXbLiOCPIE1+xukk8= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YTXPR0101MB0880.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Tue, 25 Jan 2022 17:05:49 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8%2]) with mapi id 15.20.4888.020; Tue, 25 Jan 2022 17:05:49 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, michal.simek@xilinx.com, nicolas.ferre@microchip.com, claudiu.beznea@microchip.com, devicetree@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 3/3] arm64: dts: zynqmp: Added GEM reset definitions Date: Tue, 25 Jan 2022 11:05:33 -0600 Message-Id: <20220125170533.256468-4-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125170533.256468-1-robert.hancock@calian.com> References: <20220125170533.256468-1-robert.hancock@calian.com> X-ClientProxiedBy: MWHPR21CA0031.namprd21.prod.outlook.com (2603:10b6:300:129::17) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8591f51-e885-4caa-a00e-08d9e024ef9e X-MS-TrafficTypeDiagnostic: YTXPR0101MB0880:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fc2oYLBy60QGWyYb0154jK0TfiE7JZmf/a93MBjgYsaR2dJWcjkba2iSD1ohA/etLZDRt04qMG2dTpeXksCBOr/HzfMwOOTr5J2Kn+LwEr/GvSbRh0uOpzjnTFlOIw0Ocr0zJA/LWj6k4DQjT2o9xpwakZjh30Mx4lNkpPowbkhJyD+33YXVhFhmTQWk72TqwRxFYWfJT0LFbHQlx3v1qg3lhZlocoqCS7gKLWHIYfa9Mp04zqB4FTZWy0lyBmooCuHwaSTcKDDCeT/AguQt5srMzTuarMkHVic1Z40+8Jc6PF8jlQNTDyPB544K7aHpvuBtYvZwODvMlZgeaya6CzOJyTd6ru2CTLk8rlj73+TewalgCAowvSvEkP0/9m23Qd0cg3ICHStFJOXtN/+eUkVyUtd/W/HxBWtCxQvNC1OZs9L5vS6V78D6XaUAZiBL+cKS1aba6YVuDJWLweUvX8K2GI2QYAxAzd6EunkTk2oViVqyxDyMMOZD7RpMR4rgOFKDFXgiQExx9JllEI53SZvjqvQmwVdBs5PWiAg4R5p9161z6X/dPid+xbIe/Hrn4ZUZ3CKFsp8HGmPWpoS56pW7KUNn5tQX6sr10kdL0bDvfU/WmBA65FS4StMnl0wXwD6cJwY1lnBMapI9awjvg//rXWzaRdsZuMBMzruqMLpFHe2svddLFCVLFytEf5/wKaIfiWksIXsWFX+hQjV4Ng== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(8936002)(86362001)(66556008)(508600001)(66476007)(66946007)(44832011)(6666004)(4326008)(38350700002)(1076003)(2616005)(316002)(36756003)(2906002)(8676002)(38100700002)(6506007)(186003)(26005)(6486002)(6916009)(107886003)(6512007)(5660300002)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSp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CxJ2/74fDjGaHb7Kdz4E4RRdAl32tS9dvHiYa8Zn2jbC4QDjk9kpZw5KpVz30yutWsELNxYc2J9BpGBxBfiBFqgdil4wiRD5X3XaTe+HPoq9LS6lCS4Aw3L1ks+Ph4efAOlC2oUdaWA6XOY28AnjqAbpzBcjRUnQsZG0Ta0WLb9hbuRlBFoKD69au9rU9nRhTTm7qUredx2AAU4FlVF8E2IjxQ1GcSd2Nl19++daedZHbVoAPphKBT+/Zq5lgQ/IDNdXMEAFyf0z68VqUOov/DIAxKeObEOlnR9sHGZqRtna2I8VSFSntCj6++SWAKy+StX1Ve1LF4MsivKobBrlQjptk+Dh6dDWX8SQtlgC66ilaIlylXIGw2BHoDe+KQOZlUZmS5HYzAhrWenllkjpGC1UCAFFfI9OvZSvigJSCuMOrL8TFYyTzymGhqtCvA+LSEmMXfU9vdscVAMdSf4VM5zBpGUeaDm01R2BpsPQO2Zdp68pbBvBIo60t/VeUC5Gped0HnfU0kI/Vtx6JvbZ/YhJErzlXwN+88AZQzMeNfLwYxaJUZs3Ar0YaWpoIYGSE+b0yul+7FlkhZIzxWYZN4FrY4kKewGRg3qw21tROrX9vwSjDl8= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8591f51-e885-4caa-a00e-08d9e024ef9e X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 17:05:49.4480 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YJY/wBmizaH1PqSGekOJVR88mXiMhwu6TbtSbnokuv7Gwhw7Giq36/Cmw01XQznOoJAenrRLKipQ1xAS9SwjXD1wDo+BmFT6ezvIFBwb/Cw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR0101MB0880 X-Proofpoint-ORIG-GUID: lR9x-5hZCa3K2kshbj8nW_wGw3Bn2QKy X-Proofpoint-GUID: lR9x-5hZCa3K2kshbj8nW_wGw3Bn2QKy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-25_03,2022-01-25_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=924 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250106 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Cadence GEM/MACB driver now utilizes the platform-level reset on the ZynqMP platform. Add reset definitions to the ZynqMP platform device tree to allow this to be used. Signed-off-by: Robert Hancock --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 74e66443e4ce..9bec3ba20c69 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -512,6 +512,8 @@ gem0: ethernet@ff0b0000 { #stream-id-cells = <1>; iommus = <&smmu 0x874>; power-domains = <&zynqmp_firmware PD_ETH_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM0>; + reset-names = "gem0_rst"; }; gem1: ethernet@ff0c0000 { @@ -526,6 +528,8 @@ gem1: ethernet@ff0c0000 { #stream-id-cells = <1>; iommus = <&smmu 0x875>; power-domains = <&zynqmp_firmware PD_ETH_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>; + reset-names = "gem1_rst"; }; gem2: ethernet@ff0d0000 { @@ -540,6 +544,8 @@ gem2: ethernet@ff0d0000 { #stream-id-cells = <1>; iommus = <&smmu 0x876>; power-domains = <&zynqmp_firmware PD_ETH_2>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM2>; + reset-names = "gem2_rst"; }; gem3: ethernet@ff0e0000 { @@ -554,6 +560,8 @@ gem3: ethernet@ff0e0000 { #stream-id-cells = <1>; iommus = <&smmu 0x877>; power-domains = <&zynqmp_firmware PD_ETH_3>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM3>; + reset-names = "gem3_rst"; }; gpio: gpio@ff0a0000 {