Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3356795rwb; Wed, 30 Nov 2022 20:02:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+OtbsPlfjo5c3xUzIaEgfBTiJgAz1GP5oXBQ7BtpkBQtrc76sRpGrHBaajCvCsgfm4txt X-Received: by 2002:a17:907:3fa9:b0:7bf:5446:389d with SMTP id hr41-20020a1709073fa900b007bf5446389dmr16561594ejc.449.1669867350187; Wed, 30 Nov 2022 20:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669867350; cv=none; d=google.com; s=arc-20160816; b=rh4vzXzwy8OY6b/K1p43da+wiH5HhDNyTHFvquKDb4rHFc+7W6Q9FRymsoVBqJKP8k MDZ/jXtoUX753k8VPzSm+Cma1HVXtwOYfsdtdywFTCrc5YmM2kc8DcdKMZsg69G5lWly 7wBf60BBYl3qy5Zp1P+vVBIHi8Z2swQ3RHZymMSB2b+xpzYmWuo/xjPVM4fJoSDjW9U0 Rcc4IQtuFdn0qs4qrtEGIC+GErTIC1w90KR8JcBCD4ej7Wruam5bem4bTBjLo5TvJwZc 499Vg3+p2DV6rBNP6ohQAkK9nLn0fa9KPD8tqU+1E+yEbrcqteiK96FsK99lnJhkjaRm vEIA== 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; bh=ykrUdgnpt//KI390EfyviTWw7fKUM7t8IqT8KivZw44=; b=0pCR9DhtaB9l+6GPJMGVCyS4elchJANvvFmrzovGyN6y5b4Z04jmfvlJTnf7WQOGpP 00Y0fVSOYaArU0yjy+FGfuyPFepO7a8NIKOtEA8V2Ox9i1Acrm1NsFCREU+WjGHCxiPd d9JJHykdwmMIHiFNEZsTcsEefPoVH3V4v61EAm94ZAXlqhO9CC7pe7qzuSuK4Xz/P8z/ UzDJ6P+pQ2zKVpqxa1raBSFG3ZJKqsOkY23v6EqhdjtJY0e8aeXNzO9aRa4qmZhuljOU f8B6SUjTrZ9WtFTxtJrYDQ5KEZwkbj7JLY6hBz9bg4eHZeEOBhjkugoB1UYznJytvE1r xcmg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn16-20020a17090794d000b0078e27f2fbe4si3029608ejc.293.2022.11.30.20.02.08; Wed, 30 Nov 2022 20:02:30 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbiLADq0 (ORCPT + 83 others); Wed, 30 Nov 2022 22:46:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiLADqB (ORCPT ); Wed, 30 Nov 2022 22:46:01 -0500 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B2E29F498; Wed, 30 Nov 2022 19:45:59 -0800 (PST) Received: by mail-oi1-f173.google.com with SMTP id l127so768035oia.8; Wed, 30 Nov 2022 19:45:59 -0800 (PST) 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=ykrUdgnpt//KI390EfyviTWw7fKUM7t8IqT8KivZw44=; b=d7d1fhXmxRIyCrTBjsXpsvifIfXqCp7u2LbIp5mq4y0mD6jxfHBH8EUWEAIUGHcB2q Uo6KGjocTogxt554sT2wSquUdL8v6GjmsDyRYA37cMTrHZK/TKR5gKf5zNiSjr5a7QQd dH69Hcu68RR4D/+yBP9No7LA0RiW2sbbdBJ7B3eKZQSyo1TcfTbNB7ETcNRacMtgCWU+ vr+JKNhqiPzznMDJrJimPMZ4tGXV2R5XgV6kqnCwvYr6FZJgJkbzj84LMhct6MMSUHUc Ib40gD9WmP41GnTfXldnPHkcQS5quT6yy6N1+Cu/mY9VSlpMvfRCFD+zbCFTAA0oJbMg 3Uzw== X-Gm-Message-State: ANoB5pnNZYNbzyB0OIOFeaejzfTkLD/hoZftyxUHnx5B5lKghAL/85kE sRnYuXMwa4CgrF8sZ4KPtA== X-Received: by 2002:aca:2201:0:b0:354:fe21:a47c with SMTP id b1-20020aca2201000000b00354fe21a47cmr32279869oic.10.1669866358423; Wed, 30 Nov 2022 19:45:58 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id 17-20020a9d0611000000b006605883eae6sm1630945otn.63.2022.11.30.19.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 19:45:58 -0800 (PST) Received: (nullmailer pid 3605657 invoked by uid 1000); Thu, 01 Dec 2022 03:45:57 -0000 Date: Wed, 30 Nov 2022 21:45:57 -0600 From: Rob Herring To: Krzysztof Kozlowski , Andre Przywara , Samuel Holland Cc: Chen-Yu Tsai , Jernej Skrabec , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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: <20221201034557.GA2998157-robh@kernel.org> References: <20221125202008.64595-1-samuel@sholland.org> <20221125202008.64595-3-samuel@sholland.org> <5b05317d-28cc-bfc8-f415-e6acf453dc7c@linaro.org> <20221126142735.47dcca6d@slackpad.lan> <99c3e666-ec26-07a0-be40-0177dd449d84@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99c3e666-ec26-07a0-be40-0177dd449d84@linaro.org> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 On Sat, Nov 26, 2022 at 03:48:33PM +0100, Krzysztof Kozlowski wrote: > On 26/11/2022 15:28, Andre Przywara wrote: > > 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. > > I don't think this should be fixed like this. That's the problem of > dtschema (not ignoring fully disabled nodes) and such patch only moves > from one correct syntax to another correct syntax, which fixes dtschema > problem, but changes nothing here. Humm, it looks to me like the 'phy-mode' required in snps,dwmac.yaml causes the problem, but I can't get a minimized example to fail. Something in 'required' shouldn't matter. Definitely seems like an issue in the jsonschema package. I'll keep looking at it. Rob