Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3560029ybb; Tue, 31 Mar 2020 07:39:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtm61XTI6nL42PaA0i7qc/Pk2jSM7t3xVt1oWBM7D5N0+U6Ci1DB3F9iWUXfhzlnK1/O53l X-Received: by 2002:aca:c488:: with SMTP id u130mr2366551oif.154.1585665589918; Tue, 31 Mar 2020 07:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585665589; cv=none; d=google.com; s=arc-20160816; b=vyjFuFHJ0dVtvIbpLew8QCLnav0Abv+Xj0cuAs9YDAoMqlJNqNZGIqA1PPC6oKMmfM XX3nwXYNjglJCA0AjS9TH17SOGPQQ0QWVa5uSGVu2RaNjoKKgUKAjWUIoeRhWq3VuOCX mPELoJ5bPLwlkDPLgVlFymENeHjr/jgUGc6h1zVag8MZYmIUVqppZWuJMO5wV2/OcLHZ 40v3QgY3ZqsMXZM9RdITjDHCC5TtAnyEob4m41aBD9rfoNQgbE6prLC92OOTfssexL75 FZ90flxGRhQTL3b1+h0OsH/DUsvdegNjyfzuHiOH/O5TjbjfUinw2FfEKKRSLKDIsRi+ bkDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IK9k6BsytbnW1EXy7FI1eJsDUE+tu84D7QZT4uS5ZlU=; b=FxcssYGxs3EVYUxRs7FRRQ7ekyyYr5hTaORcnpjoJz+UtkxL89khzm90GU5w1hdwvp WJ8vPjXEfTZdtdYzi6oei37vj2wxskt/OH+FBoem6UV5wqpalsU0y9YA/B+thAcbz0In 4M8OEraANXnTfJHdIKG68LUsd+aGs3utDkkNNfsnpIiU/UEhsEaLMdBYYu6s+ZYngMmT uXqaWqbYV24JSg5Q2PnxW4Z9KtueyicHYVq1e/nVI7yUUz25bELs5Ncab/N+wUFfFFDs XWwB1NSaPearOPDCVeFaAiGPXVCReRXncVXmRGmabHYLip5nq4ZcKARWldfWlDAcK1nh BthA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w9kKXD8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u199si6656482oif.110.2020.03.31.07.39.35; Tue, 31 Mar 2020 07:39:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w9kKXD8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731130AbgCaOjO (ORCPT + 99 others); Tue, 31 Mar 2020 10:39:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:52704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCaOjN (ORCPT ); Tue, 31 Mar 2020 10:39:13 -0400 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4A0F214D8; Tue, 31 Mar 2020 14:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585665552; bh=VQTYjDLJpBPL64v+KHcwfSavLEUmQ5VPbYuKeDQvfh4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=w9kKXD8z4sqI86PU33XbHmfq5R7o1rl1Yc6oUOAz42cwHppv6UAYyiBVNzHr/8rGq fiuijzJ4syHgX49+YFivKcsWhdJV6fv/bOG69I3vdo0Lq1npTDVuNQt+ItarZp4b9G a/bP28cpaoxY9yg7N1tSpyTZfOjD00o0nNDF4FO0= Received: by mail-qk1-f175.google.com with SMTP id l25so23220051qki.7; Tue, 31 Mar 2020 07:39:12 -0700 (PDT) X-Gm-Message-State: ANhLgQ1Yn4A9Q6+UE+Fanv4lnS9wOsS2mOqlYHd34dkABj36/5Rng+QK 5l9WpzStfcaqEjMA1sRPag/9oA3L9MsbAp5F3A== X-Received: by 2002:a37:aa92:: with SMTP id t140mr4802134qke.119.1585665551704; Tue, 31 Mar 2020 07:39:11 -0700 (PDT) MIME-Version: 1.0 References: <20200325220542.19189-1-robh@kernel.org> <20200325220542.19189-5-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Tue, 31 Mar 2020 08:39:00 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false' To: Masahiro Yamada Cc: DTML , Linux Kernel Mailing List , Bartosz Golaszewski , Bjorn Andersson , Brian Masney , Daniel Lezcano , "David S. Miller" , Guillaume La Roque , Hartmut Knaack , Jonathan Cameron , Kevin Hilman , Lars-Peter Clausen , Lee Jones , Liam Girdwood , Linus Walleij , Mark Brown , Mauro Carvalho Chehab , Michael Hennerich , Neil Armstrong , Peter Meerwald-Stadler , Stephen Boyd , Thomas Gleixner , Zhang Rui , dri-devel , "open list:ARM/Amlogic Meson..." , linux-arm-kernel , linux-arm-msm , linux-clk , "open list:GPIO SUBSYSTEM" , "open list:IIO SUBSYSTEM AND DRIVERS" , Linux Media Mailing List , Linux PM mailing list , Networking Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 2:38 AM Masahiro Yamada wrote: > > Hi Rob, > > On Mon, Mar 30, 2020 at 4:09 PM Masahiro Yamada wrote: > > > > On Thu, Mar 26, 2020 at 7:06 AM Rob Herring wrote: > > > > > > Setting 'additionalProperties: false' is frequently omitted, but is > > > important in order to check that there aren't extra undocumented > > > properties in a binding. > > > > > > Ideally, we'd just add this automatically and make this the default, but > > > there's some cases where it doesn't work. For example, if a common > > > schema is referenced, then properties in the common schema aren't part > > > of what's considered for 'additionalProperties'. Also, sometimes there > > > are bus specific properties such as 'spi-max-frequency' that go into > > > bus child nodes, but aren't defined in the child node's schema. > > > > > > So let's stick with the json-schema defined default and add > > > 'additionalProperties: false' where needed. This will be a continual > > > review comment and game of wack-a-mole. > > > > > > Signed-off-by: Rob Herring > > > --- > > > > > > > .../devicetree/bindings/gpio/socionext,uniphier-gpio.yaml | 2 ++ > > > > > > You may have already queue this up, but just in case. > > > > Acked-by: Masahiro Yamada > > > > I take back Ack for socionext,uniphier-gpio.yaml > > > > Now "make dt_binding_check" produces a new warning. > > gpio@55000000: 'interrupt-parent' does not match any of the regexes: > 'pinctrl-[0-9]+' > > > This binding uses 'interrupt-parent' > without 'interrupts'. > > Instead, the mapping of the interrupt numbers > is specified by the vendor-specific property > socionext,interrupt-ranges > > > > I cannot add "interrupt-parent: true" because > dt-schema/meta-schemas/interrupts.yaml > has "interrupt-parent: false". > > > Is there any solution? I'd meant to just drop socionext,uniphier-gpio.yaml. Rob