From patchwork Mon Sep 16 16:02:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 20358 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4986C248D3 for ; Mon, 16 Sep 2013 16:02:49 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf4466271vbg.6 for ; Mon, 16 Sep 2013 09:02:48 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ArOf7Jx33TfrygN/MlrA+GMOm+njVu8Kz15VdPgPAUo=; b=g3JIO5fsWRKG58limYN0U3ev02N83Jzwu/uZmlQk8A01ZKTfZf3gDXDoBkL1HbcaQZ hDUoGPrdx4ZPRxAj8MGZFWP+bJkWANObabDFlgbxVR8pRVtqSyOZw1eGIStkrXSSQAzE FHtK6S9ptvSx21yxeKpF+mbIGNRr08VDWFsFdl6uwgP26dj2Z8HSEWxQj8d6l3rDWz69 1iiDoESJsgcvmBrFMNu28l/kAo1glmWX6aBRY3v7BM6G299R2mgPhwDWMwqU/7NlYhYp 2xR7f/GILdJhHia9SlXLVJgE3FQ4a8dohE+33a4MtMPc5FgZVUMR9tytOCsGKC0l//yP 71Dg== X-Gm-Message-State: ALoCoQkf4rlbciD4cwC3+CVkQYVBNuLH6k4cD4shqKk9Yj8PzhgVr4vWV6DdbqEXwj7hIWlPFAeb X-Received: by 10.224.29.5 with SMTP id o5mr63119qac.6.1379347368816; Mon, 16 Sep 2013 09:02:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.129 with SMTP id k1ls2366728qeh.75.gmail; Mon, 16 Sep 2013 09:02:48 -0700 (PDT) X-Received: by 10.220.13.20 with SMTP id z20mr27726988vcz.0.1379347368694; Mon, 16 Sep 2013 09:02:48 -0700 (PDT) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id st7si7248167vdc.94.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Sep 2013 09:02:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.51; Received: by mail-vb0-f51.google.com with SMTP id x16so2960491vbf.24 for ; Mon, 16 Sep 2013 09:02:48 -0700 (PDT) X-Received: by 10.52.157.134 with SMTP id wm6mr2105674vdb.26.1379347368602; Mon, 16 Sep 2013 09:02:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp104935vcz; Mon, 16 Sep 2013 09:02:47 -0700 (PDT) X-Received: by 10.14.122.132 with SMTP id t4mr44418316eeh.20.1379347367068; Mon, 16 Sep 2013 09:02:47 -0700 (PDT) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by mx.google.com with ESMTPS id x42si16799807eel.86.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Sep 2013 09:02:47 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.52 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.83.52; Received: by mail-ee0-f52.google.com with SMTP id c41so2144959eek.11 for ; Mon, 16 Sep 2013 09:02:46 -0700 (PDT) X-Received: by 10.15.75.73 with SMTP id k49mr43545104eey.36.1379347366556; Mon, 16 Sep 2013 09:02:46 -0700 (PDT) Received: from localhost.localdomain (cpc15-aztw25-2-0-cust493.aztw.cable.virginmedia.com. [92.233.57.238]) by mx.google.com with ESMTPSA id z12sm43061275eev.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Sep 2013 09:02:46 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jic23@cam.ac.uk Cc: arnd@arndb.de, linus.walleij@linaro.org, denis.ciocca@st.com, linux-iio@vger.kernel.org, Lee Jones , devicetree@vger.kernel.org Subject: [PATCH 10/20] Documentation: dt: iio: Add binding for LSM303DLH - Magn Date: Mon, 16 Sep 2013 17:02:16 +0100 Message-Id: <1379347346-823-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1379347346-823-1-git-send-email-lee.jones@linaro.org> References: <1379347346-823-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.51 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , LSM303DLH is a Magnetometer Sensor Cc: devicetree@vger.kernel.org Signed-off-by: Lee Jones --- .../bindings/iio/magnetometer/lsm303dlhc.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/lsm303dlhc.txt diff --git a/Documentation/devicetree/bindings/iio/magnetometer/lsm303dlhc.txt b/Documentation/devicetree/bindings/iio/magnetometer/lsm303dlhc.txt new file mode 100644 index 0000000..2ad49c7 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/lsm303dlhc.txt @@ -0,0 +1,21 @@ +* STMicroelectronics Magnetometer Sensor + +Required properties: + - compatible: Should be "st,lsm303dlhc_magn" + - reg: The I2C address of the sensor + +Optional properties: + - vdd-supply: Phandle to the Vdd supply regulator + - vddio-supply: Phandle to the Vdd-IO supply regulator + +Example: + +i2c@80128000 { + lsm303dlhc_magn@1e { + compatible = "st,lsm303dlhc_magn"; + reg = <0x1e>; + + vdd-supply = <&ab8500_ldo_aux1_reg>; + vddio-supply = <&db8500_vsmps2_reg>; + }; +};