Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12266932rwb; Sat, 26 Nov 2022 06:42:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pkf/1UHPACB3517jRXvbS0BldRnarZ7v02Vg0iEUV3FAxT5cKia9YLF9LYdwCxo1vvpOU X-Received: by 2002:a63:1a5a:0:b0:456:f79e:4e95 with SMTP id a26-20020a631a5a000000b00456f79e4e95mr19461492pgm.607.1669473745194; Sat, 26 Nov 2022 06:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669473745; cv=none; d=google.com; s=arc-20160816; b=PKy4N6FJKhRgwKfDC1fltiub0I5Q3xMSJUDjYJLUb8zcSDpfY25sqqj8Hzcj1AK8hb bt5h8Ghm3vEQbbsOlIZGz0voH18nCAPbr+XnR/wT0I34Cun1gmAImcPfho8ctZ7aMlfl 7i6pji9AQtlGREAiEGQVR9bayQTiR/tuNyp+D+PjvkJ+9ed/tTaJLLbegfLMCOl7+A/b XNDHUs6nDuhkkVDhpvFvhqr1kCEdCQYlk246L1nCuPGlALAZE8ZRZ75pJ/h0mE7eKVIe un2qnyafO6kbupUnrub8uRAg/pCISlF+oWAvwiss8mNw0SXl7uTCxDcNE8yuAxmE+utK 3JDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=jVYGAtEmH6t1ROGU8bTYP8nuPWY3gYnZjcJSw7IR3iY=; b=ilrwDTB7wbVTCFG0xA/r7bWtdbhKtAHEwxLpxDRUNFuARsUlY3pdjMZnqSKMAD+H9f exrCuO5Vky42csy4ekW/eVrH0JfKyMtiyai3pcfX26wwsp6GhiagOnlI6NXl3v2oP0DG NVQN7NiLeJxSyWDYgNkyEP5xKr9SrdkXOxL2HnmBskjiPrjzK0wzVTW8vQ4EugaJeKv2 bMy9q85VjxWRh70QgxuOpryOxj++ndu7wOGgYmlo9xMGImIphACF94woV6KKmxIQo0hR wm/lHc7POgv1BYeXUyCQm3JQPKZmC8hbZpkxQUFGfmokWJpfuCVmIrsefgHTZDlf4zYC OTEQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a056a0015c700b0056ae8f6df38si7298675pfu.180.2022.11.26.06.42.12; Sat, 26 Nov 2022 06:42:25 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbiKZOaG (ORCPT + 85 others); Sat, 26 Nov 2022 09:30:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiKZOaF (ORCPT ); Sat, 26 Nov 2022 09:30:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AED51B7B6; Sat, 26 Nov 2022 06:30:04 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DBB12B; Sat, 26 Nov 2022 06:30:10 -0800 (PST) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E6D763F587; Sat, 26 Nov 2022 06:29:59 -0800 (PST) Date: Sat, 26 Nov 2022 14:28:23 +0000 From: Andre Przywara To: Krzysztof Kozlowski Cc: Samuel Holland , Chen-Yu Tsai , Jernej Skrabec , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , LABBE Corentin , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: net: sun8i-emac: Fix snps,dwmac.yaml inheritance Message-ID: <20221126142735.47dcca6d@slackpad.lan> In-Reply-To: <5b05317d-28cc-bfc8-f415-e6acf453dc7c@linaro.org> References: <20221125202008.64595-1-samuel@sholland.org> <20221125202008.64595-3-samuel@sholland.org> <5b05317d-28cc-bfc8-f415-e6acf453dc7c@linaro.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Sat, 26 Nov 2022 14:26:25 +0100 Krzysztof Kozlowski wrote: Hi, > On 25/11/2022 21:20, Samuel Holland wrote: > > The sun8i-emac binding extends snps,dwmac.yaml, and should accept all > > properties defined there, including "mdio", "resets", and "reset-names". > > However, validation currently fails for these properties because the > > validation does not fail: > make dt_binding_check -> no problems > > Maybe you meant that DTS do not pass dtbs_check? Yes, that's what he meant: If a board actually doesn't have Ethernet configured, dt-validate complains. I saw this before, but didn't find any solution. An example is: $ dt-validate ... sun50i-a64-pinephone-1.2.dtb arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dtb: ethernet@1c30000: Unevaluated properties are not allowed ('resets', 'reset-names', 'mdio' were unexpected) From schema: Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml Why exactly is beyond me, but this patch removes this message. Cheers, Andre > > local binding sets "unevaluatedProperties: false", and snps,dwmac.yaml > > is only included inside an allOf block. Fix this by referencing > > snps,dwmac.yaml at the top level. > > There is nothing being fixed here... > > > > > Signed-off-by: Samuel Holland > > --- > > > > .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml > > index 1432fda3b603..34a47922296d 100644 > > --- a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml > > +++ b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml > > @@ -10,6 +10,8 @@ maintainers: > > - Chen-Yu Tsai > > - Maxime Ripard > > > > +$ref: "snps,dwmac.yaml#" > > + > > properties: > > compatible: > > oneOf: > > @@ -60,7 +62,6 @@ required: > > - syscon > > > > allOf: > > - - $ref: "snps,dwmac.yaml#" > > - if: > > properties: > > compatible: > > Best regards, > Krzysztof > >