Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4609794iob; Sun, 8 May 2022 19:07:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcBxM7FH62TOVui9iXbrc5KHHuFqOt7vP1TGCoyB6AdjkZLrrGBr0GohiD6f6CGlc6XHVd X-Received: by 2002:a17:902:9a0a:b0:158:a22a:5448 with SMTP id v10-20020a1709029a0a00b00158a22a5448mr14277708plp.20.1652062032301; Sun, 08 May 2022 19:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652062032; cv=none; d=google.com; s=arc-20160816; b=vzvMpguT+CF+9bAi75MgDcpV7cyDEDa1PnPqemgdp9AyUoP/F/xjTGJ+aE/IWei4jj NYxoqSC6FcnykN7bLWkrDLc7jGBj4/9XFyuOFGNsycdd4xN9KP+OSK+iAERosjK3ctMl DnH1XuIyHpg2TUTRxyX7J/OdHE3oPplNosYq96lr5/YkjtzkvMG/Me2gqID8Zi7/z2AX feBmf0eFW25dg6AU50qVTMz9sS0PPuoV6M6MKxKTXkib2BUmuVjXCILMHSn1oXK350Wu sa/509EE+r+z+21HCVDc6QTDE8Eqw+irBm9Qrk6sxaPOoeZ2MmvivAqsPiZDbzRsFvXn E/bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:reply-to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=wgr38ADDpU0mLv1GrJCkoQg8nJ7ddwjWpFzSKgncClo=; b=vuyLsds99wNgCYa23xArQM8syT9Yqgx6L6SHpxq+nqzY5JOODVFHWcs4Vzd3FuDh8w 7VIVe0noVg2rpdU/j3o2mbX74K52E34mIYwDn02Dn6cl+5fmoYv3b217Dm0NLrFGMnpe 7k9YzDMmKsSJGTiaoOd/l1xpTHEVhF3I/djwEnWpDoQlqubPnNbd9aH0ThsseLT4L5mC WT9g/XBqHGC/V4sHSNPafHw87dZG1d/n56w5DZoPeDpSZe+OpmWXrSOtfSL0MYOIEqRh HNJj+9KIubbWjfrP0TDemmNczgvAFtuUdQsjbejW9doNtoMdTcZSpp/cXuglmVnagoNe sQXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=ZxddAxjw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s64-20020a637743000000b003aa494ca6dasi12868028pgc.837.2022.05.08.19.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=ZxddAxjw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 010361EED2; Sun, 8 May 2022 19:07:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392555AbiEFOMr (ORCPT + 99 others); Fri, 6 May 2022 10:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391048AbiEFOMo (ORCPT ); Fri, 6 May 2022 10:12:44 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC525A2DF; Fri, 6 May 2022 07:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651846105; bh=WgytZKjmiBQFX7uZ/jjhSIBiJAj8t5XglcXcRrxeF8Q=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:Reply-to:To: CC:From; b=ZxddAxjw4ulOs6jvFgCz850BHQBqwBs2xNTCt3dcLrC9w5PnoSTdnQJ1L03hIwWHQ pUuf0nkXavc93/GJW3DSgT40dOcGB7oJxiBTm166dhP0rV2y3rK5pH5s+SgoMwwikq 6V4CzMHxAHwRU0E5MRb1s6R531VcUhcE1Z6CAaJ0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([80.245.76.19]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAwbz-1ng3gO1qMD-00BMAI; Fri, 06 May 2022 16:08:25 +0200 Date: Fri, 06 May 2022 16:08:17 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: <20220505150008.126627-1-linux@fw-web.de> <6d45f060-85e6-f3ff-ef00-6c68a2ada7a1@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Aw: Re: [RFC v2] dt-bindings: net: dsa: convert binding for mediatek switches Reply-to: frank-w@public-files.de To: Krzysztof Kozlowski 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 , =?ISO-8859-1?Q?Ren=E9_van_Dorst?= , Mauro Carvalho Chehab From: Frank Wunderlich Message-ID: <04062F03-43DC-4B92-8C39-2F84ABDE2DE4@public-files.de>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uj/exy5QSz9pMUR0kgiBCTpfhgLAdrWJhwanRB1G2t swnQPpv5l1IvZOIG///twmFl91e5bACtQR1y1CDMc4Bo3Xcxu3g/zGqx6oXkuphm4ZEqKlXmA FuW4fvoxNXAm2oXj2BbM9zF0te5Wc/hBafKPJMTe+G4NQ0sEaskKFmIXo49cwABeSFgH43mz/ zNch3CAozA0grXMaOGIHAYR8RCScF01TDR2WS1bWI1bno9hdxUSe2hL2PCUtxOdjbCHqCRt6o qpLPtz4IavtR/x0mifFRSP07o6/Y2BcDiRXQsDxULMKEg537m0x+ATBus+Nc+BAAE/OC5J9bz zYvdaugEn1ns7Y= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 Am 6=2E Mai 2022 09:15:12 MESZ schrieb Krzysztof Kozlowski : >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) >>=20 >> 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=2E > >https://elixir=2Ebootlin=2Ecom/linux/v5=2E18-rc5/source/Documentation/dev= icetree/bindings/example-schema=2Eyaml#L97 > >https://yaml-multiline=2Einfo/ Ok then i drop all except on examples >>>> + >>>> +patternProperties: >>> >>> patternProperties go before allOf, just after regular properties=2E >>=20 >> after required, right? > >properties do not go after required, so neither patternProperties >should=2E Something like: propertes -> patternProperties -> dependencies >-> required -> allOf -> additionalProperties -> examples Thx for explanation So i end up like this: https://github=2Ecom/frank-w/BPI-R2-4=2E14/blob/5=2E18-mt7531-mainline/Doc= umentation/devicetree/bindings/net/dsa/mediatek%2Cmt7530=2Eyaml Including followup (remove reset-gpios and add rgmii for mt7531)=2E >>=20 >>>> + "^(ethernet-)?ports$": >>>> + type: object >>> >>> Also on this level: >>> unevaluatedProperties: false >>=20 >> this is imho a bit redundant because in dsa=2Eyaml (which is included >now after patternProperties) >> it is already set on both levels=2E > >dsa=2Eyaml does not set it on ethernet-ports=2E > >> Adding it here will fail in examples because of size/address-cells >which are already defined in dsa=2Eyaml=2E=2E=2E >> so i need to define them here again=2E > >You're right, it cannot be set here=2E So i make no change here,right? >Best regards, >Krzysztof regards Frank