Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp580536pxy; Fri, 30 Apr 2021 11:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcLj741QImw+n710ObmAeeYNVfhMrCv0KT4fwL49gbblDKbTzGkOyTXcZVf3usEyuG3eMn X-Received: by 2002:a50:ed0a:: with SMTP id j10mr7575597eds.22.1619807477550; Fri, 30 Apr 2021 11:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619807477; cv=none; d=google.com; s=arc-20160816; b=cjMPVzqs38hCg2LDJHip0i9aeK9H6yr0UrbXQzVULPWn36LxchZnrRDdoOnWziHjaa p5zMmdWIidw26TtC1/JZ0gn4enqTLXBYfsvcFn2UuPu2cr1vbklark5d/8nI93o0ryQl Tk+RcESfPIDmB/dCDRo984BuGHtg7KTSLUHqs5e9DYc6A2fSZg7dn+Z95oUnLDUqjHMx ZpshVMoJkaq4eW1YnBphIBL5dIPD00zwyzaSQfzD8ylQiIgnLWb5uPSHdvACn5PDK+6G 4PWqieb3NQvm35VYk5EYWFxlPosaPoUr5BsEoclBEeSivPE61BQ+asdyQWC6CA1Fxm4L S8ZQ== 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=Q48xkUDL5m0902EezKV/zpsj/dv/vtHcGNdT7vBOQFE=; b=SU3/2FAQrUAdKG+QKlIGzqxD1Sb2m7/hC7Jzk7ybU5tYnf3melC+cHmCgevjZLXfJ1 0afs+IikMNwGyKjDMatITBiiLuKGnY+P0nAZcIKUVHN4tbTQhG5O7uxqXji+aVcal2mp 3Ndf7jLHkJAEV0gKQtL47XPQf6LyKpahtqIGPwh/7Rrr53/HY7gnuDuF4Gf2aqQFVfdl b3jkp/Pg3C2nOwUyNYr8HsEsJDWRWqTPZAJzwxVT/ZW+ImPM2nTn+VP94j2cQkSdKpcm uoRQjg9X0psAMu9NyOdk5dSzhAoqYwE/+u2ia2zx07LqKFUpYiTLsF1LWMq450pEGk+8 vEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=eqXDxMpb; 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 dn20si4672489ejc.511.2021.04.30.11.30.52; Fri, 30 Apr 2021 11:31:17 -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=eqXDxMpb; 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 S231176AbhD3Sai (ORCPT + 99 others); Fri, 30 Apr 2021 14:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbhD3Sai (ORCPT ); Fri, 30 Apr 2021 14:30:38 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0F01C06174A for ; Fri, 30 Apr 2021 11:29:49 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id f15-20020a05600c4e8fb029013f5599b8a9so2207907wmq.1 for ; Fri, 30 Apr 2021 11:29:49 -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=Q48xkUDL5m0902EezKV/zpsj/dv/vtHcGNdT7vBOQFE=; b=eqXDxMpbRa9jxeP0xddMNS/VK8JhDK1dDygXovckB/aNwJHyMlZZ02qEl2n+hmR34a dVC0bJL1Y88pO2Y6ztJdct1gVYbQMOvr737SYFvHvAP21HnK2GmbDMY/ENHn9xqyRqtD 2c/04x0Fimpr0MnQgWwdDbthYxUJhNwqFGdc5MWNyFu1JHkDuJveWa/Ym6x5TBPLqMnR ipxbkHmldGzDmcPlV9ENRsII59r5RLj9/FAbk8cIGB1FDq5nJm+x9wTEeT92WeJli5hL F58PUrNLEn7ZFC0HBri4xhR6xQDyFys/woJYehoB0VN/mO/iPML/+BrZunq5ugWw6Xjr j/bw== 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=Q48xkUDL5m0902EezKV/zpsj/dv/vtHcGNdT7vBOQFE=; b=GQuSyVQUdpEWHfOChNMhoJi8QV0hWBncq4Ea+EZxHvRKa8vbQgHbSG1aQEX6pw7NS6 xjrBXwvENnBjnbBwzJv7xCDZTlXetliYXNvlbM/iGSZUboTx6X96nKqBwgYTE9HndVa9 CjSYbfG5ldwnmzcVc1SpdnB2q9ya175xchimaTHrSf+/3l1PzDsOuYH1u+l9hdY3Ghy1 98OEJtV8rakWB59C1vqhqNjwVlpCbIz/C88UMSHOjlaRbYFPZXPsHzEmrC/sea2f/cFv VQEpAUXCftkwdsZKk3Kq9VPb1NVww+M+06vBuISihqu0uFW5jeYd061037SKTzf1WTlK NmDg== X-Gm-Message-State: AOAM532ccPHCx3NSxt7M/2XIg7Fj9j1gSBaTZ7/f3ob/VskBb6SFw3s3 M7a06Dy2vG5KYLCdEnLDsP30SQ== X-Received: by 2002:a7b:c145:: with SMTP id z5mr3857911wmi.77.1619807388561; Fri, 30 Apr 2021 11:29:48 -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 z7sm3059783wrl.11.2021.04.30.11.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 11:29:47 -0700 (PDT) From: Corentin Labbe To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Corentin Labbe Subject: [PATCH v3] dt-bindings: net: Convert mdio-gpio to yaml Date: Fri, 30 Apr 2021 18:29:41 +0000 Message-Id: <20210430182941.915101-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 Reviewed-by: Andrew Lunn Signed-off-by: Corentin Labbe --- Changes since v1: - fixes yamllint warning about indent - added maxItems 3 Changes since v2: - fixed example (gpios need 2 entries) .../devicetree/bindings/net/mdio-gpio.txt | 27 --------- .../devicetree/bindings/net/mdio-gpio.yaml | 57 +++++++++++++++++++ 2 files changed, 57 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..183cf248d597 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mdio-gpio.yaml @@ -0,0 +1,57 @@ +# 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 + maxItems: 3 + 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