Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1270381pxk; Thu, 10 Sep 2020 11:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2v0l5f38JAGA0AoH/IuzlbJKHTW5PV+QAAG5n01GWUNHkkLujPBnB7tWTQyyZ23MFXYMu X-Received: by 2002:a17:906:341b:: with SMTP id c27mr10010017ejb.286.1599761270674; Thu, 10 Sep 2020 11:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599761270; cv=none; d=google.com; s=arc-20160816; b=HMnvmM76PdSoIuMCmhCpJiGDuHdX53BQUWgYnoxiSibiCAdJ8AW0wSSzTKML6fgr8r 67YsKTKbYcSBkp/IKq2KvgauvrZYnxzJI/ghvMj5I9JC/XSws8fBDq2tKebbWwQSfz5i Cc1QFkyVOHDIzaOZLvEt+iwR7jodaswSQr5yg0C+DtqH8GOu+1gcUsxyHusCt+htbDTz nnyLGlriiWStoEuBIwVjhgalfw+idjb/aMzfGuzyRv88rRxS5ANEaMx2US8bmpFPp7+c cVrljCw+vE3geleKtKHwlNRQqI6ILuTsUMnxEJsjgBTI642fe2qgdZAVQ1J8eXCXA/St 76KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=ERihTqb6DDWZXCaTT8oAgmexCpCzjW+1+bwgoZsj/Z5hmiK/urU7e3M21LThZP+rVN f3B7faxi+L0+WoUD12Wgf1/GiAfA8YygQUVzhBMKahG5a+Eq+DYpqO6RU7xpL+SwgzUZ rU9CUIqrefEJ8eg0NuDTAY3tp4izD9KaWJaaxrWu8fZfVrqbn9fB/upHkFUlCT9n4erU TM9bqqO6Nao+froRIAwe/2y4zZJ+uemGFFJDHc5mlchEFdWc51uR6LxFLFwkwrGh/IAq VW7KUGQWmQJJPiypfjgcQbl926NxbVWDIfp0bx3/DRGqCU3nfFFm6ZwRX5IxmbNR3cLA 43CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t28s2ohA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si4091891edv.381.2020.09.10.11.07.28; Thu, 10 Sep 2020 11:07:50 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t28s2ohA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbgIJSGn (ORCPT + 99 others); Thu, 10 Sep 2020 14:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbgIJSFr (ORCPT ); Thu, 10 Sep 2020 14:05:47 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BBABC061757; Thu, 10 Sep 2020 11:05:47 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w7so5091875pfi.4; Thu, 10 Sep 2020 11:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=t28s2ohAlSG3nVPgGmhJ9BtHHniLCxcuBl1dSx2uX8dRKSd84C+/w6E7KceCTwhEBG DMLxo6p3upAgq3btstD8SUZfDQypTTqA2JjOm/dbtwqTeWvJkJPI/5RiO6DMh7EhFImN cqM46aKbyCYnaGx0RX3lIaSognEZkwZ+15E5fDWU/2p9wP+ZTLkAXbHSMvrX8lscBbq+ //h0PQuybrORv3zCLQ48eqLcTQO7n8EW7BXnEoOcUNay1NpF0sAkwi5bf1I9fmltNYK1 t/GmQjm4oZM4MHB1RkNXfpcgOwHN/BLhFPI32MDk6Vtln8npZF4aq2QB0ZqT2BcTJPNL a0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=TEFhcUSWGu4ys6+jgIF1SLuKtZ4navr/XjilKRCJQS0shY5fMKEKACc27Q/1Z/wqjK duA3HcXIL9rlbhhRB+WJYNSTgdvRlfJ+qRel9YjRSndRRSKthDSkSMa1FevAiicAtQcz YdvORBRQ6IzODFgJAvnUKDzE5K3G1FgGpqg0nTXWUcCzMEIQyooSQeW2Hacl4HQJv28D EIkuAsVy793mpyBeDV8mYLlfecf0iLwv2BSIRS7xCXpPKD1jrCwDQS9bNgzHxiQdg+MN w8WF8pxZm4sjqHG2iJu+Nz32eGv2rBd8ZrTh3Y+DdMynZPfnmfksrv1SgjKF57vgkFhM NEAQ== X-Gm-Message-State: AOAM533bV8zGzsDH9m2gshi+kEPimwB6KYmYhsq2MJSPO4FaHb8VSCaO SIBLTnyz5DOJ2jXXa90i9kA= X-Received: by 2002:a62:8c86:: with SMTP id m128mr6545841pfd.111.1599761146894; Thu, 10 Sep 2020 11:05:46 -0700 (PDT) Received: from nish-HP-Pavilion ([2409:4072:6218:54d7:9928:e984:12bb:783d]) by smtp.gmail.com with ESMTPSA id f4sm5799390pfj.147.2020.09.10.11.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 11:05:46 -0700 (PDT) From: Nishant Malpani To: jic23@kernel.org, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, andy.shevchenko@gmail.com, Nishant Malpani Subject: [RESEND PATCH v3 2/3] dt-bindings: iio: gyro: adxrs290: Add interrupts support Date: Thu, 10 Sep 2020 23:34:49 +0530 Message-Id: <20200910180450.29696-3-nish.malpani25@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200910180450.29696-1-nish.malpani25@gmail.com> References: <20200910180450.29696-1-nish.malpani25@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include 'interrupts' property and provide a suitable example for using a GPIO interrupt line. Signed-off-by: Nishant Malpani --- Changes in v3: - remove gpio.h header since unused Changes in v2: - remove 'interrupts' property from the required properties list - rewrite commit message --- .../devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml index 61adb2c2454b..662ec59ca0af 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml @@ -28,6 +28,9 @@ properties: spi-cpha: true + interrupts: + maxItems: 1 + required: - compatible - reg @@ -39,6 +42,7 @@ additionalProperties: false examples: - | + #include spi { #address-cells = <1>; #size-cells = <0>; @@ -48,6 +52,8 @@ examples: spi-max-frequency = <5000000>; spi-cpol; spi-cpha; + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_EDGE_RISING>; }; }; ... -- 2.20.1