diff options
author | Simran Rai <ssimran@broadcom.com> | 2016-05-17 20:01:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-31 12:50:42 -0400 |
commit | 36e5ecc2986f4712d8fdfc05ed1e5d39dda7096d (patch) | |
tree | 7a89507a909fb77c5496e49f0faf90a768a81397 | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
ASoC: cygnus: Add DT bindings for Broadcom Cygnus audio
Add bindings for audio driver in Broadcom Cygnus.
Signed-off-by: Lori Hikichi <lhikichi@broadcom.com>
Signed-off-by: Simran Rai <ssimran@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/sound/brcm,cygnus-audio.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/brcm,cygnus-audio.txt b/Documentation/devicetree/bindings/sound/brcm,cygnus-audio.txt new file mode 100644 index 000000000000..b139e66d2a11 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/brcm,cygnus-audio.txt | |||
@@ -0,0 +1,67 @@ | |||
1 | BROADCOM Cygnus Audio I2S/TDM/SPDIF controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "brcm,cygnus-audio" | ||
5 | - #address-cells: 32bit valued, 1 cell. | ||
6 | - #size-cells: 32bit valued, 0 cell. | ||
7 | - reg : Should contain audio registers location and length | ||
8 | - reg-names: names of the registers listed in "reg" property | ||
9 | Valid names are "aud" and "i2s_in". "aud" contains a | ||
10 | set of DMA, I2S_OUT and SPDIF registers. "i2s_in" contains | ||
11 | a set of I2S_IN registers. | ||
12 | - clocks: PLL and leaf clocks used by audio ports | ||
13 | - assigned-clocks: PLL and leaf clocks | ||
14 | - assigned-clock-parents: parent clocks of the assigned clocks | ||
15 | (usually the PLL) | ||
16 | - assigned-clock-rates: List of clock frequencies of the | ||
17 | assigned clocks | ||
18 | - clock-names: names of 3 leaf clocks used by audio ports | ||
19 | Valid names are "ch0_audio", "ch1_audio", "ch2_audio" | ||
20 | - interrupts: audio DMA interrupt number | ||
21 | |||
22 | SSP Subnode properties: | ||
23 | - reg: The index of ssp port interface to use | ||
24 | Valid value are 0, 1, 2, or 3 (for spdif) | ||
25 | |||
26 | Example: | ||
27 | cygnus_audio: audio@180ae000 { | ||
28 | compatible = "brcm,cygnus-audio"; | ||
29 | #address-cells = <1>; | ||
30 | #size-cells = <0>; | ||
31 | reg = <0x180ae000 0xafd>, <0x180aec00 0x1f8>; | ||
32 | reg-names = "aud", "i2s_in"; | ||
33 | clocks = <&audiopll BCM_CYGNUS_AUDIOPLL_CH0>, | ||
34 | <&audiopll BCM_CYGNUS_AUDIOPLL_CH1>, | ||
35 | <&audiopll BCM_CYGNUS_AUDIOPLL_CH2>; | ||
36 | assigned-clocks = <&audiopll BCM_CYGNUS_AUDIOPLL>, | ||
37 | <&audiopll BCM_CYGNUS_AUDIOPLL_CH0>, | ||
38 | <&audiopll BCM_CYGNUS_AUDIOPLL_CH1>, | ||
39 | <&audiopll BCM_CYGNUS_AUDIOPLL_CH2>; | ||
40 | assigned-clock-parents = <&audiopll BCM_CYGNUS_AUDIOPLL>; | ||
41 | assigned-clock-rates = <1769470191>, | ||
42 | <0>, | ||
43 | <0>, | ||
44 | <0>; | ||
45 | clock-names = "ch0_audio", "ch1_audio", "ch2_audio"; | ||
46 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; | ||
47 | |||
48 | ssp0: ssp_port@0 { | ||
49 | reg = <0>; | ||
50 | status = "okay"; | ||
51 | }; | ||
52 | |||
53 | ssp1: ssp_port@1 { | ||
54 | reg = <1>; | ||
55 | status = "disabled"; | ||
56 | }; | ||
57 | |||
58 | ssp2: ssp_port@2 { | ||
59 | reg = <2>; | ||
60 | status = "disabled"; | ||
61 | }; | ||
62 | |||
63 | spdif: spdif_port@3 { | ||
64 | reg = <3>; | ||
65 | status = "disabled"; | ||
66 | }; | ||
67 | }; | ||