From patchwork Wed Jun 22 20:53:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 639406 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rZcJq0G7xz9t0N for ; Thu, 23 Jun 2016 06:54:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=e+o/ZNVd; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbcFVUyA (ORCPT ); Wed, 22 Jun 2016 16:54:00 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34573 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059AbcFVUx7 (ORCPT ); Wed, 22 Jun 2016 16:53:59 -0400 Received: by mail-lf0-f54.google.com with SMTP id h129so82645750lfh.1 for ; Wed, 22 Jun 2016 13:53:58 -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=G0BJL/aCYdytugcaYVOOODoDrqBL3z2fLZWTt/NSORY=; b=e+o/ZNVdOJFqby+Tg90S9eNl79tPN3I0Ud6OKdrNbTjJXxPtkRciuklM1e6/p8dE6j RpCGelOX2UP1kzCI7r3zH0kToTDRhrRLgVLT697LXs3M+7MasNoYfQwUIpZGoaj9e4ml UT0wv6yXU1Q4hHnU7I6YL4SLO+jYxoh7CnO90= 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=G0BJL/aCYdytugcaYVOOODoDrqBL3z2fLZWTt/NSORY=; b=IKqgfIxLGcJmpFEoOexc9GnjKnM/PtvBeBpce1IIwIlojW7Anb7tRW8XRqdZy8wmN8 zTtxcFRkbGPAXsrGJK6t6GRyLKSN7dNyf7iOX6nHyRXFw/BGY1FttLt4bUfdR2AMhoZt cczKdhjzUg9uKPAJAWMYHnG/7Phy8+r3j9T+qdtlff0XesbE/K82VEzV0RgXV8u+/ap7 sHfGTlZ1mOKU3fVRA0aPPruJp4vqOmSDmPGlyM89CDQVUSohoZYBeWn4tVWeVD0QdkpB /Xzfkf9DwgtYkP8brDqtNzBlU5AvD/O9KZfuRLo2dIe2xkqeNdz1TvRjI9mzkOoee5eC 3hKw== X-Gm-Message-State: ALyK8tIXYvu/ytQn75ByTFJF7C8sj76ZDyX5vnS8677IDPTgjFmS8DuSxMDz1QgUaakb9cKs X-Received: by 10.46.5.84 with SMTP id 81mr9334366ljf.65.1466628837940; Wed, 22 Jun 2016 13:53:57 -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 7sm195280ljb.17.2016.06.22.13.53.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 13:53:57 -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 1/9 v2] iio: pressure: bmp280: augment DT bindings Date: Wed, 22 Jun 2016 22:53:31 +0200 Message-Id: <1466628819-29784-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1466628819-29784-1-git-send-email-linus.walleij@linaro.org> References: <1466628819-29784-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 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(-) 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>; };