From patchwork Thu Jun 27 15:31:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 11019909 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DE551398 for ; Thu, 27 Jun 2019 15:32:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B33C201BC for ; Thu, 27 Jun 2019 15:32:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CA1F2022B; Thu, 27 Jun 2019 15:32:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 77071201BC for ; Thu, 27 Jun 2019 15:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=Uw/uCDldbykaXIVOgPmnpV8VEi1YGvsgY7BoiP97liw=; b=iAhOb7dc+rhTk6 qfzt3uhCZqoQspmNOWLX6aHj+OMGwAZqE/AyCmnLdmLPGCfbEZ5jrgORnsrhdC2zV18xtDxg3Fxw8 ZpANqlyJGX2XowwtYKLTeKSlxd3JJTvZZOt0Fkl3xVKC2WFehQVy+1jUpo+pag3skrBPF3LQEzRpC k3kVuc+UmCgYDSLXwyhIXM7oe0Ut9LmOr8PlVeDjTDlycMtzF6pE88Ws6Y7v4vX59w9zkzC3J8EXu z/aDGD5uiMevtMPSIRAseQNI5W2O/bI93RFfOFKY/YcG3kPBn5qqgulHm2gBRxJ+7sliaC+U8dD0p iQ4ECpsPbayuOvlUXvTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgWNn-0006HT-BT; Thu, 27 Jun 2019 15:32:19 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgWNW-0006AH-TT for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 15:32:11 +0000 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 01763C0008; Thu, 27 Jun 2019 15:31:56 +0000 (UTC) From: Maxime Ripard To: Mark Rutland , Rob Herring , Frank Rowand , "David S . Miller" , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v4 00/13] net: Add generic and Allwinner YAML bindings Date: Thu, 27 Jun 2019 17:31:42 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_083204_287631_F15AAF9B X-CRM114-Status: GOOD ( 14.26 ) 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: devicetree@vger.kernel.org, Florian Fainelli , Alexandre Torgue , Andrew Lunn , =?utf-8?q?Antoine_T=C3=A9nart?= , netdev@vger.kernel.org, Maxime Chevallier , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Heiner Kallweit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This is an attempt at getting the main generic DT bindings for the ethernet (and related) devices, and convert some DT bindings for the Allwinner DTs to YAML as well. This should provide some DT validation coverage. Let me know if you have any questions, Maxime Changes from v3: - Added a cover letter - Dropped the phy-mode deprecation, and the DT changes moving to phy-connection-type - Fixed the mdio example node name - Deprecated the fixed-link array property, in favor of the fixed-link subnode Changes from v2: - Switched to the deprecated keyword to describe deprecated properties - Deprecated phy-mode, phy and phy-handle - Added patches to switch to phy-connection-type and phy-device for Allwinner DTs - Changed the A83t GMAC delays to use multipleOf instead of an enum - Fix the snps,*pbl properties types - Add a generic MDIO YAML schemas Changes from v1: - Move the DWMAC SoC specific bindings to separate documents - Mark snps,reset-gpio (and related) as deprecated and fixed the Allwinner DTs accordingly - Restrict snps,tso to only a couple of compatibles - Use an enum for the compatibles - Add a custom select statement with the compatibles of all the generic compatibles, including the deprecated ones. Remove the deprecated ones from the valid compatible values to issue a warning when used. - Add a patch to MAINTAINERS for the PHY YAML binding - Add missing compatible options for the PHY, and missing phy speeds - Add a custom select clause to make the PHY binding validate all phy nodes, and not just the ones with a compatible - Validate the fixed-link array elements - Removed deprecated properties (phy-mode, phy, phy-device) - Restrict the number of items under link-gpios to 1 Maxime Ripard (13): dt-bindings: net: Add YAML schemas for the generic Ethernet options dt-bindings: net: Add a YAML schemas for the generic PHY options dt-bindings: net: Add a YAML schemas for the generic MDIO options MAINTAINERS: Add Ethernet PHY YAML file dt-bindings: net: phy: The interrupt property is not mandatory dt-bindings: net: sun4i-emac: Convert the binding to a schemas dt-bindings: net: sun4i-mdio: Convert the binding to a schemas dt-bindings: net: stmmac: Convert the binding to a schemas dt-bindings: net: sun7i-gmac: Convert the binding to a schemas dt-bindings: net: sun8i-emac: Convert the binding to a schemas dt-bindings: net: dwmac: Deprecate the PHY reset properties ARM: dts: sunxi: Switch to the generic PHY properties ARM: dts: sunxi: Switch from phy to phy-handle Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml | 55 ++++++++++- Documentation/devicetree/bindings/net/allwinner,sun4i-a10-mdio.yaml | 70 ++++++++++++- Documentation/devicetree/bindings/net/allwinner,sun4i-emac.txt | 19 +--- Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt | 27 +----- Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt | 27 +----- Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml | 66 ++++++++++++- Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 321 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- Documentation/devicetree/bindings/net/dwmac-sun8i.txt | 201 +----------------------------------- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 204 ++++++++++++++++++++++++++++++++++++- Documentation/devicetree/bindings/net/ethernet-phy.yaml | 178 +++++++++++++++++++++++++++++++- Documentation/devicetree/bindings/net/ethernet.txt | 69 +------------ Documentation/devicetree/bindings/net/fixed-link.txt | 55 +---------- Documentation/devicetree/bindings/net/mdio.txt | 38 +------- Documentation/devicetree/bindings/net/mdio.yaml | 51 +++++++++- Documentation/devicetree/bindings/net/phy.txt | 80 +-------------- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 410 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- Documentation/devicetree/bindings/net/stmmac.txt | 179 +------------------------------- MAINTAINERS | 1 +- arch/arm/boot/dts/sun4i-a10-a1000.dts | 2 +- arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts | 2 +- arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 2 +- arch/arm/boot/dts/sun4i-a10-hackberry.dts | 2 +- arch/arm/boot/dts/sun4i-a10-itead-iteaduino-plus.dts | 2 +- arch/arm/boot/dts/sun4i-a10-jesurun-q5.dts | 2 +- arch/arm/boot/dts/sun4i-a10-marsboard.dts | 2 +- arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 2 +- arch/arm/boot/dts/sun4i-a10-pcduino.dts | 2 +- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 2 +- arch/arm/boot/dts/sun5i-a10s-wobo-i5.dts | 2 +- arch/arm/boot/dts/sun6i-a31-colombus.dts | 2 +- arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 8 +- arch/arm/boot/dts/sun6i-a31-i7.dts | 2 +- arch/arm/boot/dts/sun6i-a31-m9.dts | 2 +- arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dts | 2 +- arch/arm/boot/dts/sun6i-a31s-cs908.dts | 2 +- arch/arm/boot/dts/sun6i-a31s-sina31s.dts | 2 +- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 8 +- arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts | 2 +- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 2 +- arch/arm/boot/dts/sun7i-a20-bananapro.dts | 2 +- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 2 +- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 2 +- arch/arm/boot/dts/sun7i-a20-hummingbird.dts | 11 +-- arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts | 2 +- arch/arm/boot/dts/sun7i-a20-icnova-swac.dts | 2 +- arch/arm/boot/dts/sun7i-a20-itead-ibox.dts | 2 +- arch/arm/boot/dts/sun7i-a20-m3.dts | 2 +- arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 2 +- arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts | 10 +- arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts | 2 +- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 +- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 2 +- arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts | 2 +- arch/arm/boot/dts/sun7i-a20-orangepi.dts | 2 +- arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts | 2 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 2 +- arch/arm/boot/dts/sun7i-a20-wits-pro-a20-dkt.dts | 2 +- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- arch/arm/boot/dts/sun9i-a80-optimus.dts | 2 +- 59 files changed, 1416 insertions(+), 746 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-a10-mdio.yaml delete mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-emac.txt delete mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-mdio.txt delete mode 100644 Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml delete mode 100644 Documentation/devicetree/bindings/net/dwmac-sun8i.txt create mode 100644 Documentation/devicetree/bindings/net/ethernet-controller.yaml create mode 100644 Documentation/devicetree/bindings/net/ethernet-phy.yaml create mode 100644 Documentation/devicetree/bindings/net/mdio.yaml create mode 100644 Documentation/devicetree/bindings/net/snps,dwmac.yaml base-commit: 8087b004bd099367c29d3a163950bc4b162ebc3c