From patchwork Sun Jun 19 18:33:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 70396 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1189476qgy; Sun, 19 Jun 2016 11:36:09 -0700 (PDT) X-Received: by 10.98.10.148 with SMTP id 20mr16875957pfk.154.1466361369306; Sun, 19 Jun 2016 11:36:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si27744882pfi.216.2016.06.19.11.36.08; Sun, 19 Jun 2016 11:36:09 -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 S1751361AbcFSSgH (ORCPT + 7 others); Sun, 19 Jun 2016 14:36:07 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:36221 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbcFSSgE (ORCPT ); Sun, 19 Jun 2016 14:36:04 -0400 Received: by mail-lf0-f51.google.com with SMTP id q132so25414455lfe.3 for ; Sun, 19 Jun 2016 11:34:21 -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:in-reply-to:references; bh=64k0X5kM0Zb8JIvXICF8Ju7wkYsYLf28mWrHuUukHwA=; b=fU8CKpbkgpTd956zpwRWxJiYtta25ib/GjvhRlYgACcE2/0YyMEoXo87+UJZa7+GUD 9gALhhf7FR+zu+/zH5bhEejIWk2w/ix4fva60+njxO+dZhJXoogjkpbCV3F8x8Bn/1Gz nnLxO5r8vGiNlb3Bh+D0AS3V0V81zkTzzsfpc= 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:in-reply-to :references; bh=64k0X5kM0Zb8JIvXICF8Ju7wkYsYLf28mWrHuUukHwA=; b=CzlTWYtqaRaFhKNEt9zxAGgx78Y+KqycjWiibDnrgV05q7K/uBxjQjZwwj1buBQVrN BJRkoPUS8Gi69t4nrzOsEJPEnrbYb3nC3lKxNGZ3UkW7alOILsjOBW5JnXNk9XLP3yQ5 vNJnSej3+hOhDm73LBi5EllAVqu2ZloBVcM+p+MTBa4r/oyrzKWCP0k1zvRBCBdwOcS2 bFc626jSNc/e4Ets/lQE/lZwciT2X8HElE3yMDm7LzSZiI/yJHvCBwCUd/YWk9Z56RH/ sOyGhChYH9Zlsvsnv2uclAF13w2d66gKqBGvSdsCv1PBzzMSZwMG6lUnX5z+aEVmlugx Cevg== X-Gm-Message-State: ALyK8tK/bKKzVy3psxe21CkQGCg0dYeJM/YXKlq3MS44Q2GvVAWPaS6KoXEUOmU/JD4fWnSW X-Received: by 10.46.1.156 with SMTP id f28mr2832423lji.22.1466361259309; Sun, 19 Jun 2016 11:34:19 -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 a6sm4648465lbf.19.2016.06.19.11.34.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jun 2016 11:34:18 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Akinobu Mita , Christoph Mair , Vlad Dogaru , Hartmut Knaack , Marek Belisko , "H. Nikolaus Schaller" , Eric Andersson , Neil Brown , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/9] iio: pressure: bmp280: augment DT bindings Date: Sun, 19 Jun 2016 20:33:54 +0200 Message-Id: <1466361242-2994-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1466361242-2994-1-git-send-email-linus.walleij@linaro.org> References: <1466361242-2994-1-git-send-email-linus.walleij@linaro.org> 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 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>; };