diff mbox

[v2,1/2] dt-bindings: sound: add bindings for TAS6424

Message ID 1500308747-27973-2-git-send-email-m-stecklein@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Stecklein July 17, 2017, 4:25 p.m. UTC
Add the bindings for the TAS6424 digital amplifier.

Signed-off-by: Michael Stecklein <m-stecklein@ti.com>
---
 .../devicetree/bindings/sound/ti,tas6424.txt       | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tas6424.txt

Comments

Rob Herring July 17, 2017, 8:24 p.m. UTC | #1
On Mon, Jul 17, 2017 at 11:25:46AM -0500, Michael Stecklein wrote:
> Add the bindings for the TAS6424 digital amplifier.
> 
> Signed-off-by: Michael Stecklein <m-stecklein@ti.com>
> ---
>  .../devicetree/bindings/sound/ti,tas6424.txt       | 31 ++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/sound/ti,tas6424.txt
> 
> diff --git a/Documentation/devicetree/bindings/sound/ti,tas6424.txt b/Documentation/devicetree/bindings/sound/ti,tas6424.txt
> new file mode 100644
> index 0000000..27227b1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/ti,tas6424.txt
> @@ -0,0 +1,31 @@
> +Texas Instruments TAS6424 Quad-Channel Audio amplifier
> +
> +The TAS6424 serial control bus communicates through I2C protocols.
> +
> +Required properties:
> +	- compatible - One of: "ti,tas6424" - TAS6424
> +	- reg - I2C slave address
> +	- sound-dai-cells: must be equal to 0
> +
> +Optional properties:
> +	- pinctrl-names, pinctrl-0 - Please refer to pinctrl-bindings.txt
> +	- interrupts-extended - describe the interrupt line used to inform the
> +	  host. Please refer to interrupt-controller/interrupts.txt

There's no need for interrupts-extended here. Generally, we just 
document "interrupts" though interrupts-extended can be used instead as 
needed.

> +
> +Example:
> +
> +tas6424: tas6424@6a {
> +	#sound-dai-cells = <0>;
> +
> +	status = "okay";

Don't show status for examples.

> +
> +	compatible = "ti,tas6424";

Generally, this comes first style-wise.

> +	reg = <0x6a>;
> +
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&tas6424_int_pin>;
> +	interrupts-extended = <&gpio1 28 IRQ_TYPE_EDGE_FALLING>;
> +};
> +
> +For more product information please see the link below:
> +http://www.ti.com/product/TAS6424-Q1
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/sound/ti,tas6424.txt b/Documentation/devicetree/bindings/sound/ti,tas6424.txt
new file mode 100644
index 0000000..27227b1
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ti,tas6424.txt
@@ -0,0 +1,31 @@ 
+Texas Instruments TAS6424 Quad-Channel Audio amplifier
+
+The TAS6424 serial control bus communicates through I2C protocols.
+
+Required properties:
+	- compatible - One of: "ti,tas6424" - TAS6424
+	- reg - I2C slave address
+	- sound-dai-cells: must be equal to 0
+
+Optional properties:
+	- pinctrl-names, pinctrl-0 - Please refer to pinctrl-bindings.txt
+	- interrupts-extended - describe the interrupt line used to inform the
+	  host. Please refer to interrupt-controller/interrupts.txt
+
+Example:
+
+tas6424: tas6424@6a {
+	#sound-dai-cells = <0>;
+
+	status = "okay";
+
+	compatible = "ti,tas6424";
+	reg = <0x6a>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&tas6424_int_pin>;
+	interrupts-extended = <&gpio1 28 IRQ_TYPE_EDGE_FALLING>;
+};
+
+For more product information please see the link below:
+http://www.ti.com/product/TAS6424-Q1