From patchwork Wed Jul 21 14:03:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12391109 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C0FFC12002 for ; Wed, 21 Jul 2021 14:19:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DBE5960FE7 for ; Wed, 21 Jul 2021 14:19:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBE5960FE7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6EW+SDnPLn6tuLfK8BqUWFrxuLArDoc1p47HFU0+ED8=; b=DnsFUN5nHoRki8 JV1mKhRovHv6L+XBJYpiFUqp38sO+GM2zUW995Eac5T5G3ZK3yiXxBtJo/EpOOgS26vCt4+/UTtCt 53nIOjibKQ4Lw5yulIwy0rEupaQafwe3C/2JhNNYzeZL0cYm3JI3U/bKyzAjJ9ONX9v+8yH0CLdrU SWukU96PpSoQN437AQHoTSgb2ShT7EQeZciU9Sqvk5e2pdKreTNHp2MWiw9B+ps6mxSYbXhc+hMqG wkUHfagyzl/1uYTMt1euvLYyQWP+Q44FCQZ49FLm8dzzCsY9aaBXSqyIty5NvwjYmSs7vl6SH3OmB YeyB/hK9O2i3fRhNVfUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6D1j-00FuRB-JM; Wed, 21 Jul 2021 14:16:49 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6CqL-00Fpy9-1Y for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 14:05:02 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 6651B58046C; Wed, 21 Jul 2021 10:05:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 21 Jul 2021 10:05:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=QeOchd+CZdjeE XdSS0D9yGD63me0JpT1UMDTmCureZ4=; b=BhgMFZfHMh5c8P3JHTp63tKFNX0ZQ mRFbsP5Q7kfXvTMyiwMp1GHlGn2pll7NDVJx8JBTjSdWdsacjgLjTcmjlZPFfZUJ 3Q2CPr/qk1vM4mbEiwiCR8MZf5iDBw+RmqvPT6jIJf5h6eS7oIx8vCRFtIaomIes 65zQCieGj6oQkaAFRIZmWW39bSOTaahZFkG0+3kFK+nmwEhAo64sfQmNryA09IFx I7uWJW33wZ1ZAYz4QuyrvlmS0espzspyCSk8Nc1dFliPGEInINdKWRFGVQ/8Ipp4 1RU6dAY3m3ojNgZLdd9fV+dzlCWAD2k/exBI6xJ64KacTi6Ru3ysI6WHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=QeOchd+CZdjeEXdSS0D9yGD63me0JpT1UMDTmCureZ4=; b=vFP2kFT/ d7HnW7M4Cjom+4bvsCOAIuB0NmJBVdV5gXqZmJE3XkWctcJAXTZq5jwyqonD3hV3 LO/bRzl7OjLrrEJkADSRciLdnszA10G2VrIIo9JqT03D7nwhe8rr4+qyKFzH67hv QXRjxYvdK8xhJH5o9aC5M5Z4gmV7stZtbJIbUZ+uO2/lkVBWZsvD2TLbMzGqwLLr NFcYC76xvLzSVv74X3FG0q05o2Wp0yNMWkvxdrMp9r63WkEU8/4S+1GjUsnGNepU y+TgTvj/ashm3ZVn3q0yL/PKOddJ1S+LKob6KocGUPAD7Z2hLSEi8OIKTRDUdkC5 xJOQr+gV4G844A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeeggdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Jul 2021 10:04:59 -0400 (EDT) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , Jernej Skrabec , devicetree@vger.kernel.org, Rob Herring , Frank Rowand Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Denis Ciocca , Jonathan Cameron , Lars-Peter Clausen , Linus Walleij , linux-iio@vger.kernel.org Subject: [PATCH 15/54] dt-bindings: iio: st: Remove wrong items length check Date: Wed, 21 Jul 2021 16:03:45 +0200 Message-Id: <20210721140424.725744-16-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210721140424.725744-1-maxime@cerno.tech> References: <20210721140424.725744-1-maxime@cerno.tech> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_070501_188676_F6778EF3 X-CRM114-Status: GOOD ( 10.58 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The original bindings was listing the length of the interrupts as either 1 or 2, depending on the setup. This is also what is enforced by the top level schema. However, that is further constrained with an if clause that require exactly two interrupts, even though it might not make sense on those devices or in some setups. Let's remove the clause entirely. Cc: Denis Ciocca Cc: Jonathan Cameron Cc: Lars-Peter Clausen Cc: Linus Walleij Cc: linux-iio@vger.kernel.org Signed-off-by: Maxime Ripard Reviewed-by: Rob Herring Reviewed-by: Linus Walleij --- .../bindings/iio/st,st-sensors.yaml | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml index b2a1e42c56fa..71de5631ebae 100644 --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml @@ -152,47 +152,6 @@ allOf: maxItems: 1 st,drdy-int-pin: false - - if: - properties: - compatible: - enum: - # Two intertial interrupts i.e. accelerometer/gyro interrupts - - st,h3lis331dl-accel - - st,l3g4200d-gyro - - st,l3g4is-gyro - - st,l3gd20-gyro - - st,l3gd20h-gyro - - st,lis2de12 - - st,lis2dw12 - - st,lis2hh12 - - st,lis2dh12-accel - - st,lis331dl-accel - - st,lis331dlh-accel - - st,lis3de - - st,lis3dh-accel - - st,lis3dhh - - st,lis3mdl-magn - - st,lng2dm-accel - - st,lps331ap-press - - st,lsm303agr-accel - - st,lsm303dlh-accel - - st,lsm303dlhc-accel - - st,lsm303dlm-accel - - st,lsm330-accel - - st,lsm330-gyro - - st,lsm330d-accel - - st,lsm330d-gyro - - st,lsm330dl-accel - - st,lsm330dl-gyro - - st,lsm330dlc-accel - - st,lsm330dlc-gyro - - st,lsm9ds0-gyro - - st,lsm9ds1-magn - then: - properties: - interrupts: - maxItems: 2 - required: - compatible - reg