Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3158819pxk; Mon, 5 Oct 2020 02:38:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7Z7RMPhTXY7M36W7WHH0JjQjd2xptBPNbsNEur7JeKcIJLSTJV4+cb0VLAOZVG5ThkSN/ X-Received: by 2002:a17:906:95d1:: with SMTP id n17mr2447202ejy.75.1601890687264; Mon, 05 Oct 2020 02:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601890687; cv=none; d=google.com; s=arc-20160816; b=BRElUcg6g3ghIPmQ1P/Agu6O9Tg2EirxvQdMRHgVrtsCXYxLybovcU/Or5BTmcgtju DQTP7Os/fO5MVEGmBXXHLzMrL7y8h99NPoWFHXLzhSZVA/fPGkIJ3XQyh/G29s/85dId 27PL7UK2s5pYdlNzNzGnqTqJauiwEEEcxG1LMox7uFTX03sVU4DcoXQOKmvPyzRvcUM8 OuJj1HmBaQYzI540L7ExWG4ZhsqSXS9tBJmp8eliLZ+fzemlOmEGlg1Fk8tK8buUk6WA 9Hq3KQvVvhyU0pK2NiQR79MeCOk00lJnuJ01+QCBNry/tfyi1HAe1VyDqi8j/GyH5Ify KVdg== 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=nnVC011+6U1zMI1P0NRyd8QMIbASAbm9Ud65uXxOM1k=; b=bL5dM69n9iFXgV18UNy+LyM2PEYui+SVMU6Frb85xHKDhPO86Q248uI7Xe1zAG0tIZ 1oFOOyPmaoqE3wFuXMaenvsF/tP2Zciu7vwGeOrRb0Oc/kVMrc6mo6sTz51EMWyDlUop TMGR7QxqGI5LwDm0yMshIjHOQ0cSoQrPIM6nQEwXJzUhhsKEcyiCat3BiSl0TfS6lGTP fcZuAJW/tS3HirksghRO5Za/zKQnL6Le4V4LSTLO1QyWLXHk+8aXhvy2wxt0lgdkbAxf MWMLrsYMjZP9wXs+zQWUe3EcwhMjk2VFfszaG/DjnVThqOHfuCexBg6iYlF6pH8FII3b mLeg== 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 j22si868931edy.100.2020.10.05.02.37.44; Mon, 05 Oct 2020 02:38:07 -0700 (PDT) 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 S1726096AbgJEJg3 (ORCPT + 99 others); Mon, 5 Oct 2020 05:36:29 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2954 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725919AbgJEJg1 (ORCPT ); Mon, 5 Oct 2020 05:36:27 -0400 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 094B3ABD20918B3B41D5; Mon, 5 Oct 2020 10:36:23 +0100 (IST) Received: from localhost (10.52.124.175) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 5 Oct 2020 10:36:21 +0100 Date: Mon, 5 Oct 2020 10:34:36 +0100 From: Jonathan Cameron To: Rob Herring CC: , , "Thierry Reding" , Linus Walleij , Stephen Boyd , Shawn Guo , Bjorn Andersson , "Baolin Wang" , Guenter Roeck , Jonathan Cameron , Mauro Carvalho Chehab , Laurent Pinchart , Lee Jones , Ulf Hansson , "David S. Miller" , Bjorn Helgaas , "Vinod Koul" , Liam Girdwood , Mark Brown , Greg Kroah-Hartman , Daniel Lezcano , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH] dt-bindings: Another round of adding missing 'additionalProperties' Message-ID: <20201005093436.00004913@Huawei.com> In-Reply-To: <20201002234143.3570746-1-robh@kernel.org> References: <20201002234143.3570746-1-robh@kernel.org> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.124.175] X-ClientProxiedBy: lhreml730-chm.china.huawei.com (10.201.108.81) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Oct 2020 18:41:43 -0500 Rob Herring wrote: > Another round of wack-a-mole. The json-schema default is additional > unknown properties are allowed, but for DT all properties should be > defined. > > Cc: Thierry Reding > Cc: Linus Walleij > Cc: Stephen Boyd > Cc: Shawn Guo > Cc: Bjorn Andersson > Cc: Baolin Wang > Cc: Guenter Roeck > Cc: Jonathan Cameron > Cc: Mauro Carvalho Chehab > Cc: Laurent Pinchart > Cc: Lee Jones > Cc: Ulf Hansson > Cc: "David S. Miller" > Cc: Bjorn Helgaas > Cc: Vinod Koul > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Greg Kroah-Hartman > Cc: Daniel Lezcano > Cc: linux-clk@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Cc: linux-spi@vger.kernel.org > Cc: linux-gpio@vger.kernel.org > Cc: linux-hwmon@vger.kernel.org > Cc: linux-iio@vger.kernel.org > Cc: openipmi-developer@lists.sourceforge.net > Cc: linux-leds@vger.kernel.org > Cc: linux-media@vger.kernel.org > Cc: linux-rockchip@lists.infradead.org > Cc: linux-stm32@st-md-mailman.stormreply.com > Cc: linux-mips@vger.kernel.org > Cc: linux-mmc@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-pci@vger.kernel.org > Cc: linux-pm@vger.kernel.org > Cc: linux-remoteproc@vger.kernel.org > Cc: linux-serial@vger.kernel.org > Cc: alsa-devel@alsa-project.org > Cc: linux-usb@vger.kernel.org > Signed-off-by: Rob Herring > --- Hi Rob, Acked-by: Jonathan Cameron # for iio However, one of these made me wonder if the binding was simply wrong... (definitely highlights why we should have additionalProperties: false where ever possible). ... > diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml > index abd8d25e1136..4c1c083d0e92 100644 > --- a/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml > +++ b/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml > @@ -47,11 +47,17 @@ properties: > vddio-supply: > description: Regulator that provides power to the bus > > + spi-max-frequency: true > + spi-cpha: true > + spi-cpol: true It isn't completely unheard of for a device to operate in multiple SPI modes, but it does seem to be fairly unusual. I took a look at the datasheet and at least from the provided timing diagrams, these are both required in SPI mode. http://invensense.tdk.com/wp-content/uploads/2020/09/DS-000292-ICM-42605-v1.5.pdf That doesn't make the binding wrong as such, but we could be tighter in checking this! I'll add this to my list to take a closer look at sometime soonish. Thanks. Jonathan > + > required: > - compatible > - reg > - interrupts > > +additionalProperties: false > + > examples: > - |