From patchwork Thu Jan 27 00:27:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12725948 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 E3C5DC433FE for ; Thu, 27 Jan 2022 00:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233876AbiA0A14 (ORCPT ); Wed, 26 Jan 2022 19:27:56 -0500 Received: from mx0d-0054df01.pphosted.com ([67.231.150.19]:29395 "EHLO mx0d-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiA0A1z (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 20QK9ps5002638; Wed, 26 Jan 2022 19:27:46 -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-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jan 2022 19:27:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WZCTQQi6CGIF1zCYZmpp6qFfhzVBazzN1oGhe4BjZXV63Fwgkx726WbA/4wKDqbDMjPQ+ARenQQuWF0YVeoO8g4OuUqY/fL/bnaxt/kmbFA0YcmqTFGiiWqY6CY7ZLKN+rHLh5rnRGZ7MKGa7GyIiT4sIZ3xqXtl65yEdY5JM0BDJQ8p6NmkFKH3E8TFPlIBiyox0036M+yWjqT7zu8RDw6jZSB4u31ET9AmpxqfQ9kRxiyJhoNgV59MV7zwEzQ/2N7kOGUK7lFoBD/96CWYEd3k3xu70fMeRPuhjJUTQCBWrmS/EOyUZzOTnMPsUsGfwTmSImcSYVtABjrbM5ho8g== 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=dxVliNm9pHtTTBj8UWWW5igeLZ/yQYE+zW4H0mC1vgc=; b=OFPs2+y2Ua9qJIEzssZt8EjGCWHq27sRP5twe2Y6GompitmpaDWkN8KF4lhh8xiog11AK5rP9oSwnSLcM0MdgAi1ph0oOmTCa3A97ZkjUvBSKG4kwvBqKMmIKFr/+a0aag+nLP9558xOJ8gjyuB8aeaW96orEwrLkroYtSrKfnHuEmEceRbkcPi+ffH3CQ225sXZuuVEFaNxIFzfzRf/CK7T7tss77zxnxv7vhDwG8SAMGC99ksLDwcnrQlCEVlCNfiOlBgy2lRN4PthfrqpQYA9WisrPvctAdW173o339nyZX1U+XdkWzlIo4wplZR79d+upIEQQdSVs6UlIbdbOA== 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=dxVliNm9pHtTTBj8UWWW5igeLZ/yQYE+zW4H0mC1vgc=; b=W5j0ET3jV33Z3mNKXI4tqGUdnWr8ycmXfMddEdMZdhFtuxMwV9dBOI9v/7d1z7EsfEM4dtmEek6mc4NSZea2hGSApKH0aJoh/G0ENoYjC47J+mOIHUeaOdMxlMmD7pbBBsvLA6Fl/t7wQ+L8IjYp5CtgyAYADkuxSHmnPlL/K5g= 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:44 +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:44 +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 0/3] Cadence MACB/GEM support for ZynqMP SGMII Date: Wed, 26 Jan 2022 18:27:08 -0600 Message-Id: <20220127002711.3632101-1-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 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: b3fb356f-48b5-43d6-cea6-08d9e12bd645 X-MS-TrafficTypeDiagnostic: YQXPR01MB5578: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: hwoadVL2k8W+G0njHe9XfPAOkEJpqAfwxYPixkSdn1oQvzMrOANTPJ+0aN91InecoJYcIg1Ed33CzQ/xh94E26W1Pq68jG1qfpAYnarDheH1Zyu8Y5I28BbQWKoJ8W64etJ96LGcke96isR/3n02axFfrZhk+JAIpJXwklKndF9Nx0Syy0BdM3oa1Zw4NtpeNpzU0ZW9ByWqdEljsTg0wBHrobIzrjiWS9KwZqcaNAdftunoZzjL5R219/76Q2QNJFT6hTpf2z5rNlvYi7afbYvmcVbpCUm9eLObmEMp/mPIwJ5x6km3yns0NMJQNJK6MrC/CoqxTdD0aulw6DiPEKB2RFCGc31tvZ9xZXNX/pbIHQXK0yZsYOgHTMohzORcWnrHPB9hRpsmqtySy3eCeLn+AvktUcrI3nc7Spi9CRN1iKLuG+g5fdyybkG38a0T5R3CJNm/1QEhBMuo7fvitXhugm5vbB4Df0yc6EnlhVavygj/9CMbQd28BIu/Lg0ehMTpZ1iPvD/n4cAeWOKxbLofg59sL+LrLJLsk/LXyNTt6DkjbLq6Iz3/0B3xLMDr9ZZBqLR5bSXJHYoSEPIoZLdMeOveZV300YTPhdA2YFoZ+xX+MNI7kO8MIyMlbQh3ZugFI4ldulPKQIJ8fBsinGrycuWQIsXuADJvlA+8xYqzdX7biDxu7huHE9YhrGlBIThjVDaKDzZQZ0TxXl1oog== 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)(4744005)(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: /8aKmukoI03CCTJGdCBiFDO8sG6YAJSW8eWl1+uRx6ksVsTY5hkhPFXKX7XfyZ9DOzcXyw7n70VB2zxfBbxPmBvqV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zMIDA67cAxrdawWe5r+8KZsMTgILUz8s9E7sRBEK0KQV0lnDto/mUHGeaJvmPgJBPi6bp7GWZ+tIPAozR1fJ4NHQqKkIniOpMQtzIASbYMpIS0r9HQBewyAzj21M+H2FexjLTwXpEJGgQDCgTc2SKXQ1JCk/rXJzzHXkkOcLpTLk32a5z7JRYVWWNxjalEbb0sf2yqPGnyDIC//Lg6cKb4fue9oVdUq2XBxKANKOv2e8nv0hCrpyQBKvR9ELVJY7gr3G3x+E/nOK2rZK8r2uSDwRakytjeBJBCIB4MRuqN/ADCBSSjcLGSGmIEy/VlEACfjO4rF+xHW5pk4zpa1QjbN4hwcj3ZkEj/0nrOl5crZuvHttzOhEDc2EWLnrsmYG2leWOTHgLiI9TYDOCbB8wlEUE81p/P4RFDV07sPRSp/13aTVKacrTW47hKfzZUcPCxAIzxeqBEoZ7xLmKeeSvDIU1xNaDC3cX0wYeZrVHK4FSoAeFTo+5BjuWJnpgD7pn+QkIK58XtGwtF9Rg2KC1G6P2hvHMg= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3fb356f-48b5-43d6-cea6-08d9e12bd645 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:44.5953 (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: GegTjgJvyhBK0S5Bc/VzSZ1onhpKUpy2xY10z1TzW9Xqdi3czAVYlkSzqoNbeIW1Ens7BJwxD5CYU833jf7wuRmeSO4TAFAKRXGCrB1AQx8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB5578 X-Proofpoint-ORIG-GUID: pB-mSBUoJpt1HK4ZT8FjpIc18diLQssQ X-Proofpoint-GUID: pB-mSBUoJpt1HK4ZT8FjpIc18diLQssQ 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=619 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 Changes to allow SGMII mode to work properly in the GEM driver on the Xilinx ZynqMP platform. Changes since v2: -fixed missing includes in DT binding example -fixed phy_init and phy_power_on error handling/cleanup, moved phy_power_on to open rather than probe Changes since v1: -changed order of controller reset and PHY init as per suggestion -switched device reset to be optional -updated bindings doc patch for switch to YAML Robert Hancock (3): dt-bindings: net: cdns,macb: added generic PHY and reset mappings for ZynqMP net: macb: Added ZynqMP-specific initialization arm64: dts: zynqmp: Added GEM reset definitions .../devicetree/bindings/net/cdns,macb.yaml | 56 +++++++++++++++++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 8 +++ drivers/net/ethernet/cadence/macb.h | 5 ++ drivers/net/ethernet/cadence/macb_main.c | 53 +++++++++++++++++- 4 files changed, 120 insertions(+), 2 deletions(-)