Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1630995rdg; Sat, 14 Oct 2023 09:46:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH55S3RlqdgB+PBeMqTilkWGYdfzn5WxlGKrE4AiIBdOzc7+a5uj1Xa009hHsscMXduVimP X-Received: by 2002:a05:6808:1b0e:b0:3a3:6329:4cb7 with SMTP id bx14-20020a0568081b0e00b003a363294cb7mr38702352oib.9.1697301994451; Sat, 14 Oct 2023 09:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697301994; cv=none; d=google.com; s=arc-20160816; b=sqoFiyscwvvhdaVjS0NAUZl616S89QcnunKnfaOvF3Rf87QnLD8Dup4oXeQ4yScFAf pfkspPtnzQlDbdKyE2yAXtm6eFrdmJpcZjVE2fzr70uIzXxmEhEqZW0rxJXa91l6sx6N xTk+P3j1C1ysGsbNtWGKkiJQ6BgONlZNKRKmyw0hq65FUg4YYwmnRXHE0XICPrCpp+Vc +3PXmJ4QEM5DR7rE4zEVZSparl7cdNIKwPgoVdNgm/dKonHfGgfuBUQA4ahDUXWNsHQ0 1P/Kq+SshttU8vTl3cwsHkkxwYeVuUIjMg94q3g2uTiehVaD92+xo+e55s3yOEuVWyQx +Hhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ndetm71HaP+sAzF8i0FoalsNInbNxYdWgzJ90yVpn3k=; fh=yZ4ehXuGKJBTngkah9YI65PaunB50Lln4n2e8yXS4SE=; b=BTpCZlbteHzdSxSQrP0So1UovjLHQKfEx1WRk1cczJOGRlxAfm4lSiZdoa93v0GTmX vlfvA7AP+ZBbD8O60NhXHQQ60Q2W0t5HIaqKecxazWYAF9mDlDtivDHJcLlxYUZyEPZr yag7yaCvmO2IvhIPohbZgGChnu+/QIQ1WEujlDWtnkg0ptDHOWDR6oH1Astl+jsSGjnH a4MyKpSsiF5B7ADaA6aQfgYEi+WBE7SdzOXaXz/ovz1H6oa4EIBcV/3VAR/0vZpbypLR suAiS81V0zBzjQYaFyIpynLkOH6A9NcjcXyA/sABxsNtjbrOfU294WC6iH4k9JaDxIP/ DOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YmPSIqUv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l11-20020a63ea4b000000b00577bf1de778si6992099pgk.585.2023.10.14.09.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 09:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YmPSIqUv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0446A805093E; Sat, 14 Oct 2023 09:46:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232974AbjJNQqO (ORCPT + 99 others); Sat, 14 Oct 2023 12:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230016AbjJNQqM (ORCPT ); Sat, 14 Oct 2023 12:46:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E53FDB7; Sat, 14 Oct 2023 09:46:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03D9BC433C7; Sat, 14 Oct 2023 16:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697301970; bh=UkfmNLmsfbE9sjB4/yEQF1Ft7jr9aA3XJDIvkkE44fo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YmPSIqUvEHAxvFAjD6DrziJgMQL/SbwsYC8Z61eSceDlL32C92Ogki1SAOSWthKCk j7BwSQ5azdfLnbONZN6EkgLERGpNEOtubu/H/+IRWn7Omico3Ic+v0jNCZt6WP2nOO wWWnxMyIiioYfN1PoJh0Da524R+9v3F8SshyArfE9DABTOlbNRqRu4kXs1tpf0+Fr2 bh3SUJKs9gk+wsw3oOHQcEicNxA4ntPc4ZcEhcQqO+8cC/sQhZm+FW6znO2ULQ5p2e qHevB5ZVnrnLP7eDF3UN2j8PBrRuJuD6iza2TYJ9enV0Jy3aT1ME4XiIqwCoCv5hBj y68Mw4NJGN4eA== Date: Sat, 14 Oct 2023 17:46:26 +0100 From: Jonathan Cameron To: Jagath Jog J Cc: andriy.shevchenko@linux.intel.com, u.kleine-koenig@pengutronix.de, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] iio: imu: Add driver for BMI323 IMU Message-ID: <20231014174626.3c203096@jic23-huawei> In-Reply-To: <20231013034808.8948-3-jagathjog1996@gmail.com> References: <20231013034808.8948-1-jagathjog1996@gmail.com> <20231013034808.8948-3-jagathjog1996@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 14 Oct 2023 09:46:32 -0700 (PDT) On Fri, 13 Oct 2023 09:18:08 +0530 Jagath Jog J wrote: > The Bosch BMI323 is a 6-axis low-power IMU that provide measurements for > acceleration, angular rate, and temperature. This sensor includes > motion-triggered interrupt features, such as a step counter, tap detection, > and activity/inactivity interrupt capabilities. > > The driver supports various functionalities, including data ready, FIFO > data handling, and events such as tap detection, step counting, and > activity interrupts. > > Signed-off-by: Jagath Jog J Hi Jagath, Nice driver. We are rapidly approaching the end of this cycle and as this is a large driver, I think it could do to remain on list at least a week before I apply it or until it picks up some tags from others if that happens sooner. Hence I'm afraid it might well sneak into next cycle. A couple of really small things in the docs and build files from me. Jonathan > --- > Documentation/ABI/testing/sysfs-bus-iio | 18 + > MAINTAINERS | 7 + > drivers/iio/imu/Kconfig | 1 + > drivers/iio/imu/Makefile | 1 + > drivers/iio/imu/bmi323/Kconfig | 33 + > drivers/iio/imu/bmi323/Makefile | 7 + > drivers/iio/imu/bmi323/bmi323.h | 209 +++ > drivers/iio/imu/bmi323/bmi323_core.c | 2139 +++++++++++++++++++++++ > drivers/iio/imu/bmi323/bmi323_i2c.c | 121 ++ > drivers/iio/imu/bmi323/bmi323_spi.c | 92 + > 10 files changed, 2628 insertions(+) > create mode 100644 drivers/iio/imu/bmi323/Kconfig > create mode 100644 drivers/iio/imu/bmi323/Makefile > create mode 100644 drivers/iio/imu/bmi323/bmi323.h > create mode 100644 drivers/iio/imu/bmi323/bmi323_core.c > create mode 100644 drivers/iio/imu/bmi323/bmi323_i2c.c > create mode 100644 drivers/iio/imu/bmi323/bmi323_spi.c > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > index 19cde14f3869..c66fc560ee4b 100644 > --- a/Documentation/ABI/testing/sysfs-bus-iio > +++ b/Documentation/ABI/testing/sysfs-bus-iio > @@ -2254,3 +2254,21 @@ Description: > If a label is defined for this event add that to the event > specific attributes. This is useful for userspace to be able to > better identify an individual event. > + > +What: /sys/.../events/in_accel_gesture_tap_wait_timeout > +KernelVersion: 6.7 > +Contact: linux-iio@vger.kernel.org > +Description: > + Enable tap gesture confirmation with timeout. > + > +What: /sys/.../events/in_accel_gesture_tap_wait_dur > +KernelVersion: 6.7 > +Contact: linux-iio@vger.kernel.org > +Description: > + Timeout value for tap gesture confirmation. Units need to be specified. Seconds? > + > +What: /sys/.../events/in_accel_gesture_tap_wait_dur_available > +KernelVersion: 6.7 > +Contact: linux-iio@vger.kernel.org > +Description: > + List of available timeout value for tap gesture confirmation. > diff --git a/MAINTAINERS b/MAINTAINERS > index 4e07c032d06a..47ca415212a7 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3595,6 +3595,13 @@ S: Maintained > F: Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml > F: drivers/iio/accel/bma400* > > +BOSCH SENSORTEC BMI323 IMU IIO DRIVER > +M: Jagath Jog J > +L: linux-iio@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml > +F: drivers/iio/imu/bmi323/ > + > BPF JIT for ARM > M: Shubham Bansal > L: bpf@vger.kernel.org > diff --git a/drivers/iio/imu/Kconfig b/drivers/iio/imu/Kconfig > index c2f97629e9cd..6c9a85294bc1 100644 > --- a/drivers/iio/imu/Kconfig > +++ b/drivers/iio/imu/Kconfig > @@ -54,6 +54,7 @@ config ADIS16480 > > source "drivers/iio/imu/bmi160/Kconfig" > source "drivers/iio/imu/bno055/Kconfig" > +source "drivers/iio/imu/bmi323/Kconfig" Same on ordering. > > config FXOS8700 > tristate > diff --git a/drivers/iio/imu/Makefile b/drivers/iio/imu/Makefile > index 6eb612034722..627406476357 100644 > --- a/drivers/iio/imu/Makefile > +++ b/drivers/iio/imu/Makefile > @@ -16,6 +16,7 @@ obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o > > obj-y += bmi160/ > obj-y += bno055/ > +obj-y += bmi323/ Alphabetical order. > diff --git a/drivers/iio/imu/bmi323/bmi323_core.c b/drivers/iio/imu/bmi323/bmi323_core.c > new file mode 100644 > index 000000000000..0bd5dedd9a63 > --- /dev/null > +++ b/drivers/iio/imu/bmi323/bmi323_core.c > @@ -0,0 +1,2139 @@