Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1039980pxk; Thu, 10 Sep 2020 05:41:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztn6gMQP57qgpgvCYbD2UV2lTeiaci1ygzm3E+lvnE6RXxSBSOj08JMToDAbCnSdJt30+z X-Received: by 2002:a17:906:2f0c:: with SMTP id v12mr8389880eji.484.1599741690985; Thu, 10 Sep 2020 05:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599741690; cv=none; d=google.com; s=arc-20160816; b=JUXXSZyJzEogmaTwiUPH0A92BcmMXIc030TSxj6Olh5v1oUeuzmCiyn83D1/hDEXE3 xeb5y8aEX4va/80rDz3uf3CpB8n+TBuvSxw+W7y7tTARN6qnNYSLso9+cPEU9wPJqTiQ +Jt/C9qbrSg3Ou1qU/DNcuFaw8EhD8Y5Gg5LWTZQiE0MH82hS7e8HhhNWY3ijZN8FhsA zhVxKC93TiqZaiZN/miIWh9t7KHrmZNavF5GTgIxZV5xmGZDj8yPAPGDfO8KvNCZGWWB sjlahxYIyfZMXcwzagm4i92zD5WG57EOvSYFxiQw+qlV8qckv3SePaBE+wi4YnOHYxEt 2h+Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=IzxjoPaMQc9B6zlZdwHVMSfharVj9E/vN3hUoz6wb3wiRq8Sno464kLVxPMZ5vYaTQ tGS8SFKunYT22Tz0gHdvFBW5LJBk7SCi2FrXzZVth655wteWMmepnTw4hCt+hTLyE3aq 7Us8QnQWrcLNhJO7vCbZM11MMFL8f434xkG2mRnfLOXmQdQWhArPMBKhHsgQfcd3efOL UBefm0ywfNdh9Wxhjwg9Y1jFQbsZrXFQVXpQVrhCjpUtqocBz7Fapw92f4sJ5nbDcBwn eRdya7CiW7Nb780oq0bhU6zVg/biXyrddJIN6CgHVa3t7bVMcJWC146nR1qZF9aZYlOf Jc8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QQyE+kit; 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 a20si4646829edj.252.2020.09.10.05.41.07; Thu, 10 Sep 2020 05:41:30 -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=QQyE+kit; 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 S1730822AbgIJMjR (ORCPT + 99 others); Thu, 10 Sep 2020 08:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730720AbgIJMcz (ORCPT ); Thu, 10 Sep 2020 08:32:55 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4174EC061756; Thu, 10 Sep 2020 05:32:46 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id c196so4684704pfc.0; Thu, 10 Sep 2020 05:32:46 -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:mime-version :content-transfer-encoding; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=QQyE+kittH/tfmJ8ZNi17jn05QZQZcXwMXVymiKtSy+2DeXb1jiT3escHBvEh6nBkR N88tlDY4zkfS37XNjX8SIuiq73jsc6YnrdrzA0t1dU2T2teWmUc2+DzpOA/8ZAtN5wNs +7b3EL7XVaNrhEX3l6z54aV0/P3PLQGCwEtcf3mdgUZJZ+1IH5g7aOTRY+80M6ykaEjE W9wHsMdf7Ii9vErVU1ctuZ7zBc33XwdDB9NDd93mll4W9W2Ayhlf03qiMEIiA3ilo89s z1wfC/PhdoTHEdGcuufJztn+lVo39fiNHxrCIK+IiuXNLL5FdM1D/saoqSFHIG8oh2Un /K+Q== 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:mime-version :content-transfer-encoding; bh=mEwZSmSPM9tJPXbfj/hisKYRPYb4G1wKBGhUAXFVXQE=; b=E+cNJO1uin1vPr8ATnylU5fSGCTi9rVpWsAvV5c0GJ60IPMUrS6aVVBBkUNDKDj2MS 7v7x+F9NSAX6kbGgIoqIoeYPEmfiMF3vTIc5g5NSQllqvLejuveHW9IzXXEd2OIXlE+k bzEvsR/Vxc7jkQwEGdl09MlSTdaGKAdZ294SYDTfT+TjveFqRHHj08A0qSLEDwDem0N0 h/rcC7dErP3QG6Ndw/rRgv2WDqYrq++hw82fNashmL6Qd0pNhyPCmT/piJ5LJC7bhAOM 7xMtOYW4HOQIgGS78FKOZZPPy3KnAE/91iYREm1ABQAbM5UijXcCiBy+eo+wntq8VgmJ BrwQ== X-Gm-Message-State: AOAM530nJ5DLYMz4hjhfXh6JpBCCa274icD41BIx29RzvP0kAHy46iRo RRKLYgb/HikTOjzfRdXgVIBHSc1uFfQ= X-Received: by 2002:a63:4d5b:: with SMTP id n27mr4212074pgl.360.1599741162699; Thu, 10 Sep 2020 05:32:42 -0700 (PDT) Received: from nish-HP-Pavilion ([2409:4072:6218:54d7:9928:e984:12bb:783d]) by smtp.gmail.com with ESMTPSA id c1sm5799309pfc.93.2020.09.10.05.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 05:32:41 -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: [PATCH v3 2/3] dt-bindings: iio: gyro: adxrs290: Add interrupts support Date: Thu, 10 Sep 2020 18:02:36 +0530 Message-Id: <20200910123236.17141-1-nish.malpani25@gmail.com> X-Mailer: git-send-email 2.20.1 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