From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E81BC43217 for ; Thu, 1 Dec 2022 03:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fL4EoDKYxLwlzMW699mILpOpNGGWMgZEv3ofOrqLueo=; b=H6Wo8gudS3cpBr 8SKUXdO/V1LeMnvMfyulUjSf9qHjwl53WhEwYrY5Pz0cW3dswPe7t9AuzG8+zmYVVCinWR+pV7FZj 9HWy7WKrL8Z0bQR8G0EIf/hCI/WB4/y5KvOnh8zpRZsZDMBK6iB2rdoc3Nrsc/5hIgybi/ZUlIYIG xEsUcc/wobGtj2pNzEVE+M/DAqTfzWoos/Q47bb5MtPvBifn2AlL4faqbE5m3xaCQQVG7PlFRg+SS N7oUOISwgHvjXI6J6yFVxDMJcgeKTrrmyw/GcV+73oKvrEYaJg5rMu3HVV+8iwiLGc9546RDxAV9/ jr04E/xFdGOKMqUae81g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0aWl-004M8H-2u; Thu, 01 Dec 2022 03:46:23 +0000 Received: from mail-oi1-f175.google.com ([209.85.167.175]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0aWO-004Ltf-Jz for linux-arm-kernel@lists.infradead.org; Thu, 01 Dec 2022 03:46:02 +0000 Received: by mail-oi1-f175.google.com with SMTP id t62so753731oib.12 for ; 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=FnHbzWqJpoUrkI2ySkzC1xcXLJx9CrtM3bI9vaTY6gG/WHXrbdwwJkJ6HbuaM3Th2m nsgR1z+LZPqe47I50gYptnmdbhKsC8JnHijIDRtS4UaYKAWY58vxRH71mT7ZikdrHl1Q DOq7HcoHS+rm7wn/MSwvBj30iI8BJdVq7lnxDibrFjZl4ua1QRtUlhShjp3/3gfH65/k P+ctjh7nINaXg8k6sUyCqxiPgNPOKprq4ZGfovtXBx/OjzVLBISK/8YyNuwdbVQZhj/K KV/yi7bwl5hhkMQ0nANiTr4In7l0SNz7WuztC6z+2K90OxSaLsF0N5VYfRs5A5kEu5E7 70Jg== X-Gm-Message-State: ANoB5pkyN3GhyfQbxsCGWSq4rYpV2BNJic9ZLgfDyrJ1au62FzBU1xG9 5Z2SGkAr+Tr2S5ds8uqn4w== X-Google-Smtp-Source: AA0mqf5WCmFLREdSlYC9qzJRKrm7hw0V931v+JMD58V5b6VI64AQhK6aDD8+l29/3c1aTaLsQwxYJg== 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-Disposition: inline In-Reply-To: <99c3e666-ec26-07a0-be40-0177dd449d84@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_194600_717788_71009FA6 X-CRM114-Status: GOOD ( 20.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel