From patchwork Sun Apr 13 19:09:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 28299 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4BDF12036A for ; Sun, 13 Apr 2014 19:09:48 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf10273722obc.1 for ; Sun, 13 Apr 2014 12:09:47 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5hz2YUA+TKWQRFS9M4J0Vybrs3ylfl3BppaKLyb/GPM=; b=CJm0Fd8+uVK9vlOu6k0XE3rOcKBD4GHonWVqJVThi2t1iAMruYlJ0PTZgmas6RLx4U b9u0UKQgIA7BxIu/mD6oFaXTSq7awkW+xVIiCV7mkM541zYh2jXhvOJ1ly6vMu3sN/mH 171VuybiaeEKpdN54dILXWjH0qPCH2idOChXNS5SDzdZFiRs99Tgc/Axq4cZlcR98TVv e8RQzZzRzqzeqvFHpVdYzjxoI96K6m2Bc/TFmLSeOGE0FM5mJbDQxHI61RR1exKb/YFm 4BFRcyBdPOrOUrumdxG6dDWACrf8+RngOq3kE8BsYVtMj2IiyvbiWl45zq9R+S+eSUHf s/Fg== X-Gm-Message-State: ALoCoQmTQLJIJUF5pLziGwbw7+8E2RgkD1goxfwZ4oB+Ylo+oX3w+MJMCgEXaLiOZogmUJbku6tG X-Received: by 10.50.114.134 with SMTP id jg6mr5500892igb.2.1397416187761; Sun, 13 Apr 2014 12:09:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.75 with SMTP id 69ls2463086qgm.94.gmail; Sun, 13 Apr 2014 12:09:47 -0700 (PDT) X-Received: by 10.58.38.166 with SMTP id h6mr2625365vek.22.1397416187625; Sun, 13 Apr 2014 12:09:47 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ej2si2399426veb.95.2014.04.13.12.09.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Apr 2014 12:09:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so6691645veb.35 for ; Sun, 13 Apr 2014 12:09:47 -0700 (PDT) X-Received: by 10.58.201.5 with SMTP id jw5mr31456470vec.6.1397416187531; Sun, 13 Apr 2014 12:09:47 -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.220.221.72 with SMTP id ib8csp97029vcb; Sun, 13 Apr 2014 12:09:47 -0700 (PDT) X-Received: by 10.68.171.229 with SMTP id ax5mr3049853pbc.125.1397416186816; Sun, 13 Apr 2014 12:09:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id et3si7558808pbc.248.2014.04.13.12.09.46; Sun, 13 Apr 2014 12:09:46 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755188AbaDMTJo (ORCPT + 9 others); Sun, 13 Apr 2014 15:09:44 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:35324 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755240AbaDMTJl (ORCPT ); Sun, 13 Apr 2014 15:09:41 -0400 Received: by mail-wi0-f181.google.com with SMTP id hm4so3122020wib.2 for ; Sun, 13 Apr 2014 12:09:40 -0700 (PDT) X-Received: by 10.180.82.7 with SMTP id e7mr6692260wiy.6.1397416180060; Sun, 13 Apr 2014 12:09:40 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id hm5sm21512659wjc.17.2014.04.13.12.09.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Apr 2014 12:09:38 -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: [PATCH 4/6] iio: st_sensors: add device tree bindings Date: Sun, 13 Apr 2014 21:09:01 +0200 Message-Id: <1397416143-4396-5-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1397416143-4396-1-git-send-email-linus.walleij@linaro.org> References: <1397416143-4396-1-git-send-email-linus.walleij@linaro.org> 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=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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