From patchwork Tue Jul 21 17:13:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 11676299 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 D075813A4 for ; Tue, 21 Jul 2020 17:16:21 +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 A85F12065D for ; Tue, 21 Jul 2020 17:16:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="quYtmQ5H"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="axNnQuO0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A85F12065D 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: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:In-Reply-To:References:List-Owner; bh=JdPID18nbrD/7vbeSCIVNjpEL0/gRw6KOxNPX3xjHbM=; b=quYtmQ5Hfjsxx4kR59USiptV7e DA935EeTSfeTeIwlOg0tqFbI6iL2dH0ppXAKBWO+/Nyax7bB4fd0t4lS1wOReDLdmBXANgWOS8y9v Fq6PeYeJFXjgkTR5eoMj12w2dbqjHSs5GtKIWczYfa6meCu6VDNbhls2VGZstXHTk4M0L4CIe0PgZ OoDNDzcGhBOvS0O9sCj6qyvJT+RejxxkeA7rQ7gm4elDHFHMYTDUynKGOCQnSFHJVlahihGMF2g3r 3QRJSdWXHTfNQPHLslmAbojtpTwZ0tkXVG5sqf5yQ51IMjhNzWEXuhzGF7hoP18NAMbxGto00mta8 bfGjmSFg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxvqq-0000UT-4E; Tue, 21 Jul 2020 17:14:48 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxvql-0000TM-CU for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2020 17:14:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595351683; x=1626887683; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fkusY/rZnoHUUkkCkx7on0e3uqJv5otXccNgfSdW2xg=; b=axNnQuO0gXcJRB7OH1IYgo3xDpjNmFZfzbv0QI8SaXyYDdhWbRPrY/vA D+Mky7JZiXvDW8BUO1TTRwDjKVYILAD80/2UHQkTYg3JkLE5ctvjSX7Ok qTd0bPjtcJtJNek5u1LGKhbPzFZFJCMQrVSAoVeDXvDye3npd5qrzLktQ q6CllaEGmUAwZ65iYUZUvNs2t7hbkIolLqXaHCiKMtKEhnPsUxn1ce7Kw J75MYu4yyY/hqAIwS7tTtwdr6sI2yBXxsGAkYeUQYkkjjVYQo+Lo+ysu6 NZrLFO583msZgPKQfNRq7STfg7MjIY4tm1l0O2v4dNfp5f3uzIt255cDd g==; IronPort-SDR: W9KznHSrzhC9ttuaNSxXdfKqAcbuJXO89ByKoBbzXLX4fj4ZWbJ0it0/7IZUuoyvFnnhZBSiP0 5nhlppiN+uFiiwRGxU/wz1k4g39Iq3MqtDiM2hSkSu0HerguObUv3HmRXvQATqry/AGqTdwsR7 tD+T8mGt7Ka+R7FRyE4btIZlnh/gUIyueVzfSuogCoSFvdgm1jEa3q12v/eUhhVnp3dWVzx4o3 s+GPsc9p4/cFLv1kZhqpS1E63CIGfknbH7iZja6REiYs3URENjFCfTCr/uYBFZsWUOjnvh0wjr e34= X-IronPort-AV: E=Sophos;i="5.75,379,1589266800"; d="scan'208";a="84811168" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 10:14:40 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 21 Jul 2020 10:14:40 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 21 Jul 2020 10:13:46 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH net-next v2 0/7] Add an MDIO sub-node under MACB Date: Tue, 21 Jul 2020 20:13:09 +0300 Message-ID: <20200721171316.1427582-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_131443_590199_9713A3E5 X-CRM114-Status: UNSURE ( 7.80 ) 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 ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.153.233 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [68.232.153.233 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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_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, 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 Adding the PHY nodes directly under the Ethernet node became deprecated, so the aim of this patch series is to make MACB use an MDIO node as container for MDIO devices. This patch series starts with a small patch to use the device-managed devm_mdiobus_alloc(). In the next two patches we update the bindings and adapt macb driver to parse the device-tree PHY nodes from under an MDIO node. The last patches add the MDIO node in the device-trees of sama5d2, sama5d3, samad4 and sam9x60 boards. Changes in v2: - renamed patch 2/7 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" - added back a newline removed by mistake in patch 3/7 Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() dt-bindings: net: macb: use an MDIO node as a container for PHY nodes net: macb: parse PHY nodes found under an MDIO node ARM: dts: at91: sama5d2: add an mdio sub-node to macb ARM: dts: at91: sama5d3: add an mdio sub-node to macb ARM: dts: at91: sama5d4: add an mdio sub-node to macb ARM: dts: at91: sam9x60: add an mdio sub-node to macb Documentation/devicetree/bindings/net/macb.txt | 15 ++++++++++++--- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++++++-- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++++++++++------ arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++++++++++------- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 13 ++++++++----- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 12 ++++++++---- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 ++++++++++++---- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 ++++++++---- drivers/net/ethernet/cadence/macb_main.c | 18 ++++++++++++------ 9 files changed, 86 insertions(+), 41 deletions(-) Tested-by: Claudiu Beznea Acked-by: Claudiu Beznea