From patchwork Mon Sep 18 12:41:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 13389557 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 C7D43CD13D2 for ; Mon, 18 Sep 2023 12:42:01 +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=rAFvnJoroCvG+I6cdvVpAThJrMqf9t0/cP7InPW53tY=; b=rgigORSxrmlGHD ubhDzDOy/0UwFB9EV58x4vFqJVMV6qZlSClKy3dZwMoq6oa97JEwVvnBmaFxpqfGYwY+Cx+Mssi0+ 1GrAbTwPsomNFV5N47WA3yY+aGehG1BVrEdxJD/1wkyX7tDbexsNTwWh7SL0xqWbb6pGYgYwvvMap FJ5QCReiim6MK/Kd39dz+Xg7mBRAxC/l76qa3UBVbLaN8BL02yVhvU3UjzbEUndCnh068HJU5/ooD aeT9/2aZXrp1OVcggZA0BngfSrWoMPae/knxIwF7o/dE10e6wE9VbHasKKQue1FP/lK6tWamMrsqD 3MHRlDzVecJSUq8cqqdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiDZM-00FRQx-2J; Mon, 18 Sep 2023 12:41:40 +0000 Received: from mail-mw2nam12on2060f.outbound.protection.outlook.com ([2a01:111:f400:fe5a::60f] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qiDZJ-00FROW-0O for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2023 12:41:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ioG0HXDWapnyAzb2alCQSt8Dp2Xgxeoc2FtAyTTpsYziCVkgIQT/uOWVHdx8UhSJdifppelZfx9aXvmrMyJsCWZfvj3c4C8GwSlWc7J32xnFOPdx01TZOWbiaQwRhlT7J2A0LqQRFrdQFoisdrc0Xh+4bi+IbeZHknk7+MdRppZ6uIu/IFCMpVT4TCQBunStxQNvAyuGq4CmDD3l2et+RqDiJ/ZoGKpWTyS5VywFSdy96ZqwP2oGuakLR7aRParpQEDrwMPsYC1g50KBlb5NH/1X0NFuZbazs7rLTgSNk0UzRGhGaRZSk9lZ8j9M0I1gC+gnl3Wo40aZ0LNo16pEnA== 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=h8BF4ZJ2zijslDDEk9BF9Ek9ZQthKDQophjkG/J2h28=; b=JNSTX4G87vsc3NukZY04Op52JqcCQuBgsqUZdvQ9RrbDOd4iIPuZ22mjR3qBKqV7ZgyF8reo8adXe8LYynJOqHq2EcdDjwOLhPdcL2muwBbvkIVp8lBmZZSGb6U+DIJ92feIGzaNmna4zzTBamAw5IYhhxR3T/kxErBLKddX4LFT3IGEWBzeBVqUB8VUy9+8NTbFOpIy2zqETCOdTXm25guj8XAk1JKSiTqposBhpOO7aNejS6pAIidnZeEdhQDBOAon/VhVGmyJLOJEK+7FyfQyY1fvMJB++zQKWcJ/gFSXYWdDbMlWDK8QbL1t08567EBUu1XF4aPAyj8BfzTedA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org 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 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=h8BF4ZJ2zijslDDEk9BF9Ek9ZQthKDQophjkG/J2h28=; b=Mcg47sPJPg6fQyDBYW2N0+gb7IYzWrpICmdqlvFUcjNEdI2jqO5x4U9PTNMxLhe1aTp7PrB16BDFBf8EmkaEkCyeNiRU0DPy846Sx4kTLNH363CLqvfgPxn9XlsxarRnt8fzHXPa87Ne5GF1fPfcghl9D0EH7fR7Ov5eGqlhheY= Received: from DS7PR03CA0219.namprd03.prod.outlook.com (2603:10b6:5:3ba::14) by MN2PR12MB4406.namprd12.prod.outlook.com (2603:10b6:208:268::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.26; Mon, 18 Sep 2023 12:41:31 +0000 Received: from CY4PEPF0000EE30.namprd05.prod.outlook.com (2603:10b6:5:3ba:cafe::37) by DS7PR03CA0219.outlook.office365.com (2603:10b6:5:3ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27 via Frontend Transport; Mon, 18 Sep 2023 12:41:31 +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 CY4PEPF0000EE30.mail.protection.outlook.com (10.167.242.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6792.20 via Frontend Transport; Mon, 18 Sep 2023 12:41:31 +0000 Received: from localhost (10.180.168.240) 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.27; Mon, 18 Sep 2023 07:41:29 -0500 From: Michal Simek To: , , , CC: Amit Kumar Mahapatra , Ashok Reddy Soma , Conor Dooley , "Krzysztof Kozlowski" , Laurent Pinchart , Manikanta Guntupalli , Parth Gajjar , "Piyush Mehta" , Rob Herring , "Vishal Sagar" , , Subject: [PATCH 4/6] arm64: xilinx: Put ethernet phys to mdio node Date: Mon, 18 Sep 2023 14:41:15 +0200 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4352; i=michal.simek@amd.com; h=from:subject:message-id; bh=CguVKVNCrMXEr2XFc+tOnMLg9/2vSC1htIcg8rJVFbk=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhlQO10wHy6dyzS94frmdWbLertxR3i1wQ+MPXrZU++To3 Adv1vzviGVhEGRikBVTZJG2uXJmb+WMKcIXD8vBzGFlAhnCwMUpABPpOMIwT2VPQM0hkZ2nE3Mu bb9bwPCATW/iMYYFk1RWaqt6M75MeHT/Dud7Lj/GJDMvAA== X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE30:EE_|MN2PR12MB4406:EE_ X-MS-Office365-Filtering-Correlation-Id: 62a0af49-2d0e-4984-42fb-08dbb84495ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SGviowWfz0FQYM+3PLhWnZdOQM7uZT8vtr2yKDIOgTjB9cRo6NaBUOr4RmTBN78zZjjrmoctJAPSPjHW6w8CbhHKqrtLaNQfygO2xOXGKiD7fJHNNPq/1M7e821rWkFQLGNOnkSC2u3cgGGBfBqIHXlB9ZiBQBHBHueIZcDXscMaobUtP/Jf7HmlbXl3Gtfy4ZYXtVzZ/fcVllLLWNooH9gmqi8bp8KRpX/FW7C9pn3lnTC8szjEmWFmRyBf9GZ/D9cKrC9bnUOVs+SbMSNZjx5/NcEz3cfCbp7FvHbDaj4Aqwm7j+j3mh7VlBLbCPnLuaqlC/dTN2adEdjdVWh8xdhUvNdRk08Cw2IZ0ZrD1AMPTEdO8pddMLmxASON9yF78lhIv1Pg/ICe9ErV1UbTLSO4/zYzwnQp+akhKVdwaqoLXXeTKFOaZGYZfnBybgEtRtgYnFNFVIEz9cgMFHra/uj+BZVONmbGa1Xqw3cv5LPVF7JPxXDkEc2uOe6nGifC5S3RmILb6k64OVDXOPgoasZJRDLlFHR2mpy+uvmZcAQQzpIBm3O7M39JfqZbZ1Fcr1GrTqpVgzeFgrHkTstAYx9c2S3uaa3lSu+JDkZIVMMYnjDecy6LhbD3kW52GbbRwfHrLZZ1OpYkRPAp91QRQOzhwD3nxglflKoKYwAMBgmxnAWKqsLGYY1IcsO4f/o+Udu7yWk0uAKaA+/ALn//rt7F8uutKr90OvjBmH4lsbnLyYeIa/OvCX9HoIX8XVon8KVFlm9Sd3heC9itRghQTdcHNPRs1+5+mGdqinNem7w= 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)(4636009)(396003)(346002)(376002)(39860400002)(136003)(451199024)(82310400011)(1800799009)(186009)(36840700001)(40470700004)(46966006)(40480700001)(81166007)(356005)(82740400003)(36756003)(86362001)(40460700003)(478600001)(5660300002)(70206006)(70586007)(54906003)(6666004)(2906002)(8676002)(4326008)(8936002)(44832011)(336012)(426003)(83380400001)(47076005)(41300700001)(7416002)(110136005)(36860700001)(316002)(26005)(16526019)(2616005)(2101003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2023 12:41:31.2467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62a0af49-2d0e-4984-42fb-08dbb84495ca 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: CY4PEPF0000EE30.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4406 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230918_054137_158718_3DB390C1 X-CRM114-Status: GOOD ( 12.27 ) 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 All zynqmp boards have been already described via mdio node that's why also convert zc1751. With using mdio node there is an option to add reset property for the whole mdio bus. Signed-off-by: Michal Simek --- .../dts/xilinx/zynqmp-zc1751-xm015-dc1.dts | 8 ++++-- .../dts/xilinx/zynqmp-zc1751-xm016-dc2.dts | 16 +++++++----- .../dts/xilinx/zynqmp-zc1751-xm017-dc3.dts | 8 ++++-- .../dts/xilinx/zynqmp-zc1751-xm018-dc4.dts | 26 +++++++++++-------- .../dts/xilinx/zynqmp-zc1751-xm019-dc5.dts | 8 ++++-- 5 files changed, 43 insertions(+), 23 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts index e821d55d8d5a..73491626e01e 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts @@ -98,8 +98,12 @@ &gem3 { phy-mode = "rgmii-id"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gem3_default>; - phy0: ethernet-phy@0 { - reg = <0>; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + reg = <0>; + }; }; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts index b59e11316b4b..f767708fb50d 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts @@ -91,12 +91,16 @@ &gem2 { phy-mode = "rgmii-id"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gem2_default>; - phy0: ethernet-phy@5 { - reg = <5>; - ti,rx-internal-delay = <0x8>; - ti,tx-internal-delay = <0xa>; - ti,fifo-depth = <0x1>; - ti,dp83867-rxctrl-strap-quirk; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@5 { + reg = <5>; + ti,rx-internal-delay = <0x8>; + ti,tx-internal-delay = <0xa>; + ti,fifo-depth = <0x1>; + ti,dp83867-rxctrl-strap-quirk; + }; }; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts index 38b0a312171b..f553b317e6b2 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts @@ -88,8 +88,12 @@ &gem0 { status = "okay"; phy-handle = <&phy0>; phy-mode = "rgmii-id"; - phy0: ethernet-phy@0 { /* VSC8211 */ - reg = <0>; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { /* VSC8211 */ + reg = <0>; + }; }; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts index 6636e76545a5..6ec1d9813973 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts @@ -116,17 +116,21 @@ &gem0 { status = "okay"; phy-mode = "rgmii-id"; phy-handle = <ðernet_phy0>; - ethernet_phy0: ethernet-phy@0 { /* Marvell 88e1512 */ - reg = <0>; - }; - ethernet_phy7: ethernet-phy@7 { /* Vitesse VSC8211 */ - reg = <7>; - }; - ethernet_phy3: ethernet-phy@3 { /* Realtek RTL8211DN */ - reg = <3>; - }; - ethernet_phy8: ethernet-phy@8 { /* Vitesse VSC8211 */ - reg = <8>; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet_phy0: ethernet-phy@0 { /* Marvell 88e1512 */ + reg = <0>; + }; + ethernet_phy7: ethernet-phy@7 { /* Vitesse VSC8211 */ + reg = <7>; + }; + ethernet_phy3: ethernet-phy@3 { /* Realtek RTL8211DN */ + reg = <3>; + }; + ethernet_phy8: ethernet-phy@8 { /* Vitesse VSC8211 */ + reg = <8>; + }; }; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm019-dc5.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm019-dc5.dts index 0d2ea9c09a0a..b1857e17ab7e 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm019-dc5.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm019-dc5.dts @@ -77,8 +77,12 @@ &gem1 { phy-mode = "rgmii-id"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gem1_default>; - phy0: ethernet-phy@0 { - reg = <0>; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + reg = <0>; + }; }; };