Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4519025rwe; Tue, 30 Aug 2022 11:33:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6C/sAKFPOtMnd5PVjBso9vyzV8B2QT1BWAAJKToDeEwunFU6M9tivmDfAeakq3A6toruDv X-Received: by 2002:a17:906:4fd0:b0:73d:be5b:291b with SMTP id i16-20020a1709064fd000b0073dbe5b291bmr17978588ejw.157.1661884420803; Tue, 30 Aug 2022 11:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661884420; cv=none; d=google.com; s=arc-20160816; b=D1a9TJqCQ+SxHPAu9YZjfInI66UnmO5L/zud2k/n+9E1g5SRr5zBbWdbtfeYBcy3aK RmB2DYUMx3g1ruhzQVJC7PcHdTN8R/wiuuWubqmrN3ntBLfRgWMAjmXedoIKnQYuj69A QO2Eq9lStfMs7YizZBCcWh42leHpnKEsc+tCGBsd29109PLk3f66qKHkc36zmKZvMU0q /iz/+Tnrt/EakyVqb+JMb/fVm4SBjzJPC51N9W9KkYOUk4L8iCTSd6AWEEkhvzDO76r3 wG41bYuq+isn82a03l6rZW4JyYk5fszBps+0bdc+im5/UWdXclG+AYkBBQIvPVC/IXbS fmyQ== 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=NMG+tb0NL7DJnjXoTL3QKt3TNW9BfJSancliFW+t1M8=; b=xwr8XQ5yCjMf6DbWAjFbnjyhzcxzsSAE3/CDbmU++m1bCzphVJwPE3F8Z0iihYrR6o h0MmKRHFTWG8Gb1CXm8wOldXiSAppFzJiOmq68uEWxqefVeu8aj3VLccegF1a9RpkDXU Lfy3wxl9A/0PwOWfFlyTM8PXuRp0JHzUi5wyu3vSvKY7st0LdAmNFZtEsqavuY/MYQ5h jjeXz2BricFF1/YZTEmfmrirLjwMXgjoPlaz160MFH41k7eF67YoZcxWc78bghLE8D0A kp1Q7knp3sL1XqKZ1a/l+ygokfhxe3/R0b6s4Uc70a88cyctpKfg1glJIWbmxBrOExZB fw/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PKKkWR9H; 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 hd39-20020a17090796a700b0072abb95e8e4si12813877ejc.598.2022.08.30.11.33.14; Tue, 30 Aug 2022 11:33:40 -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=PKKkWR9H; 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 S230150AbiH3ROH (ORCPT + 99 others); Tue, 30 Aug 2022 13:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiH3ROE (ORCPT ); Tue, 30 Aug 2022 13:14:04 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 739C7BB90D for ; Tue, 30 Aug 2022 10:14:01 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id x10so12068788ljq.4 for ; Tue, 30 Aug 2022 10:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=NMG+tb0NL7DJnjXoTL3QKt3TNW9BfJSancliFW+t1M8=; b=PKKkWR9H8flZ65Bv82OpLQ46D9KJJOmFqzyfyTqkffcjzwnvXPmTlprf/zMT9RmdVD Szs8FaPKHmUfjJmIWLh/HJLSE/JzrMYK+VN6A8S6wbrXQp8/UNT4NICq0wZVdOOYijbi +UsTpJaIMeu8kCAmKhlllbwFtd3LOBETb0+1Z0p2xwS7BjeadSJ3dDY/aZbzAC5ZYVci zetEzgXXQj7eHHN6TUwmUM+OzIuht5ZJI8Zk82s4syQiYya20HHNJoGorSuQWxgyFaHN 477oJ/qZTOw1vEzbpoDLdwhePvdvIdo4wFHwK3x9XXD1DnwI7iYX+HoerT8X+oPmJYKq o1WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=NMG+tb0NL7DJnjXoTL3QKt3TNW9BfJSancliFW+t1M8=; b=VnXojqCzzDbIwHgBRh/N/eYLstab2b585maQmms1lRwT+yl3UXOvAKHmLyScvFxhED YR4oCYVjeMsWpzjLoKHnlAzakrDvSMqnn5LIzqrgORI1KqKqLjorNSeGp9qEtr7Ckzy5 Uzv9O+5WUKfIfpBQGqaZ19XzAkqJ9DdP4bGZwx45QnlTouzcxpMCkCAKTafMUsrG7ikp vFHJpcF9tZIJeOz3OoWz0D8RsA4czF97YvtPIGdErwV0ko1Z8wEsWuA/Hd/Rj6Mn/ely XolRFoPSTrRY1wXsC5FxQ9OBbJhFJsDPxcVv9zgPRq1Y4rtmUWjcEwbt8My13vWB/6Sg sRdA== X-Gm-Message-State: ACgBeo0H/ha0vMuvla04zgNijlD+J2jK1zVK3jNWMkb19eXjCz6yT1ei GsC56jmlbT4Uq0ULEsf+nmP6xQ== X-Received: by 2002:a05:651c:1507:b0:261:d72d:9959 with SMTP id e7-20020a05651c150700b00261d72d9959mr7980548ljf.77.1661879639497; Tue, 30 Aug 2022 10:13:59 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id v2-20020a05651203a200b004931000140asm134672lfp.112.2022.08.30.10.13.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 10:13:58 -0700 (PDT) Message-ID: <4a37d318-8c83-148b-89b3-9729bc7c9761@linaro.org> Date: Tue, 30 Aug 2022 20:13:56 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH net-next v2 1/5] dt-bindings: net: Convert Altera TSE bindings to yaml Content-Language: en-US To: Maxime Chevallier , davem@davemloft.net, Rob Herring Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org References: <20220830095549.120625-1-maxime.chevallier@bootlin.com> <20220830095549.120625-2-maxime.chevallier@bootlin.com> From: Krzysztof Kozlowski In-Reply-To: <20220830095549.120625-2-maxime.chevallier@bootlin.com> 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 30/08/2022 12:55, Maxime Chevallier wrote: > This converts the bindings for the Altera Triple-Speed Ethernet to yaml. Do not use "This commit/patch". https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > Signed-off-by: Maxime Chevallier Rebase your changes on some decent kernel and use get_maintainers.pl... > --- > V1->V2: > - Removed unnedded maxItems > - Added missing minItems > - Fixed typos in some properties names > - Fixed the mdio subnode definition > > .../devicetree/bindings/net/altera_tse.txt | 113 ------------- > .../devicetree/bindings/net/altr,tse.yaml | 156 ++++++++++++++++++ > 2 files changed, 156 insertions(+), 113 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/net/altera_tse.txt > create mode 100644 Documentation/devicetree/bindings/net/altr,tse.yaml > (...) > diff --git a/Documentation/devicetree/bindings/net/altr,tse.yaml b/Documentation/devicetree/bindings/net/altr,tse.yaml > new file mode 100644 > index 000000000000..1676e13b8c64 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/altr,tse.yaml > @@ -0,0 +1,156 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/altr,tse.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Altera Triple Speed Ethernet MAC driver (TSE) > + > +maintainers: > + - Maxime Chevallier > + > +allOf: Put allOf below "required". > + - $ref: "ethernet-controller.yaml#" > + - if: > + properties: > + compatible: > + contains: > + enum: > + - altr,tse-1.0 > + - ALTR,tse-1.0 > + then: > + properties: > + reg: > + minItems: 4 > + reg-names: > + items: > + - const: control_port > + - const: rx_csr > + - const: tx_csr > + - const: s1 > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - altr,tse-msgdma-1.0 > + then: > + properties: > + reg: > + minItems: 6 > + reg-names: > + minItems: 6 No need for minItems. > + items: > + - const: control_port > + - const: rx_csr > + - const: rx_desc > + - const: rx_resp > + - const: tx_csr > + - const: tx_desc > + > +properties: > + compatible: > + enum: > + - altr,tse-1.0 > + - ALTR,tse-1.0 This is deprecated compatible. You need oneOf and then deprecated: true. > + - altr,tse-msgdma-1.0 > + > + reg: > + minItems: 4 > + maxItems: 6 > + > + reg-names: > + minItems: 4 > + items: > + - const: control_port > + - const: rx_csr > + - const: rx_desc > + - const: rx_resp > + - const: tx_csr > + - const: tx_desc > + - const: s1 This is messed up. You allow only 6 items maximum, but list 7. It contradicts your other variants in allOf:if:then. Best regards, Krzysztof