From patchwork Thu Jan 27 00:27:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12725950 X-Patchwork-Delegate: kuba@kernel.org 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 3209BC433F5 for ; Thu, 27 Jan 2022 00:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233886AbiA0A16 (ORCPT ); Wed, 26 Jan 2022 19:27:58 -0500 Received: from mx0d-0054df01.pphosted.com ([67.231.150.19]:61077 "EHLO mx0d-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbiA0A1z (ORCPT ); Wed, 26 Jan 2022 19:27:55 -0500 Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20QK9ps6002638; Wed, 26 Jan 2022 19:27:47 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2059.outbound.protection.outlook.com [104.47.61.59]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dud3cr3qe-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jan 2022 19:27:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lVyS/HNwnab1KzYoUqbc/h3DZ/QmQ3R1FdfxMj9QTntlHMbbiNnJ25eqn0J/YtVkXW5cbjaYNXYc7t+dLW2sXHUKJcpGEPANFEHol2stMLaCH7y0ynaEnM/1lHXiI1y8OhR4JArbDqRaZN0e58NC7+W2QmIuwmE+br0vfv8e+eVkWP9XGehLuOdFBIRfgNszmHNW9g4oTLB1A6LkWWVmyo0vDZmO1VzyXwnd0KHN+UjClOlMuncjFnpr29LXOygI+XB6eowjRh6Y0VL3PhQuZslegNLh4VB9m1uGYgFzJak1tj6N2SzoFhv1bkfwAFHTDzIndSJBONLRyvTzBBpc4Q== 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=T+snoWjnx+U3hHP+/XXE8GSQF4ZEMPsCCc9+FgISqRk=; b=LjM8BEPy6QbKbPZXwfPEGb5cQjVSdmcdP461jnL3Y4lWgn1669Qb1I6xLoRJE9gypzBf/Stp6ydy8Qoa7uVFeBh9YIUM8RgQC0bpISjbDlwQDRBZck7bnfDOJzhYEPpM5vA1/atPrG/7u/aj5n0k8QDvr4wX+AHluFi04VoegfT1Ua4pngPeplE7r97Vz+VzU/3Pd0E4XHD4MuDhUzRBOSJPZcBQ2wXOiP90KB7jwzCAWMexsoJRIdu1AQEiuIhiHoULQRdnN7lWCtJD7nsp9VcZlWu5ulVuv9IBy0vn1VfjfHrLDKznjZqLjh9/MmiRnjJEoaJzLmMgDKLDJQ/PIg== 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=T+snoWjnx+U3hHP+/XXE8GSQF4ZEMPsCCc9+FgISqRk=; b=R+xj1xYBORoNFlqYZ9AqA7bm3/fhAt7VhkSnncSgnpmq5IbwCQEOXmBiJP6I4rcX0141iLmRfOyepNakogu86zgSzziDIVaeNEVvjshp4ZeSzoKbkCxtIrMd7lEZ7KxR1+2hF7G6lrJfBlxHaQkQy/bt8MnZ/BdlN/V1FIXnFIs= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR01MB5578.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.17; Thu, 27 Jan 2022 00:27:45 +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; Thu, 27 Jan 2022 00:27:45 +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 v3 1/3] dt-bindings: net: cdns,macb: added generic PHY and reset mappings for ZynqMP Date: Wed, 26 Jan 2022 18:27:09 -0600 Message-Id: <20220127002711.3632101-2-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220127002711.3632101-1-robert.hancock@calian.com> References: <20220127002711.3632101-1-robert.hancock@calian.com> X-ClientProxiedBy: YT3PR01CA0038.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:82::9) 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: c7889435-00c9-478f-0c25-08d9e12bd6b6 X-MS-TrafficTypeDiagnostic: YQXPR01MB5578: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: 3hlGFQFk0clBJXB2VP/doF69ngiXdGyf3yf13NlU5FgFmocAX+fICxHctSdf8LebGNj9hY306DR+vAccn09eArTR3uJNg9nl4H3unMjy8BSn8rPH7tPNdoTIZfNEM29KH94bO8mWd7Fu3Sy+O/i7vBoeGwKCiT6p1t+k0Ao7Ys9od+EjPwfHuTpdaionZtRLo2I6uLzmNKr0Te+DtzY5pz6eI0pzL1WfYJ4uTqre5VdeqpY3k53IHGyxBWStGtV/uQdPWBwRYDzssjl44yhAnTlS63Kqusx33Mcw7rka/nRdTij5xHWEcaCnJFIEc3xJs9rBg8B5pumGL6XoK+XQ8UvM828PqFnQ3OG3Q8mXRxt+9pOlhG1fdXfNkFBh4ZNGoI0XU7oHXc06o9dh62pIB4nnwSH0sEvh7E13n8X3E/xUwK4eT532DKSX9ILQ1bNkmZ8Qlt8IWtrgulYGEMoNWVh32whireGLDxaCnF2JK+84w94+OOvDOiSbANzdngxUV9pHSEoOY1jO+JdDIahNITedG58IIuC+lGD2hyZu4owk0y9dj7R7Q9dJT0hu6yFYD0uljl1nk/DfFo6tK0zSC/2N88x9+sZr32UjafyeuAdiQ4C8+xNWacVbH7pTKSo/HG/BGfYmLxOPLhe2etlE5dBqu1IRfXM1NX1stYk6wl7ZJnMJUSHlM35fnviOzTjQG/6HbtuFllRmMB310jhxn4856Qe+w5B7WLaoW5igZhE= 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)(5660300002)(38350700002)(107886003)(66556008)(8676002)(66476007)(38100700002)(66946007)(4326008)(508600001)(6506007)(44832011)(83380400001)(2616005)(52116002)(26005)(186003)(86362001)(2906002)(8936002)(6512007)(36756003)(1076003)(6486002)(6916009)(316002)(6666004)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K9GbEFQ2tkXPne6G3dO/WEyh8Vk5AUJlNQ7In6bGKWG/VJRdnsAsb1idNK4m6ZD83auJNFZChbG3hupbP4B2255ojTGkAMuhCnKtfoG5rxibJw3954ld8JA8fVzU0ecqnFQf1RSB2c6WZBMUu8wsgEZPbB/ObId/5Bm9HkF1mRIjlv3bvlDbtA3hPB4eZoEySmOh9UBq9qu2dEX+NLn/LhC9VTaSF8H72fzWq0TyHWaa77Ztm70UkkUXlGzYIH6y+WUCRmOyG5zt0gJAVUGt6em9loY/q8nB+VbHwyc+FrT69G8uUZIYkhrNHzDE9shtlpueZCWkjHVN0VI0AlOLiQRhrhZgzrSn0fJ6vELoli+x7bcojm64DHtobjxXhjuMT2HO4YIJtpvpd6MP/sUam7t5qzmx+2/6+LBiiJNrhSFVHVYJ/ZlaYDYsMwIA6gccnXD3h2WodaU+otA6Ff/GHew04n4zC0JON2w7TCH1WaBqrYJGmj3R+D9GPqdVhxAHNAyy0bKc0eOtNWNZnFt6hz25XMuBYseUqbj0D65Eet2xO244qODgGdyKAGH7TixVRz2+gz+gX2FO7Nwe5NVOYBztdqEpyM6TQJ/fPNq8l5+ZZkboNtbb+kftQgCpR/Wyjq6u8TrF1KErdp5oAwiB83kTcZU9EvraZrOFvVweS1zTX1MtBc6v4nxAD/nFIe3QISr1+BivwLVPQ31odl7+5Kl9GZbp9Oief8YAKMt2rxVLHu0UCe33vOjWwBrTn0dTbyaXkGxVChklSnIA+dR16m31/noiNDa+lsUZW4+CWhmhsk2ck+Zw+AcKUHba9myWhA8BoPaulPdZcbkE1CMnCd0qbfumc31NwFH2boqAEeGGyBZCSpTEq97LI23mN6K0b8jZukQHUqAflUSkHI3VYmN/+ztmYBhcuECQ1Z9RGIvm+jcNmdtxiHNXpSrbhgLnu9qmkgWryvcNVEKEPp+Oe3x27MV3vyMes2zfUs5moO3pWFrxQiOxjI4TIqeOLsOrabCTZ/HmS2Y4TVMftD3TYE+Dw4MbQ/+jiahVuL2pOjHt13BR9mAwd6Z0gI6iXe6pkbLmuQK8qHsTbPaieXq4kp69aC63B7hsT2fUIKvlU2bCopmTk4VJWLXGV2YCgCI2XckVkDDWxjJn0SR+lnFz8doW3VD18me4tyIDDLM+3b/DOl4l6vHHWJsD+vpyJtZPQwKgwbHH3IDkrZ5iQ4NF6998iJigAbRovPyf93y6ERmBJeVjl/4eOxYpWZ0oCA4IUfzE274wdurAEVI0PDq8X1Ir2GIw1XCysNMnvLQp2lpXd5UKJCPrmqqOTbpR274rRoYxxLnowIpOQaJ87k1OOWMQksj2ESIJ6wn/HJp3RhcNnhnd+5gDjc04pDWDA/0Shyv9gBYftD/XDt5wHAE/WMtfvI2Z9lrBomsZWs3CyfEOHbm3JWsNvFuNmDmCQj2eFTDo2rCw0gvgB0KuFHcin/xNGd6l0NhGfgZjsFk4MkkwKavvZ7vuuYQRj7cZU8VB5bJPcEQCVM1VCI/HsTk055kB88SzcSs3/APfXzXm69t+PUNvi4LeQNeGp4OScU6AVY1QOO+M33lw2liBbsWazTAS45qoXFf5wGiWkbDNzaxWHqa99RSTPZBtF/ggD9+4/NVwe/SIQQWYxKPfVkSvqTDarecRLEQB3B8KmNnvCqk= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7889435-00c9-478f-0c25-08d9e12bd6b6 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2022 00:27:45.3140 (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: I0EQLSnETJ4JjRj2Jw0GOFkEs7VwpdkSLz9vS6FdA75Ai4QMwbWedCuKJh7rm394xXgloqb0xSEP/wqDCPWy3yEPYqMZi50ZI7tS0tQKX3Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB5578 X-Proofpoint-ORIG-GUID: 8vfTS92hsp7aqFTduvZffB1lzWC47Hir X-Proofpoint-GUID: 8vfTS92hsp7aqFTduvZffB1lzWC47Hir 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-26_09,2022-01-26_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201270000 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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 | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index 8dd06db34169..6cd3d853dcba 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,40 @@ examples: reset-gpios = <&pioE 6 1>; }; }; + + - | + #include + #include + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + 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 Thu Jan 27 00:27:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12725949 X-Patchwork-Delegate: kuba@kernel.org 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 35B19C4321E for ; Thu, 27 Jan 2022 00:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233879AbiA0A14 (ORCPT ); Wed, 26 Jan 2022 19:27:56 -0500 Received: from mx0d-0054df01.pphosted.com ([67.231.150.19]:29458 "EHLO mx0d-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbiA0A1z (ORCPT ); Wed, 26 Jan 2022 19:27:55 -0500 Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20QK9ps7002638; Wed, 26 Jan 2022 19:27:47 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2059.outbound.protection.outlook.com [104.47.61.59]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dud3cr3qe-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jan 2022 19:27:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XLLxqDaaHrl4fjV3Bt4OokDZPnpQpRbZxRkkZkASerX3+YAmV2J8xExszTvXcGcA79JI6o3O9Ltu2RHU6rWXsbqVg5wFZxmuYolzHiZIvBNkd6E5BHSDZ2JL3CAey7lUh8oYBwvqg2LW52OOSIKrzi97xGXh63aZySZ/tKn+RiLOn+btNhTc4R8f3coaDrkfSGK547R8TqhbYB4y/pET4TeMbjI26BnZyAjNJsuylXiYqNkq3tHMDHxCNwOFcYcahaz16Ex8gVLsI0cYWKsKaOjKg3O/4fRFP+jpmIbMpW/Njxpr8cwO9RSfumB9zzItwuYBXq6DV+WhXW8WBnPG4g== 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=j+4Z3aJHtEQ0ydiC7Ig296tnVUiEzF9TLEzQnhCeSl0=; b=ZgMfmX1bTtuOJit3henr/lzy+7ePLNJm/JJ7GAnorhEOxmVYWosOgNO//0MySHR+G2RlCk595ZZT5EcthKGbllpVyp0tHFgms7Mgyx35PzASvnSe60e6aA1lcNe1UZVz4GqFGIbvtxYIDKuD3HTjXpozmUMhDyOoc9S7tVWs/iOZtxBiJjREUSxCXSRfLoPwHIbTBtKO+8gw7JeopGWdzZoC0i2l+GhOBDlDNwnVdEdt3BqjzV5RaHmeTkSyAZnEs6fZh5Sc4A2wyteU5WRW7FaAFWTEhAMTfYqcyl+iGpcq0nbl+by4XbcqNZVam3dNXvvrFLNSIGpUTFZEJ0uW3g== 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=j+4Z3aJHtEQ0ydiC7Ig296tnVUiEzF9TLEzQnhCeSl0=; b=Bkk7cDnvMq1cjUIM7FyZi3Egk489h2oLzRCW9MYGncWrn0eof/S4MJjUVzN+bXxIxaeZlLDIrDgy+NeQkoU61zLdoxLYNPiEB2Xi+TwBW+BVWbWhhfDcSWdsDEggXLbIZWYkI4nPwEql/s+93U3ZZ1YOSAW4V/rFViJUu3TU5Tc= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR01MB5578.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.17; Thu, 27 Jan 2022 00:27: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; Thu, 27 Jan 2022 00:27:45 +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 v3 2/3] net: macb: Added ZynqMP-specific initialization Date: Wed, 26 Jan 2022 18:27:10 -0600 Message-Id: <20220127002711.3632101-3-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220127002711.3632101-1-robert.hancock@calian.com> References: <20220127002711.3632101-1-robert.hancock@calian.com> X-ClientProxiedBy: YT3PR01CA0038.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:82::9) 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: 8971d1e7-2d67-4cdf-2a2b-08d9e12bd71a X-MS-TrafficTypeDiagnostic: YQXPR01MB5578:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aL3JWOsVb6R0mNyv5T2gM1wK5P8zv/svq4ZD1/+PxK7TMxty3Ydp4wJ8wIlK+PYLNzHvNsGo9r/EMDmwQ5oSCx/h9SHLxz5Cklh4eJiInLFHafPaoIBwzV/VGijuPqIc0RcRh6YbSSyiVjnUjuSs58hLhevOj+kTNk68IpP4pD/11AGOJge1mCEpPUKuqjNE3Stwm9KqAx/f80fH+hX+bTRshkjHsb/WcDuRbAOZT6aLPN3GunXQ+kNHy/xhxCvekFkw2rpxj1fISBKdzojT464x+prcPXTWRgZArtm9R8WNvl1cG5xGya/ECqD88V7cxlX0ZOd+Y1PiN8LZQ/48OBLXPaJXSGmimrI8JQQ9KILe0XwP3iSGe/VBtcfFXhAPTzoLa+megHA+4UXdWo/1E32ZqtXtkd6VAoM4VuMmLUKn5H1zSjH/xqw2PkQ1xHSwUFIETKHaEc5JR2vJ0ZePnFrerSD30pVHNZlWsKz6wUlPnjPUePFotVtyJKTpJUbFY0q1BnCOSomwcfiXsrTgM/zw/KCpyX39Iv44k+Nm2zIoUgqptdzCgnTOPf88PUkYaCFmkxyx9AwKuyA1M2KSjAifmpPBKOsUhr+wj8Yiqu45XqlJPzcHrd9lUOoNyh8g4LIYuhOYArtf6YG4T2vwCPY7fXDJwbrNiPwNFp244L3vyOSlNzyj/iSEyjQm7L1SXo7KvXry/wCp+gNcwjdAeg== 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)(5660300002)(38350700002)(107886003)(66556008)(8676002)(66476007)(38100700002)(66946007)(4326008)(508600001)(6506007)(44832011)(83380400001)(2616005)(52116002)(26005)(186003)(86362001)(2906002)(8936002)(6512007)(36756003)(1076003)(6486002)(6916009)(316002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jw6L7BB0pylEGnSnQ3lq1xbjYkAAtH+7uAMNbmzpum/kkRZRLzHS5mX6DqfbQe6WmJC8dwbl8oEQx5drtNs20YVUXltyT4l4gGvWCMevxQLRS8D9EMvy2YH0ZgA1wSgFIIlFxoEUADC5acnY5Rwk1WbmqVop1KelEfmEFhKwtxeF/k/mpZMghJnBGjrAufU2UEUI7OUUarSBjWTMPlhHtr7s56OAMx7MUfNdarfZ+Ci5uY/+t2qDMiP7+MTLzyLgor7qNjRWvx5FQjbMPMbjPLTheOeYWj2PsJMz633P+sq/YDXF1HhS/Fq9FEeps4oK2F/GTqWWhzelyJW6BIJjto1MihzJ9JSjCWppBdU295J/elAGBVRQYAqgfuGs34vxlzXa7UzxaWQIgpks2m1sv5DkkIYLLmMIZ5kAeQx4k84ZTZplUsm1amLD5E1HqKVEvaLVKEiMk75/agxT4qON7PSVya4frnFAuiAbVdTv+XQy+hsTsGFYOL0bAag2jbwJNsSmQbmsKXftGxTmvl6hrZ0qx+I9jBoKXcAFOem22lfeHRl2+EBfAJAeTaN6lRT9i0lD37KNUoq5WfEwjHOyAgjVUuI0ePU6qX6V1VrW6UbmfcNUpe82dwuHSk9NBY9u7jrnckOB5HYmwPPTX4iQUfHxsXtB3px6bRo+K0n9WxfA4xi/OyVLXWCKFHMRsTQKxTeGpHgfMckXuV9kKPkfAkuM002UNWv5iGuy61dPEBqzymJ9oDJn+TZ2tKZNMoGMi1p4Jc53INalGQNYO/kndmEEaJn7p6a07B/pIbrGbQSlTGr9ysunqeS4WMGVu0GfJkPkGXbok4p0cv0Hwb2x61Zo7ZBXtPGYGqP0hHrUhEaX/K6m9xuJorqxQyjQO3HFvsx/auDpt8cujnXE6mtqKTeVWvmT9cd2G4Vpej5czlDO8bl/I1Lov/mEsudME9grI7VbknFE93ytWD3cW4CRqfS9MknhEbSjQgmfREX0qnQDtpd4RZ/uOadUVvk0lhvOLiPaIvdrtAeimp5Rju8sU0gVSEGhnkM6qFU2PGAf3MKkWZ44NBmlbfITrchvJr2rfh2OpcsWmiFQALwYTHUVW0K8GUF8Dax8w0JEG+utUULvArw6XeNstrrqg5jGJlsM+QQmIFVQNIPOMhSWNiMza0PZ3Fhg0dMUyZe/s7ayTReYdqdlvM/bRRq61eiygjesit/vUHevW4dq2NfiDzabm6A5SUX3adedXgb1RKY/bzQWXnubh30F4eVIpmbn8yQlcgrCjzZqfmUyBZZ2Ao/6134l9FEXpaNLWzxz3osAHuehKLDcxSb3bcZFyungqZXWNUg6T5GBHIuZzQWDaSvzH9g2ILLdeCJU79mpk/uLlfn+UdTxNJD9JjZhJTu6ewuYHfpzEtzGSslC7+C2ec0eGLJwjHEpkLfCPtanu9aJcsRtcP0Ru4n7l4t3r8Qg0qpgaVot1nXuWKgT/dMCxxvO/ADsNjLk7aceG3oXYr3smWAuND9ptcRlPP7T0tqmA0Rr2OVa4uQaa7aoDVxQA6UWP4sUb2260rczq2V6koxrGpni2+DV8By0N4gLaIVzwaLrzfo2RFsdRChoVvXB98rxu37Ff1gi9ToshNYik0GO7Y2WXftset+8xGoqv6FJFY5zHVlMO6gXm+24nEkVTAvfTO2t6IfJnzjD5drz2QA91Ck= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8971d1e7-2d67-4cdf-2a2b-08d9e12bd71a X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2022 00:27:45.9545 (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: iUmHSuV2CKX0Q8SfHSeb5PPruXvTGL5U9CXTv6NgtOw1pfgoaNQyJYvn5wDxsKLUdELzQ6p1PHFZDuie09TKc5fHk1rxiYZmEON/q9thAX4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB5578 X-Proofpoint-ORIG-GUID: cwVAmVGew3I03ZkqftbP8z4tfMQXvKKg X-Proofpoint-GUID: cwVAmVGew3I03ZkqftbP8z4tfMQXvKKg 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-26_09,2022-01-26_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 bulkscore=0 mlxlogscore=926 spamscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201270000 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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. Signed-off-by: Robert Hancock --- drivers/net/ethernet/cadence/macb.h | 5 +++ drivers/net/ethernet/cadence/macb_main.c | 53 +++++++++++++++++++++++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 9ddbee7de72b..584336b7cdaf 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -12,6 +12,7 @@ #include #include #include +#include #if defined(CONFIG_ARCH_DMA_ADDR_T_64BIT) || defined(CONFIG_MACB_USE_HWSTAMP) #define MACB_EXT_DESC @@ -1291,6 +1292,9 @@ struct macb { u32 wol; struct macb_ptp_info *ptp_info; /* macb-ptp interface */ + + struct phy *sgmii_phy; /* for ZynqMP SGMII mode */ + #ifdef MACB_EXT_DESC uint8_t hw_dma_cap; #endif @@ -1315,6 +1319,7 @@ struct macb { struct macb_pm_data pm_data; const struct macb_usrio_config *usrio; + }; #ifdef CONFIG_MACB_USE_HWSTAMP diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index a363da928e8b..4787196e0980 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 */ @@ -2739,6 +2741,10 @@ static int macb_open(struct net_device *dev) macb_init_hw(bp); + err = phy_power_on(bp->sgmii_phy); + if (err) + goto reset_hw; + err = macb_phylink_connect(bp); if (err) goto reset_hw; @@ -2775,6 +2781,8 @@ static int macb_close(struct net_device *dev) phylink_stop(bp->phylink); phylink_disconnect_phy(bp->phylink); + phy_power_off(bp->sgmii_phy); + spin_lock_irqsave(&bp->lock, flags); macb_reset_hw(bp); netif_carrier_off(dev); @@ -4544,13 +4552,50 @@ static const struct macb_config np4_config = { .usrio = &macb_default_usrio, }; +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 */ + bp->sgmii_phy = devm_phy_get(&pdev->dev, "sgmii-phy"); + + if (IS_ERR(bp->sgmii_phy)) { + ret = PTR_ERR(bp->sgmii_phy); + dev_err_probe(&pdev->dev, ret, + "failed to get PS-GTR PHY\n"); + return ret; + } + + ret = phy_init(bp->sgmii_phy); + if (ret) { + dev_err(&pdev->dev, "failed to init 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_config zynqmp_config = { .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_JUMBO | 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, }; @@ -4767,7 +4812,7 @@ static int macb_probe(struct platform_device *pdev) err = macb_mii_init(bp); if (err) - goto err_out_free_netdev; + goto err_out_phy_exit; netif_carrier_off(dev); @@ -4792,6 +4837,9 @@ static int macb_probe(struct platform_device *pdev) mdiobus_unregister(bp->mii_bus); mdiobus_free(bp->mii_bus); +err_out_phy_exit: + phy_exit(bp->sgmii_phy); + err_out_free_netdev: free_netdev(dev); @@ -4813,6 +4861,7 @@ static int macb_remove(struct platform_device *pdev) if (dev) { bp = netdev_priv(dev); + phy_exit(bp->sgmii_phy); mdiobus_unregister(bp->mii_bus); mdiobus_free(bp->mii_bus); From patchwork Thu Jan 27 00:27:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12725947 X-Patchwork-Delegate: kuba@kernel.org 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 A7E0EC433EF for ; Thu, 27 Jan 2022 00:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233864AbiA0A1z (ORCPT ); Wed, 26 Jan 2022 19:27:55 -0500 Received: from mx0d-0054df01.pphosted.com ([67.231.150.19]:60981 "EHLO mx0d-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbiA0A1z (ORCPT ); Wed, 26 Jan 2022 19:27:55 -0500 Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20QK9ps8002638; Wed, 26 Jan 2022 19:27:48 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2059.outbound.protection.outlook.com [104.47.61.59]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dud3cr3qe-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jan 2022 19:27:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JOXMsAvUGFKEn1PnSUULwng2RR/GM7rQsNvGRkAqEGTLY87mW4KyOVrmBHVzSq0FE6KxgHjbLWJ+rmQjiv6ir3qMh8ySJVr6nhGODMEEUvhhTi1W53sY+qqZl9/+LxXWGvn0r8kuh75WiyNbcOEyGm+QMnDzvcz3GFwXocNoJKn/biQNG2oqAvMux0RmoiSOvNC6CG+QazN83wm8GwEz4OglrWvH/bl8Fo1zWrZU6tgKLOQK3cV+hhndWdjf84EO125lqLv20Msn+z1HTFkDGOcQlJSEgl2S+dfTwzNreXsqXOBl6lmS663bUJEDnn6cayT7Ucoi0smams9dW7W7yQ== 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=kT6KreBYWofIiLBXaQeYl2C5MFZgkbxNrp1ZvmOyBP6O6J+j75vSeMFnP+1rHlHZ0qP5kyPfOWZ3+LCCAVnzSJl/Dn/RIL/Z2PrzJQAIqyhRX+wib04QKcivIYeNICgK2VRtU6xSWVF7EUTMyPLWJhTHKUCyzv1XeX6RfStyNWZw4uEB5n1+JUzJdthLQSvlxuIFdwcLGv0oDSk6o+Ksl7wFS6NyvjecvyJxB6+kM74RY1MZkUCrefFLxN/P1bHRenoVHyeMnk+KyDqnjJ8rMFpr8N0e8M5pnMEz4MABJRuk5TATV7ir8eQuGRzZImWRWuWrEN9s7M1pdU5t3ROCcg== 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=jzZql9nZEbBv2EuRBOGewVyonHfaJ3irV7wo2g7V6+SyC4QA55CZNEzLDLckLT2GjMh4HfDiOz/AvuO/nSk8K2BC2an8RdSdBcWMP+luliP8m6UEv01ixyRFsLWa6roKgeGV7x2ywRnjylwlNksvIhBNQ+A7f0gDinPtjJxD71Y= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR01MB5578.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.17; Thu, 27 Jan 2022 00:27: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; Thu, 27 Jan 2022 00:27: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 v3 3/3] arm64: dts: zynqmp: Added GEM reset definitions Date: Wed, 26 Jan 2022 18:27:11 -0600 Message-Id: <20220127002711.3632101-4-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220127002711.3632101-1-robert.hancock@calian.com> References: <20220127002711.3632101-1-robert.hancock@calian.com> X-ClientProxiedBy: YT3PR01CA0038.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:82::9) 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: 01b734b1-0cf6-472e-aa87-08d9e12bd780 X-MS-TrafficTypeDiagnostic: YQXPR01MB5578: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: PvIyRc4j8gTF4ECNcwaJya1seuoWUheBJAKSKB/ZJElq5+xu2nQxT3Dm/iiqiWPc5XXjkEAlhHOPgM/Q1TcnW4apO6rYf+egrscynCrbvjXDNea1IW9zGHawd/ecKn+nH6EnIM/SAvCOFaDSLA4kWdlSvDw0o2lUHHs/HjrzdVDaafdLHABlxLb3lNrB/N61JsC+o9xB3gukLxCYsfsUk5aY3FeWsUDDVJjcbK5MtFBocN/IA7yyDp3Z3GesRP+W5k9J535YdVS2yyt/J8q12aJJWgKgdW97L6WBw8kA1oZNXWlRTsqK7j0cVAbil5t+ZeowZxkpY/3C4K3g/vkFYI8TfGT4Qm7/xMvjWIksQIwOMOljiGiL2068yQGkP4i7OFIQFCToqrW+Z7HLLMJ+Xgog3EVrQR03VVWUKPxsEueMjBHVRi6edmtveO+qDXYvE83tKKfZJVmyrRfQlV472VV5ENS0VMZ4K7Yv3BvxAh9GPOVb0ksAoiVPWuXB1Jy2T2WKJ022WWHOoc91nLeYm8qT81AQ+AYSpC968v1OYrcql3d1T23I1aJsIo+Ofd1FuSaap+NWNxIMBQtGENyU1nwbLNflvH3uehix7WjYJ81qTc8zlmm1GYvciQc3pi0dY+8cEoAUxkffOnc/lShyPs4hdj/9XLBxEpUmOOXBGJFmm/9qwEiBlj7zocdfAGSUoeA9mJkZ7MtEO+KQ+9rarw== 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)(5660300002)(38350700002)(107886003)(66556008)(8676002)(66476007)(38100700002)(66946007)(4326008)(508600001)(6506007)(44832011)(2616005)(52116002)(26005)(186003)(86362001)(2906002)(8936002)(6512007)(36756003)(1076003)(6486002)(6916009)(316002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M1Se3KtMDfIYJS6Ts7cvY8+1oblB/tLZCX9q3eJmo/Ha+QHsemoAqMejbagfLbR58shwPOKUpVDPzjxTbV68oeURu+278qaq2x16Jx+XFkGncnpMqovL0SsngK8i6XpHHnm+ox2arj250BspaAWpkQsOFsZdFKADziPSZgWdThk0EVKVY7E40S/qkaDn7rmbw5xjsSRhDoMbn9qn/fjRl9IMT0WD8bc/eTYDmRf7xB7he6WI/fYp8+09SWX/HQoZOGG/dZCj8KiFFHq/tFrMbWI82DP5RO9AppRwgfW2W357UZu5zdvayvo8Mea2BsFc7BsY/isZ2IO66dslEL9CdsIUuexz7h7VEMzk09x5gorsVcxbSAAkZFH6in56tM9qMmZffdBtRF+OkFl35bFRBCyLURiVKmAFy+482J4XtjsdPKKmBP0SN80Ao8YOSD+sQoNF1Ela+U7HHrvScpE8Jtb/0pZLjmeyUXQctRyeQrsmjAml6u3j/9OiP/XrB7hLZNkoVtaOHuW+ezWjImNvCH0G+QMLSjn3jfUqsE9s+KO3EvTO5JPAWJVTsfdYb4q3gRAft+T1KWRk8GMBBbVaYVBOgLHwilrgtBUCd8O/OhRL3RADLsulvTduMxQ8BUJ6HgcaxHnCkOMHJ6IDKaXms3AeYz9IqqEZ17bRSpkY4V5kQ0R70uK5N8nXa5J4hrMFCfiSlw3zS0j13Tmm+3J81ZcrLH4KO/rZDMhGiSjtSzEyevV2R5zleKont1z/RuL5PCJCXx1rUm4yR5MIdj4BA0BwoWgY+VNYtftilcbopXQ2OLA/JJiNXpa4yw8VJIVgckx+lIbHUvysq9vLLzW+dsuzwca/OIDeOe/y84M6tnELcbMCACEPlTezBNFQ7q28Q+o9JVtXlEwhoIfaivo76GXAv5W9pprz65q8/+Jd7WlcmOwZmc98D18awBCrNFTxB0cm1+v6pHFuNX3iAqj2lF9uAtrWAWj74RYqi+Xk8YLa5WldslOqHJghHUQuAeaJRI7SKWN9yzkgHK5Muqt9aQ2I8EOr4eIcOqeaUr2FiGETLog05G56id8Hge6jmMI8j7py0XRijTDY/9oDovTR9+/ZfNpygRDfXP8jajKRnvAyWyFHAXqI2smu6tjNYxb+d4dw41hm0gvCGKSnOgdTGeRLDBVg3zB0NwRX/4zuX1PrfN4zj+obqE3NmGN37TikLe99I4scDmj/MWqs7OTCOmTMFuenHGbuxQ1f7+ieN1VPVpErLKuGFyf7alSMecdSCRQk+NS9jsx0M2hnDzsNJvYaWCjHLlWdO8dVRRPv3xAxDhTBAbncFUetp9wssnv7Qy/0XruFZNuqf3I263s6wGffZIzbb1JBnPMafCAv3ISCH5VuDA2HgYdlvGb0clRGVNDi3hHWcU1EifdXpOwdSMvYwEAzmWHM8tuaQLvqHKpjxQ4IIH4yCVZHg0z4GB83sIEfOZjP9PqeqzoMFyRiza+pHP49PacSPMk6az7o7dknsXpffESBSJUeOrcFyrvHAkRFgmexZg5j2YVHPejT1C4lCEAsDR3MweTjMOgLnVZDBlh7o3FnyvsSUXRJC1PGExWORCgdPC+yDY6R5xY3uv9FWgFe3JfjG2bAnPLd4NPAi5HHSsltPXGEoGr9U8v/4Bano9PYedzmDbt45SDTDyrGN+y0S6QGDuae3v83qkg= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01b734b1-0cf6-472e-aa87-08d9e12bd780 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2022 00:27:46.6276 (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: /rhKHvX2dFeUq+HcGQJvOi4gfrxjSZ75fTllBNTw5nqXHSW3Xaqb/fMUxPQIiiYR0h0eQeGOKEmBRiQyloM7OHrG8psB22Q/OebneHntPLc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB5578 X-Proofpoint-ORIG-GUID: KuTMpXHioz8JvpZtOH8AXZuc6Hid1ApP X-Proofpoint-GUID: KuTMpXHioz8JvpZtOH8AXZuc6Hid1ApP 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-26_09,2022-01-26_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 bulkscore=0 mlxlogscore=926 spamscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201270000 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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 {