From patchwork Fri May 17 05:47: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: 13666646 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2069.outbound.protection.outlook.com [40.107.96.69]) (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 51E6814280; Fri, 17 May 2024 05:47:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.96.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715924881; cv=fail; b=D6e3OQteH9E8ZPx0ZLeaJo/0idx/uK2TD72QFeKRN/kx5XNqES8TdWhzTqiS0AhuyKrMTrSol6JStLSRmasTF57Rv0uFAUH3FcM+4sCUUctziKANXRjWsJl7S/wcBJHk2a4mfi+l4MlpVP5g0gbRvmChPnZN9nhwxWVaJqLdLPs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715924881; c=relaxed/simple; bh=80l1m0xY6zua+xCmfPu169Lh6jR8xtr3cVsnJVRvT4A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h7oZ45crSqiYX6T1dyZHUp9cxXvbLFjUnjEJ1OUxnUQmJzOyqbHsFy5CX/5sACgeZpiNtZuaAMBOVf6qpCwIe/+54vGWrHx1oC1HYScjW8EeyidstXK3C+9t+VdEvNn+sbOOpaJn0cyNq1KQ3fQPY7fWngCQ9cEDoG90mMdeyyY= 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=DtAqrIr/; arc=fail smtp.client-ip=40.107.96.69 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="DtAqrIr/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DO5/tYFMQD0DhnQ4gs423db0/uATPsQtrXQAv+EXjC4wTtvYcuIAVKv7w55ZMJXxr7i+xs0nVt09FxqN1KsZxr9bqzWVY3PpjNAi+YgG5HHsKhpd5qGiMomaw3SbvaXVXLe1Bsz3S4H5lNDKchQ6FYo3tfIXqwFlGiWRq4BmbAPjI+3sbBLSaSVn7b5Le8PqOYldwNGZc47NhCledZiBDP1w3V9zw7Z7dApmKQi9YKega6ictCTkqeE1EXJLRm2ZDnb3i9SGR8K7SbF0x2jMXNR55f1mtHFlkli8lpVIfq/n59A3iV6NgbRa+6tbIdGR3e2q8Ph/17elGG3zsN/3Hg== 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=Q5WpNnUCQSsHOTFqSIMq8KScoqFVz6fq+mGn4WGX1Uw=; b=YG8wsKj6gdIyR55stB/uJedH6bz6nrml42bIFvxWXPorflsmJi3l9JfJmp00M0BhwAa8d93qQhJy2dtg5ujgUD+Df4RNaa7D71LVdWgWmxM9ZJs9Uis+7w+mNiRGPZbT/e4TsSeYzrUEPRyYtir2O7a7eFAMnDvyc/PDhlMwdOSjeCbzecHytkByE2v2XPlc3aDgL1J1FDi/A66MjJ4F5SM8baBMkzT8ivPviAoHae2Dz34L386r9vdm6+dxbsrCt0JfkM3cBANtNuYq/ejsIEHKBubokWIdkgsocfjD/OzlkAtyakq/COetoF5sm2oLKZMx+HO+13coCiMn21w+tQ== 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=Q5WpNnUCQSsHOTFqSIMq8KScoqFVz6fq+mGn4WGX1Uw=; b=DtAqrIr/+TL9AFM5aHbs4FMK5hXJ3s3JuN1k/uvmoXsKK4cgGWh3RKcYOg2xrM2klgC7HjA1TsGP3XjikasI8+A/HQ+mkcPio6bxYGSl3Yomsr8X7ysruAIaSMCnC5cEWlyBpRqdSTWXiP59jM6uVPVknxpISvTbJ5VjhrYwEyI= Received: from SN7PR04CA0003.namprd04.prod.outlook.com (2603:10b6:806:f2::8) by SJ2PR12MB8941.namprd12.prod.outlook.com (2603:10b6:a03:542::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Fri, 17 May 2024 05:47:56 +0000 Received: from SN1PEPF0002529E.namprd05.prod.outlook.com (2603:10b6:806:f2:cafe::29) by SN7PR04CA0003.outlook.office365.com (2603:10b6:806:f2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.28 via Frontend Transport; Fri, 17 May 2024 05:47:56 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SN1PEPF0002529E.mail.protection.outlook.com (10.167.242.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Fri, 17 May 2024 05:47:55 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 17 May 2024 00:47:54 -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; Fri, 17 May 2024 00:47:50 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v2 1/2] dt-bindings: net: xilinx_gmii2rgmii: Add clock support Date: Fri, 17 May 2024 11:17:44 +0530 Message-ID: <20240517054745.4111922-2-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240517054745.4111922-1-vineeth.karumanchi@amd.com> References: <20240517054745.4111922-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 (SATLEXMB04.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002529E:EE_|SJ2PR12MB8941:EE_ X-MS-Office365-Filtering-Correlation-Id: ac486acc-312e-478a-510c-08dc7634e6a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|1800799015|82310400017|7416005|376005|921011; X-Microsoft-Antispam-Message-Info: ZfmBQcjKdfqUULAiphPNm9KUhGMVhHKa1fHmN6x+o6tmsy4rpndUtsE4S4xTvfE8VM/bQD0kVd6modpwPy7S9gQqmYdz3nl3K3KuohqY/jKIdulhiJI5B0EFinmmus0wx6O0DYw8ooGbPIl+cvmcmi1v7f2NfN/Jah5cpFqpyqnCKQvTKDEhYEQg+ewkl6ofAd4D6YlQkUAzdfnX7zkT2BOa/VXss8Lqi7TvrtogJW2PD6MdovvjKtqsSFmYOCLcELbt/QR+ytkUN4GklDLDzWg+xtDOFNfnJJOHVIdMpJ+QSiaKNxDMTejGZvA6pKdPYDJqfP8fjKE6Sr47P70yI7x4c1VT2ZnkEEYF/GIbgxNpup6yUMpt8rucXOHHolTX2+mlyUbDF48ySIA22mTWAefkgdeqrjDrnq9iJIbkE80rZUiR0FiMKaOiqgR6RpWgw3UeAICu/ZdRM84nbkiWmecKPZhq+JvJI0ZeZosJpSOXtmDR/Hv1JQ60pW/ACYyABmh8VGCw/h480xSOml8gOjeUaRWfbrWlPpGZ25xdXR409aVcFGqeUzvCvgTsTt8K9aDKKuQKlu2rK+KkRpunmqwtiowRvuttA73V8n31mk7oJSWGzxMYekRZwGzRee1fhSVIoDM0waqfqJQpyNk4Z1C5AgEMJtclMILuFHWzdV8qm0x8o9u6JXZ3jMZhER8HrNoLqR8sk2S9iWWu33hl1S4Z4cui4M9oqzcHP42QQhB1LOI2bbmlNT+m/y6vPQcL37STpVTXCuM8MLUuSNE65RQKv54Jvpe4UZgmq2zCZzweZoZacLg5RWnbfotemwO6hz2dNCuJeLi0gVsQyjjLJi/eLCwald86/wONWqyzNcn0ddFhCvnZQTjSMi68ELx/jnuZFEz9St+7PzLorPm1MEkUlYyyl1e0rYma/m7aYciM7t26ogXbRybSgXYdcbqFxhuVlRWVatDPAggrvCI+kH7bOxBMqsUNSGYbj/e2Z90syvx6BKhSUs2LJiN+gljKgKXZ1YMwcXWZhUdvs8mw8QhGgwFBAa24kRkmqNCNb26fBvp5eLT60qMWVpmtkK49Ju2JyfvYS08u1VQYasN4EhwFfUECFFcZJoYWhaZA473XV6mN4gt+NxDdzV90f6B4PQVSqjh1z2DoUgKZavx6ExmTTRCXDKMXpuxWOdjsziPX3x6NbVrJWyNgmrUBscvR2V2ZqLzGR1KkLHcCRSp9opDTdNAz2ITyPvkn0o9J9NtQNTFmYLTWu6yBHk1NmN7kWGsDtaS+WUyxRgQ1AFfrEW9otZF+4ndQlB19YcgBg9koWXDyLaBVTmqJNHVhxcfZgFEId/Ba9naAAtf6l5iiZn89Uz4KYVbcseV53YQi4OKikW+XwrmX6itVppCm8GPn X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(1800799015)(82310400017)(7416005)(376005)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 05:47:55.9113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac486acc-312e-478a-510c-08dc7634e6a5 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002529E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8941 X-Patchwork-Delegate: kuba@kernel.org Add input clock support to gmii_to_rgmii IP. Add "clocks" bindings for the input clock. Signed-off-by: Vineeth Karumanchi --- Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml | 4 ++++ 1 file changed, 4 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..672bff6dae28 100644 --- a/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml +++ b/Documentation/devicetree/bindings/net/xlnx,gmii-to-rgmii.yaml @@ -31,6 +31,9 @@ properties: phy-handle: $ref: ethernet-controller.yaml#/properties/phy-handle + clocks: + description: 200/375 MHz free-running clock is used as input clock. + required: - compatible - reg @@ -51,5 +54,6 @@ examples: compatible = "xlnx,gmii-to-rgmii-1.0"; reg = <8>; phy-handle = <&phy>; + clocks = <&dummy>; }; }; From patchwork Fri May 17 05:47: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: 13666647 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2068.outbound.protection.outlook.com [40.107.236.68]) (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 46E441119F; Fri, 17 May 2024 05:48:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715924888; cv=fail; b=Fg95IPN0kXo2CP2WXTs68tupfu2ssIBZMmouZtAP91R9dPNpotPwNMogyaXHMTN0QY37mP7TtTPdVxTdtoH4RUYmD/vozktccIoBWF/owRcpRo7tX0tWlixEHLV3pd5z9B+GD4Z6Yu1GpoUwY8GCU1PDUrV4TfcLpVB7HrSvRkk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715924888; c=relaxed/simple; bh=5VlVJv5yV6i3Nky/kH+43QM0jpBYuSuOELKYXv6VHTk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mrfMtDa5sbg6MJk5iYVTopH6adH9/QkJiQTCdmp4CjAc8eAyayt/+SL3QDqvoJHRKFDpV2SYPzFVmWSUpxvfWrPfs/GMsmORJFq68b2IUS4BDzEF72D7rjzyXPKuFVpsI6t5E7YLpZgdySmy4R4o09kNPQD7E/mWCAswsbH3WeY= 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=3Et1jeXC; arc=fail smtp.client-ip=40.107.236.68 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="3Et1jeXC" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYCCYQm+tA/IEdJA83YKVOnRvoXcWBHHx4yRkmMMy1+AOkdJrn992cWZw2tMLGBS9dRfttCQjbyxA/lkP7ymi+pCow6l8VSNkgDy+9Anx95RYFoPuTAFwTsAZ85PUzR6tMfnllqm31Bmzupm9r9Q/R5wNb8C2wYGfVzM6SajpPfFo2LhNbneAslwyTUrcMbNKc3ZCkHwGb25lJg+zx5vdCu3qb4gWWdakkNd/B5A2bR5DpdewSa9i2UwMGfZvxwvSO7quo3aZNbXnRPX6xrWH8pfMHoPF1dLfkJ/5Uc+1i+YsRl7l1YSufAZ8AgjxqKVf5k/IgUIMJ3aQ+c8prn2DA== 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=WFKtcBOdfEWK8FHnb4RlsG2yZsnNGtCGIXbV5eXDN4Mpb3dO9lvSJal8TJWfs0CM7ogQwIiTDIEe4/wpqef/d4uXBWfyBA3To/uj6oZnNKMCRguZdZR5xRM2XTDkDbtaF8CM9Wt+9ups2N/wRQ5CBrw0qyHP48AL7h3MbPlggRcgZA7HZEw1X1qPRQQvJZLpHulVBp5Xe8HrRNjV2huPpGzXQsamNAhbng55ApSET8rhVbx5hyF/BzoU4+OY8737QPXBkZ9zEJ+rAxtr+EJTtKBsCXFdahF4J4IwaJeX5WbWMWUQrNVc93FzxjoOJpWzI3EjwlG/yKOQaNchmH5v/Q== 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=3Et1jeXCKYSQO4VItQbLR9KWnseTT48O6KOIPH+OpRsW75FGJntvkigkFSGe56jE9cv3z/okSw0Yd+tZe2984PRysDno0A41SFvqcBHYBivS/beN9qmfqLTSH8weYbDyHjEo062seIemUFU/xRybFw4kC133YdrtJicsuw7kZaY= Received: from PH0P220CA0014.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:d3::28) by MW4PR12MB5643.namprd12.prod.outlook.com (2603:10b6:303:188::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Fri, 17 May 2024 05:48:01 +0000 Received: from SN1PEPF000252A2.namprd05.prod.outlook.com (2603:10b6:510:d3:cafe::81) by PH0P220CA0014.outlook.office365.com (2603:10b6:510:d3::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30 via Frontend Transport; Fri, 17 May 2024 05:48:01 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SN1PEPF000252A2.mail.protection.outlook.com (10.167.242.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Fri, 17 May 2024 05:48:00 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 17 May 2024 00:47:59 -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; Fri, 17 May 2024 00:47:55 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v2 2/2] net: phy: xilinx-gmii2rgmii: Adopt clock support Date: Fri, 17 May 2024 11:17:45 +0530 Message-ID: <20240517054745.4111922-3-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240517054745.4111922-1-vineeth.karumanchi@amd.com> References: <20240517054745.4111922-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 (SATLEXMB04.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A2:EE_|MW4PR12MB5643:EE_ X-MS-Office365-Filtering-Correlation-Id: 4454c9ba-e816-4cab-6c95-08dc7634e993 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|7416005|1800799015|36860700004|82310400017|921011; X-Microsoft-Antispam-Message-Info: f82vIei56SXGN+XmAQXnUXRtYrpKFcQRc0I19QPecDCiyWgGDF7J5Ke8eHCInXRy0WCgpVOzHI136uivAfRqra03VTqeaqyZpXdjvvcFQy9J4Jo2/ufcDHxhfAZ2MwjGUYfikdVt/RtpwPx1iJMt1NYblowKcA+CozdT6mDVws9Mz+nge1/4/pJkgU+BsEtK3khzETHRrAGY5HbEzO20QJrrj5wTSWt4nxVn9EaEJF9zTDmH2V5xo6+tzWsV6XJSQh1YuJLnfc1a8cb27GCwLCUlmaagAQ3LKNWgiOTPTk+Di1t/pS6DYk/uQGtr4ICamki7fv6ndymR9T60KNPqXUvZ9HdAH3LraWBU/Kb72bLOXMPbb8Jz6WqWxVWwitxV883xw+p3lgWvsdVCggBcizgE9ziW/2HEy2QZRM6sOm+VL3y0fDClq574LjRjsn413zYzdQQH5DBJTaBTjeNAajsiLg80trlzly01731B2wi+4UjXBiOgyJv2KSwuNaZu0BNdKtFbo6JqtP6+ddXBxLohSJqU95PLxN8R1wKA1PKSXtrsW7cZWatbzQmtuKc9Z5XLDeF45MzbVxzDPrYny/VaatWBtpj3zuhPHI2rG8S2UDK7vfmJfQ+HerecvpX0tE1vz71nwPnj2Rrh8DJv1CVO6JzXkdue3W/lqCFf7AB3UaA11vrM/qGz3l8sgrd5wFphj53wZksXCOrrJiIzAe1aKyg5eYcwefG3vq8Lq3Eso7weK1HToShTuMecU2/Yyh4vTpbb/n3366El3UoeJhNlqXYgjFC9INqn6YRRG9uvbR5Ifc+goj++8wLVOq1JqYtCL6ArAxcBylhKo3LnXQp09Vr5CsMXeZxLiPhTpRUIH/oWnPqZwciyxB9hLNWkJILX6seW/a3gBLqI3i5cZPtriNztNpDeFeSnMrkhmM8ODPctiSyGgXoEzDhHxB2kTn13MRt+XvkB4+7/zJQ/wlO/IJs1UGFGmnlF6T8oFSZCCn+p9WOgjln0ZoMOLDKAyquNFNHPYIirAiA4ruoPrRi509uI2bZbHRc/589mgeSPreUoTRcvWYpILnhpCOIkpgDo69VBuPYeFgBNgfiZ5ltX2AtE8C/ujlxFWq20eAe4PF6xu9w01obLgr/g9K33bLpAJWOuBAsOa2aICMVN5p5NK5pAuO8ZoC0qx1i+JoV7TQUVvIgCp7g149mx85UI+Of0B5OOP3bkNBKRtYuLykXFkh1NoZZRoJrnR76g/skEcHK0lDLfqGVSBGZyu5TW2iTXz6QgOkdOpfXIogFw/RbDbmIK4CV7S3GSUKQKEt+/hAlX/rOehTeOb1EUAKA5Kdxbl/m48fJIQtMuKj4MBZcd1RfZ0JhoNLNrKyqMQzauBD30Sm0LionIZ6YJMtuQ X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(36860700004)(82310400017)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 05:48:00.8116 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4454c9ba-e816-4cab-6c95-08dc7634e993 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5643 X-Patchwork-Delegate: kuba@kernel.org Add clock support to the gmii_to_rgmii IP. Make clk optional to keep DTB backward compatibility. 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..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");