From patchwork Mon Apr 9 20:21:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10331981 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 9E7C36053B for ; Mon, 9 Apr 2018 20:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9007A28B86 for ; Mon, 9 Apr 2018 20:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8481428BAC; Mon, 9 Apr 2018 20:21:48 +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 0F6FC28B86 for ; Mon, 9 Apr 2018 20:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754272AbeDIUVr (ORCPT ); Mon, 9 Apr 2018 16:21:47 -0400 Received: from mail-sn1nam01on0065.outbound.protection.outlook.com ([104.47.32.65]:52960 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754222AbeDIUVm (ORCPT ); Mon, 9 Apr 2018 16:21:42 -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=SqIc4pn1j8jD69x5thhdtBjef3dzAdCuCoNM3mgEHsZxHzbalOH6sNU3edA1VIt8er0fJ+FQwfxwI4yOY+VH4qRPsLWF5XSH3wJ3oghemBe6fLMZBRLOUgm7DvNPOW5lenCCj6UAmI6gYgRJmYemADqYiXMcChIfpoOXzfeYmrQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; Received: from localhost.localdomain (71.212.16.149) by SN6PR0102MB3421.prod.exchangelabs.com (2603:10b6:805:3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Mon, 9 Apr 2018 20:21:39 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org, Jonathan Cameron , Jean-Baptiste Maneyrol , Martin Kelly Subject: [PATCH v5 2/2] dt-bindings: iio:imu:mpu6050: support more interrupt types Date: Mon, 9 Apr 2018 13:21:28 -0700 Message-Id: <20180409202128.5031-2-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180409202128.5031-1-mkelly@xevo.com> References: <20180409202128.5031-1-mkelly@xevo.com> MIME-Version: 1.0 X-Originating-IP: [71.212.16.149] X-ClientProxiedBy: CO2PR05CA0092.namprd05.prod.outlook.com (2603:10b6:104:1::18) To SN6PR0102MB3421.prod.exchangelabs.com (2603:10b6:805:3::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68aeb385-cf5e-4382-2559-08d59e57805c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:SN6PR0102MB3421; X-Microsoft-Exchange-Diagnostics: 1; SN6PR0102MB3421; 3:A6cDoWW90ThQo+dwkGxBfeUOkY0xVZexYihhzLyIBwzE/EoVLhfPaWVA6QaK7j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90OoqIqr2unrwa8+I9eEZoJDxGM8/R+vJfBb4JewUaMgijMflM0z9h/7fqcElyCLGvBCFf7aUlLG9rckPGbDOnLAH8Q1ozl11EJjUpsZ420Is5Nkvt70BRAtOTzZvJEmtOKkYIn9MUuObDjYehvahpxVMJK1Q1Pj80lKKcOSz8ryWjiQzKXwG/cKNuXemzSVUqxzpJHG/xrOCPoBGZ7Pis5gVnCJITa6Chrn5646PlFnTtudmdy6zkJo/6DSfkmZ5k6q3hU45Yu3VCE65dC8JNpfJ; 4:vgJZKjhh1j/7Mg29smh6cnZpWrhbfIGoif6S3GtfVZEdWTbfcUXWfMk9ZuZl3PEo1Dx5ENfSGaTWppE/9X6dAUorsu4SEg0PnrE7XLd52opEfmYQvZ11hWFTe5cUP8Adlg84vM8DTcI1vASu+prPKyBPBlXwEGVekGdQvJWliixpEkvoFkYyoqNu5upCpPS//PLNNDRuHJ9V+rAXlLPJBE5+FTT/luh5+Xc32Xiyu+tC48dVfk0jXl5cqHoj400xYYr2VH2GLCHJw/DKHjAcLQ== 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)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN6PR0102MB3421; BCL:0; PCL:0; RULEID:; SRVR:SN6PR0102MB3421; X-Forefront-PRVS: 0637FCE711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(346002)(39840400004)(366004)(39380400002)(189003)(199004)(2351001)(1076002)(26005)(3846002)(6116002)(386003)(51416003)(6506007)(52116002)(486006)(76176011)(106356001)(2361001)(2616005)(956004)(16526019)(476003)(186003)(6512007)(81166006)(8676002)(53936002)(105586002)(81156014)(4326008)(316002)(107886003)(25786009)(54906003)(16586007)(11346002)(50226002)(446003)(8936002)(478600001)(5660300001)(6486002)(7736002)(66066001)(305945005)(47776003)(50466002)(2906002)(48376002)(97736004)(68736007)(86362001)(36756003)(6666003)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR0102MB3421; H:localhost.localdomain; 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; SN6PR0102MB3421; 23:jIoS5RG9tgCowxLtofYI+jNVHAZba5rClhew9+F?= =?us-ascii?Q?13A1gRMVWB6I20ifryGwQocZS32X56RJO/RF9OOQPQ9NB+TD7ReR5mrC41aD?= =?us-ascii?Q?SJSASM8cYMqRIOrxSgzkjq5ESF3PJ0mg9y64UYveg9OWDwaMfFyBX98muS+f?= =?us-ascii?Q?8/ASKclDBZLEAHD5PHKAXVZja7EiVR1cqLfFDnyM3xEVPOXNrsunHhWRpC3R?= =?us-ascii?Q?vTF8mL2Gvbl3+iMtjij6sdlHDmBbbezfePI2b6gmo27JCNMg4PICvre2NGKh?= =?us-ascii?Q?EwMU19ggdDKFwIIMfMLFEHgOYdohlQmb7/up7CFqibPMoSzBtGBjYEJB7ok0?= =?us-ascii?Q?HVBdLBEgu0+n4Zpx7Jrsv4Eb/RD/aDqj/lWDbWx1awkkiqmLX1mI5G8ZkVqP?= =?us-ascii?Q?fgrIIX5hUABBX4zthT8JBHjCB4Ld973csinGrlHF8US3k/WgWoiN20qIVW1K?= =?us-ascii?Q?OJlt4EdhSqk1dc69DIUEzNSx+EEP272ooFsDqL+q8Le5+nR6S6Zv7ud5zNiP?= =?us-ascii?Q?tgqPaLLSgnpsRu/+/GSjo1VJ4ymW7Td//eBzM5xCIwFjLAwNb8Vr51LL63Ki?= =?us-ascii?Q?GQf+AsDpm7n/DlZzsYp1QLMh1+ZP933jaTjSlx6ul4qxiJ84FwIMog61/v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/+Kp2tantHmYa9nGK2/8ayFigV3INUC8el8PksfJo X-OriginatorOrg: xevo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 20:21:39.2065 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68aeb385-cf5e-4382-2559-08d59e57805c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR0102MB3421 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 Reviewed-by: Rob Herring --- 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>;