From patchwork Tue May 28 06:20:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13676156 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A195C25B7E for ; Tue, 28 May 2024 06:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zzYmSZsNJHxTUA9DgnV4SF93sT1MOvpsqjpdx+PT46k=; b=4WVmpGLN2G+i6j 7fd9FTw+DWuWTK/m4+dnJ9CY02rLpG1WyBzt86oEAO01lrk7WV7MySZmcdM9dsTC0HTcjqPXQapy3 TODZMMcOQIRdwyH9Q3GPuxAn8aW3hXXT8MbMnULhQkWJsB3EtepdRazjl4oB3QvwS/B4M9ejwrGnq BkUL3/lXoFg1enDT+SmxROQz6ksOAcSboen9v4549RLh7Geke/sSl65LzzPzZKdFglUxQmOKJ3pRo Uqg/+cumyLHuTOYqZjik3T/F1H+80vNBcW6tSXGi/RwSQCxSJDYHPxzaWQ85dMIkIJcFqFZl7iTJe Qxa4FlplMb2tI3GCEuGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBqCM-0000000HBFS-0IGD; Tue, 28 May 2024 06:20:38 +0000 Received: from mail-bn1nam02on20601.outbound.protection.outlook.com ([2a01:111:f403:2407::601] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBqCH-0000000HBCd-1tVq for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 06:20:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GG1z2ltZVk03bQUXKF/pJOPnpbdDb9bdTFnpnAi8anHHpEfG4OxggrKhZ/kDH2yeaLdLz1hAngrMZBv1sUzF0wX0fyzC01PKNavnRctxt0i1XIUW2kQlLc7v4Py4I2f001ROfbdyV597u02LynFBr1DxoIw5sAgiaJJXWzLK+yrYZXCND59yzmv4JET0BVjiFc6nTZ7SiJWeGEkz54PlOJUuB8Ap7ML8CqjomwckEXJth97uRH6wmxMWu6z/6WlqX21+XL0RHnZAp85uYr60MP0LadarCsj0MZeK8TZrMal/ivA+xbesovgrCbgWr2NvmBr9UeUmqlMzQl7r+qBseQ== 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=xWZF8wIaYFG+KBT006vunoUNaaLg5ALt3NSxbiyx6Aw=; b=jfnjYG7RcaOoRkWHJc6bjfqT2ew5jF1X6x21pRr8YHflOK1tnT5yWvvn9yglJVJf23wnjjnrMTj5placQT9pVuqCs01zlO4UCh7iONDlHA4QZdtUoVVfCgfWGwXjbQEJ9QkmTZjhzRUNDK4ejXsAMuitUMYUTuwLG7wgih+k7LRi+f7CDF6TkyMj0j2GvNhjQoiEzSyc1BsLBfUQ4LW7s+E5BacmOBtWJ203h/lPmiX2Zd2yQVTjApmw+zswio3EyqKEqmu62pe6oUP0IPvlrA6JplwRIvXz1/HYSGsNPLGFelyHPkRb/QgeTF6ZsRzRYeUxLh4+VNVvLiN5IGYunA== 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=xWZF8wIaYFG+KBT006vunoUNaaLg5ALt3NSxbiyx6Aw=; b=TMBDcr1dqvCQUFcytT8Gbg9ujaQfbcHU3iRQ6mvo7lOjjWAkoBNAdRtzpcgpS7Nnk9G9sQuehhT0h6j/Sp21Iwhl12XlIPo0/hL2lyvwzGB4UOgpIhvBB4/EUMDy502Et6DuZZG6z0O4rsSrzOBmh4lmc+TtfIPaI2tPBqqF95o= Received: from BL1PR13CA0216.namprd13.prod.outlook.com (2603:10b6:208:2bf::11) by SJ1PR12MB6218.namprd12.prod.outlook.com (2603:10b6:a03:457::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Tue, 28 May 2024 06:20:19 +0000 Received: from BN2PEPF00004FBF.namprd04.prod.outlook.com (2603:10b6:208:2bf:cafe::b) by BL1PR13CA0216.outlook.office365.com (2603:10b6:208:2bf::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.16 via Frontend Transport; Tue, 28 May 2024 06:20:19 +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 BN2PEPF00004FBF.mail.protection.outlook.com (10.167.243.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Tue, 28 May 2024 06:20:19 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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; Tue, 28 May 2024 01:20:18 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 28 May 2024 01:20:14 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 1/2] dt-bindings: net: xilinx_gmii2rgmii: Add clock support Date: Tue, 28 May 2024 11:50:07 +0530 Message-ID: <20240528062008.1594657-2-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240528062008.1594657-1-vineeth.karumanchi@amd.com> References: <20240528062008.1594657-1-vineeth.karumanchi@amd.com> 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: BN2PEPF00004FBF:EE_|SJ1PR12MB6218:EE_ X-MS-Office365-Filtering-Correlation-Id: 12f5b4c8-2514-4128-9e6e-08dc7ede3f61 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|7416005|82310400017|1800799015|921011; X-Microsoft-Antispam-Message-Info: GdfGxgIjj0HkCgzXNfT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Yo0DMJ1tv18Zjlt6/bR4yGgtO95H85QQ8dcr55Bhn97H9BTJdgkXkP9H4XPtKPJR/BEr101Bi5FUBfF/L4/wmPDkUnQA7qlxrJSqUSoJfrDB81Oi8p9o3waUupfNEerQV1wiFNf6na7yfWlBXuryjmO/IDsG8d3dzHnxINxtkWXeePLB9uyRq1XTuJEThXPUAZqKRlT4x3v4uYNPjzKW/AY4D2/bj8oSAS145FE0noUwNkDw0TejLIs4j//yj7uUC5uKRDkAvQGo6/dEMocqfoSbJSzyPSs/japnSBL848TUI1o73wmL 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)(36860700004)(376005)(7416005)(82310400017)(1800799015)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 06:20:19.0500 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12f5b4c8-2514-4128-9e6e-08dc7ede3f61 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: BN2PEPF00004FBF.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6218 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_232033_539252_57FBBBED X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add "clocks" bindings for the input clock. Signed-off-by: Vineeth Karumanchi Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml | 5 +++++ 1 file changed, 5 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..eb803ddd13e0 100644 --- a/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml +++ b/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml @@ -31,6 +31,10 @@ properties: phy-handle: $ref: ethernet-controller.yaml#/properties/phy-handle + clocks: + items: + - description: 200/375 MHz free-running clock is used as input clock. + required: - compatible - reg @@ -51,5 +55,6 @@ examples: compatible = "xlnx,gmii-to-rgmii-1.0"; reg = <8>; phy-handle = <&phy>; + clocks = <&dummy>; }; }; From patchwork Tue May 28 06:20:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13676157 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD101C25B78 for ; Tue, 28 May 2024 06:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CPbjz/WqaKC1yxa+9U1hObWiPmVub0JYUU6mjdX6OP8=; b=4e8ZLwx1raWjx/ ztkxPgRqAmihhXNyHOJnkeYmQ2rQEygbDBqlU1PQeeoQ2PP0SvT5pq7hI2UqNlMc44eLfykxrw124 n7t5V/NiBQoeHRGzHF510TlFcG02sHlf+olB9TFXlGnkldxwBKqluQrk4sTaSSOkVB1bvrOto5+Jm bgOkC+vDYvOBe+2gW2sjMXf1L2/lK8NU6rthTaf3V9ldiFstQMAal8Ev048GvusTcGArC6b1VwrAi OpChzcIJl8uOWe5T3sCnFoZFYbopOrzoSFmMZA3zPN49ncUOKOgobJRvhY3tAPDJerJ80ADgO3La3 m6QluRCZzU0X3sXMlB/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBqCM-0000000HBFZ-2ovJ; Tue, 28 May 2024 06:20:38 +0000 Received: from mail-dm6nam11on20600.outbound.protection.outlook.com ([2a01:111:f403:2415::600] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBqCI-0000000HBCl-0rLV for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 06:20:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aaIucjB+//c6Ga90drhMEjXzTP/DT8RV0VOeROiQ34rdmjpKdvFuvsZbgZRm0hzviGF/m1bFJ7i9m+nHzuYYiYKxLx7Syr/0U+TVN1J8+AwQRP1biEC1pQkJ4RpTQ/EsivSgZCT+881orB1gF8VkEOGWHgPMBU0s8fIi8Dt5AUUMREjt4D2QYoVqRJdBi9f1YLxMWW55AfrO8pHoCL5XOhLrzgSRTHOdlSbt3Dm/TfjXhUvpAB5V1QW7QB0sfFxc6TWz+lgAPbDIOTdSfWvviK15FWBMCzvru1q6fAla3qMmWdMoOTKnigr1HEmPFp7oRDTIPXHvT2AY0llH8IWgPQ== 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=RKz2fyvnyIieCzaxrW453Xa2ySv/BXkmtHsBH8UfvLc=; b=D+G6o6hby7twvtS3MyG/kxxnVD9BC9cWurYmK+unkRSK6YDevXZaKA6PF0eoDAlKDWmRxXQ5ke0pUlHUxStbWPFdOQNdGpGwYnuhKZTL9mwXJaFkbSt2yXpHNANo7qKn1htANPyYJCFzL6uk3naK4jzsqB7dwqjB2Xaa4EwlIyuA54/8auYtWdX8do6rRi641OLNENwTCs1FBeRsSE//fj25OKHP4NKzb6ariznWcNGe5LfvPwGWa4/Z0NI6ZzdWxQeIRe+pywYtjyJvb94KvVqfFqYF5M8Yu+hJoZcGIt7HYmnm/VjQ5zO1eMx/aZRks8Q1SLkHCVdZBLM2vhKE0w== 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=RKz2fyvnyIieCzaxrW453Xa2ySv/BXkmtHsBH8UfvLc=; b=gtwuBS4wh5hb0UDSaVBybKc4OUfflnVyH8ryQ2bsrZapywF5aVK47Yk+WnfSmPGCiE+wm8b/w26WBugB8VH9xWQ0kn3akelIsnY1Zt3nkrfqrtpFlHZqQnOFcXpMsZ1md8kjcvyzoW5JhKXcfwkQYXiRi8v/LMN96uq8TethuLw= Received: from BN9PR03CA0158.namprd03.prod.outlook.com (2603:10b6:408:f4::13) by SA1PR12MB6797.namprd12.prod.outlook.com (2603:10b6:806:259::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Tue, 28 May 2024 06:20:24 +0000 Received: from BN2PEPF00004FBB.namprd04.prod.outlook.com (2603:10b6:408:f4:cafe::8a) by BN9PR03CA0158.outlook.office365.com (2603:10b6:408:f4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29 via Frontend Transport; Tue, 28 May 2024 06:20:24 +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 BN2PEPF00004FBB.mail.protection.outlook.com (10.167.243.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Tue, 28 May 2024 06:20:23 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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; Tue, 28 May 2024 01:20:23 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 May 2024 01:20:23 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 28 May 2024 01:20:18 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 2/2] net: phy: xilinx-gmii2rgmii: Adopt clock support Date: Tue, 28 May 2024 11:50:08 +0530 Message-ID: <20240528062008.1594657-3-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240528062008.1594657-1-vineeth.karumanchi@amd.com> References: <20240528062008.1594657-1-vineeth.karumanchi@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF00004FBB:EE_|SA1PR12MB6797:EE_ X-MS-Office365-Filtering-Correlation-Id: 355016f4-a5f1-4cc0-0e2e-08dc7ede4240 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|7416005|1800799015|82310400017|921011; X-Microsoft-Antispam-Message-Info: VrDMoAaEWm8rshQvMg7LG4ZAtrvlUJr1sN4yoTzHrZDbISNWKCh0vgmLbR4kaFrRROAKzHOfvuL7hr4mH9gtexmhaKmCUDNfsE6qlTgLIDh9P6TcCA5bUGMKqmXZ78mJBGIRlnQOL2hFFNSzrerCmn+OhVbOCrB2fTpWvcU645B3XIdP0emHvMfJJZXKBbDnIaqybcXBpYb/maZ1B3W15uVPRBH5RrroULcG8iCL8oMpu7O8q9i+2+ZR3rE715fIKGvXJ0RhUgvtM+5Wnj1TVpe1XmoKkAdDm5TDDV86xqxy3y0Anq59HgplpNEmetYR3jGP757kREWmstPvvpSUsKuYzcP8GWJ92pev+wiJX+2XkdALFZ8Mju9hyMcxUpgcuch1/lDosRYdKdPtRI/eSrDgp/Und9h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TR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(376005)(7416005)(1800799015)(82310400017)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 06:20:23.8632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 355016f4-a5f1-4cc0-0e2e-08dc7ede4240 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: BN2PEPF00004FBB.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6797 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_232034_265988_5EA24B7C X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add clock support to the gmii_to_rgmii IP. Make clk optional to keep DTB backward compatibility. Signed-off-by: Vineeth Karumanchi Reviewed-by: Wojciech Drewek --- 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..7c51daecf18e 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, NULL); + if (IS_ERR(clkin)) + return dev_err_probe(dev, PTR_ERR(clkin), + "Failed to get and enable clock 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");