Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1618329rwi; Wed, 26 Oct 2022 18:35:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59McCJ1Hqy/r++2Jrn0w2U1Kda8+OwNa1wMr/+EuG7migINi9iUnmBlVf8qn1HCuPho2sW X-Received: by 2002:a63:da4f:0:b0:43f:6af:74ed with SMTP id l15-20020a63da4f000000b0043f06af74edmr40555583pgj.290.1666834553712; Wed, 26 Oct 2022 18:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666834553; cv=none; d=google.com; s=arc-20160816; b=ISFJPcMMBrhVsBKUv3JCSDg2z/yz8721hofefuq4nVJEnbRNUYbbLfnBHxCcvhR6JJ weA+jTuZqU/KYbY8Ua9wca0Q6Zsurm1LRhBE1Wc7u0/mUlyRi8v8i67YszvupS4Dtwma uzcsoLnPu06VfbC2nGRB7J8GTQWBLuXvpftyX6t2giPeD7pLld0zJkhWINEhN98f68lh hLY2KsNVKMMRDm99tlhbl2REYbokGbMbqF4MjaN/kjt2mZuDi4oSlpl7J4GGPcqWomzS glSarLIKUDbVi7GzCPiJHq3fQh82pIO0NUJMqELDTXT0k+M9wqujwieBRHMc7YCuO8Ga B6GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iR9yh+MGJc6yJjmKhl5V2S44arNolkzCvV+lLhhUe64=; b=0FcXe4J9k/08LmhxfbubQ76PQM8lFDxb82yOQZjXghg8WoouUk/PbodqC+O2Qw+6+j GVVBPi7u2m80U4GKAVkaL1xO5QTRaznGFl4vWXGP3ardrb3BtmggbmTqxmm4Xzopp2nB SofKDG8fBYeKJDlKLeGZo1rIb+NJ+4KgBmKccGfp/AJhww3mx1ibSrB7XQ8AcLyIqHPL SkzTZd3UQlV/DWthDE63cerXJt4psXbTUBZqGFR4MkQ+1Gj6Reqgxoyaj3WeMg/BeqUI ucZxjp3s3LZMd4T/CmwC4Bv3zoXFroKTmoKEWV+TQkApGdWv4cAKIops4VPwzGBbEvUv KFoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ak9cFoMV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w186-20020a6382c3000000b0041cd5c0295esi8291134pgd.852.2022.10.26.18.35.41; Wed, 26 Oct 2022 18:35:53 -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=@gmail.com header.s=20210112 header.b=Ak9cFoMV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233745AbiJ0B0E (ORCPT + 99 others); Wed, 26 Oct 2022 21:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233699AbiJ0B0A (ORCPT ); Wed, 26 Oct 2022 21:26:00 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A50663840; Wed, 26 Oct 2022 18:25:58 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id kt23so429471ejc.7; Wed, 26 Oct 2022 18:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=iR9yh+MGJc6yJjmKhl5V2S44arNolkzCvV+lLhhUe64=; b=Ak9cFoMVeWMSUIAGFSQkCJHFveAgowrzclOz8E4R2ovNZinoB7cMxtzP7UJ/FS1MhZ aIQokrDMuaFVyObAva5a9obdhGVc0TwHF/sqmrLQoYKqsWBtpU7iUc2XlX4U44VIx3Fl x4lm958gv/LZXmUtpDAvwe0Xa9ywn99PinYj+U49u2/uv07NVu8IdUgBKvZ4+2iiRaS3 51j7VannowB5ZDLKDDlSh9Ip7bZdQh4pmCNSJgbMbOb17pBnjE+VQD/wO5vTADdy40DG 99idyhZFj3/rxP/5K4LaE0m+b3wJsquLcBbqrMspfJKC+TzxL+q2Jm9yzSWNvgyyMeOD cJjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iR9yh+MGJc6yJjmKhl5V2S44arNolkzCvV+lLhhUe64=; b=cn68yi2KiMsVNZc3IzAIbbTgMaf2tbtR1jQb5cm85pCIyyoahh4VruP+V0TrAJBwPM arNQKftY2i6Qe9+9No2BQ2hookATtzRPZEbTMsks+mTQFmRN3jd++MVCuypVuXFRxNfy koi4VmH/RAKltBgDRg1fG+X+EO6t13gMHGw8kHJY1trkjklAVdUxg1/tyRi9DMKImNAm 5qTU1NhvJb6hHSzicQSCVm7J/FqlhPMPxPU+y835RiFlsmz0tVRiAUJxRm+/vZM9QaRg ov86u8akrIVDl7KHELI21hhWWWpR+YG+Au08gGkjsM6bGwW9A8bctwZRcbtq5QYf8uIK w+tg== X-Gm-Message-State: ACrzQf26xuhnh9L+gQ4UX3zi2JBzzVdencwtUnM4bBGdzS1acoS6LAnR QWNOIEd6DZkn0ozUgn+ZmS4= X-Received: by 2002:a17:907:744:b0:741:36b9:d2cc with SMTP id xc4-20020a170907074400b0074136b9d2ccmr38493473ejb.613.1666833956870; Wed, 26 Oct 2022 18:25:56 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id q19-20020a170906389300b00773f3ccd989sm10022ejd.68.2022.10.26.18.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 18:25:56 -0700 (PDT) Date: Thu, 27 Oct 2022 04:25:53 +0300 From: Vladimir Oltean To: Rob Herring Cc: Colin Foster , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Belloni , Claudiu Manoil , John Crispin , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?B?bsOnIMOcTkFM?= , Matthias Brugger , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Florian Fainelli , Vivien Didelot , Andrew Lunn , Krzysztof Kozlowski , Lee Jones Subject: Re: [PATCH v1 net-next 3/7] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Message-ID: <20221027012553.zb3zjwmw3x6kw566@skbuf> References: <20221025050355.3979380-1-colin.foster@in-advantage.com> <20221025050355.3979380-4-colin.foster@in-advantage.com> <20221025050355.3979380-1-colin.foster@in-advantage.com> <20221025050355.3979380-4-colin.foster@in-advantage.com> <20221025212114.GA3322299-robh@kernel.org> <20221025212114.GA3322299-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221025212114.GA3322299-robh@kernel.org> <20221025212114.GA3322299-robh@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Rob, On Tue, Oct 25, 2022 at 04:21:14PM -0500, Rob Herring wrote: > On Mon, Oct 24, 2022 at 10:03:51PM -0700, Colin Foster wrote: > > The dsa.yaml binding contains duplicated bindings for address and size > > cells, as well as the reference to dsa-port.yaml. Instead of duplicating > > this information, remove the reference to dsa-port.yaml and include the > > full reference to dsa.yaml. > > I don't think this works without further restructuring. Essentially, > 'unevaluatedProperties' on works on a single level. So every level has > to define all properties at that level either directly in > properties/patternProperties or within a $ref. > > See how graph.yaml is structured and referenced for an example how this > has to work. > > > @@ -104,8 +98,6 @@ patternProperties: > > SGMII on the QCA8337, it is advised to set this unless a communication > > issue is observed. > > > > - unevaluatedProperties: false > > - > > Dropping this means any undefined properties in port nodes won't be an > error. Once I fix all the issues related to these missing, there will be > a meta-schema checking for this (this could be one I fixed already). I may be misreading, but here, "unevaluatedProperties: false" from dsa.yaml (under patternProperties: "^(ethernet-)?port@[0-9]+$":) is on the same level as the "unevaluatedProperties: false" that Colin is deleting. In fact, I believe that it is precisely due to the "unevaluatedProperties: false" from dsa.yaml that this is causing a failure now: net/dsa/qca8k.example.dtb: switch@10: ports:port@6: Unevaluated properties are not allowed ('qca,sgmii-rxclk-falling-edge' was unexpected) Could you please explain why is the 'qca,sgmii-rxclk-falling-edge' property not evaluated from the perspective of dsa.yaml in the example? It's a head scratcher to me. May it have something to do with the fact that Colin's addition: $ref: "dsa.yaml#" is not expressed as: allOf: - $ref: "dsa.yaml#" ? If yes, can you explain exactly what is the difference with respect to unevaluatedProperties? > > oneOf: > > - required: > > - ports > > @@ -116,7 +108,7 @@ required: > > - compatible > > - reg > > > > -additionalProperties: true > > This should certainly be changed though. We should only have 'true' for > incomplete collections of properties. IOW, for common bindings. > > > +unevaluatedProperties: false