From patchwork Thu Jan 2 17:27:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Klinger X-Patchwork-Id: 11315973 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 78955109A for ; Thu, 2 Jan 2020 17:28:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 602F421835 for ; Thu, 2 Jan 2020 17:28:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727859AbgABR2L (ORCPT ); Thu, 2 Jan 2020 12:28:11 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:43099 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbgABR2K (ORCPT ); Thu, 2 Jan 2020 12:28:10 -0500 Received: from localhost ([31.212.60.142]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MXXdn-1jELFl2hBv-00Z0ZR; Thu, 02 Jan 2020 18:27:54 +0100 Date: Thu, 2 Jan 2020 18:27:51 +0100 From: Andreas Klinger To: jic23@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, rpi-receiver@htl-steyr.ac.at, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: devantech-srf04.yaml: add pm feature Message-ID: <20200102172749.v7ufupd32ytf7jda@arbad> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Provags-ID: V03:K1:twtpBPb9KWROwZySwiuyXDwXX6qeWA5mWAW+x4wn8wM67nRTwe6 ZSlxkH4GwZxwh9CdipN/SmD6ekPysE5S3lJ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EY+L03LMjI6glsJUc1 wgMBmIIViuJN6LVnw8Bw== Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add GPIO line and startup time for usage of power management Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml b/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml index 4e80ea7c1475..b3fcb3b79485 100644 --- a/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml @@ -51,6 +51,22 @@ properties: the time between two interrupts is measured in the driver. maxItems: 1 + power-gpios: + description: + Definition of the GPIO for power management of connected peripheral + (output). + This GPIO can be used by the external hardware for power management. + When the device gets suspended it's switched off and when it resumes + it's switched on again. After some period of inactivity the driver + get suspended automatically (autosuspend feature). + maxItems: 1 + + startup-time-ms: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + This is the startup time the device needs after a resume to be up and + running. + required: - compatible - trig-gpios