linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shinji Kanematsu <kanematsu.shinji@socionext.com>
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	[thread overview]
Message-ID: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> (raw)

Add documentation for Milbeaut Updown Counter device
quadrature encoder and counter binding.

Signed-off-by: Shinji Kanematsu <kanematsu.shinji@socionext.com>
---
 .../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


             reply	other threads:[~2019-03-26  6:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-26  6:33 Shinji Kanematsu [this message]
2019-03-31  6:42 ` [PATCH 1/2] dt-bindings: iio: counter: Add Milbeaut Updown Counter Rob Herring
2019-04-02  6:26   ` Kanematsu, Shinji/兼松 伸次

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com \
    --to=kanematsu.shinji@socionext.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jaswinder.singh@linaro.org \
    --cc=jic23@kernel.org \
    --cc=kasai.kazuhiro@socionext.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=masami.hiramatsu@linaro.org \
    --cc=orito.takao@socionext.com \
    --cc=pmeerw@pmeerw.net \
    --cc=robh+dt@kernel.org \
    --cc=sugaya.taichi@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).