Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4203311pxk; Tue, 8 Sep 2020 13:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjoONm0fBci/zsmOPNcM6EJygq7Cg1iiLjRWLsz9/yjvKLolF0EXSNkNSo4u2sTPCgEv0o X-Received: by 2002:a17:906:756:: with SMTP id z22mr226598ejb.31.1599596935712; Tue, 08 Sep 2020 13:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599596935; cv=none; d=google.com; s=arc-20160816; b=Nn9Vu0kLbbc3Vps7CekQTb+bBrTuHeHEcYbAOWuEUu4PEeBFbexDGB9vamPPzM8v7x 6rLWwmZRFD8/12+1ekw8/Gw01ccJDJ6eawE6slvPU3sP9xRRUoSYW5gm8dvpbUOZ5phz +Z1DDOfQp5SokMLDPCZ+Blq6prekb4Si2MoceWPx9UMXsvUDyPdlUMh6eIME8t+f6h9H x8tFnWd7F5glZM1eHDRN66XllWxXvkMDfZOjhFAIjoJSqDq5xjvrcXWu123YbEwxHb5A +4PPM0foW3gekPQmk0gzdhgEFhj9cXwklN2XxRoVIaWzZMLGVBZ+MJUYbodNv1/H0EmJ SM2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jY9UdHICeYt7zlT7tUlhe4/kxIL9pAaiTbl/yxvrt4w=; b=QiY9tk2baP9b8Zi8hhWanBefzkfZ0FlXeBoLhLYin1WNHodbnv3EmFKl/oh+KHzclx hVhNdA8m5cKuRFQOWMcGKkVIBcyCiQ9lsvaYP2RPeCrQQ9cms4+kc2KH9NnCuX30OX8/ iHNr9lPM2R/c6h+vSQAFuRbUyNAM/AmSWxSWVyPyCLTUU8zdZL2SdxqXkbSarDyt5Gsn Mb7Ax7E6A6TQaHdsrDN4nEWCnFx//qAhXLXJkB/uEmUeM/AIEDFa7vIsEJV6z8szv6ib kDXmyc7HJbM6fexTg87eIbnGJFV7br0n2c+w6CXIi7CMXGf8hZu5/WoQovCkDfgY0nD/ zISQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si97020edl.282.2020.09.08.13.28.32; Tue, 08 Sep 2020 13:28:55 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730190AbgIHUZt (ORCPT + 99 others); Tue, 8 Sep 2020 16:25:49 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:44368 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729691AbgIHUZs (ORCPT ); Tue, 8 Sep 2020 16:25:48 -0400 Received: by mail-il1-f193.google.com with SMTP id h11so156057ilj.11; Tue, 08 Sep 2020 13:25:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jY9UdHICeYt7zlT7tUlhe4/kxIL9pAaiTbl/yxvrt4w=; b=CSwN3P+Smp5zOYxW7nH+4M9SO2ezArKowt9Tl+AaxbLhIomnL2of55yizPP3reyT11 aeHUDqAD6dW0RHFHs2T70/igDGqGhobGeM/MbUVqgUoAmXTegvxGevTupFjKXCDeL7Bd jDcT4lua3qT0rGMS2+DgsuMnBF3WC0863GeTT0xiUBFS5A3NIIhp/dXAmn0jKsn3PinT rXhkow3YY8tlb92AszWegy3ab7LhoW7+1ibEBaAjPRYMzbdKtw/eqdCeifiUaL7raD58 mIbZTnu0yVa26y8CD1l6PbzDDASjXP0gZJ1kST+bT9dz1mqG9UuESvxhcG/vXfUIkx+5 qpVA== X-Gm-Message-State: AOAM533//DovIRVetqTauRKU8dAtAbBEIHq0OTiNPkb3k/X3yHKp7X53 O9eEoZMyahlbXEMqubeOGQ== X-Received: by 2002:a05:6e02:13ce:: with SMTP id v14mr527407ilj.79.1599596746781; Tue, 08 Sep 2020 13:25:46 -0700 (PDT) Received: from xps15 ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id c12sm148132ilm.17.2020.09.08.13.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 13:25:46 -0700 (PDT) Received: (nullmailer pid 850495 invoked by uid 1000); Tue, 08 Sep 2020 20:25:45 -0000 Date: Tue, 8 Sep 2020 14:25:44 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Kukjin Kim , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?utf-8?B?UGF3ZcWC?= Chmiel , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen Message-ID: <20200908202544.GB846754@bogus> References: <20200907161141.31034-1-krzk@kernel.org> <20200907161141.31034-3-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200907161141.31034-3-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 07, 2020 at 06:11:18PM +0200, Krzysztof Kozlowski wrote: > The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch > screen. In such case the second interrupt is required. This second > interrupt can be anyway provided, even without touch screens. This > fixes dtbs_check warnings like: > > arch/arm/boot/dts/s5pv210-aquila.dt.yaml: adc@e1700000: interrupts: [[23], [24]] is too long > > Signed-off-by: Krzysztof Kozlowski > --- > .../bindings/iio/adc/samsung,exynos-adc.yaml | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml > index cc3c8ea6a894..89b4f9c252a6 100644 > --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml > @@ -41,7 +41,10 @@ properties: > maxItems: 2 > > interrupts: > - maxItems: 1 > + description: > + ADC interrupt followed by optional touchscreen interrupt. > + minItems: 1 > + maxItems: 2 > > "#io-channel-cells": > const: 1 > @@ -107,6 +110,16 @@ allOf: > items: > - const: adc > > + - if: > + properties: > + has-touchscreen: > + true This evaluates as true if 'has-touchscreen' is not present too. You should use 'required' here. > + then: > + properties: > + interrupts: > + minItems: 2 > + maxItems: 2 > + > examples: > - | > adc: adc@12d10000 { > -- > 2.17.1 >