From patchwork Mon Jul 19 11:21:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 12385611 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=unavailable 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 69546C12002 for ; Mon, 19 Jul 2021 11:29:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4D9E4610C7 for ; Mon, 19 Jul 2021 11:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236323AbhGSKtF (ORCPT ); Mon, 19 Jul 2021 06:49:05 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:21388 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236076AbhGSKtF (ORCPT ); Mon, 19 Jul 2021 06:49:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1626694003; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=gOVW74tbyAb3gpoCUimfW1muG7xDS0xi+AzomYVOF2s=; b=Q1R90xzwYBmb3xnp4XhNuRwakSdHofCGEOs+dBKqlGSwg4G6P/D/rkOB3dbw5+y3MG FqQ2rMUCnnEGhKUdvxJEfhzxDLomkzC52XyL05udaH1Qnmym7zlCCsYlSiipLxrgaFGr 3oTQP+1D7GqzIisXCDiRt/1wYo/U6D+VdyJ+OXfCFC+xoWSqpSPxqhZ+HpeZ4TatAyWW x+JPEnVsmNjyOla0e3UBmC+2iCyFjq2wMkLg/z2Q7PfEHT28NNOrHwJOHiekYLssY4bi TgiVOipd9j/ut8G0Qga+t3J2GXS1h8tUEBTI7YtPHfaIDE557bP7bOQWJWHb4knxnIh9 Orcw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB4m6O43/v" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.28.1 DYNA|AUTH) with ESMTPSA id g02a44x6JBQg27Z (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 19 Jul 2021 13:26:42 +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 0/4] iio: accel: bmc150: Add support for INT2 and BMC156 Date: Mon, 19 Jul 2021 13:21:52 +0200 Message-Id: <20210719112156.27087-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/ 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 | 27 +++++++ drivers/iio/accel/Kconfig | 5 +- drivers/iio/accel/bmc150-accel-core.c | 77 +++++++++++++++---- drivers/iio/accel/bmc150-accel-i2c.c | 10 ++- drivers/iio/accel/bmc150-accel-spi.c | 10 ++- drivers/iio/accel/bmc150-accel.h | 9 ++- 6 files changed, 118 insertions(+), 20 deletions(-)