From patchwork Sun Jul 22 22:51:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 947562 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UdaNvdjA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41Yfxw3KL9z9s3q for ; Mon, 23 Jul 2018 08:51:48 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387796AbeGVXt7 (ORCPT ); Sun, 22 Jul 2018 19:49:59 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:44246 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387732AbeGVXt7 (ORCPT ); Sun, 22 Jul 2018 19:49:59 -0400 Received: by mail-yw0-f194.google.com with SMTP id k18-v6so6214652ywm.11; Sun, 22 Jul 2018 15:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MaXwu3UiExrAZ5ralFaJKzkH6lxMbT4Gv5yXmL2FJ2o=; b=UdaNvdjApjw+V6ajjzIQVmCVphWhC/WfTPFm5IO0a0xXjz7QH5IHol7w+v18HREywy o7vKJe77ITvZB4WAJBfcyM2UzNI2Q32TJ8N7Oo9CwFyF9LiwG1S95v8wr3x2MuZ3mQ7R kQGRwncHV45lZEJAeXq6cHR6Fiy78OLMEqQ+Psdi9xW/f3z/cJax0hwINChN19p1+Ma4 k3RnX2b/RBfCIjjYJyVA0QJSm5Kz+LsBkaQ4qoh3mLkEbo64Gkwj19rn68f3F/qvIzyM Lk3Wz8ufBQBTrK5/ag74sVv11l/Hb0uVL0wGPW0WYdq2nq9WsOi7PeFlhGLlFGwrmaVi cezQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MaXwu3UiExrAZ5ralFaJKzkH6lxMbT4Gv5yXmL2FJ2o=; b=tjcuYhDkWZ6aTdU90M4ywpRTZus2VV+WTEv2ss80TQpe8d8VNeuwpXcBNx7AlYaAVU LIZzRb7Os0Fxj6j4Tse1GzGMbLB2sXrFlwkuZC7MzLX3waI0pfJcneC1w2j3kpZlcrGS MgDnomqxFiFoMuro7GUZ7oOxzKpVGvUBBwztW3oPRk8AHjDc5qHxNLXn2XhrmWbIWhas uUY+8OawKg45UpGAOEWBt2iV5FCWsFpOlJ4/DZTMNvic94Z3Yz3TBhM3/gHDQas8rw48 39ii7rRYMyIJH7DdvdUT4f4tATVCIucok2ckW52UUQRfQSfkcPgEbTmH8a1EBpoLxYPa pjYA== X-Gm-Message-State: AOUpUlFD2HtktRPaBVyk3kyFDZHatRcTBhmQzXdWFcxmJUkAcoarhkcv h5sLPFTiNUsS9ON1+q2jWb4= X-Google-Smtp-Source: AAOMgpfW2IkSl5mpNUzYpnkxboHkbBViwTzulTocgbhi4h9GV+RoAb4wZRREP8I41hhIt+a0hdhshw== X-Received: by 2002:a81:7050:: with SMTP id l77-v6mr5660933ywc.226.1532299900328; Sun, 22 Jul 2018 15:51:40 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id 139-v6sm933716ywk.41.2018.07.22.15.51.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:51:39 -0700 (PDT) From: William Breathitt Gray To: 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, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, Mark Rutland , William Breathitt Gray Subject: [PATCH v9 08/11] dt-bindings: counter: Document stm32 quadrature encoder Date: Sun, 22 Jul 2018 18:51:34 -0400 Message-Id: <7e5b0d84eb64a9f11770bb9734f8303ebf6f7178.1532298882.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. Cc: Mark Rutland Signed-off-by: Benjamin Gaignard Acked-by: Rob Herring 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 0e900b52e895..15c3b87f51d9 100644 --- a/Documentation/devicetree/bindings/mfd/stm32-timers.txt +++ b/Documentation/devicetree/bindings/mfd/stm32-timers.txt @@ -28,6 +28,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 { @@ -48,6 +49,12 @@ Example: compatible = "st,stm32-timer-trigger"; reg = <0>; }; + + counter { + compatible = "st,stm32-timer-counter"; + pinctrl-names = "default"; + pinctrl-0 = <&tim1_in_pins>; + }; }; Example with all dmas: From patchwork Sun Jul 22 22:51:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 947563 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p8R9dVfF"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41YfyB50jcz9s2g for ; Mon, 23 Jul 2018 08:52:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387845AbeGVXuT (ORCPT ); Sun, 22 Jul 2018 19:50:19 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:44337 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387846AbeGVXuT (ORCPT ); Sun, 22 Jul 2018 19:50:19 -0400 Received: by mail-yb0-f195.google.com with SMTP id l16-v6so6595405ybk.11; Sun, 22 Jul 2018 15:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Lbzup+j4uV+Cyvc6JSmDxolAbVH0YdeWVSBZD2fqHpg=; b=p8R9dVfFr6zAueVCIZa1GVXM4nSkIMW6O2rtSs2CSKvjlyTGtgyWaHP3/Wc+MvZh6m KpBt7U6MYQOxDkeO7c4ldf88UKvQ2KtjDw9kE5SD5YAkY5G01LJnjNGz4JcZXh5YOOp7 CaIEbfttk1/dl8Xk54YP2NqmSBGjI1J9x2TtBY+ulhsVIWxXHdfkw/oYc6mE1Ry1bvj7 u82qirjgGBA0C/+oYc6g+wMAtQmx12GcjYOHBprg7frr2LYhfoKBxqcKcKH5CCf38xU7 qMu1ZGRVKy2CaoDy7eAsc/B9usHyj95GrKfdmWwRw+F8Lgwmvxb5Th/NWyAJO3/B2r2S ewCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Lbzup+j4uV+Cyvc6JSmDxolAbVH0YdeWVSBZD2fqHpg=; b=TqEEW8ohTgq09PVASGHXi8IGa68Tmv+ksDwwzZfid6Qkhvn4hguivcEsMkoBU3dYBB +qOiEYhVeAAei+f3svRnSd0wP530vEANjHD4H3vS3SITALlGUc9liB5kRkJNz7lQ2IPc oRb6UPQFEVcFwvAYLnYGwm8HVajQSk91JGyA65ST2hJmPJOQkXvOSvWoUvrIJFWu6EHZ sUq+M8t6ltbdd+mrvVRCcdeX/Ys4i8Iiowe5Z0Y8ddwqEY5w2tDg1GD7nYRzsY5BKlSQ tGRymkTB+fNUm0qxdoe44Xg8SuwjZ+2W+XhjNsuJmHamU6a6DcV2K4puwHZOqeavDvpu 48Ww== X-Gm-Message-State: AOUpUlE9Xa7D9jCrbvM3UtThgTFXzBE4eDtsG5qxCYX41uUvB94JcMlA emq7eBaqOuGdL1bDx2nhcjg= X-Google-Smtp-Source: AAOMgpcovD1823JR6zM2QMAaSaOgDGvl9IpQrvStBJ49wNtUKhlLrYMlj692I1fHSfx4ZgG3YWcuZQ== X-Received: by 2002:a25:b28c:: with SMTP id k12-v6mr5589114ybj.161.1532299920968; Sun, 22 Jul 2018 15:52:00 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id r69-v6sm3922977ywh.44.2018.07.22.15.52.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:52:00 -0700 (PDT) From: William Breathitt Gray To: 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, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, Mark Rutland , William Breathitt Gray Subject: [PATCH v9 10/11] dt-bindings: counter: Adjust dt-bindings for STM32 lptimer move Date: Sun, 22 Jul 2018 18:51:55 -0400 Message-Id: <45406263819b9877c8aa8dca32e8f13e79957293.1532298882.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Fabrice Gasnier The STM32 LP Timer counter driver now resides under the Counter subsystem. This patch adjusts dt-bindings to account for the STM32 lptimer driver move. Cc: Mark Rutland Signed-off-by: Fabrice Gasnier Acked-by: Rob Herring Signed-off-by: William Breathitt Gray --- .../devicetree/bindings/{iio => }/counter/stm32-lptimer-cnt.txt | 0 Documentation/devicetree/bindings/mfd/stm32-lptimer.txt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename Documentation/devicetree/bindings/{iio => }/counter/stm32-lptimer-cnt.txt (100%) diff --git a/Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt b/Documentation/devicetree/bindings/counter/stm32-lptimer-cnt.txt similarity index 100% rename from Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt rename to Documentation/devicetree/bindings/counter/stm32-lptimer-cnt.txt diff --git a/Documentation/devicetree/bindings/mfd/stm32-lptimer.txt b/Documentation/devicetree/bindings/mfd/stm32-lptimer.txt index 2a9ff29db9c9..fb54e4dad5b3 100644 --- a/Documentation/devicetree/bindings/mfd/stm32-lptimer.txt +++ b/Documentation/devicetree/bindings/mfd/stm32-lptimer.txt @@ -16,7 +16,7 @@ Required properties: Optional subnodes: - pwm: See ../pwm/pwm-stm32-lp.txt -- counter: See ../iio/timer/stm32-lptimer-cnt.txt +- counter: See ../counter/stm32-lptimer-cnt.txt - trigger: See ../iio/timer/stm32-lptimer-trigger.txt Example: