Skip to contentSkip to conversation

Documentation: dt-bindings: add adi,adgs140x doc

PATCH Superseded Mircea Caprioru 3 participants 3 messages Jul 13, 2018 – Jul 21, 2018

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Documentation: dt-bindings: add adi,adgs140x doc

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.

---
 .../devicetree/bindings/mux/adi,adgs140x.txt  | 39 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mux/adi,adgs140x.txt
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +39 -0
new file mode 100644
index 000000000000..5f2c2b9e9781
@@ -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";
+
+	};
MAINTAINERS +1 -0
index 7aa68f38ea4b..6e69c3e2d27a 100644
@@ -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 <[email protected]>
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 3 lines · Mircea Caprioru

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.

Drop "Documentation: " from the subject.

Quoted 13 lines
---
 .../devicetree/bindings/mux/adi,adgs140x.txt  | 39 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mux/adi,adgs140x.txt
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +0 -0
new file mode 100644
index 000000000000..5f2c2b9e9781

Documentation/devicetree/bindings/mux/adi,adgs140x.txt line 6

Quoted 6 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +6 -0
@@ -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

What would these be because the only one you have in the example is already listed here.

Quoted 6 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +6 -0
+
+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.
+

Documentation/devicetree/bindings/mux/adi,adgs140x.txt line 22

Quoted 10 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +10 -0
+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 {

unit address should be 0.

Quoted 36 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +17 -0
+			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";
+
+	};
MAINTAINERS +1 -0
index 7aa68f38ea4b..6e69c3e2d27a 100644
@@ -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 <[email protected]>
Signature · 6 lines
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 6 lines · Rob Herring
Quoted 3 lines · Mircea Caprioru

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.

Drop "Documentation: " from the subject.

Hi Rob,

All the issues reported here (and some more) have been addressed in subsequent submissions. Please look at v5:

https://www.spinics.net/lists/devicetree/msg240309.html

Cheers,
Peter

Quoted 78 lines
Quoted 13 lines
---
 .../devicetree/bindings/mux/adi,adgs140x.txt  | 39 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mux/adi,adgs140x.txt
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +0 -0
new file mode 100644
index 000000000000..5f2c2b9e9781

Documentation/devicetree/bindings/mux/adi,adgs140x.txt line 6

Quoted 6 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +6 -0
@@ -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

What would these be because the only one you have in the example is already listed here.

Quoted 6 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +6 -0
+
+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.
+

Documentation/devicetree/bindings/mux/adi,adgs140x.txt line 22

Quoted 10 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +10 -0
+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 {

unit address should be 0.

Quoted 36 lines
Documentation/devicetree/bindings/mux/adi,adgs140x.txt new file +17 -0
+			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";
+
+	};
MAINTAINERS +1 -0
index 7aa68f38ea4b..6e69c3e2d27a 100644
@@ -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 <[email protected]>
Signature · 6 lines
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html