From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F36FC433DF for ; Tue, 21 Jul 2020 10:03:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A47920729 for ; Tue, 21 Jul 2020 10:03:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="t7NLAUNV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbgGUKDh (ORCPT ); Tue, 21 Jul 2020 06:03:37 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:59189 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgGUKDg (ORCPT ); Tue, 21 Jul 2020 06:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325816; x=1626861816; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5y3M4erh4o4gJ1AXNqxre7Fy7SpM8TICAXCLcUxyKsc=; b=t7NLAUNVX/a4F8H7/d3eNAtnBKai9DC5e+0Bu+8D9WP2PISX7moz69JY qSLmPHMI0TEMsJbSelsdK7f9PDNs7M7CyEPQEIEppl8+oJjYIEnrIRdU/ WvxvurT73Zt+kDxIf7BtfPOvE39eGRz64QJDERR9e5XMJjUz4Dis0B1Lw niaou7nUrBs1U96LBiAISDjfzxCoJ1jBW2ZaV51MkjmXY3tS9s0cd0u65 MNRjmIrCIdqWPrfWjOpcqhVy8QnZT8/P/iLLexqUIngN3iQsCJnj0auJb YCcN4gf2VQBspCcVqA782L5TA3ocLYIIeiCLgFIuKImFj/FY4Cb2PAAC8 w==; IronPort-SDR: RF2hcI+2CPrJIAMlvIW6uHgzNso0kBEUp9dkwPK3HLRF9xj9S4qITBBAeSgve+gI0ZyJQwrsPO 46loHL0oL+9FizR3Tl6e1wl2cNTD+t77o/LxACX09pYedQpnbnOb7KBORRYkggxLVhwcAT1b+p S29k79JLjrIfhLW/1Omp1Owt5AGouSjxdhZmmG06yL/owc5pMysaeREx+NCPvWbdu7kwsHnKqB RbF0s+0jYThhG0DJ479e1yNW5CS7ZKH4UIw4VEPqQu2UddNfbWkJ8otaz3qlxFsTEbixqlobKd BXs= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="82644217" 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:03:35 -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:03:34 -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:15 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH net-next 0/7] Add an MDIO sub-node under MACB Date: Tue, 21 Jul 2020 13:02:27 +0300 Message-ID: <20200721100234.1302910-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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. Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() macb: bindings doc: 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 .../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 | 19 ++++++++++++------- 9 files changed, 86 insertions(+), 42 deletions(-) -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D80B0C433DF for ; Tue, 21 Jul 2020 10:04:57 +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 A144020729 for ; Tue, 21 Jul 2020 10:04:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N4d57VxA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="t7NLAUNV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A144020729 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+linux-arm-kernel=archiver.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=Tj03VKIgf2ofBT/6K/oSV5XsTfoSKYG6ZKL5gi2Vs1M=; b=N4d57VxAgd4MdoeQhAyPyCbN/r uF8zwki3CAtx8lghQUgvgDv1NcM5BmaegtE3chF7l3PCNbT/GBCTYhvTGY0VZ4dTzISHJr8t0E/0P XHepi7SnlhrNFj7N8V9TCosAg/63GCrqUjRK64nq3+vRM0hII89OEg7xAnkBb8NRs/JP4Cyt9iaR2 CmgPB/VFTzUp8W9hTS9xDOSHPmWzyPMiOR+9JBsyMocEveiuIW4RK7+Rw/2rMi8hKPuozsaHSUuX5 VgxITyXVO1+LEJ1eQ3D5rAoGyeV5iiTv8CzgQKb8r0AeegcJJLGG5mrgwC9rpiFl0b3TNaNt6HNyc icptxhHQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxp7c-0005Bo-Ao; Tue, 21 Jul 2020 10:03:40 +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 1jxp7Z-0005B5-2M for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2020 10:03:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595325816; x=1626861816; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5y3M4erh4o4gJ1AXNqxre7Fy7SpM8TICAXCLcUxyKsc=; b=t7NLAUNVX/a4F8H7/d3eNAtnBKai9DC5e+0Bu+8D9WP2PISX7moz69JY qSLmPHMI0TEMsJbSelsdK7f9PDNs7M7CyEPQEIEppl8+oJjYIEnrIRdU/ WvxvurT73Zt+kDxIf7BtfPOvE39eGRz64QJDERR9e5XMJjUz4Dis0B1Lw niaou7nUrBs1U96LBiAISDjfzxCoJ1jBW2ZaV51MkjmXY3tS9s0cd0u65 MNRjmIrCIdqWPrfWjOpcqhVy8QnZT8/P/iLLexqUIngN3iQsCJnj0auJb YCcN4gf2VQBspCcVqA782L5TA3ocLYIIeiCLgFIuKImFj/FY4Cb2PAAC8 w==; IronPort-SDR: RF2hcI+2CPrJIAMlvIW6uHgzNso0kBEUp9dkwPK3HLRF9xj9S4qITBBAeSgve+gI0ZyJQwrsPO 46loHL0oL+9FizR3Tl6e1wl2cNTD+t77o/LxACX09pYedQpnbnOb7KBORRYkggxLVhwcAT1b+p S29k79JLjrIfhLW/1Omp1Owt5AGouSjxdhZmmG06yL/owc5pMysaeREx+NCPvWbdu7kwsHnKqB RbF0s+0jYThhG0DJ479e1yNW5CS7ZKH4UIw4VEPqQu2UddNfbWkJ8otaz3qlxFsTEbixqlobKd BXs= X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="82644217" 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:03:35 -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:03:34 -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:15 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH net-next 0/7] Add an MDIO sub-node under MACB Date: Tue, 21 Jul 2020 13:02:27 +0300 Message-ID: <20200721100234.1302910-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_060337_235407_61A96419 X-CRM114-Status: UNSURE ( 6.88 ) X-CRM114-Notice: Please train this message. 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() macb: bindings doc: 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 .../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 | 19 ++++++++++++------- 9 files changed, 86 insertions(+), 42 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel