Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3969185img; Mon, 25 Mar 2019 23:47:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXRJ2NY6UmUJo0qHcNOmkoy5si8aBDiBpBV4+L/YzTM7RT/s4MjAznpNGgKadbACocpECi X-Received: by 2002:a63:3dc8:: with SMTP id k191mr10673201pga.286.1553582839430; Mon, 25 Mar 2019 23:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553582839; cv=none; d=google.com; s=arc-20160816; b=r+eLCJprAySyBZ3C1HZUHu3FvIkVZKL0DApjKkaQaWWqCgucR0HYwnIaDekhNf4dYk eu5KxjkW+6FLPGlQ01PjUKwW03Refwxv7BDq7uFAx8+mkutP8xwFIYn1du1QpCGWTK4Q YdrtdZTEuh4TVb2QU+T2oiOmugMfa3TXxMiltILzL/J+Y8Gb3cNZ7ZmvmP/vFtl++KZb tVR+WHtC4N6QDeqA/ZrWnmF0nl/Fe86f0c/TD5zSSmjJ3KkeF+eV+VWu62w6v57eTycJ BBY0YPC+7cyfDvxSjb2YgoCkLO30xYd0ty0jpAA7C9Ta+WCe56UMtllNL5lJf5iOlLDr uOxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ilYc3IaD7vF3pj+opBVoQQjVtqT8SUBaLVdZJYMphzg=; b=tK76uIcISjBwJ9q+KJa4aKVdpCejToQKHAr6kTto5Z5i5pjAGcxMcH0Ag7xMQTvDUv R7qvvImrEwcW8nc3C7dpZkZBwZ1Ss1H50zPIlsbq7J2ormM+emX06xxHdQvo2ic7PNxO 8damYxP4m3em4rDOKVppb+5aCCJmlWA2RJyv+uzBEdnbf8jgRcC7NLtZKVpZ9MQN6fes IOvuzrgW1HuZnubf6IsAzTMinf9L8YXuCTJmDxI/2HRyS2Cw4gO2N1eEYaZfEqtCW7Na lB8kFNPVkMECWldddmZBJAYdmDk/ZxzWu/ztQpaX4qoiIKNiJ2UFIupT15/5Wqej+HNU DeaA== ARC-Authentication-Results: i=1; mx.google.com; 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 r12si1877309pgl.108.2019.03.25.23.47.04; Mon, 25 Mar 2019 23:47:19 -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; 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 S1731565AbfCZGdD (ORCPT + 99 others); Tue, 26 Mar 2019 02:33:03 -0400 Received: from mx.socionext.com ([202.248.49.38]:11569 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730755AbfCZGdB (ORCPT ); Tue, 26 Mar 2019 02:33:01 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 26 Mar 2019 15:32:59 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 5806D180BD4; Tue, 26 Mar 2019 15:32:59 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 26 Mar 2019 15:32:59 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0404D1A15B7; Tue, 26 Mar 2019 15:32:59 +0900 (JST) Received: from M20VSDK.e01.socionext.com (unknown [10.213.118.34]) by yuzu.css.socionext.com (Postfix) with ESMTP id DB677120487; Tue, 26 Mar 2019 15:32:58 +0900 (JST) From: Shinji Kanematsu To: jic23@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, orito.takao@socionext.com, sugaya.taichi@socionext.com, kasai.kazuhiro@socionext.com, kanematsu.shinji@socionext.com Subject: [PATCH 1/2] dt-bindings: iio: counter: Add Milbeaut Updown Counter Date: Tue, 26 Mar 2019 15:33:09 +0900 Message-Id: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for Milbeaut Updown Counter device quadrature encoder and counter binding. Signed-off-by: Shinji Kanematsu --- .../bindings/iio/counter/milbeaut-updown_cnt.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt diff --git a/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt b/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt new file mode 100644 index 0000000..6771567 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt @@ -0,0 +1,22 @@ +SOCIONEXT Milbeaut Updown counter + +Required properties: +- compatible: Must be "socionext,milbeaut-updown-counter". +- reg: Offset and length of the device's register set. +- clocks: Phandle to the clock used by the Updown counter module. +- clock-names: Must be "mux". +- interrupts: SPI number of the device's set. +- cms_type: connected_device + 1: updown button (updown counter mode) + 2: rotary encoder (phase difference counter mode) + +Example: + + updown0: updown@1e002000 { + compatible = "socionext,milbeaut-updown-counter"; + reg = <0x1e002000 0x20>; + clocks = <&clk 4>; + clock-names = "mux"; + interrupts = <0 104 0x4>; + cms_type = <1>; + }; -- 1.9.1