From patchwork Mon Feb 4 17:00:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157440 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4137365jaa; Mon, 4 Feb 2019 09:00:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZnPlJhQXxaFyfNRwZpTci0eYVPU/LAy3TsJHwVGLdgJN69zNXgnoLWgW+HnVAR1Iflh3IR X-Received: by 2002:a17:902:1a2:: with SMTP id b31mr340124plb.87.1549299625113; Mon, 04 Feb 2019 09:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549299625; cv=none; d=google.com; s=arc-20160816; b=xE5Xi5LIpg9Uw4UWCoDyUhVOPoUpRHjVhltWo7xpqFGHWhSDIe0kFMvCXpXyW2x+ph 0fX3ExsbQJuD6lZXPxGW+Oeg3brLkceNydTza0jukubT8R1QP3KoCOZlTsfP4Nkgb5p8 sGpq2uchlTHAuAFHcTRmjG7zfb25zhdCNvdWOWfyg16lCI0oZYbgXQKIeqG7pd+Bc+CC Gt1+V2h0kzpVX4NCEt6tYJ6/y+VNjEH7aj6KcDqoigCTX3wav1OE0XtZwfGdF8bUmAyI g0kgxOyXzgM7icrU7Zgk3ng2+JSRBW07tAMjR6QjQcTipBAI5IHG22Ey+/EBwP1/c7+7 AKPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1l0DdTx7+5LTaHp0JhnZkIqDV7jA15PuRVbExFibVY8=; b=FXlqnTFMds5kxGcF526yg1s3GN0x4q7PZGd4HZZSOyjhwWxD0JH0vPU5XBZTCaDT6X eNmE8kpWb6r/sxIsCi/cdst/P5K+Y+lgMBnmquic7qam3nDYLO39fRSAiIxBtRy5sl7f sVTYotRW2kH791W2EDVdy/hZi6Tx4IOiJYLzYXl+ZTnfl8foh/tkfswYPdyEhaDSdwO7 ZnAPnmQN/GSxU2yEujbnRYHFUrx4VO90lGYSnRQp3I4eGqIbu/wf8lkKJ28f/OHqXVFV 7AnANk3LhYsZHN4pSz3rfKlNoOP28AqtocoRz4ajF56MmZgSBDgVS/+aSIorTBFsZs4H /BkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXLmLh1T; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m64si502677pfb.224.2019.02.04.09.00.24; Mon, 04 Feb 2019 09:00:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXLmLh1T; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbfBDRAY (ORCPT + 7 others); Mon, 4 Feb 2019 12:00:24 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39275 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725937AbfBDRAY (ORCPT ); Mon, 4 Feb 2019 12:00:24 -0500 Received: by mail-wm1-f66.google.com with SMTP id y8so661045wmi.4 for ; Mon, 04 Feb 2019 09:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1l0DdTx7+5LTaHp0JhnZkIqDV7jA15PuRVbExFibVY8=; b=BXLmLh1TPP4N+X6WDxKXDJExVeomB43tB/PdbEvMJf5q5eJITHjS5TGASfGtJGNqrz /19fjxBaqEht22sNwNnxzZPOTHdgKn+p4P5md+f5PytCBVAFNfo2Sq766pW/4LMncvdx VeQ7uTSKMHOKFP6/V2lGTRiRjogI75eu0xVO4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1l0DdTx7+5LTaHp0JhnZkIqDV7jA15PuRVbExFibVY8=; b=Sr6R0tLaUeiBmombQqG8cdJ+bn5JUHwVRrDgDdw7leslyiwQcOTVc9LCe6yB3AR13F hPcbhqly5dhwSl1+tCGchSWaUCVMFoZatlHwcPpc5XrFbB91ZAmX4TdecIC4y+VxOttY NFcoEZvEveoHNNZ0pmDc7dEM/PfHRh0hT2UVb7FzlmG1gGEapKCSZyxdJiucgCRkrPcM Sc4/An9n3ZuDDvLfcXhqR4/PrpW0sNP6/vmiGaGCNgF7zOubq7zCUqpbpDbC5P680bbo ziOhLdJJRzJiTXKZustwEluJRIWgkwvxNbd872TjMxgN14NFejFE6hpufBrxHQ8r5p9u J7gw== X-Gm-Message-State: AHQUAuYsCy7PGcWhFgOSgYW/h3soXwDGLfQt6iR8yzLbYcy8OCgDLbrr AJrmk3z3aEmbV/UpggRYcBScMw== X-Received: by 2002:a1c:2088:: with SMTP id g130mr271176wmg.122.1549299621896; Mon, 04 Feb 2019 09:00:21 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i186sm19352297wmd.19.2019.02.04.09.00.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 09:00:20 -0800 (PST) From: Rui Miguel Silva To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Shawn Guo , Rob Herring , Fabio Estevam Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH 0/5] iio: gyro: add fxas2100x driver Date: Mon, 4 Feb 2019 17:00:07 +0000 Message-Id: <20190204170012.13617-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, This series introduce a NXP fxas2100x family tri axis gyroscope driver [0] It add a core implementaiton plus an i2c and spi. This device can be found in the warp7 board [1], where it was tested. --- Cheers, Rui [0]: https://www.nxp.com/docs/en/data-sheet/FXAS21002.pdf [1]: https://www.element14.com/community/community/designcenter/single-board-computers/warp7/overview Rui Miguel Silva (5): iio: gyro: add DT bindings to fxas2100x iio: gyro: fxas2100x: add core driver for fxas2100x gyroscope iio: gyro: fxas2100x: add i2c driver iio: gyro: fxas2100x: add spi driver ARM: dts: imx7s-warp: add fxas2100x gyroscope .../bindings/iio/gyroscope/fxas2100x.txt | 14 + arch/arm/boot/dts/imx7s-warp.dts | 5 + drivers/iio/gyro/Kconfig | 22 + drivers/iio/gyro/Makefile | 3 + drivers/iio/gyro/fxas2100x.h | 149 +++ drivers/iio/gyro/fxas2100x_core.c | 930 ++++++++++++++++++ drivers/iio/gyro/fxas2100x_i2c.c | 73 ++ drivers/iio/gyro/fxas2100x_spi.c | 70 ++ 8 files changed, 1266 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/fxas2100x.txt create mode 100644 drivers/iio/gyro/fxas2100x.h create mode 100644 drivers/iio/gyro/fxas2100x_core.c create mode 100644 drivers/iio/gyro/fxas2100x_i2c.c create mode 100644 drivers/iio/gyro/fxas2100x_spi.c -- 2.20.1