From patchwork Fri Jun 17 15:12:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 70334 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp333128qgy; Fri, 17 Jun 2016 08:12:37 -0700 (PDT) X-Received: by 10.98.47.129 with SMTP id v123mr2861959pfv.71.1466176357593; Fri, 17 Jun 2016 08:12:37 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66si12901487pfs.29.2016.06.17.08.12.37; Fri, 17 Jun 2016 08:12:37 -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; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933625AbcFQPMg (ORCPT + 7 others); Fri, 17 Jun 2016 11:12:36 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:36027 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933580AbcFQPMf (ORCPT ); Fri, 17 Jun 2016 11:12:35 -0400 Received: by mail-lf0-f51.google.com with SMTP id q132so531731lfe.3 for ; Fri, 17 Jun 2016 08:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=64k0X5kM0Zb8JIvXICF8Ju7wkYsYLf28mWrHuUukHwA=; b=J4ZvYiKe1dRFSTqg2dSm07iBpM6rftSKTTb8ZK3DxXiXvIYopqLYTS8Zge7B37vGZj 3y8zjQo6NsB7FPBrawKHc9eNcrs0eoN+FRn6qLOV4oZef9WakjZdN9mRhLpqQuAm4bWT PxQBdquPMNQ+8esb07309EKq94n5gUxXmTdOQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=64k0X5kM0Zb8JIvXICF8Ju7wkYsYLf28mWrHuUukHwA=; b=TRDeProZnDqDXmDmFCOLaS1nUJ36w6sCHWV6Kjks5jylvA5PJ8Ry3bDUlpT2kzdlLB +EKcHCRVBy6Qa5xDKQ98yQqJYuREc0HiuMA3+kwtS5cDe810uew4p8nz8BsxPVXePBr5 YGaCwCKk4pvLVDkb6xCPsjEpwJ8ffj3Ix8VxFxw9stwD/8sVam7ygcHMFJO4nIbbt3GB 5O2hcCEMqmpH0I7FvO7BIcgeGWp7QJL0R7P7qDUFcJ68Sl56jeXp59wjn02+YOhxcYH7 Q/MGn50XkD2GMpuSix7vq/2AKZxBgjEZh1K08nx+/WvTdvy/RBwQQGLpkzIAedmbTaj6 WJKg== X-Gm-Message-State: ALyK8tLwTDIZ6FmpV72Wb0avUK+Bt1V9+q6Bscxyje7NumwusjHmBdo5QAovYonkWhfB/9WS X-Received: by 10.25.152.200 with SMTP id a191mr867885lfe.104.1466176353437; Fri, 17 Jun 2016 08:12:33 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-cc7c71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.124.204]) by smtp.gmail.com with ESMTPSA id v10sm1998805lbw.2.2016.06.17.08.12.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 08:12:32 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org, Akinobu Mita , Irina Tirdea , Hartmut Knaack Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/4] iio: pressure: bmp280: augment DT bindings Date: Fri, 17 Jun 2016 17:12:18 +0200 Message-Id: <1466176341-17442-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds standard device tree bindings for a reset GPIO line, and the VDDD and VDDA power regulators. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/iio/pressure/bmp085.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.4.11 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/pressure/bmp085.txt b/Documentation/devicetree/bindings/iio/pressure/bmp085.txt index d7a6deb6b21e..06ad5feaea28 100644 --- a/Documentation/devicetree/bindings/iio/pressure/bmp085.txt +++ b/Documentation/devicetree/bindings/iio/pressure/bmp085.txt @@ -1,7 +1,7 @@ -BMP085/BMP18x digital pressure sensors +BMP085/BMP18x/BMP28x digital pressure sensors Required properties: -- compatible: bosch,bmp085 +- compatible: "bosch,bmp085" or "bosch,bmp180" or "bosch,bmp280" Optional properties: - chip-id: configurable chip id for non-default chip revisions @@ -10,6 +10,10 @@ Optional properties: value range is 0-3 with rising sensitivity. - interrupt-parent: should be the phandle for the interrupt controller - interrupts: interrupt mapping for IRQ +- reset-gpios: a GPIO line handling reset of the sensor: as the line is + active low, it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt) +- vddd-supply: digital voltage regulator (see regulator/regulator.txt) +- vdda-supply: analog voltage regulator (see regulator/regulator.txt) Example: @@ -21,4 +25,7 @@ pressure@77 { default-oversampling = <2>; interrupt-parent = <&gpio0>; interrupts = <25 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; + vddd-supply = <&foo>; + vdda-supply = <&bar>; };