From patchwork Mon Jun 27 16:30:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 70930 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1157659qgy; Mon, 27 Jun 2016 09:31:29 -0700 (PDT) X-Received: by 10.98.6.132 with SMTP id 126mr33212902pfg.109.1467045089012; Mon, 27 Jun 2016 09:31:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p65si27416734pfd.57.2016.06.27.09.31.28; Mon, 27 Jun 2016 09:31:29 -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 S1751965AbcF0Qan (ORCPT + 7 others); Mon, 27 Jun 2016 12:30:43 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:34716 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbcF0Qal (ORCPT ); Mon, 27 Jun 2016 12:30:41 -0400 Received: by mail-lf0-f47.google.com with SMTP id h129so160248706lfh.1 for ; Mon, 27 Jun 2016 09:30:40 -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=DHI9pwy9/+HCejH6ff7L7qk4pZX3QyPgVha7jvTg/yE=; b=UlEsfwYxJv86ovcJU8ZfRGo6eLYgTtqNW453V6tGKqxyn3Rn+eBAUKmipq8KeOhaK3 5m3Fm/hb91v3p0w/WbEd4R6bP+HIqxZ0DRzXSNsEhLvConcPqLKyAV491xvF10VcNnab lpwBbELTV7p55PqRm0BPxBuSyVcClxfeXOgwc= 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=DHI9pwy9/+HCejH6ff7L7qk4pZX3QyPgVha7jvTg/yE=; b=bnI8w71TFVphliiX8WegZ6W+DiCJqbfKfEI2xaY3kg93PMqP1VSiLlA7Q2aLy+BHLu Rw6mb8JmiqETwDo4PprvuTt0oSHXUcYd37Zp+E09jsTzIgzSSTneUe+ypPJlPhjsq7VP m/JjR1qaHTpls4SkdOzdjPFQKFEtBm+JbgNV4ZgaZZoPOdHj1+AdO0NbYFnpNGt+mWpJ lBBt/pmPr1plK8bmRmDeKUtPMKCuhzYTME753LLeNDrU2n4JZ81V4f2gR0wc4CMCmF6G OjDGXklCZxM7zGtjy9tJa3o/XVEoEDJrUAK9jhmK5IH5/+lR0C1Xr3ic4lDpJRkR6aMi 81ig== X-Gm-Message-State: ALyK8tIJingD7GltBpQKXkVzOhQRSESxhbIvrpFILKiM2say+JnG27IlGvGtSRJQWPUS9UDT X-Received: by 10.25.214.84 with SMTP id n81mr529817lfg.162.1467045039769; Mon, 27 Jun 2016 09:30:39 -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 s87sm3412001lfg.46.2016.06.27.09.30.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jun 2016 09:30:38 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org, Akinobu Mita , "H. Nikolaus Schaller" , Matt Ranostay Cc: Christoph Mair , Vlad Dogaru , Hartmut Knaack , Marek Belisko , Eric Andersson , Neil Brown , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 01/10 v3] iio: pressure: bmp280: augment DT bindings Date: Mon, 27 Jun 2016 18:30:11 +0200 Message-Id: <1467045020-2665-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1467045020-2665-1-git-send-email-linus.walleij@linaro.org> References: <1467045020-2665-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 Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLov v2->v3: - None, just resending in case Jonathan prefers this binding doc ChangeLog v1->v2: - Order compatible string on single lines - Add "bosch,bme280" for the new sensor from Matt --- Documentation/devicetree/bindings/iio/pressure/bmp085.txt | 15 +++++++++++++-- 1 file changed, 13 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..c7198a03c906 100644 --- a/Documentation/devicetree/bindings/iio/pressure/bmp085.txt +++ b/Documentation/devicetree/bindings/iio/pressure/bmp085.txt @@ -1,7 +1,11 @@ -BMP085/BMP18x digital pressure sensors +BMP085/BMP18x/BMP28x digital pressure sensors Required properties: -- compatible: bosch,bmp085 +- compatible: must be one of: + "bosch,bmp085" + "bosch,bmp180" + "bosch,bmp280" + "bosch,bme280" Optional properties: - chip-id: configurable chip id for non-default chip revisions @@ -10,6 +14,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 +29,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>; };