From patchwork Tue Jul 21 10:02: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: 1332895 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=pFmFNt7A; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vMY1zHQz9sQt for ; Tue, 21 Jul 2020 20:04:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729167AbgGUKEW (ORCPT ); Tue, 21 Jul 2020 06:04:22 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:30628 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbgGUKEV (ORCPT ); Tue, 21 Jul 2020 06:04:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325861; x=1626861861; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eSIX9gvTOXmEs7WsXT0EHbET3IDNtZUzetyMiaF7M2E=; b=pFmFNt7A4kTxwN0ug049XZkxNRkoio9U4lcTLjZ8bmraSPbpMES2AEp8 id1RCW4k1z2Vf70C0dkKo0kkDakYan/1xiZ+zl25UgAi+l3K3596UCtsv AAf+ZNEL7b1H6KIUXT06HU/r2V9TOtNysBlniydeAH8z0xgFQZt+ZD6l+ aaWAYvlnuePBsozWa79eEURAu35++RiRyc0dukYoqyrhz9aSABcD6XkQK Eny5pEYrafOqNh8KN2mo2pS6CuAYDjOUsU0sJZmXl6Hb9oX1PM8w903bU swS2zdhssEh7KKlSnN0+avD0oXicwU92m4Q0pA9zjU8cmYGwtQbbc97Jz g==; IronPort-SDR: zOL0rLzTbWq08z6asHBEwBpO7+4x8fKeWDVGqFBbISHYCIF5dzCVSQC3v/TBGjXvRIpczDInsE SsA+eb169b3oh0iUPbjGpZSG/0dl0jOJ9FzQ0UXdScK2OHGag3a+npeDy/G681MpwZWDgFX7V+ 15m7nsaiGjar/RSWR3Vt8VHzLmBoVOVqpck9JBVo2qkm0+8ZCE+HI5Mmyc4JI/4EhuLLzwzo29 IpHHw9496cLmIl7TflLImllpWPwM1Y2nM0pP0UYxeyxrQxhdpI6Be2ahFCxZ89iJZCVTDQcn52 JgA= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="80694800" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 03:04:20 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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 03:03:42 -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 03:02:58 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 1/7] net: macb: use device-managed devm_mdiobus_alloc() Date: Tue, 21 Jul 2020 13:02:28 +0300 Message-ID: <20200721100234.1302910-2-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index a6a35e1b0115..89fe7af5e408 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -769,7 +769,7 @@ static int macb_mii_init(struct macb *bp) /* Enable management port */ macb_writel(bp, NCR, MACB_BIT(MPE)); - bp->mii_bus = mdiobus_alloc(); + bp->mii_bus = devm_mdiobus_alloc(&bp->pdev->dev); if (!bp->mii_bus) { err = -ENOMEM; goto err_out; @@ -787,7 +787,7 @@ static int macb_mii_init(struct macb *bp) err = macb_mdiobus_register(bp); if (err) - goto err_out_free_mdiobus; + goto err_out; err = macb_mii_probe(bp->dev); if (err) @@ -797,8 +797,6 @@ static int macb_mii_init(struct macb *bp) err_out_unregister_bus: mdiobus_unregister(bp->mii_bus); -err_out_free_mdiobus: - mdiobus_free(bp->mii_bus); err_out: return err; } @@ -4571,7 +4569,6 @@ static int macb_probe(struct platform_device *pdev) err_out_unregister_mdio: mdiobus_unregister(bp->mii_bus); - mdiobus_free(bp->mii_bus); err_out_free_netdev: free_netdev(dev); @@ -4599,7 +4596,6 @@ static int macb_remove(struct platform_device *pdev) if (dev) { bp = netdev_priv(dev); mdiobus_unregister(bp->mii_bus); - mdiobus_free(bp->mii_bus); unregister_netdev(dev); tasklet_kill(&bp->hresp_err_tasklet); From patchwork Tue Jul 21 10:02:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332896 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=EDTaFGVE; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vN26K0cz9sSJ for ; Tue, 21 Jul 2020 20:04:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729186AbgGUKEr (ORCPT ); Tue, 21 Jul 2020 06:04:47 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:30678 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726919AbgGUKEq (ORCPT ); Tue, 21 Jul 2020 06:04:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325885; x=1626861885; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LOmnsw9iC3qsLnhUejBW18I+VfFv6IlLy/JZ85tkXDA=; b=EDTaFGVEDgrugcOifNLihts2ri4uvwIj6/JueLgcpcBf6Ay+oOWEdTHf roQO0oFXmspxs098et9uB6QhCTYBFra3Gar/O9cM2Tg46kX6H8DU4hu0y M4rimjNvc10zDMbhik9P855dIhAa9VIAFl9S8Xm9fEm+XIPsCRYw3Lymz 7AW244oejjK2zYi/DLwIb+zYx5zmA+x/KnHtXSjlfRxA+6bKukzRLFnCq ClDRamKtCFernY40yDNlgAQqQDCcxH4NJWrQjmQPvL6CfhufoFoYNtnUs CoC/EvDi0pW3v5OBDNlJNZDgLzOQRct+jSdJ5IBdziv4AApWQv1/rWBNZ w==; IronPort-SDR: zZyoZ/SxVwtSNGzApPWj4oo2HX57s/YMElnbCXevHIAwb0mOZ7KGvZM+NcXWJYCBv3tYndj691 UJuNKSpiHSrNSNx3pJvZlLaJ2XtOI08XI1gMZlTjcZ9k4w8c7k3Qm9Il1e0wvbyykEdONMCh4I +VQDdP3gDJrH/4BFjhueZhVjoQteMFH2EiHC2PWwUSYWRuoQfdAsF7Nv/ipWrodkqVRm9EqnE7 TsEUfX93/yfqq0XgbsTzHlzAtTNsc6INp68WJMMPKLVzYArDPHX4UUEKmHwZfewe+GYWcNpCjY HAo= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="80694890" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 03:04:45 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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 03:04:06 -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 03:03:40 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 2/7] macb: bindings doc: use an MDIO node as a container for PHY nodes Date: Tue, 21 Jul 2020 13:02:29 +0300 Message-ID: <20200721100234.1302910-3-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.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 --- 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>; + }; }; }; From patchwork Tue Jul 21 10:02:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332898 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=J7Al6bx0; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vNW5CPBz9sQt for ; Tue, 21 Jul 2020 20:05:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729207AbgGUKFL (ORCPT ); Tue, 21 Jul 2020 06:05:11 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:59330 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbgGUKFL (ORCPT ); Tue, 21 Jul 2020 06:05:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325910; x=1626861910; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PQhdyJFUcE/B+fHmZsdxZExh6mjBo63eSp4PWdlxyO0=; b=J7Al6bx06SREzqHpSbF5MLLDs53q8K85O1bMG1SyYGMTryr4r9GNQvdZ NkMLdHewmLvnMMYAwvdqNI3hogkVLPMKiV1i614MQFjDOVQHSTmyjf9Y6 ITqrRIXeZsADuaF1AwV4n6EjFISEUrmVRlrEUINrV73doL7SzwwUXllwg 6mBmYUVdwOTqMVjheoH8oXlup2LQl/s9uwdsLhjJm9DtOFquo4eF2SJWu +GE9eyEG2FTA7JsBK6cyzKOSzPCZg4EXF1v6hDXNA0zHNB8ckBcIIdd1M nbF1saJtLmnLgr5pxbz43629k6AMfYAfLvPyh+Ip3wFNM2ZQE9D72ToGE w==; IronPort-SDR: kYOGqRBc3cKms3pWJwWEtqR4GGzfxu48uSdmDxeQBd/TcMT6FykuhbE33dUDHctBVcdjnFhIna 1KyPRFyBtFW10ThcwrhCzy7fHja3G+fmezLWhtbiO6E0JcjNtod3mnwkYLNmlw0YmrrDnI0R4g jRMbsGjpK0CtSdz982UNTyPcL20viNfUfkZzjeJZvzvmfdN/wmP02y9sNSbDDfrS0tDNNP7QQ7 OcftoEwCRpq5OSt5k/LNfasuLFntCRWn/idSqeqOAaKdog0IEvtm6HTsI7/ew76XZngnt8nBuU mB0= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="82644333" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 03:05:10 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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 03:05:09 -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 03:04:06 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 3/7] net: macb: parse PHY nodes found under an MDIO node Date: Tue, 21 Jul 2020 13:02:30 +0300 Message-ID: <20200721100234.1302910-4-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The MACB embeds an MDIO bus controller. For this reason, the PHY nodes were represented as sub-nodes in the MACB node. Generally, the Ethernet controller is different than the MDIO controller, so the PHYs are probed by a separate MDIO driver. Since adding the PHY nodes directly under the ETH node became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 89fe7af5e408..66f02c16cc7c 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -740,10 +740,20 @@ static int macb_mii_probe(struct net_device *dev) static int macb_mdiobus_register(struct macb *bp) { struct device_node *child, *np = bp->pdev->dev.of_node; + struct device_node *mdio_node; + int ret; if (of_phy_is_fixed_link(np)) return mdiobus_register(bp->mii_bus); + /* if an MDIO node is present, it should contain the PHY nodes */ + mdio_node = of_get_child_by_name(np, "mdio"); + if (mdio_node) { + ret = of_mdiobus_register(bp->mii_bus, mdio_node); + of_node_put(mdio_node); + return ret; + } + /* Only create the PHY from the device tree if at least one PHY is * described. Otherwise scan the entire MDIO bus. We do this to support * old device tree that did not follow the best practices and did not @@ -755,7 +765,6 @@ static int macb_mdiobus_register(struct macb *bp) * decrement it before returning. */ of_node_put(child); - return of_mdiobus_register(bp->mii_bus, np); } From patchwork Tue Jul 21 10:02:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332899 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=q2ejHHr+; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vPQ1ncGz9sSJ for ; Tue, 21 Jul 2020 20:06:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729227AbgGUKF7 (ORCPT ); Tue, 21 Jul 2020 06:05:59 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:43131 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgGUKF6 (ORCPT ); Tue, 21 Jul 2020 06:05:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325958; x=1626861958; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=V7QA9fOBK/Nnfx+GsuG3sKtcsrkZjHyHbu6bk9klVhM=; b=q2ejHHr+DCb9L+nJhXCQ8+TCpItJf+aLeRDBHyIlpoR9FzM9ZjHkK0Ya QTPDFKwo98f/ihoHW3hz0ughRUKZ/Gx73+l/tUts9sEOijSh42w1tdhmn JBdNRrsC5fWwH7JQk3EN0RrdMgrvGSEMqhpksCnXZjY04O9c7xUm8sdMH 3LXUzOW3EKDosp4gjbQWti3QkyDfydyZz7ITC+ZFbMQVnvFPGfdBopXFk C6O+dixw69BTIKf3piYMCwbXAKarX6ewXZkrply+1gn/AttnbOirI6wbT CVSN3JzVg87hT7cDLCzditMuOdT9Oyl55uiZtsq+Me9PeTXczKk3LNq3X Q==; IronPort-SDR: Z4fx6oc9z02gAoIOJw4m5Bk7jUwcKj0hH+5StqWXfUAeAGiBMnetAEg3z+qO5+vYuB411xOjCH 2EzBejowIXaXG+UCEk1N9d/U5JIUFikrXxxdodWpJqiMYpA1Y0RSfqS0L3bsI9VHfV93F1DiF3 BSZX8/bZIBVGZwA83BgKAx6UcYioSwMoI4+arY8iXMzARE9DejxL9I9QhuPQmDhnoOhnje1McL i0gHEqhdnnXzZcfzsL4eTgesB3rhHOD07sjTbvmik/vn1qs/zbBEp9pP7wO6nbNMN1wjibl2Gs yXQ= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="84004761" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 03:05:53 -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 03:05:52 -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 03:04:33 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb Date: Tue, 21 Jul 2020 13:02:31 +0300 Message-ID: <20200721100234.1302910-5-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- 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 ++++++++---- 4 files changed, 36 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi index b1f994c0ae79..dfcee23dcce0 100644 --- a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi @@ -84,12 +84,16 @@ macb0: ethernet@f8008000 { pinctrl-0 = <&pinctrl_macb0_default>; phy-mode = "rmii"; - ethernet-phy@0 { - reg = <0x0>; - interrupt-parent = <&pioA>; - interrupts = ; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_macb0_phy_irq>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@0 { + reg = <0x0>; + interrupt-parent = <&pioA>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_macb0_phy_irq>; + }; }; }; diff --git a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi index a06700e53e4c..9c4dce29d2fe 100644 --- a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi @@ -181,13 +181,16 @@ &macb0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_macb0_default>; phy-mode = "rmii"; - - ethernet-phy@0 { - reg = <0x0>; - interrupt-parent = <&pioA>; - interrupts = ; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_macb0_phy_irq>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@0 { + reg = <0x0>; + interrupt-parent = <&pioA>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_macb0_phy_irq>; + }; }; }; diff --git a/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts b/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts index c894c7c788a9..fc3375c43ef6 100644 --- a/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts +++ b/arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts @@ -140,11 +140,14 @@ macb0: ethernet@f8008000 { pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>; phy-mode = "rmii"; status = "okay"; - - ethernet-phy@1 { - reg = <0x1>; - interrupt-parent = <&pioA>; - interrupts = <56 IRQ_TYPE_LEVEL_LOW>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@1 { + reg = <0x1>; + interrupt-parent = <&pioA>; + interrupts = <56 IRQ_TYPE_LEVEL_LOW>; + }; }; }; diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index a927165ea7c2..a62f475d9d0a 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -149,10 +149,14 @@ macb0: ethernet@f8008000 { phy-mode = "rmii"; status = "okay"; - ethernet-phy@1 { - reg = <0x1>; - interrupt-parent = <&pioA>; - interrupts = ; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@1 { + reg = <0x1>; + interrupt-parent = <&pioA>; + interrupts = ; + }; }; }; From patchwork Tue Jul 21 10:02:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332900 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Nv+LGGO3; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vQ02fDzz9sR4 for ; Tue, 21 Jul 2020 20:06:32 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729243AbgGUKG3 (ORCPT ); Tue, 21 Jul 2020 06:06:29 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:43206 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgGUKG2 (ORCPT ); Tue, 21 Jul 2020 06:06:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325988; x=1626861988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ugupFvNUPF8FuehP3ksTBUyo0lliEzV3XM3HFd37shU=; b=Nv+LGGO3QpdX8N0qLuAzvQkf03XkhXe2GFxjU1GBM1Q9SQJghUAXVbRH tt/uSd7ujolXwpqiAMWZCZ0kmygtySws2EaEfF/PbUxz1Qf7zSD323BJk dSCSbF60z+fmd279EUEpz8jsO7ols99GzYTbAnX44ZfRm+G+xogHZ/0g8 9nvcNxdpQkX76Oj8bTe7/IkANW3XAewWlpCCDDh51oj22vbPPKm9F2p0X C4ZRT7TJ4adTVBigCuSWEb7TfqUZp/2nPPVkKP9V+fFJ6zcF4nzW1cDD0 GCzHz6jHQh1/KL/ibL76zUPozH9Ac7oCugULT2cD+/AYrd5wIxhmY2nKu A==; IronPort-SDR: FGePf6p8HLuXtALEkGo3Low74GqV4AxxjBQqDVu8qRvPfx1kKZC7BrozdV2daQo2ur73pQULTZ Oc1Scj8uNmDy/2LX08X+q9PpiUocbKfU0+goT3k+lyXwhF5w0tP7WQ6IVe8fMMC1MN8aGMh4n+ FIWuneeIZT2RrFHIp8ber/wfMgb/V67LaiCGsi6Kl/fx+D+vQurIj3xct+S9VYE2zXkrpFhSM5 Qnx3r8P+5+hQ6T6IUC7mlwcmku8sEw0jiy45fgNx7JnBimaps7r3HeQFbKSMVcU9UTlq6PrLHM VJM= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="84004861" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jul 2020 03:06:28 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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 03:06:25 -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 03:05:14 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb Date: Tue, 21 Jul 2020 13:02:32 +0300 Message-ID: <20200721100234.1302910-6-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91-sama5d3_xplained.dts index 61f068a7b362..25d2646ce4cb 100644 --- a/arch/arm/boot/dts/at91-sama5d3_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d3_xplained.dts @@ -133,8 +133,12 @@ macb0: ethernet@f0028000 { #size-cells = <0>; status = "okay"; - ethernet-phy@7 { - reg = <0x7>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@7 { + reg = <0x7>; + }; }; }; @@ -200,8 +204,12 @@ macb1: ethernet@f802c000 { #size-cells = <0>; status = "okay"; - ethernet-phy@1 { - reg = <0x1>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@1 { + reg = <0x1>; + }; }; }; From patchwork Tue Jul 21 10:02:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332901 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=h0gfmq+H; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vQq41pSz9sSJ for ; Tue, 21 Jul 2020 20:07:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbgGUKHM (ORCPT ); Tue, 21 Jul 2020 06:07:12 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:5896 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgGUKHL (ORCPT ); Tue, 21 Jul 2020 06:07:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595326031; x=1626862031; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/xQWcdSlHsWygAH/DfFJrDsm8/BKa5avthMl6a1HWjg=; b=h0gfmq+HgCYwi812uCv5TIbRoBMlBeV6APOdwpXmRHiApLNhQaFq5Cbp Z9ZOoSu5OpL2EgoqVKPg4v780gIeUlaB8Km+P/5ONCYm+mthjBrla4Rj/ cAvmaNvepUG9Kc6JopbGofK4JOQsSCOkdGACpvQMIrpQ58pX/XY8AXJb7 DeRpLID9TP7tAS0raZq4oCaEaUMTakO3yx2bf/tUOeWpc41sb5nPt0FoA Ze3qaL7cTd4pnEHmKBN6aN9Jc6QxPWOblE5aWN5DxRQXCGtUdp3/q3sOa pgbYzOhoMguJCsD/3lRB62q4fYR4Rb0tTjcHQY9/dnfrVJEo8sQ0l0WCB Q==; IronPort-SDR: ICNgzqqeu9rUrNsgQ8lG0EgtR+5CUIT2rWm3noJC47ST2YO59lg5kd8CSamv9JzekXwZNfI7YN CccsGY0wvoTfACjMos9glVJG5bead1RbROewdcyfcYLGhzW7MlZs39BFx94181tsGSK9+h6yUP ItNZI1ShkByqqk2t0UaaA+JC5Tma0ZLl4waMV0FvdO0FmLAbC7HZOTXlAJOdD9IXjaUA0O5W7v xoOZm6zLoTpCSXqC4ZjXkruXROb99NxMSU70Uw9esi/cYXtK+U62Us5lQxKeOHB0RN569Lz+Z0 Ge8= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="84749239" 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 03:07:10 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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 03:07:08 -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 03:05:56 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb Date: Tue, 21 Jul 2020 13:02:33 +0300 Message-ID: <20200721100234.1302910-7-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch/arm/boot/dts/at91-sama5d4_xplained.dts index 924d9491780d..62598d06aead 100644 --- a/arch/arm/boot/dts/at91-sama5d4_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d4_xplained.dts @@ -59,10 +59,14 @@ macb0: ethernet@f8020000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>; - phy0: ethernet-phy@1 { - interrupt-parent = <&pioE>; - interrupts = <1 IRQ_TYPE_LEVEL_LOW>; - reg = <1>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@1 { + interrupt-parent = <&pioE>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + reg = <1>; + }; }; }; From patchwork Tue Jul 21 10:02:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1332904 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=I1LiMBUt; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B9vRL5qfZz9sQt for ; Tue, 21 Jul 2020 20:07:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729195AbgGUKHj (ORCPT ); Tue, 21 Jul 2020 06:07:39 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:5938 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbgGUKHi (ORCPT ); Tue, 21 Jul 2020 06:07:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595326058; x=1626862058; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q+YIkrycvE7mcy6+CcZBaCVfDuosYUTIYGmg/IJOMjg=; b=I1LiMBUt99LODxcE+2imt48hzOQ6zg3RSUn8IrxN3MWZHwlvGaXGBsI8 4DG8IRm3d2kZpOuVCCEAsA2vwHqEv4votN9UfuhojB/ynAZ+/Mh/TO+Te k8L+iIMnWBwCIBvrNEO0aZQA1UxRIEaRyyQA9/ffz5tadR7nQg1is6uVR 7aNi0UDEVCFXIBJnDg9XyhxlFhHGwIvUXHFwG55wkO1FiDr8yDC4AezQI akKwNZFzo+4qzU/ZD0R4ziTUpU9kzHOSH9pw34lIudSDZnsEAYSmXfmI1 ZRjPQ37vAWDMHQPUGsSI7C7dWR+/IXEeWC4L+qkbCCQQxHUaPgBKY7zg/ Q==; IronPort-SDR: 85HL3tkoVh4AbHNyzFxxHAv73QwEqsDra0lKxLidJo5i0rztM1sluwyCx1/A36/iYhb5DYgjiF MRx0134elbGoDVP7csbkRUty+sor0PGgay+XaV/UZCvehnDN0di+Pz3F977FcC5Kdt7Zhk2Yt2 PwwOS0r0DZfE5nknjc9wPTsBPnsFuXizVy0g+5tWMzettnaD37EatDtyuvI4A4YATuMAW0xnVJ uJNq4Glj3UtTDDVF9ZeO5eSBuBtwYA4Bt/f1DE6NanRIza/MyocMF5elmXTtxj89CqXT7CPOBr jI8= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="84749272" 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 03:07:37 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) 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 03:06:55 -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 03:06:33 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb Date: Tue, 21 Jul 2020 13:02:34 +0300 Message-ID: <20200721100234.1302910-8-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> References: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts index a5f5718c711a..ba871ebe10d4 100644 --- a/arch/arm/boot/dts/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts @@ -324,8 +324,12 @@ &macb0 { pinctrl-0 = <&pinctrl_macb0_rmii>; status = "okay"; - ethernet-phy@0 { - reg = <0x0>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethernet-phy@0 { + reg = <0x0>; + }; }; };