From patchwork Wed May 15 09:46:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13664996 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2075.outbound.protection.outlook.com [40.107.244.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44DF95A4D8; Wed, 15 May 2024 09:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715766421; cv=fail; b=Gictcy/w3T+HTvmFQASNKGnIHb/6+Vzi2zq88OHR4zNT1CNfgKgwAjoQSdrghT7JuYDIDuovwYvNCIW/92sP4I3IWFl7d6nShbZweBSmxl1VayVAkuqBjNTzOhhV6ss8ysjdOG+PfmexNDwV/gPEFWDPtK5TltWdGX+nqRhG99c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715766421; c=relaxed/simple; bh=lLOCF2wP6QL4dC6IvX/0E40Jbbr1Pt2hWaMIoCZxG90=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gjjPPEKUen4ClBYsEwc0WP6XVFSHTCu3v07XHzmeHgWLdZ3Mdb+0+4zGfHKYVdYdre/MTblQb4nbJV75c3lt/TBZCGYvSzjNPDfaz06Z8DYgnveTVziKRavzT27XQ3/cqVPustd3Bg7zTbQNo5jyacWhW7G5eU9Lsb+kTxCHsQ8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=MzXcqeez; arc=fail smtp.client-ip=40.107.244.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="MzXcqeez" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MRAOn79B+BhT0gPOorm9AcGkEoa75u1mCffTRpKjse4J/M9GU8obTfiDwev1tre/laSFSdIh7+7rabx0SOkY0i2TODoQiZXyOy7IyJF/3h9IY8/23DiJFvugzGeMbjwx9UQ9pWPcd0pqmaHxsHDRo2Qd9gX+QiM68MzOYSqc9VHKwJqO2gKoiyeusmu8EdHFbhauMrqa+00tCB4eW3hTzpVbANgDM1wM4Ucm6FHfzWg1dTgEYTgy7bNW6YkIdKsAzk56syyRsfl23ao9wzjE4ln7MLmz/ewz4Ud4bRgXbWnnAaumxBLiuQowy72J+zPPXLdOzcWn0eBIKfYUO8rAwA== 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=Pj4gRg8TW2DLiJCSAagl6a62oXUpjUDQUmHung32reM=; b=UjamyR36pBqhPjuPB20Ajx9Xe7yhyP4klAkd6JVyWB06rHX74n/jvyQLUlYIVthbyUpjrm9GEkYsoWraPPu+cmCyITWsCJD7p5z4QryuioivmStyuHH9VQcnHTVU3A+TjKUQkHwB2tRh+ROpK+JWZlgmkYVTxRkDv+jk1xQinkm6Sr/R9GWLe/P8GOARyjRteptjom9CZmDwTI4Ch2Mb3xuHnZfHSmzp6AHPduab1JDgg/O2RKE0fjtBstVmdLQVe3/YLE6Npr4HDLB/ibL0if0suQllW8ZXdJYBv+5PBka2cQ58iU8kGDUkSns2162dd8rW4yjXvytO0K6oLs38+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pj4gRg8TW2DLiJCSAagl6a62oXUpjUDQUmHung32reM=; b=MzXcqeez8QrloQU+FTJ0juLDtD05O2hhCYoUggNW4aGTHwNc60uJlg53485gBdsnz6o1tcY9efGEiQZU9YuJcs8udTWsjdE7IrpMgrVvHZ6RWcmD3BmEr0VHKoX0aDyBcSnUp+7r+DECMuJwsr99QnhyMs+IZ9mK0Sv6EdXxShg= Received: from BY3PR04CA0014.namprd04.prod.outlook.com (2603:10b6:a03:217::19) by DM4PR12MB5793.namprd12.prod.outlook.com (2603:10b6:8:60::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Wed, 15 May 2024 09:46:57 +0000 Received: from MWH0EPF000971E4.namprd02.prod.outlook.com (2603:10b6:a03:217:cafe::a1) by BY3PR04CA0014.outlook.office365.com (2603:10b6:a03:217::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.28 via Frontend Transport; Wed, 15 May 2024 09:46:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by MWH0EPF000971E4.mail.protection.outlook.com (10.167.243.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Wed, 15 May 2024 09:46:56 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 15 May 2024 04:46:55 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 15 May 2024 04:46:55 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 15 May 2024 04:46:51 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATH net-next 1/2] dt-bindings: net: xilinx_gmii2rgmii: Add clock support Date: Wed, 15 May 2024 15:16:44 +0530 Message-ID: <20240515094645.3691877-2-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515094645.3691877-1-vineeth.karumanchi@amd.com> References: <20240515094645.3691877-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E4:EE_|DM4PR12MB5793:EE_ X-MS-Office365-Filtering-Correlation-Id: 6829da18-358f-4645-8b5a-08dc74c3f5ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|82310400017|376005|7416005|36860700004|921011; X-Microsoft-Antispam-Message-Info: 9HXSXODNwbNFyC3kSOGFfWenV+rHfDHadolPjdstBSchGoCRDmiJoZyapIdpi0yFsKFCmrRzdZ0gpTwJIGQI3o4T46Bfgvmjfs9g+9Jnxj1d8GZbFNNnkcex3lEBYUiRYDn7l44xsqDvI/87v3NSQiFD/ZcrmlKessH+ydLnGnkpFBhIWXoR8NFnLfWms/3O9wsB5wSex3Kjkrx6X1f/j6rhgsPF8pDIW8eMBhBGGMFrpzOufP2ADdycHDRq9WKMddzXbYSIVD3VMnjErp+4UumiZjJNMT/j5vzksQguAkpfhdmKMbBLLDsaHY7vDdvnDfAmsQwf/2S28pMjREq5ETCAd7ihTmzYGgpMwRYYSs5uWAtia4sciy9tWiGv25UpT9gOxLDnQ+Knvi6M7bjayxJCqx7FMWab+WE9T9btLvPEgIhafjXO1bWoVBxt7MHCGiAVSXKGOfc7A/n9qfOuo3bx0Z6cWHMGi64+AZ1jJDxI77KqqlY1gzKNU6iAGYIRKQ/p889pzlDam7K/uh+2XrluySdH1whyb42zixGCzTwxce1dxxE516arqoXE7QkSINoZQA6Cm3xGtWCYyXrz9EY56PE5lBQqnDW1Pnn6K6Hg7d0T1QML920iCLy6+vGTJbWy7z6qo4nDY8Gg6CLoIP1NSDxKq978SHEe66s7SjWeluhihl8I6F6PqLmBuseQN0BuGJdtuDdto3ljg5dnTZxigMBYWM9JADJ+6bz+bNJLrul5hKsV8eDd9eHCxLLaeBRU4MX6dG+mQUzGkGe6R/d/XShG7E9Knhf79N9uphsrO6lbZFvT0wPXJgGf/KScW4y8oVz/M4yG0+XpPX0iyoL6TAjzo6sChlJR8tLgzotvP7i0jxmML/3CMXiKz0ett+hYQ5gAgTEQ9pYIe0qOrpf0MHUJfFjIMtjbwBGEAN6qVHMrs4Jm3DY2IxH0oGtBgxpO+G6E4RRF6vgRmwuDgZlr9BwbyQhT379QMUXVVxLCc0LmfZakfABppMaG3AfyyM12qFQPMAaQYQ6hV0pIPPZIqpfB8Cf6SI6JvuMgMF5iYTjSr2IWPUy/VCzHKXKaQgxZ1QSL5hhExiZ9UVRJcLKqcltVdoo/03Xw3bWFRNuF4qp39a+/TwzmTecNn3IiyRgDlZjwEMw7itTL1nzPCnh84LQ57jKr+E6b1sXbtBUPESI1+304w8UXHAqSEMKOnuG+TBaM5Di6EJCtBE4V5LJUSXnCrvEOSIrA+25wneFhXLFoJr8BS0n+32rAg3lEvWza9epya0vevM1t6tecnQXRkxcWpNObuT/cWFYgM72kiAriioqY4zHIL34DIkerXz07qus4t3vSLJpSHyffiWkoG4Ab2LqdY12GR0uRMit9pinpGS0hIgeXYXAa6QO2 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(1800799015)(82310400017)(376005)(7416005)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2024 09:46:56.7506 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6829da18-358f-4645-8b5a-08dc74c3f5ae X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E4.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5793 X-Patchwork-Delegate: kuba@kernel.org Add input clock support to gmii_to_rgmii IP. Add "clocks" and "clock_names" bindings, "clkin" is the input clock name. Signed-off-by: Vineeth Karumanchi --- .../devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml b/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml index 0f781dac6717..d84d13fb2c54 100644 --- a/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml +++ b/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml @@ -31,6 +31,13 @@ properties: phy-handle: $ref: ethernet-controller.yaml#/properties/phy-handle + clocks: + maxItems: 1 + + clock-names: + const: clkin + description: 200/375 MHz free-running clock is used as a input clock. + required: - compatible - reg @@ -51,5 +58,7 @@ examples: compatible = "xlnx,gmii-to-rgmii-1.0"; reg = <8>; phy-handle = <&phy>; + clocks = <&dummy>; + clock-names = "clkin"; }; }; From patchwork Wed May 15 09:46:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13664997 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2080.outbound.protection.outlook.com [40.107.243.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A69C5D903; Wed, 15 May 2024 09:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715766426; cv=fail; b=cNZ1hW+FZNqUK+8bpIP1oko5W8nxRm3tXkBsXpIg6ZARLDnl+YcKD+NE+O1WeeLkmtBzYsz5yU1OIYLpwKO5JhN/ajn1NzPZMN770drVOCKeZf0qh6347y37Q5lXMEAbUUtKFr01RmIUxIP1CUw3slsbDM7UBUSmFklor429PaI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715766426; c=relaxed/simple; bh=NOYKPS99hIDS2xzscwN/jb2swS+cFbXcOWZmjK8r+bU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oJCwHQFL8dY9XQpt7yyCmFiZMIFfrNKqsaLX37WVzscAOIR7GguFjikdi6bvMsat9lSY4isgnIenBenErHpSFgjkbpCXEhnbfP3cQC0GKFh9pwcsfV+6tXwSuz0tIbWFxx90Xjx1RquryuN4R+nePV4bswPibpuVVRkpPEn5Zyo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Gm6jBOZ0; arc=fail smtp.client-ip=40.107.243.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Gm6jBOZ0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G3W+uuZaBtFeldbImhHI5j8CY6AgjV9rQ0f7bEta8pIKcJLw+6yqMoGLRwCJOPPOEvIEp0Rq0Vws+VB65uomVTE/g0D9Y9s2WlDkv/hQoJ0EwNcCBf6UAlQNa0z7qZzUoGBoKnx5JexrmZjzIWrJF/GphatujKXUo55qkqD3EpUnZB2ymx4/AKoL9H/poszjkeoqvpd0Aa2vHsOkNHcm0W3VUe3vbA2i4mxgXaxINMyxaXYBBp8gtRC3n21y3ad6qy8i+2r4rnASuLeD/3C7C+E8Wi0DCfQnxSejYNDIt/WPFoDnie0iEug7C1P9x51YNj9/Ky3eI2yVapLwO3FslQ== 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=DeNPFMTbMI4p+5AcSurXzM51jqDO+CkcWRoTn+6dDlg=; b=dAbyZ7MnqIKUfSSoi/pVxc8viPvBNvWPdYA0z6rv4tNhmWKpGrf6K+d9I1xGmjqWFsegKHkwCgN27gG81yAEhAgE8p+iAWnWhq2ELccmMw4JQsrQDmEIN4At19YOeR6cOGmvJ6biWNlsfoImNi2hN3rsNy1/qyFx9mEJb40rj0VV+xHeSQDIeQDl/bbXXjUzlL0J65yEbXBFfTLHUpLSVAAeWMPeO7kvdQkS4O38Dd+O8Xar7ydvlnL2w3VIGvxqXTxW+pyeuSObkOSJzl8RralbMwzQ8Fg55vkHhvYdTobhztArJPwm8UcRgD9P6pw7UJSzBYlN35Ogmy2GmZIlqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DeNPFMTbMI4p+5AcSurXzM51jqDO+CkcWRoTn+6dDlg=; b=Gm6jBOZ0Pjy4vty13MMTmBTTwc5Aw9r+HFvEFeFtcbIiaG7feuNpL2WGx/zBjdcIbxIhU3c4qhNiF5EpJYc88w8Ngcf8MNHRmFtMV6waoefB8CYaztoHArrhtwHcRPtNkqH23qz/CTcBRoD7Cw8DQxqIp84Aoo+7ryXzXFOE8Wo= Received: from SJ0PR13CA0175.namprd13.prod.outlook.com (2603:10b6:a03:2c7::30) by SN7PR12MB8433.namprd12.prod.outlook.com (2603:10b6:806:2e5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Wed, 15 May 2024 09:47:02 +0000 Received: from MWH0EPF000971E2.namprd02.prod.outlook.com (2603:10b6:a03:2c7:cafe::16) by SJ0PR13CA0175.outlook.office365.com (2603:10b6:a03:2c7::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.27 via Frontend Transport; Wed, 15 May 2024 09:47:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by MWH0EPF000971E2.mail.protection.outlook.com (10.167.243.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Wed, 15 May 2024 09:47:01 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 15 May 2024 04:47:00 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 15 May 2024 04:46:55 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATH net-next 2/2] net: phy: xilinx-gmii2rgmii: Adopt clock support Date: Wed, 15 May 2024 15:16:45 +0530 Message-ID: <20240515094645.3691877-3-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515094645.3691877-1-vineeth.karumanchi@amd.com> References: <20240515094645.3691877-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E2:EE_|SN7PR12MB8433:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c3d3600-baa3-4da7-9e41-08dc74c3f84e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|36860700004|7416005|82310400017|921011; X-Microsoft-Antispam-Message-Info: 5/Zb81u+EpFMKVeNYWEdqiXuNfRhMEYpu+k7ibOhOy5sUXyLwQlagn1eWHDAHq21m8JtAcpHO3V/S1UQGMNtbI/FEuVSBV08Q6PMZniKHl9N7br5t3TqW+teZ9v2DJH7CuQJJVF7hJZ1UxsEzQoZ90wsDdzd+MMHCOEIAsYGNBRayR+NotVsPSASHug5eAUVwRqhUIcb8R/cf7Tfo6VciehEyrg9+XxwF78G2CbwckLXnMbvIvXGCYuPWzP1hTekSREw5Yzh84YJ47rPvTjYw7MzckQ2Uvy8j2rhOSQDs2V56yStw/zi+lgXQT9MZ+OvB2RmNigm8IJoyMR+mt40cTGpueCrJd8Gr9KB3/32+4UUDQXxIZJY5Yxfem2zqonAdaEd28C2Z2wjyD2nT0gCpEnkf8L2e6v5ftotsA7KQTx8d3Ykdo5Kk0mQZ9iKPZovwvzgSiUOWVig+22Aa/IG4slb4MD0+S6tJVPyeOSt6w3nNwj1svbbEafpPdqMcEq5uvEVopWvx5pvicxTxCMnmIou/25Zo2WSuUUe3t1a9MjwgzwSb9APOW0epioZeA8L58Jes6KNChlaYl0lbIRVRoFBvEzwiM0zsFvqhO5Vnofpaz+FmB/BS1M1zXEOr40pWqiMckC2lGy178KCCoSDEK5KnVURV+EGbCfjtKX9EJSyhQQzXeauiIif0br0s4x6Zcac3j5KavcerYl8i+tQ8UpbYEqDFWMfLpv3l10yBzL6u5s2I+xS60o56MoAADt53l0FJLcLlHrSua2CuzrNEoxQNBNnZMPttL0+dix+HbJeJcosijiHjYz90a9mjn/4CeCH+j41bO0sUB3iu2NuDw+7Dx09NSNy6FntFBx3ZBd72Qv/Zhpl3kOYk+hIJy1EeZCPg0iaXfdIjAl2IAgcO29sDJkMTrKGH8YhHIE2DKYCRZmQFc/A/hAQqITLGMvwrXBMiB+lHmDLnJi6SkwH7Zd01gp1J50SAu2umK7L4yPVoEHafp97hxKETKHqdkY2WwRJRAgVPkFlj6UkynFtjva/XHgdfdPMDZ42Ca6gZUTbCGR90A5J6U1gmIvJLlRg/4xw6smih5Eww6jW6/sLDa197x5xykdz14OOgVdHs3pRgClwoeEYnImuxpChcCdoQwM5oEPw/nUIlzR2e7lnlC/zW8oDtTydeH+K2ei7Z1HPbr9RW4v4RXe6qZbXBz/NkP9l6hPOLWUyMzhD9DtzMVRyNMPC2Yj5YcKaGq6yGE/fzGi/AEZShMPlRuMb8xHf8gwkBe3juv9DVZVoOiKE+ItAhBmD9N8FVLK/LwySKIfR5pHfxaT8I4zSVOGytwlt0EXQQiGL7zF8meFPNG+bVLlPp8aIkCSwop2kSetWU3dHwXzh2nfMRXiOLU2v38Sx X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(1800799015)(36860700004)(7416005)(82310400017)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2024 09:47:01.1708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c3d3600-baa3-4da7-9e41-08dc74c3f84e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E2.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8433 X-Patchwork-Delegate: kuba@kernel.org Add clock support to the gmii_to_rgmii IP. The input clock name "clkin" from device-tree will be registered. Signed-off-by: Vineeth Karumanchi --- drivers/net/phy/xilinx_gmii2rgmii.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index 7b1bc5fcef9b..98a6e5f10bb7 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #define XILINX_GMII2RGMII_REG 0x10 @@ -85,11 +86,17 @@ static int xgmiitorgmii_probe(struct mdio_device *mdiodev) struct device *dev = &mdiodev->dev; struct device_node *np = dev->of_node, *phy_node; struct gmii2rgmii *priv; + struct clk *clkin; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; + clkin = devm_clk_get_optional_enabled(dev, "clkin"); + if (IS_ERR(clkin)) + return dev_err_probe(dev, PTR_ERR(clkin), + "Failed to get and enable clock_in from Device Tree\n"); + phy_node = of_parse_phandle(np, "phy-handle", 0); if (!phy_node) { dev_err(dev, "Couldn't parse phy-handle\n");