From patchwork Fri Apr 6 18:26:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10327433 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 9E0DE60545 for ; Fri, 6 Apr 2018 18:27:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9011628837 for ; Fri, 6 Apr 2018 18:27:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85380295E4; Fri, 6 Apr 2018 18:27:04 +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 97A4328837 for ; Fri, 6 Apr 2018 18:27:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbeDFS1C (ORCPT ); Fri, 6 Apr 2018 14:27:02 -0400 Received: from mail-dm3nam03on0074.outbound.protection.outlook.com ([104.47.41.74]:46256 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751367AbeDFS1A (ORCPT ); Fri, 6 Apr 2018 14:27:00 -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=uIYYlOzTf+/uZJ568LynsBzsA4gEyYTFQ7S5JmGWwsqzErY+GuDmWphschZGeSKXFBno5IwzahYPzztJsn2h+aZfybynuG/bLap5dcrFvZHgxSx43F1AsxxOlzZBMuRvwAnqZj3QBunCpuPmIW7PFXQArIPDE3wemMo5DwJD2iE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; Received: from columbia.corp.xevo.com (65.122.179.226) by BL0PR0102MB3411.prod.exchangelabs.com (2603:10b6:207:1a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Fri, 6 Apr 2018 18:26:54 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org, Jonathan Cameron , Jean-Baptiste Maneyrol , Martin Kelly Subject: [PATCH v3 2/2] dt-bindings: iio:imu:mpu6050: support more interrupt types Date: Fri, 6 Apr 2018 11:26:40 -0700 Message-Id: <20180406182640.2345-2-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180406182640.2345-1-mkelly@xevo.com> References: <20180406182640.2345-1-mkelly@xevo.com> MIME-Version: 1.0 X-Originating-IP: [65.122.179.226] X-ClientProxiedBy: MWHPR03CA0020.namprd03.prod.outlook.com (2603:10b6:300:117::30) To BL0PR0102MB3411.prod.exchangelabs.com (2603:10b6:207:1a::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85ebaa4a-422b-4e61-15b1-08d59bebf9bd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BL0PR0102MB3411; X-Microsoft-Exchange-Diagnostics: 1; BL0PR0102MB3411; 3:WcxiLVycAl/XP6Aq0+FVJbmaa1ElNA777ZSFVBk5HiUPdSzg1TDsEoPY5APDIWwR8HujIceGhaZSvylz32cGXZearSLMRXruzmbdf3No1C4LYb3SmfpYhzUgixRBC9j7kCBWIMSut17gckHIlELrkGTbLzH6tJa0py5GguDyz8H9g2kyVCl635aW3svKepG5OKA+JnvRXph9N6jXX6cyiduBy56VmPK1TRViI7Co1NoNKOSyUUYB0AjxMzhYYHBN; 25:b8YfnZLMZOVQXchIJRquz2L220dcpwnY6MhuXgUwrBxS1gib/MZFs6lb6jqe+QoDauZkKTSdedzkW0scxk+lThW1knBgXvbIHtO7WtVQD4jLp/IgWAFj9O4yLLWoGVCZvjpGLqzlgg4iHhGxOsRuNqzjHjdo2yh2ZMkRw5CJEUOrZdAeSi/7+6KS77cVBxqsA6xBz92hyxM9FcsE41pFKHqPmZoLjcP2RTnC4BH3Te8BPwqrw9SSN7vDtOoZRHmup4zfAg63UtetneapXtNUkDz4dxWIMQ9CQ9lIMBunzqSYVenUP4xVzHN07sKhSpnoF2lxXTtRJ1G45brnWmYFcw==; 31:QyTRAoYi4Z9xGxs+H9fmdTcBmMBZPLLNhQLxM6hNJeDJJHMb4K9oXltj07LeYhHDriZy6qh0/WizRkExFwEKAGzVeJO5sqXhq2NghEnW+I2gJASoKSHzKkjRHXxGvEBAL2j9lHBOpxqB3afL4v4LKrr1Hwebb1s2dRm34zGgg5EwhkFVnIcsYLsW7GfzzcINmEQ7OSvxtksH/BJOkVS1gxG6iu+quZNGFtCPLdjiVt0= X-MS-TrafficTypeDiagnostic: BL0PR0102MB3411: X-Microsoft-Exchange-Diagnostics: 1; BL0PR0102MB3411; 20:JgphG8dd5sBFIQ0Q1AdFWF2P+V6SwcUrW2PDEi0Kju7M0jZNOLREfcRcG6qj3G+t/yr440BabhQY32EXeZJuism4LyW/sUAOT4W022Z3FLhTNdlHmXqYrjb/oKpejyC+LI00EXRxrZq1NP5HSM3vtXDh6dTrImZwPI/M3J0dySIBw7S8+MLaumRWzs0v4+rCXlSrs4T+NmIx6avJnFhja1FL5MQZKQqwC8dnNYmDJ66jC3UKZwKTp5AiyHw9Jfh2SkQiItovmso2eKzn83Y/Iwy1cMKXWP3KnoPZasqi8IjttmpO73IlafguBMbQiqbZuaSvj7prvRc4930vUlFBZ1IbObhAKeOPl28NzC6edusFtySstpYLzlHC5zHgKme/o0+9Jn4hx/PuXYJ8v915TGWg1lZvwAaiMaDi+feWZAXCr1R2zVRAyIXwUlR6lR5UmHjgm+9vUHV0rRhclGXHmeLP1Viu6heV3YuLckq1hNeBXYroETT8jpBY2urP7ru3; 4:HF4263mkicxb4i+C+9DWlUn2hs5XZG/WVHuXaUEPQ6vEEhTrzz/Ds/7AlJrww+PWgTe/qgPWIXFtu9xvBcvMGJGMGNHIPzdYMuMSK+5Ea79ow/YIf+dR09FdT5ey+gn7oMJlBgWbLE627XxufO6SX6QbDhhREf/cDC14NLcuHuaUXsm0FA4DusTG5I0CO7K7szdNC6CEdcQ93nhF9gpZLKeS/C44IiztKL3ttHVuE+K5eAgN4v6NzrYGz0pPxgGp9zCCq8+LxHLGZfeU39fcTg== 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)(93006095)(93001095)(10201501046)(3002001)(3231221)(944501327)(52105095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:BL0PR0102MB3411; BCL:0; PCL:0; RULEID:; SRVR:BL0PR0102MB3411; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(376002)(39380400002)(366004)(39850400004)(189003)(199004)(86362001)(68736007)(25786009)(4326008)(107886003)(50226002)(7736002)(6486002)(8936002)(305945005)(76176011)(52116002)(7696005)(36756003)(81166006)(53936002)(51416003)(386003)(16526019)(186003)(16586007)(316002)(81156014)(8676002)(478600001)(54906003)(105586002)(5660300001)(50466002)(47776003)(26005)(66066001)(97736004)(2351001)(6116002)(3846002)(2361001)(106356001)(2616005)(956004)(476003)(11346002)(486006)(446003)(1076002)(6916009)(6666003)(2906002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR0102MB3411; 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; BL0PR0102MB3411; 23:/mmWyGvOGcboW2gvodbmzM2x46kosaosAkGzq8g?= =?us-ascii?Q?6lFp2Zrbiy6gj6IPEPhfmIS40sGSLUQ0dNVzc9oCALRMvHLohJvmF4mgESQ4?= =?us-ascii?Q?0NQ4TSTNTamzeNnw1G5IxM+4bK2J/21A6TPq/Cd3i+Pj4skCYmdL0mQcWJ/Z?= =?us-ascii?Q?S9F10BxTjIqdFUJgQHBy9mcINqwIdKmvMz/089XjI/FapW2ssv+O0pcDRv5c?= =?us-ascii?Q?sDOYKmUH5crOQsJf2cSYM2wEUdDwZCXABsVYiL3tI8bMWGwNr0cxhF6fX2Ic?= =?us-ascii?Q?F6D24tyL1slKpyGY/U7tUKzQVRvNTbP2+KN4admnYcyxexaMEjo5CeTyu11q?= =?us-ascii?Q?nefDKVIFd9PcIwwT4QFz0M1ri+oQbuzYSfjdtIbB7M6q0qrQtOd+coE9axpm?= =?us-ascii?Q?TmbGYMjNy/WF+OQhhczpGKPrnaie9ijFjf3N7zueVnNNBPHgXVoOJ59BCRbu?= =?us-ascii?Q?duWFqFNlT86L60baiTPoftkBFmxBxc6vPFeJEm9j9abeqybdAVXRflNwRyMp?= =?us-ascii?Q?sFRvR0/R74ktV2cJUVudj4ARkfU4ETR9lht7d/zb+1hq8Xes8KLkWmsv/FUI?= =?us-ascii?Q?Yw8M8liBZstYyJGZPS0qBuNaLOP+Q4KE9H12ij2gPX42U5tEc4rlPgQjFacE?= =?us-ascii?Q?9m8dsP9J5Pe56SZrH+dTitHhJ2yUMIi9p4Uzybmex+9s/oMGLVbJVezq1T3P?= =?us-ascii?Q?3jt0AtzBJ+7Eg67Mb6ZEPLbLzgITMXCYvoUIdM/s/KvpC2kr5KhX82+jyVQ+?= =?us-ascii?Q?nWmuIAdFdejtOeer4M0TI+te2+iWDusV0E0zyHxcIIVLf+20lLew2sbw7Txd?= =?us-ascii?Q?V8hQ49YabUTQxW1tjhHqIaFtwsjVtlUKyX9QteVV1Tcpnl2oHKwCV6eD2tvE?= =?us-ascii?Q?YDOdEtjDQU8hQMZ/XgbL9x5gPB/UW7+VRmuz4wETz1LmJzEhE1Ed+gFaRmNn?= =?us-ascii?Q?9Cip59bnxqlPfoSlcb07ZnuvxatxAJLqHPKjtWAGGeKrZI+wQqhg2Os/KkyS?= =?us-ascii?Q?Yglug59adrffojeNs9IY32AvUuM9zJOuhruD8k8Bk7WwLykeVGS6MgftxFqE?= =?us-ascii?Q?+MqLXTfB3IfcWYQcNnJeQ04fbLJWpMIrCGT8hX/p0avbjLfyatZHcQv1N0/W?= =?us-ascii?Q?sxxBv8BhJ3nmQWVJpkkIJl3kj9aOeCQKfEjHY/zYwo7amvjv2bao1pToNm8z?= =?us-ascii?Q?xH3abrkwMbV+4P3ehYksBxXpVbL+WXnm/lV1oHNl+jQqE17RiFzG8+zhKQZ6?= =?us-ascii?Q?+mIaHIVa0EpcSyq5ysR8=3D?= X-Microsoft-Antispam-Message-Info: pK8KSndxV+IiPIDhhQrRirrRSvWqfaAwj+V9aiCj6LZIc94jdUobDXwvwDaO5zghljq4nztpn9/JYhT2t4Y2ih5sXLhIithmQNBtljsnikD2o6TythrjPsC+7fkuMLFVOOHxae7Egz9hhBfJa7iKmq4q5gU66/4Eo4WAaKsE0ub5LeuPb8bePgy+mVT4keUI X-Microsoft-Exchange-Diagnostics: 1; BL0PR0102MB3411; 6:pVGkFYW0EXic1wzLVQQOyfarTfgLfEgYVBllfWatdoWIuap5WCN3bmnbqRJggyCgmjxuU5TY9+UGyAnqk0IDwffWJ8Ss+cfrvwjtHNCrA9ahv8AWC4WNfXnmf5eLwZZ8212IHMsGW0RLtmQJt6iusSGhXmVApuctoThJT3Mm6aiLvATPBXpkbWmKJ7MHKm6G6/jyj5TbylwOmBYds9T8QoeAzY/gY2H5YOy7k0x3LN/sj5J5QxsvyOY3xjSvEhpBkr8CJbAgfnKzc5UfK0lncT7w82kBaI63uP5IZi0FKRY9t/+nS6lF41o5X8s2rO7utj4lq8lGtfrBOdrJDPzVvskDEfg+7a6KR6vTNG+o99IIPs11oiJqFWAgt6qtaiH9U8SwlA5fg6pSAtQR4CQTDBkPmN4zvBDzqMjA7xH9nHNPOZfGf5NrfrTr3wudjiotksz4sZP+mN6PC5y1Y6iMow==; 5:JsH51rern0vH6bjJOR2g86jYhzJhgUprkvBKv3VfVn5ssJ6HuZXe7OT0aPmMEMJ+s8IhBl0GdGgdLgZfsGow4q8HEHZZkDjtKv24p7s0viZmJI03J5oLk/CRfGwC76DpP71Ur/mb42WYBAd2OUJHm3RhaqUELyKkdyoqco9fb5M=; 24:a26qQuJ1FPTh3zRbcQIYEc/1axZ5qK9hl86xZr0h+W3mT+GZ6avRUkkH33kvdgQnJACvfzAohhDtusmCz95yeOdivML3PLpWj+tH9Dfj6xw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL0PR0102MB3411; 7:+xxUBHmctsVjuhuW5TkL0/8S/vZxcMBveprLHTQ3E+f8nKJJPFGxSKRATI/UJf7nGUyy+ZLN1vRwemirlp+BbaQEPVh3J+7mMv170fdCrRNnyxiCfeW/mDWiU1B3cRTPm8ppi0t4FkQJT6iITY3AAa5evv0WNpUTwzR1xo72+nyOvUUVqt5PN1PJXNWrXe0Uly3knpLtCkoJssnWaqvdGW/2+iuxOR9EDviyAkH+4+BdL7iEAsjJw4i49lyEK/VK X-OriginatorOrg: xevo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 18:26:54.6550 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85ebaa4a-422b-4e61-15b1-08d59bebf9bd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR0102MB3411 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>;