From patchwork Mon Jul 7 09:48:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 33140 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E1A9720969 for ; Mon, 7 Jul 2014 09:48:41 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf29010008pdb.8 for ; Mon, 07 Jul 2014 02:48:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Jy6bAMuP7rSEihU/3ZyCcHzLr1HeA18LCeawm+NqGMI=; b=gcyvk8uPcHVa6mp2Gq5RZwo8k9bhL3pzYy0P8KSRq/DPwqoLZgUKyNP6E2tnLZzOsa 063tExREXrQd1i9Py2dLKxRfG6KmrN9pOrBy+mU7MpHy9ITrkgjyikVuCPu/1j0+F/7G tjIbZOc0ZrwfsqPu725vaixSsxh3r1AKpPV5GTliRZ4bGJsbVel8DmRSDkx5LnhATWx5 iNZI5xeumawt3EMFApObyF3Xr8Z1VDLL2Roe3Rc7UZweR6yCaW3jGf2tS1w8kAq/ngV7 A/h3vRNvh0dv1/Ykd0qfJT/phDYhrocSeothjeN5fkgMl9csR70W9qYKPwmeCSj74RWK SJAQ== X-Gm-Message-State: ALoCoQmq0PAjFK4axKVYxIv7NHSWxwNEnzcoPki8e4X16H4vMABa0nHt26mOosJYRtyEiITLDEHw X-Received: by 10.68.135.226 with SMTP id pv2mr5344439pbb.9.1404726521219; Mon, 07 Jul 2014 02:48:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.203 with SMTP id h69ls1637674qgh.56.gmail; Mon, 07 Jul 2014 02:48:41 -0700 (PDT) X-Received: by 10.52.69.133 with SMTP id e5mr68628vdu.66.1404726521067; Mon, 07 Jul 2014 02:48:41 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id t2si18578733vcs.89.2014.07.07.02.48.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 02:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jw12so3692698veb.25 for ; Mon, 07 Jul 2014 02:48:41 -0700 (PDT) X-Received: by 10.220.182.5 with SMTP id ca5mr1588622vcb.50.1404726520959; Mon, 07 Jul 2014 02:48:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp652776vcb; Mon, 7 Jul 2014 02:48:40 -0700 (PDT) X-Received: by 10.66.148.70 with SMTP id tq6mr27635969pab.56.1404726520164; Mon, 07 Jul 2014 02:48:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id re11si1512136pab.107.2014.07.07.02.48.39; Mon, 07 Jul 2014 02:48:39 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751913AbaGGJsi (ORCPT + 8 others); Mon, 7 Jul 2014 05:48:38 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:61734 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbaGGJsh (ORCPT ); Mon, 7 Jul 2014 05:48:37 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so4124202wes.15 for ; Mon, 07 Jul 2014 02:48:36 -0700 (PDT) X-Received: by 10.180.210.134 with SMTP id mu6mr35033192wic.18.1404726516156; Mon, 07 Jul 2014 02:48:36 -0700 (PDT) Received: from localhost.localdomain (LPuteaux-656-01-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id go4sm16861396wjc.39.2014.07.07.02.48.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jul 2014 02:48:35 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org, Denis CIOCCA Cc: Lee Jones , Linus Walleij , devicetree@vger.kernel.org Subject: [RESEND PATCH 2/3] iio: st_sensors: add device tree bindings Date: Mon, 7 Jul 2014 11:48:06 +0200 Message-Id: <1404726486-2610-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This adds some basic, simple device tree bindings to the STMicro MEMS sensor drivers. Cc: devicetree@vger.kernel.org Cc: Lee Jones Cc: Denis CIOCCA Signed-off-by: Linus Walleij --- .../devicetree/bindings/iio/st-sensors.txt | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/st-sensors.txt diff --git a/Documentation/devicetree/bindings/iio/st-sensors.txt b/Documentation/devicetree/bindings/iio/st-sensors.txt new file mode 100644 index 000000000000..a7a0a15913ad --- /dev/null +++ b/Documentation/devicetree/bindings/iio/st-sensors.txt @@ -0,0 +1,54 @@ +STMicroelectronics MEMS sensors + +The STMicroelectronics sensor devices are pretty straight-forward I2C or +SPI devices, all sharing the same device tree descriptions no matter what +type of sensor it is. + +Required properties: +- compatible: see the list of valid compatible strings below +- reg: the I2C or SPI address the device will respond to + +Optional properties: +- vdd-supply: an optional regulator that needs to be on to provide VDD + power to the sensor. +- vddio-supply: an optional regulator that needs to be on to provide the + VDD IO power to the sensor. +- st,drdy-int-pin: the pin on the package that will be used to signal + "data ready" (valid values: 1 or 2). This property is not configurable + on all sensors. + +Sensors may also have applicable pin control settings, those use the +standard bindings from pinctrl/pinctrl-bindings.txt. + +Valid compatible strings: + +Accelerometers: +- st,lsm303dlh-accel +- st,lsm303dlhc-accel +- st,lis3dh-accel +- st,lsm330d-accel +- st,lsm330dl-accel +- st,lsm330dlc-accel +- st,lis331dlh-accel +- st,lsm303dl-accel +- st,lsm303dlm-accel +- st,lsm330-accel + +Gyroscopes: +- st,l3g4200d-gyro +- st,lsm330d-gyro +- st,lsm330dl-gyro +- st,lsm330dlc-gyro +- st,l3gd20-gyro +- st,l3g4is-gyro +- st,lsm330-gyro + +Magnetometers: +- st,lsm303dlhc-magn +- st,lsm303dlm-magn +- st,lis3mdl-magn + +Pressure sensors: +- st,lps001wp-press +- st,lps25h-press +- st,lps331ap-press