From patchwork Fri Jul 24 10:50:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 11682963 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 248E2159A for ; Fri, 24 Jul 2020 10:52:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F07A72073E for ; Fri, 24 Jul 2020 10:52:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hcC6O/3L"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="ARChtt8i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F07A72073E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KqTSGABk8ZLP3C2dmWhd6FC4BgWvKnicADDyp5LgsGg=; b=hcC6O/3Li0oPZ3EBMbTCHWpmv h72Faw4z8EpQ+g0Ypj5fgn/WceljxRu7kIInrSZgsxn+OhI+kF1Cs2l3ZQ9BjxY/4XPBZwlkqygfH lujFW6z2aQe1zW1aCO0lib9c64a1ytim63xcuiiYbx3T4n/7E5V3i7FerBQWhNm+CMPzdGQZXB8pb plPpoYHWvafkray6tULABwhFXvZTP+7tMmkNpLgstxcqByah6QQ5Kc6rmiJsP10H3Ylod93YnCICT Om7kfQJfl/5BaJUzszS3/GpsDF/QjbHDj8Zlaxs2Lurzx4uUOgmPycmbTW1N04Zwykj91Oqtx5S0t DazWm5pUw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyvI2-00038Z-F1; Fri, 24 Jul 2020 10:50:58 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyvHu-00034z-HR for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:50:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595587850; x=1627123850; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JPT5jZOsGT2B+NINcpYtfUVeN8a8QBU08K/b7FI06Ag=; b=ARChtt8i9sM9PEQwDxw3rEtHD56t8zMA3Fp3+2bod+q+zY119Lu1+v3E SffmOFCEYrxv/qGU3pc71WQzc798KmjRe770m2zAKrDOYKajIDnG7WUrz BaIVV45qXdKgEClLAsy2BGQCPEWlaz4aqjd9quwqFuZWduUUFZAkb74x+ y6NvOblnU3oo86rD8nAKYBz/+ZhbusslSFEmGxuRXrN9zLTRsPeWjJqnN eFZmdNJeaSYjxqAZfxo4cge3O6yYvSE1p1N9pz5E3KsX+GdKmlopmmMcd 7HuyNYK/Gc9rMjhRCmszM4CJbbtuV4UCHmE9DZR+M3M3XXpqgVAYxDelq w==; IronPort-SDR: HMa1ZH+s2UPSueHBq/YbryWGwsGb4XlE0+ZGEj1fYkPuDlK33ldhzzEZKMN7Q3+Yt6KmPQZzIx HWMqVsGKzEsu0eaVdtDVaiEuR8H2gpKTI2SPVxaDzp+zCGrq1LRxQ+nspTrxtD7ZsdJpuPVMYT w1YPz5a1yLtRalBoAjU7+hfn6dtJFE+2Xy2E7/JTabTm9u0cY+S4pdwG2ElAAPjn8g5+3bbsD2 JEenuwmUK7QLkH1cBS+79Igwmu/QxgnDV/nWhjDN9gqZdGmwF0ai44elw6CbQzzTeNA/VqGIqR lPA= X-IronPort-AV: E=Sophos;i="5.75,390,1589266800"; d="scan'208";a="83152928" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Jul 2020 03:50:49 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 24 Jul 2020 03:50:06 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 24 Jul 2020 03:50:04 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH net-next v3 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes Date: Fri, 24 Jul 2020 13:50:28 +0300 Message-ID: <20200724105033.2124881-3-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200724105033.2124881-1-codrin.ciubotariu@microchip.com> References: <20200724105033.2124881-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_065050_887038_D046D317 X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [68.232.149.84 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.149.84 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, alexandre.belloni@bootlin.com, f.fainelli@gmail.com, Rob Herring , claudiu.beznea@microchip.com, ludovic.desroches@microchip.com, robh+dt@kernel.org, kuba@kernel.org, Codrin Ciubotariu , davem@davemloft.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The MACB driver embeds an MDIO bus controller and for this reason there was no need for an MDIO sub-node present to contain the PHY nodes. Adding MDIO devies directly under an Ethernet node is deprecated, so an MDIO node is included to contain of the PHY nodes (and other MDIO devices' nodes). Signed-off-by: Codrin Ciubotariu Acked-by: Claudiu Beznea Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- Changes in v3: - Added tags from Claudiu, Rob and Florian Changes in v2: - patch renamed from "macb: bindings doc: use an MDIO node as a container for PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" Documentation/devicetree/bindings/net/macb.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 0b61a90f1592..88d5199c2279 100644 --- a/Documentation/devicetree/bindings/net/macb.txt +++ b/Documentation/devicetree/bindings/net/macb.txt @@ -32,6 +32,11 @@ Required properties: The MAC address will be determined using the optional properties defined in ethernet.txt. +Optional subnodes: +- mdio : specifies the MDIO bus in the MACB, used as a container for PHY nodes or other + nodes of devices present on the MDIO bus. Please see ethernet-phy.yaml in the same + directory for more details. + Optional properties for PHY child node: - reset-gpios : Should specify the gpio for phy reset - magic-packet : If present, indicates that the hardware supports waking @@ -48,8 +53,12 @@ Examples: local-mac-address = [3a 0e 03 04 05 06]; clock-names = "pclk", "hclk", "tx_clk"; clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>; - ethernet-phy@1 { - reg = <0x1>; - reset-gpios = <&pioE 6 1>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@1 { + reg = <0x1>; + reset-gpios = <&pioE 6 1>; + }; }; };