From patchwork Mon Jun 10 09:25:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 10984561 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 2637914C0 for ; Mon, 10 Jun 2019 09:30:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15CE5285AB for ; Mon, 10 Jun 2019 09:30:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09F9328643; Mon, 10 Jun 2019 09:30:35 +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 9E634285E5 for ; Mon, 10 Jun 2019 09:30:34 +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: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=8sVJ1u0rQ8DqSAmGX054Cjvg8qTXc+oijsabX6bcjak=; b=Li6glj93RB51cE ciLSpHhK37ws30YSs0dcKHZ61Ggv/qSPcQCj0FyMpw67i6nwRnwC8oTAIzUuOOxJhajzu513AK3vm AYdTsLFYpC8PQUGQK/ROIEP32M69knO5xscwLoQ6EvgbisYbm4FBbyXeBKjGwh+0JcRwEVzYzpM87 6WwbN/OemrPvU6+kxPwUoS/Fa5mHZv5tw//BGsyGbXT57LnRYqzFM8lZihw7nH9kjjWIrEijjrkBq CmBz/V0oe7gJFfhb0oZBoSFcvyNzA0glunN2T5hYUk6D0ZpHgyvYcVWRU+AMZBHgP0XDWkRDYPweS sT1H2IWQTXQI3t2NdWKg==; 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 1haGdG-0001Uv-2O; Mon, 10 Jun 2019 09:30:26 +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 1haGZi-0006UH-U0 for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2019 09:26:52 +0000 X-Originating-IP: 90.88.159.246 Received: from localhost (aaubervilliers-681-1-40-246.w90-88.abo.wanadoo.fr [90.88.159.246]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id A773AC000B; Mon, 10 Jun 2019 09:26:42 +0000 (UTC) From: Maxime Ripard To: Mark Rutland , Rob Herring , Frank Rowand , "David S . Miller" , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v2 10/11] dt-bindings: net: dwmac: Deprecate the PHY reset properties Date: Mon, 10 Jun 2019 11:25:49 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: <91618c7e9a5497462afa74c6d8a947f709f54331.1560158667.git-series.maxime.ripard@bootlin.com> References: <91618c7e9a5497462afa74c6d8a947f709f54331.1560158667.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190610_022648_002905_D1099605 X-CRM114-Status: GOOD ( 11.99 ) 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 Even though the DWMAC driver uses some driver specific properties, the PHY core has a bunch of generic properties and can deal with them nicely. Let's deprecate our specific properties. Signed-off-by: Maxime Ripard Reviewed-by: Martin Blumenstingl --- Changes from v1: - New patch --- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 54 ++++++------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index c48a089edc21..a2d56e8a7a39 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -171,26 +171,6 @@ properties: * snps,low_credit, max read outstanding req. limit * snps,priority, TX queue priority (Range 0x0 to 0xF) - snps,reset-gpio: - maxItems: 1 - description: - PHY Reset GPIO - - snps,reset-active-low: - $ref: /schemas/types.yaml#definitions/flag - description: - Indicates that the PHY Reset is active low - - snps,reset-delays-us: - allOf: - - $ref: /schemas/types.yaml#definitions/uint32-array - - minItems: 3 - maxItems: 3 - description: - Triplet of delays. The 1st cell is reset pre-delay in micro - seconds. The 2nd cell is reset pulse in micro seconds. The 3rd - cell is reset post-delay in micro seconds. - snps,aal: $ref: /schemas/types.yaml#definitions/flag description: @@ -253,6 +233,36 @@ properties: required: - compatible + ## Deprecated properties + # + # Deprecated in favor of ethernet phy's reset-gpios property + # snps,reset-gpio: + # maxItems: 1 + # description: + # PHY Reset GPIO + + # Deprecated in favor of ethernet phy's reset-gpios property + # snps,reset-active-low: + # $ref: /schemas/types.yaml#definitions/flag + # description: + # Indicates that the PHY Reset is active low + + # Deprecated in favor of ethernet phy's reset-assert-us and + # reset-deassert-us properties + # snps,reset-delays-us: + # allOf: + # - $ref: /schemas/types.yaml#definitions/uint32-array + # - minItems: 3 + # maxItems: 3 + # description: + # Triplet of delays. The 1st cell is reset pre-delay in micro + # seconds. The 2nd cell is reset pulse in micro seconds. The 3rd + # cell is reset post-delay in micro seconds. + +# dependencies: +# snps,reset-active-low: ["snps,reset-gpio"] +# snps,reset-delay-us: ["snps,reset-gpio"] + required: - compatible - reg @@ -260,10 +270,6 @@ required: - interrupt-names - phy-mode -dependencies: - snps,reset-active-low: ["snps,reset-gpio"] - snps,reset-delay-us: ["snps,reset-gpio"] - allOf: - $ref: "ethernet-controller.yaml#" - if: