Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1362083pxb; Fri, 1 Apr 2022 11:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIKA+Ha081j/930l3vcSBiu9LiiTEDlpCLfF61L32v0uPnE5o2yzDObGzi6mHNQzUMGkEw X-Received: by 2002:a17:906:a1c8:b0:6da:a635:e402 with SMTP id bx8-20020a170906a1c800b006daa635e402mr923139ejb.598.1648836853962; Fri, 01 Apr 2022 11:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648836853; cv=none; d=google.com; s=arc-20160816; b=A7eyVBcX+4CaocbOQBptmTkfwhP/tOvpL50GOkTTa30pWhJDH+FZrRVr1NOnhU1sDJ Hf+KCxo02jLdsdD5QjoQpKhdA6IyxDu9/l2iN/ExcpzMgqX++/UWzSo3CbazHCaPWA6C qDPOjzxJnIMoC6SQSuPI7lRvqOOMUuOrCOMjd/ZbAndRC0TjYxYILz+TjRIQhjVGl2rB NUd7/xmRGMpPpNta2lu0Oaw5hgFJAvxXje+RSTjMZTCx4hMQh+XabftHzi1gs2ex0qg4 9qzJt89kO4xU+cCJ4/pg9NBrvk+/QxPKhdpnCQb1I1GH4uzh9BTSmAz2leMf3nZinIHj RHDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Z2EGtbaUSdZqJdfHjTh9+r3ua+pSh9uHmfL1sOZD5QM=; b=pTIOb1XNQmvpT2Mio5B8xTXnr8HrFQVAB0q9AsaHEHaIU2seiEbBOaAw1MDHna1u/+ 5Ie40uc/kjgqD5sBBeSEIV6dzR6pJ2DfSqGGy2CdJaEu7kdvFXGFMoF7d5fcRzinnhgN nRl3QpFIrovRjcMnQAWxzPfCb8EW29Gs3NvLCop2njZfD8lAcWNzoEHZdiMtUfERtYRK akE0JiHkh/7rHi1tqBhIClTNJ5WOLQRjU9RHcAFnxbqikDRajUJjKHB7ml6Cn7Dad9hA ercpTxnk0T/Fe22gSXXBgbGglsF5nvvNFWw2QjWjPVjTkshgv6JQkYC68uqMRGOrshB+ BWlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HKF4UdRl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10-20020a50e18a000000b00418c2b5bdafsi2153117edl.145.2022.04.01.11.13.48; Fri, 01 Apr 2022 11:14:13 -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=@linaro.org header.s=google header.b=HKF4UdRl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241171AbiCaUFu (ORCPT + 99 others); Thu, 31 Mar 2022 16:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241182AbiCaUFt (ORCPT ); Thu, 31 Mar 2022 16:05:49 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B46C1905B0 for ; Thu, 31 Mar 2022 13:04:01 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id bh17so1536064ejb.8 for ; Thu, 31 Mar 2022 13:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Z2EGtbaUSdZqJdfHjTh9+r3ua+pSh9uHmfL1sOZD5QM=; b=HKF4UdRl+O0WSsymoX6w2BXJfg7HGXHE6hHgkyPszGlcZXlymHI3mC7nt7d91lCR13 qqm1RjMspBXVqwPlQ+ZdMSuXRrI7vrNeLp8lWx7kwbBmceRfk8Is0n7eAEgvzJ2o0p45 9Og1U9P0y+aYJV6v2RIg1ZSFmGI/1qXdEK9mTKvdVVtINthUR+8UW4NmNJHPScCltRug isQjTz9oZvGEmZdlE//NMg1bDmmkZ03Htu8wqpxoA6rFPzOIo/8A6m50jAAHsaSxAH4Y o4NnTzNNu4sx/lpn7FhhoDaufYAoDYsOM0XoCVG9rst2AWLsXqD0z0kYQaUcIw3o2ZbW n25g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Z2EGtbaUSdZqJdfHjTh9+r3ua+pSh9uHmfL1sOZD5QM=; b=j1BPFlAMINxh0lWjXDevfzbG3nrdaXJb5wz6wDAoLqe8CsCmZGaUB7L/2MysVP9t7E 117o6e7xNwXAlODq5/3Jj8dYWPfDRYQs7b/2s/0mFc8elhvENlCa+W7gtlQSKMGnmMyA Ro1dUULe+tG8yoIiXdxaa7yMQhuE9dQ/6cwxt9plLN1AdPpt2Wwj8ll0pLIVangg/GEZ L37BBnJsx/HRizBppl/xaLJJseV94YeFOE+Oph9ohH0AHtMFMEgdEaSWro4pYKS/WHgo pXPnVE51sUpSGOp+CI8pYxpMzANry+/Z9t/ta+ytemFqQYN7tkak+eYd4D/G2TeZflKz yUVQ== X-Gm-Message-State: AOAM530qp1Cb04A9HVhvKL2q0Yh0YutwecAdCoDJHIrplI8N2aixIvE+ MTCfQNVp1TEwyWJPjwlb1bqvnQ== X-Received: by 2002:a17:907:d89:b0:6df:e54d:2462 with SMTP id go9-20020a1709070d8900b006dfe54d2462mr6492434ejc.97.1648757039749; Thu, 31 Mar 2022 13:03:59 -0700 (PDT) Received: from [192.168.0.167] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id jv19-20020a170907769300b006e095c047d6sm150889ejc.109.2022.03.31.13.03.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Mar 2022 13:03:59 -0700 (PDT) Message-ID: <6de0f1f6-2096-28fa-e213-907aeea4f703@linaro.org> Date: Thu, 31 Mar 2022 22:03:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH RFC net-next 1/3] dt-bindings: net: convert mscc-miim to YAML format Content-Language: en-US To: Michael Walle , "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 References: <20220331151440.3643482-1-michael@walle.cc> From: Krzysztof Kozlowski In-Reply-To: <20220331151440.3643482-1-michael@walle.cc> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 31/03/2022 17:14, Michael Walle wrote: > 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 how many? maxItems > + > +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>; Please put the compatible followed by reg at the beginning (first properties). Best regards, Krzysztof