Maxime Ripard | 4ec73d3 | 2015-09-12 15:26:23 +0200 | [diff] [blame] | 1 | * Allwinner A10 Codec |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: must be either "allwinner,sun4i-a10-codec" or |
| 5 | "allwinner,sun7i-a20-codec" |
| 6 | - reg: must contain the registers location and length |
| 7 | - interrupts: must contain the codec interrupt |
| 8 | - dmas: DMA channels for tx and rx dma. See the DMA client binding, |
| 9 | Documentation/devicetree/bindings/dma/dma.txt |
| 10 | - dma-names: should include "tx" and "rx". |
| 11 | - clocks: a list of phandle + clock-specifer pairs, one for each entry |
| 12 | in clock-names. |
| 13 | - clock-names: should contain followings: |
| 14 | - "apb": the parent APB clock for this controller |
| 15 | - "codec": the parent module clock |
Maxime Ripard | 4ec73d3 | 2015-09-12 15:26:23 +0200 | [diff] [blame] | 16 | |
Hans de Goede | 4059262 | 2015-12-11 19:43:57 +0100 | [diff] [blame^] | 17 | Optional properties: |
| 18 | - allwinner,pa-gpios: gpio to enable external amplifier |
| 19 | |
Maxime Ripard | 4ec73d3 | 2015-09-12 15:26:23 +0200 | [diff] [blame] | 20 | Example: |
| 21 | codec: codec@01c22c00 { |
| 22 | #sound-dai-cells = <0>; |
| 23 | compatible = "allwinner,sun7i-a20-codec"; |
| 24 | reg = <0x01c22c00 0x40>; |
| 25 | interrupts = <0 30 4>; |
| 26 | clocks = <&apb0_gates 0>, <&codec_clk>; |
| 27 | clock-names = "apb", "codec"; |
| 28 | dmas = <&dma 0 19>, <&dma 0 19>; |
| 29 | dma-names = "rx", "tx"; |
Maxime Ripard | 4ec73d3 | 2015-09-12 15:26:23 +0200 | [diff] [blame] | 30 | }; |