From patchwork Fri Apr 6 18:19:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kelly X-Patchwork-Id: 10327415 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 1804A6053F for ; Fri, 6 Apr 2018 18:20:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08D90295DF for ; Fri, 6 Apr 2018 18:20:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1C1B295E4; Fri, 6 Apr 2018 18:20:06 +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 7350C295DF for ; Fri, 6 Apr 2018 18:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751418AbeDFSUD (ORCPT ); Fri, 6 Apr 2018 14:20:03 -0400 Received: from mail-bl2nam02on0066.outbound.protection.outlook.com ([104.47.38.66]:52683 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750807AbeDFSUC (ORCPT ); Fri, 6 Apr 2018 14:20:02 -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=WeiEtQ5155hf+hlIZfCRIvXQnJhc3azKhbXlfRqYKn2GSGiAlxWIns/kGhATTipSOTQST3SoEW/Mvl1LEFpWhktRMiOiR5abNFRwyrcrXVr2Nund/rA/1S42SXtM3GkXZDDUqhz75BW8hQMBKRadBIovq0BmWrKm6HMlrWWeyhY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=mkelly@xevo.com; Received: from columbia.corp.xevo.com (65.122.179.226) by SN6PR0102MB3422.prod.exchangelabs.com (2603:10b6:805:3::11) 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 18:19:59 +0000 From: Martin Kelly To: linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org, Jonathan Cameron , Jean-Baptiste Maneyrol , Martin Kelly Subject: [PATCH v2 2/2] dt-bindings: iio:imu:mpu6050: support more interrupt types Date: Fri, 6 Apr 2018 11:19:42 -0700 Message-Id: <20180406181942.1365-2-mkelly@xevo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180406181942.1365-1-mkelly@xevo.com> References: <20180406181942.1365-1-mkelly@xevo.com> MIME-Version: 1.0 X-Originating-IP: [65.122.179.226] X-ClientProxiedBy: MWHPR17CA0067.namprd17.prod.outlook.com (2603:10b6:300:93::29) To SN6PR0102MB3422.prod.exchangelabs.com (2603:10b6:805:3::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccf70d2a-cb66-472e-a319-08d59beb0210 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN6PR0102MB3422; X-Microsoft-Exchange-Diagnostics: 1; SN6PR0102MB3422; 3:1Aoi3gV/+wnEhMlGfiG7Lro1ET5JD1r8mXYF03ptKAwoFrlqxGRtJLxQVrtl9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8mnQZl3F4hFav7Hhp9zEF1qWa+3zupKLpsVWzoGtZG6M5S1JjHCOk30uofxELcNdk2MjrFOnTyCYQ+F90EVfEnAqarE/zhka4KbIABtj/DpnZyLduPREIT8kZC7NQ7xCv2wkDwbGVVL/uX0sDz7JhlK6YdnLQhgxz2vCRUKNi9tla7HwhrKjdM6wmUO60i4KS8bpEMB9dFcgMXxvVfrkgMhUlDxq+F7njgahRazHOoaCCBcL+udY8fBXjhP5dqo54d7L/PepWFXWz6lSC3Yvo+665tD9u7xw3qWRBYL; 4:At3XrVRZAaFELniETCJyDKgLMDqZAxMKTv6Au83VqZwcSbjoyHlJpiIDMYq+AawR2zlOIt9BigxRBd5n/WVgdV4a/IYR8PPaxmGxDdgef0TfOS72FgvvaeKlWGS8qVdDhKSsSVFZMC1oDb9y4EJoi3rbvXJiAIi6s2fKdZKpT35glhKH+8AjiY8hQPg1THbVfh9zHs4geDQmNCgmuXoKlpn/eCRKzOGKn37wscjGj/AfjPSkbSUns30gG5rh01TbuiR6M31LFRKKLk2JJaAzvQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231221)(944501327)(52105095)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:SN6PR0102MB3422; BCL:0; PCL:0; RULEID:; SRVR:SN6PR0102MB3422; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39840400004)(376002)(366004)(39380400002)(189003)(199004)(76176011)(36756003)(6486002)(16586007)(386003)(316002)(50466002)(106356001)(48376002)(186003)(956004)(2361001)(446003)(50226002)(97736004)(105586002)(2616005)(2351001)(26005)(305945005)(7736002)(11346002)(16526019)(54906003)(107886003)(66066001)(5660300001)(8676002)(1076002)(47776003)(6666003)(476003)(4326008)(51416003)(7696005)(8936002)(25786009)(86362001)(2906002)(81156014)(52116002)(486006)(68736007)(3846002)(6916009)(478600001)(53936002)(6116002)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR0102MB3422; 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; SN6PR0102MB3422; 23:u+Uypn9iNseERFLPIRdsuMVmR3jKTMeGED0WM6Y?= =?us-ascii?Q?5GVcAYh3MiJhHoatY7eDBHsE4S24UOdg0xtcnPzciSh48dgAbYpgyF5Q3wgm?= =?us-ascii?Q?wYmMpfTkIMQ703MqXcAERf00FU8GVVMfjDsEE0y/qZs6/rtRiSSgV5ARZMZq?= =?us-ascii?Q?xjcibuFfVPKxK+V3EswsojWItfoA8+vZx8vd2bBk+X8DoWUfV2wXI09FLDcd?= =?us-ascii?Q?pDXSftmb6/FgeMZVvv2EVlsKIFbK0+OtSLANqnD42VI9Iajc7LKTG9XcX56j?= =?us-ascii?Q?mEvWVMSBWLi6b8jlx6NT0GGYHV3xkXZLgFaDVxwO5Mjk3uRoWvgzb6ODvfPV?= =?us-ascii?Q?8d8wzWPiK2x/ID2NFYKMrp18oOOZyOsYEqTBj6baJke9j42x46fcaR9rMiG9?= =?us-ascii?Q?1TsHmgpIk2lWdSRT3qc3XnJD6QwHkDRPB5rH6OxoubuYlJsuFuYyHwkJUALO?= =?us-ascii?Q?GQ9sBx8FfGbN4ptNpZLpYaqH+aI6pntLS/MXGOGJeKH19P76E+IdevXnACAz?= =?us-ascii?Q?l0M0RkFswXmh98TzxAyqxuRMRb8WBtl8Khpb+xXsZiByDVYUkEA61BfMJAJ8?= =?us-ascii?Q?Rjh2IvAxV99/FYiojtShHbSrwAxrBeTAEOd91kAiMErnVxPNzy6Ge5s3cSA8?= =?us-ascii?Q?ghGBhO8YjTadoM9RLhcZ2OBhlTjy5Mw2XGjjf0EpHXdChCR0vo7mk1BTJuu/?= =?us-ascii?Q?kkNq2M23WNVit9xwXiGGQAYzUFjB6JfTMwRUZCJrRnTG/Q0n1LFnEUOa152O?= =?us-ascii?Q?l6cSa9TOExdmeL4kn1FYxBTT7Gcn3SbZxybVSPRV3LaD4fXzox/Nu6n7hxau?= =?us-ascii?Q?+2CEAyPxqsh8NCr8ATEz4c+TGxCuB26swLc3Qfw4uXbCYeSSCzJOOf2AQrci?= =?us-ascii?Q?ENgmigaAW7IADoMgiY1kpp+pqCBHnnQ5pl/uRPo9wGdF+hqpyYMcx/gO1Tzf?= =?us-ascii?Q?UjgkGnTptiADhuC8ct8hzm6QoG0BbHbs36BTLwfm/KcABxGkDHUYOXCInB7h?= =?us-ascii?Q?mJUccYSqQaP/61kDb5dEulntXAzsMoFB1MrWFDmLkyhT47VS35qoVPNyVkLH?= =?us-ascii?Q?b0SnmpCXjwDPen/lJHwQML3l9eo4uC4Nxn/aXSCdDVrO1S4FE7wiFEVW5acG?= =?us-ascii?Q?fbS5liFUjvkkHeqR6Ir+LhZHuCANIN1Z2gWpTefwcFPfY9TCx2HDp0R1QUzT?= =?us-ascii?Q?iK17d3RsVCI1GA4Erileq3FbnpPsv+dL57zPR3yHcEUSNT9ENFUcy2mvJ4LN?= =?us-ascii?Q?fIz66ypwbOGXXCuWpwwU=3D?= X-Microsoft-Antispam-Message-Info: cmltGqmABqJ5fPnddxG/8UuGxQaw1hgfkrccp5yRCJzzaEJ4VbFhhDs1Zh72KnxTRoyJEHJitoaciG7p7eGbGgk/PEXMKP3CbjThXoiW4zet6mDIhacMOkUMx3dQ0Uin0sKKcXSjAWg9Ew30NWeABImLGupsfnh4NE86nLc+hJrmSHRrqKYSzoa61GYYKClX X-Microsoft-Exchange-Diagnostics: 1; SN6PR0102MB3422; 6:dfU16yek4kw+Ih4lokWyc2Vzln0F6vgdhDGwiLcAOJ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change-CrossTenant-OriginalArrivalTime: 06 Apr 2018 18:19:59.3620 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccf70d2a-cb66-472e-a319-08d59beb0210 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e0a7ca1f-2458-4cd6-a7c7-d733c07495ab X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR0102MB3422 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>;