Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1026810pxb; Fri, 1 Apr 2022 02:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFFAd8gYmhB+nEWOnA9npyyMd1Ee0/u8xbXUP8n3VX9zyjwWqVQ1pp2ZqXoHrDr+k2DtUu X-Received: by 2002:a50:9986:0:b0:413:bbdd:d5a1 with SMTP id m6-20020a509986000000b00413bbddd5a1mr20218515edb.26.1648805594978; Fri, 01 Apr 2022 02:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648805594; cv=none; d=google.com; s=arc-20160816; b=MISsmTsYk9w41MRDPWg7T0/6jBdY10TBy9GDRZHTUN4FweDpnSsFD8AH61P7rddCWN tbD24MR/BkiPC7MqISgCIpNT622xMzF0zHi0f433Sn4ykSkOo54kJnqgtPOup+a1Uma0 bJjMlC/gRhsI1NL85N+qWkak8hiqRWPaherX5jKfXVsH8hw+b+o6SjyQQmwK9zFKXrJm aW3RRBlw9mAhQrfl7Gm+nvnTI1nfqWX/2g8OSDWcShQQrd4CNr90a1CUVwxME9EgUVwJ /l6v3UK5O5Svx4qeVT4/Zs7hbU9ovnlb6Bf35kghQfq7mpbPr9xwYlA7hpmDKSV03dCO kdqw== 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=VP/Da2KU/KvVRv1w5CJ8MPYa3ybCiY6xeLu5JOpZZw8=; b=Y1dfSIRUKEVrhjCNSrQesSPH7LRODpAFH7rRySw2NRY0enKGfu20WXyWEXaJjCAqjC XUZcKXVS9sCdCSVdCOl/TLpa5zEzGJDuBV1fnO9MxHlLSNWdW/vCNSXK6YGGlKg6xJbT fzh2WRTtHSLcfPTRz9c8uMrmtjSjmBDfRS+tGZ8BnAAIg0N+GSJ39neguBiOAtdz64yN kujJRF46Nd3+VDE+Q6qsC2vs2vgXDVqCCv4vMP4FY0ti9B+pi0/F9xHvnowAQI9bwpu0 KcqflI+yD8wcQ8copLTRbxwGf0HXY7nNLKT4VwGNCN5SF1q5PIv0bq2Vq9HIPwkowBDj JA2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YP43wAP0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a50cf01000000b00418c2b5bd90si1398344edk.114.2022.04.01.02.32.48; Fri, 01 Apr 2022 02:33:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YP43wAP0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238037AbiCaPQg (ORCPT + 99 others); Thu, 31 Mar 2022 11:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238012AbiCaPQf (ORCPT ); Thu, 31 Mar 2022 11:16:35 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 560545F4E1; Thu, 31 Mar 2022 08:14:47 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 86A1A22239; Thu, 31 Mar 2022 17:14:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648739685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VP/Da2KU/KvVRv1w5CJ8MPYa3ybCiY6xeLu5JOpZZw8=; b=YP43wAP05o86tLDTu9U5ctYkgOm+yNh4x1CGFAlj5SGW0AxwXvdWbeQUmNUgnA/MlJjsh+ S76lZ2abPsZeXTvSeuwHeXrHnQegbYfdM/gPNEMA7XMjVoguhNaIdQzAidDo1paeiO4S4W plbMrfqcupM8zWEwPzORNa6JFTY/ARs= From: Michael Walle To: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Belloni Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH RFC net-next 1/3] dt-bindings: net: convert mscc-miim to YAML format Date: Thu, 31 Mar 2022 17:14:38 +0200 Message-Id: <20220331151440.3643482-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the mscc-miim device tree binding to the new YAML format. The original binding don't mention if the interrupt property is optional or not. But on the SparX-5 SoC, for example, the interrupt property isn't used, thus in the new binding that property is optional. FWIW the driver doesn't use interrupts at all. Signed-off-by: Michael Walle --- .../devicetree/bindings/net/mscc,miim.yaml | 55 +++++++++++++++++++ .../devicetree/bindings/net/mscc-miim.txt | 26 --------- 2 files changed, 55 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mscc,miim.yaml delete mode 100644 Documentation/devicetree/bindings/net/mscc-miim.txt diff --git a/Documentation/devicetree/bindings/net/mscc,miim.yaml b/Documentation/devicetree/bindings/net/mscc,miim.yaml new file mode 100644 index 000000000000..b52bf1732755 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mscc,miim.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/mscc,miim.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microsemi MII Management Controller (MIIM) + +maintainers: + - Alexandre Belloni + +allOf: + - $ref: "mdio.yaml#" + +properties: + compatible: + enum: + - mscc,ocelot-miim + - microchip,lan966x-miim + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + items: + - description: base address + - description: associated reset register for internal PHYs + minItems: 1 + + interrupts: true + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + mdio@107009c { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,ocelot-miim"; + reg = <0x107009c 0x36>, <0x10700f0 0x8>; + interrupts = <14>; + + phy0: ethernet-phy@0 { + reg = <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/net/mscc-miim.txt b/Documentation/devicetree/bindings/net/mscc-miim.txt deleted file mode 100644 index 70e0cb1ee485..000000000000 --- a/Documentation/devicetree/bindings/net/mscc-miim.txt +++ /dev/null @@ -1,26 +0,0 @@ -Microsemi MII Management Controller (MIIM) / MDIO -================================================= - -Properties: -- compatible: must be "mscc,ocelot-miim" or "microchip,lan966x-miim" -- reg: The base address of the MDIO bus controller register bank. Optionally, a - second register bank can be defined if there is an associated reset register - for internal PHYs -- #address-cells: Must be <1>. -- #size-cells: Must be <0>. MDIO addresses have no size component. -- interrupts: interrupt specifier (refer to the interrupt binding) - -Typically an MDIO bus might have several children. - -Example: - mdio@107009c { - #address-cells = <1>; - #size-cells = <0>; - compatible = "mscc,ocelot-miim"; - reg = <0x107009c 0x36>, <0x10700f0 0x8>; - interrupts = <14>; - - phy0: ethernet-phy@0 { - reg = <0>; - }; - }; -- 2.30.2