Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2255785pxp; Mon, 21 Mar 2022 15:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXYur4cd37cp3D1UMLgy2waCKIZAOrhOOQyMF6sI+JZZ8ip6kNVDuPeXSTLDCAoAGv4ytg X-Received: by 2002:a17:90b:1a81:b0:1bc:c3e5:27b2 with SMTP id ng1-20020a17090b1a8100b001bcc3e527b2mr1348155pjb.20.1647900405960; Mon, 21 Mar 2022 15:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900405; cv=none; d=google.com; s=arc-20160816; b=D4p8NQKfG+Vn2SW3aV844FJfJpDjwVsdOHgj+C0R+V2rQfXmBbKNoncYzfyZ0Pyvhb fwtg/XVzuxyI1e1+50568Tg0DSjbKeS7Cd2PhdaUV2jvXRr+yw870gqDES2nWRM/6L0O a0drXceFRvL/Y5dw4REuVOR9R65VuAsGTtT+a08jb07HLsu25wSng6zl+yMGKIBzVi41 BAi5DLezjilZk6h0i2HqDyneRUe+JzUmhQIgBxBcDJfVrTgFlHRai0bLpSidqPJYFPz0 oVGfYMbhlGMA5G5L51qAxMFD/WWZal6EXODAT1HiKiv+BrQRcwFufmNrTtT+qORDV6wz /KMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=LtEYFIhXvvOvbebGSgHoPGrz8Zle3hfcrZFN/0LxkpU=; b=U0jZTW2xPev+sT7w8K/NJjkShFjmLT25feRZJG/1DIvCwk49PA4z+1nzpLbKrodm6J 9Ipq0nXeRdoa44tESgbH/dNHPIoqK5ReaZcwRgOdGY6KoqTsL4yIxl06DN7mG1O2SOoY cCTTsiijhl2l4FhDO6S2odWoPyeheNsIxWVHc6XfGIT1HH7x4DR/SLSXrar2K4XSB2+w 7wAZn7zHsTA19X4V5r9XW7HfcX7yFUuUzBZJZsO0LBJidYjqH4aBTKRs+OPouMZh8YH4 Wkg8tmLxiBm5BlrFpFjDiMi8TI+dMcJO2rO7uMxpbajYNzjMgjz2L7WK6HcwxC4tNYc1 yPvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="a2/ipdQs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p35-20020a056a000a2300b004fa3a8dff76si9737264pfh.45.2022.03.21.15.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:06:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="a2/ipdQs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F0134093F; Mon, 21 Mar 2022 14:29:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241030AbiCSSLv (ORCPT + 99 others); Sat, 19 Mar 2022 14:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbiCSSLu (ORCPT ); Sat, 19 Mar 2022 14:11:50 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 505EA8FE5F; Sat, 19 Mar 2022 11:10:29 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id s72so4678566pgc.5; Sat, 19 Mar 2022 11:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=LtEYFIhXvvOvbebGSgHoPGrz8Zle3hfcrZFN/0LxkpU=; b=a2/ipdQsDvhPI0UOcDkGgwuuCpw4QIJ5bRBz40eCL6hK/YbShxPAVUtP4LScDf9IMf 86nKDx//mXWzY6LVURNDkQQ5Kew0nF590eaFPt3ndUOP7UZWDBrsL9+IGH2B9ewGqAWM kgZ2MN9uXpf8Zyrax+pqJzC0wmwxB1Mz5HpOjkJm2FH/6MvA+30dNcoKB0RS9VkJCb7X 30K6Stp6++6/phd5YGDYcXTwKjUxYRJMxxfF9YaF/x4w418T8hYxAMoqHGiipvmG1AKx jsPawUq3YvF9rIQcVg9ok8c7n+Ab7S4nBTPogZYemf78qEM0I25wDuImuNJcJFXBYHXE 1qRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LtEYFIhXvvOvbebGSgHoPGrz8Zle3hfcrZFN/0LxkpU=; b=LjvKlnXya+SvgVwzx1iV2WRGA5om0Gxh+IyMErP9+7ijb8UCSk3/VTY+Hoe8ohAFRQ 5fzXaQtJwrusHvBruC9tQUqp21e39HdblL9gYJYiFnWFAMUlukHik2w56eBNTQ08ovy4 ChDLrbUZ5z/hAQsz399/5OpDzSaZ8WnYtoufDc8BABhslHEBTm88SiJd2jMHUph7OWlD 76W6Izn48GtWg/PudEsKxmtMBgCNqUGcZyUVKQyZhD9R29w/QAQc2XMFXSgNnxNKDfc4 L6Bshx/C96nIjZN81RpDNGr+i15A/UyMe+D1jVpbirmqTWwsItOAquYIhkSQEruG2xob KtLA== X-Gm-Message-State: AOAM53029E5SVbOXIrgiw9YJIpHYbeDnqiXpcdB3UXPc+uPvvGeOD294 dTXD1iEegKimo8c5O0YB+Q8= X-Received: by 2002:a63:6a41:0:b0:37c:53a1:b5b6 with SMTP id f62-20020a636a41000000b0037c53a1b5b6mr12312954pgc.245.1647713428798; Sat, 19 Mar 2022 11:10:28 -0700 (PDT) Received: from localhost.localdomain ([115.99.145.231]) by smtp.gmail.com with ESMTPSA id nu4-20020a17090b1b0400b001bf497a9324sm16413981pjb.31.2022.03.19.11.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 11:10:28 -0700 (PDT) From: Jagath Jog J To: dan@dlrobertson.com, jic23@kernel.org, andy.shevchenko@gmail.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] iio: accel: bma400: Add support for buffer and step Date: Sat, 19 Mar 2022 23:40:18 +0530 Message-Id: <20220319181023.8090-1-jagathjog1996@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds trigger buffer support with data ready interrupt, separate channel for step counter and an event for step change interrupt. Jagath Jog J (5): iio: accel: bma400: conversion to device-managed function iio: accel: bma400: changing scale min and max macro values iio: accel: bma400: Add triggered buffer support iio: accel: bma400: Add separate channel for step counter iio: accel: bma400: Add step change event drivers/iio/accel/Kconfig | 2 + drivers/iio/accel/bma400.h | 19 +- drivers/iio/accel/bma400_core.c | 315 +++++++++++++++++++++++++++++--- drivers/iio/accel/bma400_i2c.c | 10 +- drivers/iio/accel/bma400_spi.c | 10 +- 5 files changed, 304 insertions(+), 52 deletions(-) -- 2.17.1