From patchwork Mon Aug 2 15:56:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 12414335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 821F3C432BE for ; Mon, 2 Aug 2021 15:57:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 70A026113D for ; Mon, 2 Aug 2021 15:57:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235184AbhHBP5b (ORCPT ); Mon, 2 Aug 2021 11:57:31 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]:36478 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235243AbhHBP5b (ORCPT ); Mon, 2 Aug 2021 11:57:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1627919825; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=gY1bbe/6ELA+Jh65/Sb7YEW5x3mr2LzaxSbGJqQczGU=; b=YLNXwTDzdUYHMG2bt+IMqYfzCcEW8ZJdT0cUTlFudb7YRqLLwyRtDsZ/XkIftExoPf 82/FHT0BvAB9aro+ilIUzuyCF+OB6wetAWSJLTG8CDnmBxecX2xJEnPTCu8ga0yg8Zs5 IPWyXGX082A6OdOnMWokILiACB/RLSpMohZQG4vuAlm3oByReXEpgl027M4qRT6OtZ6V cJHqObnq/0JIl2RlXdc9vtdMTj1kPP+IXysE99qWF1H9mry9ZfWt5V7WIazIUFdOq9uA PDr2JKCTZrv/GIdbTKg5Q1Pz69J7xeFTYkXdD/iynhJE/vD6Egjyq1tnJWIhjn/3GqwH Rr1w== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXTbAOHjRHIhr0eF6M4Q==" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.30.0 DYNA|AUTH) with ESMTPSA id e095f1x72Fv42RB (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 2 Aug 2021 17:57:04 +0200 (CEST) From: Stephan Gerhold To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Linus Walleij , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Hans de Goede , Andy Shevchenko , ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin , Stephan Gerhold Subject: [PATCH v2 0/4] iio: accel: bmc150: Add support for INT2 and BMC156 Date: Mon, 2 Aug 2021 17:56:53 +0200 Message-Id: <20210802155657.102766-1-stephan@gerhold.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This series makes it possible to set up interrupts with the BMC150 driver on boards where only the INT2 pin is connected (and not INT1). This is particularly always the case for BMC156 since for some reason it only has the INT2 pin and not the INT1 pin. These changes were already partially discussed here: https://lore.kernel.org/linux-iio/YMOphuXSoODIVX06@gerhold.net/ Changes in v2: - PATCH 1/4: Clarify order of "interrupts" with "interrupt-names" - PATCH 4/4: Wrap a long line, clarify BOSCH_UNKNOWN with a comment v1: https://lore.kernel.org/linux-iio/20210719112156.27087-1-stephan@gerhold.net/ Stephan Gerhold (4): dt-bindings: iio: accel: bma255: Add interrupt-names dt-bindings: iio: accel: bma255: Add bosch,bmc156_accel iio: accel: bmc150: Make it possible to configure INT2 instead of INT1 iio: accel: bmc150: Add support for BMC156 .../bindings/iio/accel/bosch,bma255.yaml | 34 +++++++- drivers/iio/accel/Kconfig | 5 +- drivers/iio/accel/bmc150-accel-core.c | 78 +++++++++++++++---- drivers/iio/accel/bmc150-accel-i2c.c | 10 ++- drivers/iio/accel/bmc150-accel-spi.c | 10 ++- drivers/iio/accel/bmc150-accel.h | 20 ++++- 6 files changed, 134 insertions(+), 23 deletions(-)