From patchwork Thu Jun 30 01:48:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 71215 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp149842qgy; Wed, 29 Jun 2016 18:49:06 -0700 (PDT) X-Received: by 10.98.33.138 with SMTP id o10mr16861472pfj.151.1467251346813; Wed, 29 Jun 2016 18:49:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f186si1477242pfb.129.2016.06.29.18.49.06; Wed, 29 Jun 2016 18:49:06 -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 S1751486AbcF3BtF (ORCPT + 7 others); Wed, 29 Jun 2016 21:49:05 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:36078 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751376AbcF3BtE (ORCPT ); Wed, 29 Jun 2016 21:49:04 -0400 Received: by mail-lf0-f43.google.com with SMTP id q132so45183448lfe.3 for ; Wed, 29 Jun 2016 18:49:03 -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=aHtMkOYqrDpamyGN1ZcimNzuEXSDwWtwJ00IvYmscc8=; b=GUTxi282htkD0Q34ulmN9Nt5m14L1K0ooy/CuCiIpg/eAjkMAaosvg0m3+naRB0CCJ c2QgrsvavT0xVk7Lwbl7P6i7/Fmv1e3qYPPcGbKBBtq1GT+PA+yM6P7YjqMKk5i93vDn J2R1mmADPwNsXumJQQcIxOz2+aA+JMLH4f2Yw= 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=aHtMkOYqrDpamyGN1ZcimNzuEXSDwWtwJ00IvYmscc8=; b=Xs5hVxHxUMOqA0UJLOs52Zr3vqXGetxDaPhwzNfkgkuKHTBJJMH8sdVQVpUTaw+YH2 4SRmV7AWNcys0Py1CeomvW3cYalxUpBWguArEkSrI2UNKVogPIAdKa9NnqilFbrau2Iu ZkPQ0VOE4GTRTBkF+lNMcgql9sSaLM0oUKcS94Z0RTy2150ps5fql6YUwjjA4pwydYlL 8HDT+zEksECkM55gglbzB404OHLfDvRLfPRtBZ62f4op4e4TaIB7psm5SgtZEgs+4/hU HR+rfx5QMnHPiQzlzxTuECkBbeKRAOMcU99PXdUbzf4BYRkASBQIsOZ5WRyEKPwlZilo /S/A== X-Gm-Message-State: ALyK8tLuumAhKdespFG52SM/zdpoaR/ovFhSdqNiRjQbmSHYsAE0TgEEsMaCdRDOLCKZ+8Wu X-Received: by 10.46.1.154 with SMTP id f26mr3508026lji.27.1467251343068; Wed, 29 Jun 2016 18:49:03 -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 39sm1078376lja.37.2016.06.29.18.49.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jun 2016 18:49:02 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org, Akinobu Mita , "H. Nikolaus Schaller" , Matt Ranostay , Peter Meerwald-Stadler Cc: Christoph Mair , Vlad Dogaru , Hartmut Knaack , Marek Belisko , Eric Andersson , Neil Brown , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 01/10 v4] iio: pressure: bmp280: augment DT bindings Date: Thu, 30 Jun 2016 03:48:45 +0200 Message-Id: <1467251334-30594-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1467251334-30594-1-git-send-email-linus.walleij@linaro.org> References: <1467251334-30594-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 --- ChangeLog v3->v4: - Just resending. If the old patch (in the tree) is good enough, just drop this. ChangeLog 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>; };