From patchwork Fri Apr 6 17:15:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10327333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A17F26053F for ; Fri, 6 Apr 2018 17:16:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9313F295B3 for ; Fri, 6 Apr 2018 17:16:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 873B7295B7; Fri, 6 Apr 2018 17:16:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A517295B3 for ; Fri, 6 Apr 2018 17:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751936AbeDFRQK (ORCPT ); Fri, 6 Apr 2018 13:16:10 -0400 Received: from mail-by2nam01on0071.outbound.protection.outlook.com ([104.47.34.71]:43531 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751678AbeDFRQJ (ORCPT ); Fri, 6 Apr 2018 13:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uievolution.onmicrosoft.com; s=selector1-xevo-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1O6qyji9LAhf1n/2JSUaKO5WTuJ9uSgyCCyAZaflibc=; b=O5Ds4GFE3OCvWQQGjFrpXghtBhRKbJWjPOgQUw9Ljsr+IgLtxw0lpCzP6AJpuIVUC3YRl91pMDId9b7jI9M8aF0oxZxn1CIAw1rzOu45KnDZUXAWoxUdQhNpVxFhI7V1i3bRYwkZPkK9Sx8M9b70czMhgWxJvA5DAM8xQCcIvPc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; Received: from columbia.corp.xevo.com (65.122.179.226) by MW2PR0102MB3420.prod.exchangelabs.com (2603:10b6:302:3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Fri, 6 Apr 2018 17:16:07 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org, Jonathan Cameron , Jean-Baptiste Maneyrol , Martin Kelly Subject: [PATCH 2/2] dt-bindings: iio:imu:mpu6050: support more interrupt types Date: Fri, 6 Apr 2018 10:15:52 -0700 Message-Id: <20180406171552.2969-2-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180406171552.2969-1-mkelly@xevo.com> References: <20180406171552.2969-1-mkelly@xevo.com> MIME-Version: 1.0 X-Originating-IP: [65.122.179.226] X-ClientProxiedBy: MWHPR1601CA0014.namprd16.prod.outlook.com (2603:10b6:300:da::24) To MW2PR0102MB3420.prod.exchangelabs.com (2603:10b6:302:3::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b49bf8ad-2446-4dc8-5ccf-08d59be215b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MW2PR0102MB3420; X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3420; 3:fq9YMo5jzXp1Ff3xl4E/xeADUyStOR3K2oEsLm4Pg9IsE8O/cp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bNudEU5UN+CIgwo0w01XhTKAhYCQhSQLgcLM1H9sfu38sIK+qItgr8KEmEFv/YRVYP6ltfrxIRqgpLfeTdLaBlYTvD9+Fkc236Oar0o2xueKFWeleucGNG19cy0iFkxGIA7KRzNOsffMgRnL1XcvzrmsiJL/MExpV3rHWdpfUXoTr7a8kr5BDMTOq4jPf7TbyBqK6zkb1Q2iahlAfr+pOblFWbcV9LoH53cRFLoHiDopO9Nwqy5jo+9pK8qmSXbOtBDJLIShQCip0vBbNc52PIqtemh0CqYaz3Qmx4RzhBCQU/xxlNg09T9X883; 4:LXJZz9hS0pI6lQsBQFwGpoDgLB/ftBd1uaqnPIKxGbZ+9SKPboks/gEl8jfSO5qdgUwOZnsfb5ybBt6ZPG6rHlC0OzsculYqCwC4t/EAJUX1Nvo77iJ2PLbnULkpZqAo9LaFY9XR0IDo5AlTiPFSPX43X6k4XIYWIeViIocHIZdr7QbjOc3Dssn1t484axaczjNLW3he2y2tE6U0D3eQukElF6+9Glz+hglzGKVIEfAYmO1ZYdhLMmMF5+rA+SDkOMvPKC160Ua6dPGlL12gCw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:MW2PR0102MB3420; BCL:0; PCL:0; RULEID:; SRVR:MW2PR0102MB3420; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(346002)(376002)(396003)(39840400004)(189003)(199004)(51416003)(106356001)(76176011)(186003)(478600001)(386003)(2351001)(2361001)(16526019)(26005)(7736002)(48376002)(305945005)(47776003)(52116002)(25786009)(86362001)(6116002)(11346002)(50466002)(3846002)(956004)(2616005)(476003)(486006)(5660300001)(16586007)(6486002)(6916009)(316002)(6666003)(4326008)(97736004)(446003)(53936002)(1076002)(66066001)(36756003)(8676002)(54906003)(50226002)(68736007)(81166006)(105586002)(8936002)(81156014)(107886003)(2906002)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR0102MB3420; H:columbia.corp.xevo.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: xevo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR0102MB3420; 23:VcKVckJHysU8kgAHdghrhKaBDgaoXQlN4m0TA/N?= =?us-ascii?Q?nX1RX0kgJsoLlJyDCkZDHdvoMTxktlIJ/28XNB2sFZCnhedHnjbv2ac+VigY?= =?us-ascii?Q?DlcJL75z3ssyEWdEPb/lAITmpmPIg04ldV+Ho0eBvySwTxBhuctpepq6Gg4b?= =?us-ascii?Q?ck+v28aAhm6pP4XtZGmoE02u7AEWjDi++9oD6kvKlqgJi4GLriM1UGonRhFJ?= =?us-ascii?Q?Hg7rEU4ajNZuNyKSkUPpcQ0qn8/dcIAiZtqIPWL8k0tVl16d0Cr317txEqFt?= =?us-ascii?Q?l2Z/ePKM4EWfkyM+i0U5NdqdV9aetrzQ1JAxYetFCOU/9hUgCxen0nRTs0b+?= =?us-ascii?Q?fyAqPVT72VRSnc6qF9yeao98ZBZk+nu5QEaWl6aggmslWzRUrdASQL5MhFE1?= =?us-ascii?Q?OpvHTd03FETmfRk25VcD4bQF3fz5dzk526g0T5mNBfvmPOusRGWfJsk+OsBF?= =?us-ascii?Q?oIF6KGPreT1u+mUdNGeZWPIxy1e+uYp9awoL0hoHOE2DLGjfya9I8VL7ZG8a?= =?us-ascii?Q?0j/B5l/JJEPAqnWpdJK6e71Uq+aZ8YboXVMx+wA6bfDX0sNMt4zBXMQU/BAB?= =?us-ascii?Q?rBg3cxYvgWW5VddUFU1Te6C9YPp2GVZFFIMfki0AWAvgJoAA3yzwrwj0Fzaa?= =?us-ascii?Q?I4tY7S0CjewP/H2uRh7WR358x1FK2YslNuPtXzKOXSGXYEW8yvSbWde3LA8J?= =?us-ascii?Q?820axJrcIDMVF6j6AAq50GU+R1WTadgFyskQBQK3XV4IwSWdse3TIU9BSb7d?= =?us-ascii?Q?AJaAPZwBg6jYada7QdowKrrWdaOymE3hX2E/KfLCwwQiSqt8pejxAxmSALGn?= =?us-ascii?Q?N8d6zSeocRSaXsj++NRFJ+lfl0j/2HFW7Tnypm9B4OnNXBMajMWkqz2pHclH?= =?us-ascii?Q?0sd+GPvxGuKTeTpZ95IyQ1mr4ZdRmZ1VZ332EsZ7SBHtUSKhuytY7rxUc9T7?= =?us-ascii?Q?HdYe4pgVWYDGVV3DvjcVW6N0dSNyERuZZL3ENlx+Ao3oKTLVhUs9ZMrIfryR?= =?us-ascii?Q?w6bInzZyV9GIJLCxudJl3Kt06JaKx1f102ncf/o2YFcUShP+kvSD2W62QSd3?= =?us-ascii?Q?LEPkJF0oAgVG8fcsMHJl2YC1nwf4Ph+XnM1LesiKo7t0htTwK9Ma7oKY1jMY?= =?us-ascii?Q?FlGlb3SgR/XYyuIToNTCpt4woV1sMZHZT4gjR0BKLiqAp7MVSTtZx1ZL6zEt?= =?us-ascii?Q?18Zk6aT1pD+ObkY1rS7bO2PcOtd5aHTI+7oVs5gF0QDGmKuIxwOu8Rk9Eafk?= =?us-ascii?Q?AiB1i8wxhPuBjc1c6cI8=3D?= X-Microsoft-Antispam-Message-Info: yb8rH+ZHwuHLIXvcoj2w7kiDdIpIGUr8E0p9VP+jE+xanshXIuKcXXUHjOO1LctvTm0eE6MjTjLznlCfEBNmh1hm1t8PzA5MF79CVW4l44b8yxxyvxbIIB0xrPY8KHliWJ1OVOO4p3EE29sFkKkkPL9WoReTDesqQriWoSQfW/1xNK6hwSrcJWae3t3duxjq X-Microsoft-Exchange-Diagnostics: 1; MW2PR0102MB3420; 6:bFvz6fr5X1S4flr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-OriginatorOrg: xevo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 17:16:07.1577 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b49bf8ad-2446-4dc8-5ccf-08d59be215b7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR0102MB3420 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document that the inv_mpu6050 driver now supports falling edge, rising edge, level low, and level high interrupt types, rather than just rising edge. The language used is the same as that in st_lsm6dsx.txt. Signed-off-by: Martin Kelly --- Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt b/Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt index 2b4514592f83..6b106d5ef298 100644 --- a/Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt +++ b/Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt @@ -11,7 +11,12 @@ Required properties: "invensense,icm20608" - reg : the I2C address of the sensor - interrupt-parent : should be the phandle for the interrupt controller - - interrupts : interrupt mapping for GPIO IRQ + - interrupts: interrupt mapping for IRQ. It should be configured with flags + IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or + IRQ_TYPE_EDGE_FALLING. + + Refer to interrupt-controller/interrupts.txt for generic interrupt client node + bindings. Optional properties: - mount-matrix: an optional 3x3 mounting rotation matrix @@ -24,7 +29,7 @@ Example: compatible = "invensense,mpu6050"; reg = <0x68>; interrupt-parent = <&gpio1>; - interrupts = <18 1>; + interrupts = <18 IRQ_TYPE_EDGE_RISING>; mount-matrix = "-0.984807753012208", /* x0 */ "0", /* y0 */ "-0.173648177666930", /* z0 */ @@ -41,7 +46,7 @@ Example: compatible = "invensense,mpu9250"; reg = <0x68>; interrupt-parent = <&gpio3>; - interrupts = <21 1>; + interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; i2c-gate { #address-cells = <1>; #size-cells = <0>;