Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp363038imm; Mon, 2 Jul 2018 12:58:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcxK4oo+oH5DYgWrklAv7owOPoPxX6BWmBrs+B824c9HU9UYk+AxVbRh7xJGWfb4E6zxins X-Received: by 2002:a62:504e:: with SMTP id e75-v6mr8033659pfb.157.1530561503639; Mon, 02 Jul 2018 12:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530561503; cv=none; d=google.com; s=arc-20160816; b=CuJRDOHe43q2IPcyTBTHXStrhiaAN5nBJPmEfamXyGfJjq5eeyIG50bYwOjvCB7BhJ QZxUtkJkjaPFadkrwJDc3Z3IM2CRTrFFEV32aWncBBlrFRgblMBs2RG1X9k5jdSedXTg c3PoJltrU5L6weADTKRjfCQSkmioyotKTBYEYjvnDPfuxJZxXUyG+iF1RfWJ+BbAbd9W Lcs4j8uP0p4kDw4GTOvqWk6Z/ttdyHfElTijUdTdhYh2xhPOd4GU8fgs1590+zWrsBj5 +b07bHy18R72gOvVeavB55gQgGQu1HgEr6cLzwAAXobEvCR7Chh7+IYQ3npLXr44Fud9 FciA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=UxFD5uDBUO+RLSJc4ZYxXVFdNqbDgN51gjP304mQLcw=; b=NbBSIU/ebOGm2EOGVNNEcLuAl1/EHfWh3y3TNJlpia5lc8n34jUrRb+AAaOe5y30dx CN0oJjwmWVohcWFny2NgIOTmH3A8bhaeVmnMhGOP48BN62NMt4rSWoratEq1pB1jIYQm cxIoxYU39xqKFUu0SqI3lG72vrNbuTWPknkWNHYJFhGsdFGVvey9/H5d7feaowe/6pLq iytpK3iliIaOlmLMEuvB2HIVKzXIHGfRqy/WNNRd3KjBfFgnUKsDt6GTvz69VY4Wwf8Y xmG5AVjl5SFpZxRvf3pe350YGromNbFTVLR/cAEXomkGv7tw6odVtEbxIwnTkV+hHcbl PTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=YdrauYee; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26-v6si3118583pfj.251.2018.07.02.12.58.09; Mon, 02 Jul 2018 12:58:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=YdrauYee; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753421AbeGBT4c (ORCPT + 99 others); Mon, 2 Jul 2018 15:56:32 -0400 Received: from vern.gendns.com ([206.190.152.46]:47767 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbeGBT4a (ORCPT ); Mon, 2 Jul 2018 15:56:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UxFD5uDBUO+RLSJc4ZYxXVFdNqbDgN51gjP304mQLcw=; b=YdrauYeeQq4vzQMTCAw3+MOWYR cFl5vlhQKkJNePXjB7sG94Vjiq67LNNGfmS21g0jRC4N5jExSVLSIBI4UZkBYE7nPTpc1Wjmkgos2 bv9IZ3hzVhvy//qKbhqyv0JPCrkyzOaRVEmIahQfiSlklEHhTNjd/s5L3Rr/jUtYpndT7xcrQoS2t KfMjzZvdXCh0Cch67vrM4BNia/RPM5QHrjZ8O2srTQ5/iEkmB4xOVzV7cYNye+PGpAyttwTMPOfcM QAm6jaaq/bztW1Woj0dmMXCcMB6OWAWCzhfWmk8AIT5SvrmVjNN5gfYA5erV/475v5dps4t6lGYfT y5eYETlw==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:36786 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fa4w0-00DxWx-3w; Mon, 02 Jul 2018 15:56:28 -0400 Subject: Re: [v7,07/10] dt-bindings: counter: Document stm32 quadrature encoder To: William Breathitt Gray , gregkh@linuxfoundation.org Cc: jic23@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, robh+dt@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com References: From: David Lechner Message-ID: Date: Mon, 2 Jul 2018 14:56:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/21/2018 04:08 PM, William Breathitt Gray wrote: > From: Benjamin Gaignard > > Add bindings for STM32 Timer quadrature encoder. > It is a sub-node of STM32 Timer which implement the > quadratic encoder part of the hardware. quadradic? or quadrature? > > Cc: Rob Herring > Cc: Mark Rutland > Signed-off-by: Benjamin Gaignard > Signed-off-by: William Breathitt Gray > --- > .../bindings/counter/stm32-timer-cnt.txt | 31 +++++++++++++++++++ > .../devicetree/bindings/mfd/stm32-timers.txt | 7 +++++ > 2 files changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt > > diff --git a/Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt b/Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt > new file mode 100644 > index 000000000000..c52fcdd4bf6c > --- /dev/null > +++ b/Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt > @@ -0,0 +1,31 @@ > +STMicroelectronics STM32 Timer quadrature encoder > + > +STM32 Timer provides quadrature encoder to detect > +angular position and direction of rotary elements, > +from IN1 and IN2 input signals. > + > +Must be a sub-node of an STM32 Timer device tree node. > +See ../mfd/stm32-timers.txt for details about the parent node. > + > +Required properties: > +- compatible: Must be "st,stm32-timer-counter". > +- pinctrl-names: Set to "default". > +- pinctrl-0: List of phandles pointing to pin configuration nodes, > + to set CH1/CH2 pins in mode of operation for STM32 > + Timer input on external pin. > + > +Example: > + timers@40010000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-timers"; > + reg = <0x40010000 0x400>; > + clocks = <&rcc 0 160>; > + clock-names = "int"; > + > + counter { > + compatible = "st,stm32-timer-counter"; > + pinctrl-names = "default"; > + pinctrl-0 = <&tim1_in_pins>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/mfd/stm32-timers.txt b/Documentation/devicetree/bindings/mfd/stm32-timers.txt > index 1db6e0057a63..ff9c14ada30b 100644 > --- a/Documentation/devicetree/bindings/mfd/stm32-timers.txt > +++ b/Documentation/devicetree/bindings/mfd/stm32-timers.txt > @@ -23,6 +23,7 @@ Optional parameters: > Optional subnodes: > - pwm: See ../pwm/pwm-stm32.txt > - timer: See ../iio/timer/stm32-timer-trigger.txt > +- counter: See ../counter/stm32-timer-cnt.txt > > Example: > timers@40010000 { > @@ -43,4 +44,10 @@ Example: > compatible = "st,stm32-timer-trigger"; > reg = <0>; > }; > + > + counter { > + compatible = "st,stm32-timer-counter"; > + pinctrl-names = "default"; > + pinctrl-0 = <&tim1_in_pins>; > + }; > }; >