Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp741077pxb; Tue, 5 Apr 2022 21:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKhFqFpwq2i2KQtC8ni34ksTJ4qrwdqLDbUHJ9WWaSw5etkd2ADMHrnBTmZ3pPmm/AY81T X-Received: by 2002:a05:6a00:2493:b0:4fd:e18e:58aa with SMTP id c19-20020a056a00249300b004fde18e58aamr7131826pfv.47.1649218497782; Tue, 05 Apr 2022 21:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649218497; cv=none; d=google.com; s=arc-20160816; b=JoTVJczUd3yKGcv+8nXDm0F2ikpVFWF2IC4nf2ktSkgHbZt3KsmXuNtI7cEhUogPRm eJnOpTvrK7k7R9bcJ4S9Or+u8asWk/dzM1aNaRIPCbRK7TyepEnwYfTUQvfq76k0b7qS inMh5TPrJs+S6POMqAS9t+K8ilHxQRvZnhnyul+lv4Ozu2GI7xHR9p1N5FzMimuojL0C dH2TbgQHBEQxq8tjqzVzWiw6jA2HWyZeOqBdC/z8sPjfROjeEW6SNGIXrEeN5NE4NXOc HEPk88znmMo5joHHoFh6faRJVnPJG0lzhjjrcjdOH06pBk4bbhaQObsbCKs0ZmM7sK09 ok+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fCggV6bqzjUPTh2UWexsbRy4IO96rl40cUnwkAVnT5I=; b=rlXGi6lmKVNWlKFkJb/2H7YAML6SGWRZ9VZcY60Ytf5FzRQIz8nB33JeJew+o3poLW YK+f0nmY57BrMOv7XIHBrAERnUCNtVNFL7whBiIfUiXOljomMx0OuFkgabmvW/92bLQA cFCQ08zh/0isWtit8gC9ub38k5vmuC9kMSeTA5M1w0VB7fnk68W0n/zHgHtQcDEpk2Pn 8uieHq5djmNXHM+/n/dY9ZACs7ZyBLS3Fox4wyIH+ngspHL/lPbuFNJadjlxn1WoXPMA eQWyAiGy/fXo6zVi93nqx+Kx6uCFb8k7McIVoMdUb14oG6SZ3fMCuQqmRDO5zspeeixm NOBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=o9rAEG5d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d15-20020a631d4f000000b003816043f108si15698715pgm.765.2022.04.05.21.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:14:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=o9rAEG5d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E1F03D2C74; Tue, 5 Apr 2022 21:07:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1581912AbiDEXl2 (ORCPT + 99 others); Tue, 5 Apr 2022 19:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354551AbiDENH2 (ORCPT ); Tue, 5 Apr 2022 09:07:28 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B858022B20; Tue, 5 Apr 2022 05:09:58 -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 E0ED922248; Tue, 5 Apr 2022 14:09:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649160596; 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: in-reply-to:in-reply-to:references:references; bh=fCggV6bqzjUPTh2UWexsbRy4IO96rl40cUnwkAVnT5I=; b=o9rAEG5dNTu/qS3ZOBvruaB/fIHLjhKxrVXoek8KJ1TykK8P3RzBI/WsitXw4LUyQ9LLKm D7g1rsSD0/r5bZvfsajnZKBHMqBqTsSP2/LDVzqpwLnnPaiymXtkDn49hzSwbFOfjQFH5T xKp26b33xygscWr1W+LI+oxzn5Ko+54= 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 , Krzysztof Kozlowski Subject: [PATCH net-next v3 1/3] dt-bindings: net: convert mscc-miim to YAML format Date: Tue, 5 Apr 2022 14:09:49 +0200 Message-Id: <20220405120951.4044875-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220405120951.4044875-1-michael@walle.cc> References: <20220405120951.4044875-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/net/mscc,miim.yaml | 56 +++++++++++++++++++ .../devicetree/bindings/net/mscc-miim.txt | 26 --------- 2 files changed, 56 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..cdc39aa20683 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mscc,miim.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/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: + maxItems: 1 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + mdio@107009c { + compatible = "mscc,ocelot-miim"; + reg = <0x107009c 0x36>, <0x10700f0 0x8>; + interrupts = <14>; + #address-cells = <1>; + #size-cells = <0>; + + 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