From: Mircea Caprioru <mircea.caprioru@analog.com>
To: peda@axentia.se, robh+dt@kernel.org
Cc: davem@davemloft.net, mchehab+samsung@kernel.org,
akpm@linux-foundation.org, rdunlap@infradead.org,
devicetree@vger.kernel.org,
Mircea Caprioru <mircea.caprioru@analog.com>
Subject: [PATCH 2/2] Documentation: dt-bindings: add adi,adgs140x doc
Date: Fri, 13 Jul 2018 15:30:35 +0300 [thread overview]
Message-ID: <20180713123035.6191-1-mircea.caprioru@analog.com> (raw)
Adding dt-bindings documentation for adgs1408/1409 multiplexer. The
bindings follow the standard SPI and mux bindings and do not require any
additional custom properties.
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
---
.../devicetree/bindings/mux/adi,adgs140x.txt | 39 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 40 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mux/adi,adgs140x.txt
diff --git a/Documentation/devicetree/bindings/mux/adi,adgs140x.txt b/Documentation/devicetree/bindings/mux/adi,adgs140x.txt
new file mode 100644
index 000000000000..5f2c2b9e9781
--- /dev/null
+++ b/Documentation/devicetree/bindings/mux/adi,adgs140x.txt
@@ -0,0 +1,39 @@
+Bindings for Analog Devices ADGS1408/1409 8:1/Dual 4:1 Mux
+
+Required properties:
+- compatible : "adi,adgs1408" or "adi,adgs1409"
+- #mux-control-cells : <0>
+* Standard mux-controller bindings as described in mux-controller.txt
+
+Optional properties:
+- idle-state : if present, array of states that the mux controllers will have
+ when idle. The special state MUX_IDLE_AS_IS is the default and
+ MUX_IDLE_DISCONNECT is also supported.
+
+States 0 through 7 correspond to signals S1 through S8 in the datasheet.
+
+Example:
+
+ /*
+ * One mux controller.
+ * Mux 1 to 8 set to idle as is (no idle-state declared)
+ */
+ &spi0 {
+ mux: mux-controller@2 {
+ compatible = "adi,adgs1408";
+ reg = <0>;
+ spi-max-frequency = <1000000>;
+ #mux-control-cells = <0>;
+ };
+ }
+
+ adc-mux@3 {
+ compatible = "io-channel-mux";
+ io-channels = <&adc 1>;
+ io-channel-names = "parent";
+ mux-controls = <&mux>;
+
+ channels = "out_a0", "out_a1", "test0", "test1",
+ "out_b0", "out_b1", "testb0", "testb1";
+
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 7aa68f38ea4b..6e69c3e2d27a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -816,6 +816,7 @@ W: http://wiki.analog.com/
W: http://ez.analog.com/community/linux-device-drivers
S: Supported
F: drivers/mux/adgs140x.c
+F: Documentation/devicetree/bindings/mux/adgs140x.txt
ANALOG DEVICES INC ADV7180 DRIVER
M: Lars-Peter Clausen <lars@metafoo.de>
--
2.17.1
next reply other threads:[~2018-07-13 12:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 12:30 Mircea Caprioru [this message]
2018-07-20 15:28 ` [PATCH 2/2] Documentation: dt-bindings: add adi,adgs140x doc Rob Herring
2018-07-21 9:20 ` Peter Rosin
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=20180713123035.6191-1-mircea.caprioru@analog.com \
--to=mircea.caprioru@analog.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=peda@axentia.se \
--cc=rdunlap@infradead.org \
--cc=robh+dt@kernel.org \
/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