Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4425310iob; Sun, 8 May 2022 12:17:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/43kg0wb2+ggGQryCERuap7TYlfm8ic0bCvTOar5rW7hRKRI26MoEQknPzQMjf+YhJlWB X-Received: by 2002:a17:903:32c9:b0:15e:a1b8:c1ef with SMTP id i9-20020a17090332c900b0015ea1b8c1efmr13186096plr.173.1652037462015; Sun, 08 May 2022 12:17:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652037462; cv=none; d=google.com; s=arc-20160816; b=k6tvf9lv3WWbbErKoZYIuCchDh9iM0jehGN92G5IILZ2eKKZKt9fzWYox2RI03VuCu CnAwhyN47Ot3gH5OLui3Vv9j9oXEjf/YgZBbZJdKlLBVqcWZ7KfaX8yA4i+lLOFelGRF WOpGhyWlLs2OrjXzrzPoOCV0+l/V+gKJqpG38ST9f914HklrNuPJiIEo7FMkAX7DvoOp spvsARd3FXBzjK05uLzvFRTKA33EgC0Ss8DCRGdNDwa25Vy8Wowu8paZcxO8hXqUAEGQ MrYHhE6hGmOFfQuHDkndPAoAsa3FRzqwc2DChQePDjBiqH696aFgDHHRcGYlFN9PgNHS BBxQ== 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=BeRODHN5BKHdYqCpyT3vOELgLz8mBkeltgcKtiKMp4w=; b=g6TvZLDD2jO0QKJR8JvZscMJyj5Syc6HMRUB5GlsSdtPdG11UHnKY9MK+jRAXKncPE gGpvhpC7TKAKdWK4F6RW9j+h5H+DPhkTkDuHtILg+l0l30P/VKcARDLY5dVzWA0wQOyh Pp5G0u2fs4q0M4ld8qd4eu7+zUYfpDUTgxy/ygD2ZTEWdXBotp6GkM168Bot92ZjD/3g 1tIW3lKfelqMgx3Hs7sN72eSdAuHWu4dFOLq1XCpCO7Fh/rkMd6SX7ZWtjZiXbGGE4Cq XfcBeA1PByOjJ3jKhrzJh8VrcchwiVNwARqMTUvz+Ok2NDMo3tLxz9pRJPS+hmR+0Ikj eIAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g4TlTYxL; 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 r8-20020a635148000000b003c281e1fd7csi12099133pgl.214.2022.05.08.12.16.57; Sun, 08 May 2022 12:17:41 -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=g4TlTYxL; 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 S1389436AbiEFHTB (ORCPT + 99 others); Fri, 6 May 2022 03:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381648AbiEFHS7 (ORCPT ); Fri, 6 May 2022 03:18:59 -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 E052012E for ; Fri, 6 May 2022 00:15:15 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id dk23so12753024ejb.8 for ; Fri, 06 May 2022 00:15:15 -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=BeRODHN5BKHdYqCpyT3vOELgLz8mBkeltgcKtiKMp4w=; b=g4TlTYxLR3HgIll7nXj0AF8/r89vyRr8TehXbuimjjfEYJccXGgABWYlPWVPZr3PYW g2VAiB6F3XUnbACivG4wyIHzNoFUNpjcaiA9kScMgL7fSMJzihnSNEqyOO88Apxph3/l G4URVFL2tqrQdjLTkPvZApvG0KAocTJPRzCwwj9ncv9ILchN5blI27jqGplvHCyVc/JH FbO529vOx597xt77lw6dgm5980DDVRJx2sLJcnexgLGqpMpEEZXImo9/n4+j2ZdTDIsX 9jDzhNjlO/o/QZlfMpBHPfEUDB9P0gpwBGGu1/xrrq2mUVVgfSHqz7RXsiPCwJc3vAPI HAHw== 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=BeRODHN5BKHdYqCpyT3vOELgLz8mBkeltgcKtiKMp4w=; b=5wYM6B66wCuDBtTT8E06aMq6nvL+jENzLyqX5sQ6U1/fThClenvyyUbDIhbIDEgUEt Y0kMPpXo2C8Ryv+hG6UGWz+RwzEhfeYZyb8Sjle3rXvXr2qN/XbuDnEIGf3a937/pMHT pY0coWX9622yjaEbyqKEgzQqKoKMzenQWGXNwo8RRz/+ADMVw7mxPiDLfsqKdmYKhGQJ MWme3towLGRj97d+leJPcZTZ0p1nceZ0jbH0VNPWeLvMfxkqXolDL4Rq5HBWRHIJxXdP IYAhcjX3TFAVAaTYuYlbvN32G8/RA1iIqFSEeW63RytZTpICqs7ttIjrILjXoc5kiQLL 3oAA== X-Gm-Message-State: AOAM532jL76Y+g2HzPxJyNqrTqereZS+VXZlyAIFY6oA35nhTIDHG1yf nOETx+S7q6iKPJ8NGYTFLakJ8A== X-Received: by 2002:a17:907:2da5:b0:6f4:7cd1:8cf5 with SMTP id gt37-20020a1709072da500b006f47cd18cf5mr1769503ejc.328.1651821314516; Fri, 06 May 2022 00:15:14 -0700 (PDT) Received: from [192.168.0.223] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id w16-20020a170907271000b006f3ef214e42sm1559641ejk.168.2022.05.06.00.15.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 May 2022 00:15:13 -0700 (PDT) Message-ID: Date: Fri, 6 May 2022 09:15:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Aw: Re: [RFC v2] dt-bindings: net: dsa: convert binding for mediatek switches Content-Language: en-US To: Frank Wunderlich Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Landen Chao , DENG Qingfang , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Greg Ungerer , =?UTF-8?Q?Ren=c3=a9_van_Dorst?= , Mauro Carvalho Chehab References: <20220505150008.126627-1-linux@fw-web.de> <6d45f060-85e6-f3ff-ef00-6c68a2ada7a1@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 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 06/05/2022 08:46, Frank Wunderlich wrote: >>> + const: 1 >>> + >>> + "#size-cells": >>> + const: 0 >>> + >>> + core-supply: >>> + description: | >> >> Drop | everywhere where it is not needed (so in all places, AFAICT) > > is it necessary for multiline-descriptions or is indentation enough? It's necessary only when YAML syntax characters appear in description or when you want specific formatting. https://elixir.bootlin.com/linux/v5.18-rc5/source/Documentation/devicetree/bindings/example-schema.yaml#L97 https://yaml-multiline.info/ >>> + >>> +patternProperties: >> >> patternProperties go before allOf, just after regular properties. > > after required, right? properties do not go after required, so neither patternProperties should. Something like: propertes -> patternProperties -> dependencies -> required -> allOf -> additionalProperties -> examples > >>> + "^(ethernet-)?ports$": >>> + type: object >> >> Also on this level: >> unevaluatedProperties: false > > this is imho a bit redundant because in dsa.yaml (which is included now after patternProperties) > it is already set on both levels. dsa.yaml does not set it on ethernet-ports. > Adding it here will fail in examples because of size/address-cells which are already defined in dsa.yaml... > so i need to define them here again. You're right, it cannot be set here. Best regards, Krzysztof