From patchwork Tue Jul 10 18:18:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Klinger X-Patchwork-Id: 10517411 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 5DA9E6032A for ; Tue, 10 Jul 2018 18:19:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF6629282 for ; Tue, 10 Jul 2018 18:19:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F32729285; Tue, 10 Jul 2018 18:19:16 +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 E419829282 for ; Tue, 10 Jul 2018 18:19:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732499AbeGJSTW (ORCPT ); Tue, 10 Jul 2018 14:19:22 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:46305 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732266AbeGJSTW (ORCPT ); Tue, 10 Jul 2018 14:19:22 -0400 Received: from localhost ([2.166.249.57]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LrDwG-1g4Cvu0MdY-0136gP; Tue, 10 Jul 2018 20:18:34 +0200 Date: Tue, 10 Jul 2018 20:18:31 +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 v5 1/3] iio: hx711: add clock-frequency property in DT Message-ID: <20180710181831.GA5374@arbeit> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K1:6lB1bzeS3EeBLfsKQE1XEsvBwx8BCRuSY4YHbWbrSiZMcfJ1anc hm5rAXBW06xgJtmUQM9rvXED4Tmh7C/JHHETMDVRkUhnoM8XnjdKOnQfBhCFCgvNayi/NOR iMorgfyjJbB+6WtXH/0ISXovk++kpXoapQavwoYfU30WoMOOBWIzanzCUUVuXPF0rcm70c3 DJB1tXhXKiv7RhqNMFviA== X-UI-Out-Filterresults: notjunk:1; V01:K0:WvZhL9+nlVY=:b1gAhUjMR8jzJ7k1y1ljXW 7vC1hcMmVjy2UghK6HQOM1VyYYI0hNQGIACdBiW0ctFiQKqU/QJMfHRYaRkdRO78dGuAJh6T1 p0rfnwxlVeYYdaD8zyk5iJJ6VujZ8iZigXiuNQNVXDAjo6y/nP6VNcbUiogwm3UILCaqc1/K3 ICD/0or3tW/f4Y9eC5pq6TwFUo28PbxWNSmMoE3k7tbsatKzlDZuffgr0FOsIoSDXX03HHMcT ZqRnt4Yujq7Mj6uJ4WEE/91IgJSZkjrXLBla6SQQ6tcLiIohJzUD6K0JthOeDa5FyupYOTRte injMhZP4H1Q9HEOzejUDEWA60KZldUDTapiDV/joVvAM1GwPlSGhFsphlw0oCB0H/tOTFci4q N+TKS59+mWlKXHg/WS30n4RSBA4+4CTQoH0bUNmGhRtBN0dlvHgiZgomPIYWhhiJqs0djTNU9 ILs1yOfKYVh9FS4azCj+C0GybB7fymj+WIRVAmAPPVI2MjZqpCIyOtNsGIKflzcPFF5tnMrJR CpkfJDa83QhvNldFAaYmCmNDZWCEelLACKD/l8fCFaQ9ZswGXyb9g9K1UrPI3EsL79BpQeRKr QBRTrYHoYcrGVBzTz6d71DTKjOYw0sAcKjaYFxiS+lertW7E6VDTeRN94S7HMOUtGBobNKrQs ykap7gxTglCpX7Kup7Xbr/twERqlts0WGL0zF+aRn0Tt4ZCtORwg+Uu7n7osogNl8Xf4= 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 clock-frequency property for hx711 ADC. This is the frequency of PD_SCK. After PD_SCK goes high DOUT is read just before PD_SCK goes down again. This is necessary because of parasitic capacitance on the wiring. Signed-off-by: Andreas Klinger Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt b/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt index b3629405f568..2c1b67d33c49 100644 --- a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +++ b/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt @@ -8,11 +8,17 @@ Required properties: See Documentation/devicetree/bindings/gpio/gpio.txt - avdd-supply: Definition of the regulator used as analog supply +Optional properties: + - clock-frequency: Frequency of PD_SCK in Hz + Minimum value allowed is 10 kHz because of maximum + high time of 50 microseconds. + Example: weight@0 { compatible = "avia,hx711"; sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; avdd-suppy = <&avdd>; + clock-frequency = <100000>; };