Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1223422 > unrolled thread
| Started by | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| First post | 2015-09-12 18:00 +0200 |
| Last post | 2015-09-16 19:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] Documentation: bindings: Add the Allwinner A10 codec bindings Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-09-12 18:00 +0200
Re: [PATCH 1/2] Documentation: bindings: Add the Allwinner A10 codec bindings Mark Brown <broonie@kernel.org> - 2015-09-16 19:40 +0200
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2015-09-12 18:00 +0200 |
| Subject | [PATCH 1/2] Documentation: bindings: Add the Allwinner A10 codec bindings |
| Message-ID | <q7Vnz-4Zv-5@gated-at.bofh.it> |
The Allwinner SoCs have an in-SoC audio controller taking the role of a DAI
and a codec.
Add the binding documentation for that controller on the A10.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
.../devicetree/bindings/sound/sun4i-codec.txt | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/sun4i-codec.txt
diff --git a/Documentation/devicetree/bindings/sound/sun4i-codec.txt b/Documentation/devicetree/bindings/sound/sun4i-codec.txt
new file mode 100644
index 000000000000..680144b74ae9
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/sun4i-codec.txt
@@ -0,0 +1,33 @@
+* Allwinner A10 Codec
+
+Required properties:
+- compatible: must be either "allwinner,sun4i-a10-codec" or
+ "allwinner,sun7i-a20-codec"
+- reg: must contain the registers location and length
+- interrupts: must contain the codec interrupt
+- dmas: DMA channels for tx and rx dma. See the DMA client binding,
+ Documentation/devicetree/bindings/dma/dma.txt
+- dma-names: should include "tx" and "rx".
+- clocks: a list of phandle + clock-specifer pairs, one for each entry
+ in clock-names.
+- clock-names: should contain followings:
+ - "apb": the parent APB clock for this controller
+ - "codec": the parent module clock
+- routing : A list of the connections between audio components. Each
+ entry is a pair of strings, the first being the connection's sink,
+ the second being the connection's source.
+
+
+Example:
+codec: codec@01c22c00 {
+ #sound-dai-cells = <0>;
+ compatible = "allwinner,sun7i-a20-codec";
+ reg = <0x01c22c00 0x40>;
+ interrupts = <0 30 4>;
+ clocks = <&apb0_gates 0>, <&codec_clk>;
+ clock-names = "apb", "codec";
+ dmas = <&dma 0 19>, <&dma 0 19>;
+ dma-names = "rx", "tx";
+ routing = "Headphone Jack", "HP Right",
+ "Headphone Jack", "HP Left";
+};
--
2.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-09-16 19:40 +0200 |
| Subject | Re: [PATCH 1/2] Documentation: bindings: Add the Allwinner A10 codec bindings |
| Message-ID | <q9oQx-2OP-1@gated-at.bofh.it> |
| In reply to | #1223422 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Sep 12, 2015 at 03:26:23PM +0200, Maxime Ripard wrote: > The Allwinner SoCs have an in-SoC audio controller taking the role of a DAI > and a codec. Please use subject lines matching the style for the relevant subsystem, this makes it much easier to spot relevant patches.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web