Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1332773pxu; Sat, 5 Dec 2020 12:00:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAdPBcs5JVl2thh+Pg+jtS7NeCBf4JTQkKRSeeeS5JMg56AXWpDT+SyF41uLEa/IDVVhEs X-Received: by 2002:aa7:dccd:: with SMTP id w13mr13411356edu.385.1607198419171; Sat, 05 Dec 2020 12:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607198419; cv=none; d=google.com; s=arc-20160816; b=nWwqwOx7fiii502kdXawZFCeDhrF8t3PFfjD0FVnGwXB4YLX/d6Zbfc7JGAyQ0oP2P TazHVL/BwdPJenNkC+qK1ujZIYywKIlDjAgaSUJ+DkfkXW5ILEIt28OuyJFwjgHszPpN 3npUMrNcRNrhYyXLxzcaKDi0BxdAFMUAEZzi7ZUK/YDzLsA0sLe4izLK5u6z8gNYw/3R o7yAi2EGSV0dkWYTJIMxjEyi0txaytLB6bPQnryaN8fApEUJxETY8DA6+M6BJvgXcROr xUAkpvoph8QxF5qncpPthTmfJvX7fnC3jaJivSylwSYIqanlMGFXah2hX9DghTluL2cA nuPA== 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=wul1b5nBC2fOH6EVcsuV4JY6ga+KuFxizuSt3DUjwA8=; b=f1CVYj63P9aOuAp/1/zKCgEV4qVwP16TWOdfzyOgzFvGlsMv6mR0R3t3675kAbxKUK e25ITqxXPboFzeaMqhOqbxQpLXHFwPR+3vevVSYbheVze7EFDXpftwqLKJPfnpSyeUVI jaMFc+m3L8R74F+xMpt1MbAZyb/Ge45qItisddt/rZNZZvgu9w2RIzq+izmReKxDstvQ OImhhCES3jnF6Lj2J6giVSCfsKFT3RVaiiCbJ0sf0XtxnbYcQqYBbamHbWn3X/0Eb4bs dh+Sg4bwaJwV0QEzkuVr/xUN6Gyxn5fImWKudU5U+NHMomtao2zO6NOyOp4ClQB3TN4W Xhpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si5490667edp.451.2020.12.05.11.59.54; Sat, 05 Dec 2020 12:00:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726116AbgLET4P (ORCPT + 99 others); Sat, 5 Dec 2020 14:56:15 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:55748 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725274AbgLET4O (ORCPT ); Sat, 5 Dec 2020 14:56:14 -0500 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 7BB35804C8; Sat, 5 Dec 2020 20:55:26 +0100 (CET) Date: Sat, 5 Dec 2020 20:55:25 +0100 From: Sam Ravnborg To: Paul Cercueil Cc: Rob Herring , devicetree@vger.kernel.org, od@zcrc.me, linux-kernel@vger.kernel.org, dri-devel , Thierry Reding , Christophe Branchereau Subject: Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings Message-ID: <20201205195525.GI332836@ravnborg.org> References: <20201101093150.8071-1-paul@crapouillou.net> <20201101093150.8071-3-paul@crapouillou.net> <20201101122900.GB1269759@ravnborg.org> <9CZ5JQ.CWYPSJ8EDOW4@crapouillou.net> <1XJMKQ.YER47WG3D7R41@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=Itgwjo3g c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=ER_8r6IbAAAA:8 a=aP72JqY-3imoCIW2L10A:9 a=CjuIK1q_8ugA:10 a=9LHmKk7ezEChjTCyhBa9:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul > > > >> >> + > > > >> >> +maintainers: > > > >> >> + - Paul Cercueil > > > >> >> + > > > >> >> +allOf: > > > >> >> + - $ref: panel-common.yaml# > > > >> >> + > > > >> >> +properties: > > > >> >> + compatible: > > > >> >> + const: abt,y030xx067a > > > >> >> + > > > >> >> + backlight: true > > > >> >> + port: true > > > >> >> + power-supply: true > > > >> >> + reg: true > > > >> >> + reset-gpios: true > > > >> > > > > >> > The binding is missing: > > > >> > required: > > > >> > - compatible > > > >> > - reg > > > >> > - power-supply > > > >> > - reset-gpios > > > >> > - ... > > > >> > > > > >> > additionalProperties: false > > > >> > > > > >> > So r-b only with these added. > > > >> > > > >> Stupid mistake, sorry about that. > > > >> > > > >> I'll V2. > > > > > > > > I don't have any V2 in my inbox, but looks like it is in > > > linux-next > > > > now: > > > > > > Yes, Sam told me on IRC I could fix it while applying and avoid the > > > V2. > > > > > > > /builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml: > > > > panel@0: 'spi-max-frequency' does not match any of the regexes: > > > > 'pinctrl-[0-9]+' > > > > From schema: > > > > /builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml > > > > > > "make dt_binding_check > > > DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml" > > > doesn't complain here :( > > > > Even if you do 'touch > > Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml' > > or do a clean build? > > > > I can't think of any kernel or dt-schema changes which would explain > > the difference. This is purely related to 'additionalProperties: > > false'. > > Ok, I see it now. > Should I use 'unevaluatedProperties: false' instead? Yes, the issue here is that you add a number of spi properties to the binding. And you cannot or at least shall not, list them all in this binding. So when evaluating the binding the spi-max-frequency should be allowed, and when a full DT file is checked the tools will catch it there is a binding that is not known - as you tell it with "unevaluatedProperties: false" that all prperties must be known. Sam