From patchwork Mon Oct 14 18:49:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jones X-Patchwork-Id: 11189335 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25CBA14DB for ; Mon, 14 Oct 2019 18:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FDF021835 for ; Mon, 14 Oct 2019 18:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731506AbfJNStc (ORCPT ); Mon, 14 Oct 2019 14:49:32 -0400 Received: from 68-189-91-139.static.snlo.ca.charter.com ([68.189.91.139]:39548 "EHLO rjones.pdc.gateworks.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732294AbfJNStc (ORCPT ); Mon, 14 Oct 2019 14:49:32 -0400 Received: by rjones.pdc.gateworks.com (Postfix, from userid 1002) id E398E1A47B9B; Mon, 14 Oct 2019 11:49:30 -0700 (PDT) From: Robert Jones To: Jonathan Cameron Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Robert Jones Subject: [PATCH v4 0/2] iio: imu: add support for FXOS8700 Date: Mon, 14 Oct 2019 11:49:19 -0700 Message-Id: <20191014184921.22524-1-rjones@gateworks.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20191010175648.10830-1-rjones@gateworks.com> References: <20191010175648.10830-1-rjones@gateworks.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org - Document the FXOS8700 device tree binding. - Implement basic iio driver support for FXOS8700 Changes in v2: - Reorganized files to base imu directory - Converted devicetree bindings doc to schema - Moved single use function definitions out of header - Added bit definitions and #define usages - Moved buffer for regmap_bulk_read to private data struct - Clarified get_data operations - Remove unreachable code - Remove log noise - Remove of_match_ptr() macro usage - Various style and whitespace changes Changes in v3: - Refactored Freescale mentions to NXP, including compatible string - Removed missed files from reorganization to base imu directory - Removed Kconfig source command to now nonexistent directory - Fixed devicetree binding properties definitions - Added SPI example to devicetree documentation Changes in v4: - Updated interrupts property and example of devicetree binding - Removed unnecessary header definitions and reorganized others to source files - Changed data buffer to __be16 to properly reflect data type - Changed included file to one more appropriate Robert Jones (2): dt-bindings: iio: imu: add fxos8700 imu binding iio: imu: Add support for the FXOS8700 IMU .../devicetree/bindings/iio/imu/nxp,fxos8700.yaml | 76 +++ drivers/iio/imu/Kconfig | 27 + drivers/iio/imu/Makefile | 5 + drivers/iio/imu/fxos8700.h | 10 + drivers/iio/imu/fxos8700_core.c | 649 +++++++++++++++++++++ drivers/iio/imu/fxos8700_i2c.c | 71 +++ drivers/iio/imu/fxos8700_spi.c | 58 ++ 7 files changed, 896 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml create mode 100644 drivers/iio/imu/fxos8700.h create mode 100644 drivers/iio/imu/fxos8700_core.c create mode 100644 drivers/iio/imu/fxos8700_i2c.c create mode 100644 drivers/iio/imu/fxos8700_spi.c