Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp766255pxy; Wed, 28 Apr 2021 13:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpoZxK6mirBdzgwdkVU9SqJ3LjSBCdMV4pRodzwSEjI99lMO4AWMfMC451rTxZ+DV+K85v X-Received: by 2002:aa7:c903:: with SMTP id b3mr6644282edt.296.1619643066684; Wed, 28 Apr 2021 13:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643066; cv=none; d=google.com; s=arc-20160816; b=lbAM9Jl09H2cUthBm/bPjY6YDKwcf9xatpn4z3FxEV5/iouneHiJ3RUE6ivDdGjR+H g6ocpnswLh89yghQOZSLmWIiP36GBpGZFVVvDRb6jmTejjH8bWii7qb+5ARhzZe91xly ewJuc3pBTSP2OnYawiWzQjgRdzDf+AuQdipruz/JQKlKJKvfYNIHuUzgN6+Ht/Uweslz PaTfChv/Gbd3958TZkNRtVFXYgkOH0OXSWmDtRTEZZf64kmtO2SOcBX17OepSRk9tZhY bhatG9md5E4/LiB5UHCAoJDZLi+x3vaxkmf+8Fwp+TKAZOL3Fbydc2kmcf44CCX9nbu5 SwZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=s37poLb+YU/j8PS1vBOf/p0j3PbxlMcEPm2Cc7PyPFc=; b=Ijb4iULcGpKEKPUQluI7K+/a+kRNG3q6TeWb8b7UfGoNDeiyeGI+swwDXmUS5cwyEx XFx8HWDujSrovNrop+glhr8NljgMPWZnZewl5cF4Wj1Z78HufC3CybWvyhxhKx6PQUIK x7ML9mYF2J7k9Zif9hSEq4ONMbi57LuzHCcBkgDzD/FHYO/XKQ6qoKVhYIPJhnMFqb40 Tpm1BYpo+TyLMe+tfjGkWspLaegijAPtcfbuh34kvobA6pQDaVvYQ/0Szclm+eAnAQn5 PNJFcNOiBlvES3EyfT/O5BgsklBECXr6Pwih7kBCFZZgVXrWy9lCVMhIq+ZIt0dhGR8o nrBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="lAYP6D/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr19si545168ejb.364.2021.04.28.13.50.43; Wed, 28 Apr 2021 13:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="lAYP6D/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231469AbhD1QcR (ORCPT + 99 others); Wed, 28 Apr 2021 12:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235502AbhD1QcQ (ORCPT ); Wed, 28 Apr 2021 12:32:16 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D485C061574 for ; Wed, 28 Apr 2021 09:31:29 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id g65so5026015wmg.2 for ; Wed, 28 Apr 2021 09:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s37poLb+YU/j8PS1vBOf/p0j3PbxlMcEPm2Cc7PyPFc=; b=lAYP6D/xe5gDXAPQP7KVnwObFqfRXHFY5GwBElU671lGEh2PLg8GkgZQYIEWFZED8n ICkiqNuM1cYoOK846RRK+9QOjGnxHTEqsRwC4h+NRG51WOu20qb1k/cFss7HQrwFVlEa C28uwYS783D4w2SrsBZulhZ6uLoOgfvyDaDy7kyhqotdjC1sCnGD2iV1K7Y/gOJxlacD /IZkgCG35q3uJ961iPnjWviyWb3zd9tdyIIAwbMjBo3rUbrq3HLfGgAIFf81DpKCj4Qz EZPkZGatRmZdkGoLYQHUMFZHyBQbolAsdpewylqJrn0CaDkCBd1PSoWrPazfBj7Jowe3 EkQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s37poLb+YU/j8PS1vBOf/p0j3PbxlMcEPm2Cc7PyPFc=; b=CkSAOfb2PEdo9zoKLBOqKEUm+dn3bhXywImNfsxhvK569iBRxs9XuW9fKV6NUdjVwi rqOdJz0L4ZNaq/pYDVYHo8SWNN2CmOqpC2VKljL5FdTROqE0IxL7lEElqDk+hTT7q2rt YDrQ6WiISWoFTGhcJeDEe5KuS2pDRxWQQwE4j+7PpYf9WIZms5jCGtRXZRRo+j8oi0SO YL7IyJ8uwOgYyrnLUAziICELGKXzHLLKup7viIdHm+YmIARSbKWaVG/ZNkq0XvDPMKlN Na+0kdYCY/ZXzsIIZZ8yQY9SVflbtr0EXzQxK/8VhvDsdTMCliwActTCvjt9fqPHTXdc eYrA== X-Gm-Message-State: AOAM531GdE4fjkq/vcIzwr/oaHPGOX7x3jkP9Fa8u3HHQX1vxgL5WuZL kYuSb+swQUvQOEfbP9TPwrhvyQ== X-Received: by 2002:a7b:c74d:: with SMTP id w13mr5753522wmk.25.1619627487898; Wed, 28 Apr 2021 09:31:27 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id c15sm380339wrr.3.2021.04.28.09.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 09:31:27 -0700 (PDT) From: Corentin Labbe To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, robh+dt@kernel.org, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Corentin Labbe Subject: [PATCH] dt-bindings: net: Convert mdio-gpio to yaml Date: Wed, 28 Apr 2021 16:31:20 +0000 Message-Id: <20210428163120.3657234-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Converts net/mdio-gpio.txt to yaml Signed-off-by: Corentin Labbe --- This patch is a part of the work on fixing all DTs on gemini platform. .../devicetree/bindings/net/mdio-gpio.txt | 27 --------- .../devicetree/bindings/net/mdio-gpio.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/mdio-gpio.txt create mode 100644 Documentation/devicetree/bindings/net/mdio-gpio.yaml diff --git a/Documentation/devicetree/bindings/net/mdio-gpio.txt b/Documentation/devicetree/bindings/net/mdio-gpio.txt deleted file mode 100644 index 4d91a36c5cf5..000000000000 --- a/Documentation/devicetree/bindings/net/mdio-gpio.txt +++ /dev/null @@ -1,27 +0,0 @@ -MDIO on GPIOs - -Currently defined compatibles: -- virtual,gpio-mdio -- microchip,mdio-smi0 - -MDC and MDIO lines connected to GPIO controllers are listed in the -gpios property as described in section VIII.1 in the following order: - -MDC, MDIO. - -Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" -node. - -Example: - -aliases { - mdio-gpio0 = &mdio0; -}; - -mdio0: mdio { - compatible = "virtual,mdio-gpio"; - #address-cells = <1>; - #size-cells = <0>; - gpios = <&qe_pio_a 11 - &qe_pio_c 6>; -}; diff --git a/Documentation/devicetree/bindings/net/mdio-gpio.yaml b/Documentation/devicetree/bindings/net/mdio-gpio.yaml new file mode 100644 index 000000000000..55c629cb5e57 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mdio-gpio.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/mdio-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MDIO on GPIOs + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Heiner Kallweit + +allOf: + - $ref: "mdio.yaml#" + +properties: + compatible: + enum: + - virtual,mdio-gpio + - microchip,mdio-smi0 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + gpios: + minItems: 2 + description: | + MDC and MDIO lines connected to GPIO controllers are listed in + the gpios property as described in section VIII.1 in the + following order: MDC, MDIO. + +#Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" +#node. +unevaluatedProperties: false + +examples: + - | + aliases { + mdio-gpio0 = &mdio0; + }; + + mdio0: mdio { + compatible = "virtual,mdio-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpios = <&qe_pio_a 11 + &qe_pio_c 6>; + ethphy0: ethernet-phy@0 { + reg = <0>; + }; + }; +... -- 2.26.3