diff mbox

[v2,1/2] ALSA: ac97: add bus binding for codecs

Message ID 20180622192834.7797-1-robert.jarzmik@free.fr (mailing list archive)
State New, archived
Headers show

Commit Message

Robert Jarzmik June 22, 2018, 7:28 p.m. UTC
Add the generic ac97 bus binding, especially for ac97 codecs discovered
by ac97 hardware probing.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
 .../devicetree/bindings/sound/ac97-bus.txt         | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ac97-bus.txt

Comments

Takashi Iwai June 25, 2018, 8:07 a.m. UTC | #1
On Fri, 22 Jun 2018 21:28:33 +0200,
Robert Jarzmik wrote:
> 
> Add the generic ac97 bus binding, especially for ac97 codecs discovered
> by ac97 hardware probing.
> 
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>

OK, now I applied both patches.

Mark, if you need these changes, pull topic/ac97-bus branch from my
tree.  It's a clean branch from 4.18-rc1.


thanks,

Takashi
Mark Brown June 25, 2018, 11:23 a.m. UTC | #2
On Mon, Jun 25, 2018 at 10:07:02AM +0200, Takashi Iwai wrote:
> On Fri, 22 Jun 2018 21:28:33 +0200,
> Robert Jarzmik wrote:
> > 
> > Add the generic ac97 bus binding, especially for ac97 codecs discovered
> > by ac97 hardware probing.
> > 
> > Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> 
> OK, now I applied both patches.
> 
> Mark, if you need these changes, pull topic/ac97-bus branch from my
> tree.  It's a clean branch from 4.18-rc1.

Thanks!
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/sound/ac97-bus.txt b/Documentation/devicetree/bindings/sound/ac97-bus.txt
new file mode 100644
index 000000000000..103c428f2595
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ac97-bus.txt
@@ -0,0 +1,32 @@ 
+Generic AC97 Device Properties
+
+This documents describes the devicetree bindings for an ac97 controller child
+node describing ac97 codecs.
+
+Required properties:
+-compatible : Must be "ac97,vendor_id1,vendor_id2
+	      The ids shall be the 4 characters hexadecimal encoding, such as
+	      given by "%04x" formatting of printf
+-reg	    : Must be the ac97 codec number, between 0 and 3
+
+Example:
+ac97: sound@40500000 {
+	compatible = "marvell,pxa270-ac97";
+	reg = < 0x40500000 0x1000 >;
+	interrupts = <14>;
+	reset-gpios = <&gpio 95 GPIO_ACTIVE_HIGH>;
+	#sound-dai-cells = <1>;
+	pinctrl-names = "default";
+	pinctrl-0 = < &pinctrl_ac97_default >;
+	clocks = <&clks CLK_AC97>, <&clks CLK_AC97CONF>;
+	clock-names = "AC97CLK", "AC97CONFCLK";
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+	audio-codec@0 {
+		reg = <0>;
+		compatible = "ac97,574d,4c13";
+		clocks = <&fixed_wm9713_clock>;
+		clock-names = "ac97_clk";
+	}
+};