From patchwork Mon Jun 25 15:18:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Klinger X-Patchwork-Id: 10486673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C7D56023A for ; Mon, 25 Jun 2018 15:19:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 168C828514 for ; Mon, 25 Jun 2018 15:19:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AB622851D; Mon, 25 Jun 2018 15:19:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B032028514 for ; Mon, 25 Jun 2018 15:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934797AbeFYPSs (ORCPT ); Mon, 25 Jun 2018 11:18:48 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:37801 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934725AbeFYPSo (ORCPT ); Mon, 25 Jun 2018 11:18:44 -0400 Received: from localhost ([83.135.237.7]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MgCZR-1flZlO3Onl-00NNjQ; Mon, 25 Jun 2018 17:18:03 +0200 Date: Mon, 25 Jun 2018 17:18:02 +0200 From: Andreas Klinger To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, mchehab@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linus.walleij@linaro.org, rdunlap@infradead.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] iio: hx711: add data-ready-delay-ns property in DT Message-ID: <20180625151802.GA6369@arbeit> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K1:9TPxrJbohkoL+lQBTpArem5NwTrcTNw01dLUqcwEsvNoChTL5e6 XGHUCd1fvkov1Ndh8ip7u+uKrRv5Ky0hTwIaRi4mJYpYQUTQskIRhAwn87cHr46j9jm/2bu u8OR/6SMDqxcHrLCbw10rECK/eFwJewGy99w3e8G+CWEfl+1s8I9ET8O+YNuAEaNiWaS1y9 fHh9f8sFv2khsbXCdEzQA== X-UI-Out-Filterresults: notjunk:1; V01:K0:7KfFwbU7dH0=:p4Yp4AS6A5rhYYEbXwWoYY kM1lufTtXJd9zCvlvx42OblIksyunthDfKp5kue6IcHfiUsrtKVpFQ0ierboi/45QLw2uAW0s ypz1Rw5RVSPG5RTK5DbtYoungxQJf0FbEuLzulxf9JHA3mpTUiFdQJfxf/ly0w7ez5egftz/p pasoqEMrm4tVpUy7My+QhXHweqBkHnwAoFwBDcak3Jtye/PNkc3jcjkm3xjRaUu8QJpHD4zdO iLkS0nKf4lEqwS+9sf61g88xwzj3jElzvEoCJR5uXwJTdnk/NX1vQSTgil3jYD5kt72OLu66J c3SINmPRUNnleLlySPEHorIvkleArRHLMWqaPk+s01Jx7HWe61Jbn9KkhVTANae7k2h6kEa65 D6Y3g/iEQxstyHubE1Dfl0iG0SJoKzy3IpD1PEc07PJJP9OFjO6NyRC82OnW/0g6m5W2wF8R2 o4rupR9vd3MxY3RuvNX8zVePdXpe8wHf/U2LERwMqd9n56Ljgh5QTi5VPcYQ9c12mzKPo15zF GohUh+HbrJDQ0fk99pn79JPRqMTjqgf0W1Lv6RrRp0p4reOIUugpmO2D/nG0tMEIbhCoZgtKu 8C95VDoCdh4oS1jrnoQ0HpEhNfyJZgdWHhf9xzBkHYVYuea338u9QcuNL4AYNpydWoAezO6rk qfQbEr6sS0A0bRbVqeBoJNyClXh+6y5r9hivDcjtMcQvRgTJeOeQumZs2fgzEVzxAZrg= Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add data-ready-delay-ns property for hx711 ADC this is the delay after rising PD_SCK until DOUT is read and assumed to be ready Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt b/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt index b3629405f568..d0c066e3df69 100644 --- a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +++ b/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt @@ -8,11 +8,18 @@ Required properties: See Documentation/devicetree/bindings/gpio/gpio.txt - avdd-supply: Definition of the regulator used as analog supply +Optional properties: + - data-ready-delay-ns: additional delay in nanoseconds between rising of + PD_SCK until DOUT is ready + should be less then maximum PD_SCK high time which + is 50000 in the datasheet + Example: weight@0 { compatible = "avia,hx711"; sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; avdd-suppy = <&avdd>; + data-ready-delay-ns = <1000>; };