Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1785116ybn; Thu, 26 Sep 2019 02:07:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4gwmhesqn9HiU25ELSg9AEOg9lQKvltAV95GAxcowc8GAD2wQvxe/bGE9RFkELOY4Nw1h X-Received: by 2002:a17:906:5109:: with SMTP id w9mr2070158ejk.282.1569488846464; Thu, 26 Sep 2019 02:07:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si876137eda.336.2019.09.26.02.07.02; Thu, 26 Sep 2019 02:07:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633811AbfIYCKS convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Sep 2019 22:10:18 -0400 Received: from sender4-op-o14.zoho.com ([136.143.188.14]:17476 "EHLO sender4-op-o14.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633788AbfIYCKR (ORCPT ); Tue, 24 Sep 2019 22:10:17 -0400 X-Greylist: delayed 904 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 Sep 2019 22:10:17 EDT ARC-Seal: i=1; a=rsa-sha256; t=1569376509; cv=none; d=zoho.com; s=zohoarc; b=gvvW2CGohjW4iFTym+DSCFNzTQnMz3K3RK+nE0aGs58Xr/DSv9b+bfL9cNmmR/b9TB5r1AK0aLSXCHXtkYTvyoQBoLH/PoWwvoE2r6ZqHKsFLS3OULvpecr6GO90YsJRc0hkfaDbQ/jvnarpxMntJyhsM6GeDSrv1oRU8V5dkzk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569376509; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=FMDZK2uFPh5HYZDnaG0EIdhqKhSI/s1mSVh3QP+Aeqo=; b=Prg/drQ9F0qyQTsnxTORApQ1TYpmb0OpH+06beDfaz2X4JC+XgNAt9MnZfQG8jd1HkvrmfzEeXJhBhpXuKMt1OIZuUedAW30jhZjnS/RoaDHltsqjSt1PMhaE7oKJyxyyXjtgoHVS3ZBaFFtKHVsmMjkuyzKJXSdY9CuUCtM6ag= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=dlrobertson.com; spf=pass smtp.mailfrom=dan@dlrobertson.com; dmarc=pass header.from= header.from= Received: from nessie.verizon.net (pool-100-15-144-194.washdc.fios.verizon.net [100.15.144.194]) by mx.zohomail.com with SMTPS id 1569376508558374.59192220023306; Tue, 24 Sep 2019 18:55:08 -0700 (PDT) From: Dan Robertson To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Dan Robertson , linux-kernel@vger.kernel.org Message-ID: <20190925013941.20431-1-dan@dlrobertson.com> Subject: [PATCH 0/1] iio: add driver for Bosch BMA400 accelerometer Date: Wed, 25 Sep 2019 01:39:40 +0000 X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a IIO driver for the Bosch BMA400 3-axes ultra low-power accelerometer. The initial implementation of the driver adds read support for the acceleration and temperature data registers. The driver also has support for reading and writing to the output data rate, oversampling ratio, and scale configuration registers. Comments and feedback are very much welcomed :) Cheers, - Dan Dan Robertson (1): iio: (bma400) add driver for the BMA400 drivers/iio/accel/Kconfig | 19 + drivers/iio/accel/Makefile | 2 + drivers/iio/accel/bma400.h | 74 +++ drivers/iio/accel/bma400_core.c | 862 ++++++++++++++++++++++++++++++++ drivers/iio/accel/bma400_i2c.c | 54 ++ 5 files changed, 1011 insertions(+) create mode 100644 drivers/iio/accel/bma400.h create mode 100644 drivers/iio/accel/bma400_core.c create mode 100644 drivers/iio/accel/bma400_i2c.c