From patchwork Thu Sep 10 16:19:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11768223 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DBBE492C for ; Thu, 10 Sep 2020 17:19:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE885214F1 for ; Thu, 10 Sep 2020 17:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599758381; bh=E5MilslhrwDTn9643nyVveDghPC9CwnzqfWv/QBY2oA=; h=From:To:Subject:Date:List-ID:From; b=AnNvfKU/UwTUN6FOYhRmc2Qb8rfEOO8z3TNP7QJFIIRYoU+/MnRaBrjBQjq8Re7GH zIcEJkc8H70apM5UIEAroWWoYYxW99NXvyJk1K/Png77RQXgXPKhIkS8GgF4b/0P7e O3L23WvKULG9J3kBEN/6UoPwIakUK4HOt7trDDvI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726226AbgIJQc4 (ORCPT ); Thu, 10 Sep 2020 12:32:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:36722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgIJQU1 (ORCPT ); Thu, 10 Sep 2020 12:20:27 -0400 Received: from localhost.localdomain (unknown [194.230.155.174]) (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 25690206A1; Thu, 10 Sep 2020 16:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599754781; bh=E5MilslhrwDTn9643nyVveDghPC9CwnzqfWv/QBY2oA=; h=From:To:Subject:Date:From; b=OF8xq9xhv+JmwGyjqxkh9SDIuZDYO3T85mMKEHok2TZefbQyNUqptmBg2DbF5ESAi LA0FbreygSKV8b+pD5lSmoAtnGHNg3P3w99wFmGyqwNUcESwwHhY65ypiOtty5g9uJ CwR/Z7tFZBQ1RAj5U3e+1I9vhJXj5CLb+xGhPJSg= From: Krzysztof Kozlowski To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Kukjin Kim , Krzysztof Kozlowski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen Date: Thu, 10 Sep 2020 18:19:32 +0200 Message-Id: <20200910161933.9156-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org 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 Acked-by: Jonathan Cameron Reviewed-by: Rob Herring --- Changes since v1: 1. Fix if:has-touchscreen, as pointed by Rob. 2. Add Ack. --- .../bindings/iio/adc/samsung,exynos-adc.yaml | 14 +++++++++++++- 1 file changed, 13 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..17a08be3fe85 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,15 @@ allOf: items: - const: adc + - if: + required: + - has-touchscreen + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + examples: - | adc: adc@12d10000 { From patchwork Thu Sep 10 16:19:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11768155 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 63082698 for ; Thu, 10 Sep 2020 16:32:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 48672214F1 for ; Thu, 10 Sep 2020 16:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599755577; bh=XL/yLUGWGiJdk/mhoX+RmpLCAvn1heVhfC4nRB0t1CQ=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=Deg8+t1HWIc95U96X5HW0RkU1kNp8u4x1/jcKLkOwkewwa/9yOEZ1AxvYMQ8qn+na 5UfTAI908G5ilkZM4JBEgn08rDUHH6YyiCuqqCR4mRjYcP2ZHUSZQZFuCjn8+uA5xX JHI2D8GA4CNRNkAnHcabaTV/lTzvdbuZAFqsZeVE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725803AbgIJQcy (ORCPT ); Thu, 10 Sep 2020 12:32:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:36768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgIJQU1 (ORCPT ); Thu, 10 Sep 2020 12:20:27 -0400 Received: from localhost.localdomain (unknown [194.230.155.174]) (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 9AC5321D79; Thu, 10 Sep 2020 16:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599754785; bh=XL/yLUGWGiJdk/mhoX+RmpLCAvn1heVhfC4nRB0t1CQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AhUWISxmRLPEeqyqFN1VIILYUYzcyK30t5NC24oFgTnSStnAQKsb98uImfzCQ+0Tb 060ktHYZuk7rRnCS/pZu0WUiZV2eTlNmKjc9rjDT6xbGuEMP45nB45vOaLLTIreiws LWEqENAeNFCTmrP4l0prN77w+e/mcGDOlHhB6ZGM= From: Krzysztof Kozlowski To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Kukjin Kim , Krzysztof Kozlowski , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: iio: adc: exynos-adc: do not require syscon on S5Pv210 Date: Thu, 10 Sep 2020 18:19:33 +0200 Message-Id: <20200910161933.9156-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910161933.9156-1-krzk@kernel.org> References: <20200910161933.9156-1-krzk@kernel.org> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The ADC in S5Pv210 does not have ADC phy registers in separate block for which syscon would be needed. Remove this requirement to fix dtbs_check warnings like: arch/arm/boot/dts/s5pv210-fascinate4g.dt.yaml: adc@e1700000: 'samsung,syscon-phandle' is a required property Signed-off-by: Krzysztof Kozlowski Acked-by: Jonathan Cameron Acked-by: Rob Herring --- Changes since v1: 1. Add Ack. --- .../devicetree/bindings/iio/adc/samsung,exynos-adc.yaml | 1 - 1 file changed, 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 17a08be3fe85..37d6591ff78c 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -81,7 +81,6 @@ allOf: - samsung,exynos-adc-v2 - samsung,exynos3250-adc - samsung,exynos4212-adc - - samsung,s5pv210-adc then: required: - samsung,syscon-phandle