diff options
33 files changed, 1564 insertions, 433 deletions
diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt index 19c84df5fffa..b30c222f9cd3 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-card.txt | |||
| @@ -8,13 +8,18 @@ Required properties: | |||
| 8 | 8 | ||
| 9 | Optional properties: | 9 | Optional properties: |
| 10 | 10 | ||
| 11 | - simple-audio-card,name : User specified audio sound card name, one string | ||
| 12 | property. | ||
| 11 | - simple-audio-card,format : CPU/CODEC common audio format. | 13 | - simple-audio-card,format : CPU/CODEC common audio format. |
| 12 | "i2s", "right_j", "left_j" , "dsp_a" | 14 | "i2s", "right_j", "left_j" , "dsp_a" |
| 13 | "dsp_b", "ac97", "pdm", "msb", "lsb" | 15 | "dsp_b", "ac97", "pdm", "msb", "lsb" |
| 16 | - simple-audio-card,widgets : Please refer to widgets.txt. | ||
| 14 | - simple-audio-card,routing : A list of the connections between audio components. | 17 | - simple-audio-card,routing : A list of the connections between audio components. |
| 15 | Each entry is a pair of strings, the first being the | 18 | Each entry is a pair of strings, the first being the |
| 16 | connection's sink, the second being the connection's | 19 | connection's sink, the second being the connection's |
| 17 | source. | 20 | source. |
| 21 | - dai-tdm-slot-num : Please refer to tdm-slot.txt. | ||
| 22 | - dai-tdm-slot-width : Please refer to tdm-slot.txt. | ||
| 18 | 23 | ||
| 19 | Required subnodes: | 24 | Required subnodes: |
| 20 | 25 | ||
| @@ -42,11 +47,19 @@ Example: | |||
| 42 | 47 | ||
| 43 | sound { | 48 | sound { |
| 44 | compatible = "simple-audio-card"; | 49 | compatible = "simple-audio-card"; |
| 50 | simple-audio-card,name = "VF610-Tower-Sound-Card"; | ||
| 45 | simple-audio-card,format = "left_j"; | 51 | simple-audio-card,format = "left_j"; |
| 52 | simple-audio-card,widgets = | ||
| 53 | "Microphone", "Microphone Jack", | ||
| 54 | "Headphone", "Headphone Jack", | ||
| 55 | "Speaker", "External Speaker"; | ||
| 46 | simple-audio-card,routing = | 56 | simple-audio-card,routing = |
| 47 | "MIC_IN", "Mic Jack", | 57 | "MIC_IN", "Microphone Jack", |
| 48 | "Headphone Jack", "HP_OUT", | 58 | "Headphone Jack", "HP_OUT", |
| 49 | "Ext Spk", "LINE_OUT"; | 59 | "External Speaker", "LINE_OUT"; |
| 60 | |||
| 61 | dai-tdm-slot-num = <2>; | ||
| 62 | dai-tdm-slot-width = <8>; | ||
| 50 | 63 | ||
| 51 | simple-audio-card,cpu { | 64 | simple-audio-card,cpu { |
| 52 | sound-dai = <&sh_fsi2 0>; | 65 | sound-dai = <&sh_fsi2 0>; |
diff --git a/Documentation/devicetree/bindings/sound/sirf-audio-codec.txt b/Documentation/devicetree/bindings/sound/sirf-audio-codec.txt new file mode 100644 index 000000000000..062f5ec36f9b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sirf-audio-codec.txt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | SiRF internal audio CODEC | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | |||
| 5 | - compatible : "sirf,atlas6-audio-codec" or "sirf,prima2-audio-codec" | ||
| 6 | |||
| 7 | - reg : the register address of the device. | ||
| 8 | |||
| 9 | - clocks: the clock of SiRF internal audio codec | ||
| 10 | |||
| 11 | Example: | ||
| 12 | |||
| 13 | audiocodec: audiocodec@b0040000 { | ||
| 14 | compatible = "sirf,atlas6-audio-codec"; | ||
| 15 | reg = <0xb0040000 0x10000>; | ||
| 16 | clocks = <&clks 27>; | ||
| 17 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/sirf-audio-port.txt b/Documentation/devicetree/bindings/sound/sirf-audio-port.txt new file mode 100644 index 000000000000..1f66de3c8f00 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sirf-audio-port.txt | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | * SiRF SoC audio port | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: "sirf,audio-port" | ||
| 5 | - reg: Base address and size entries: | ||
| 6 | - dmas: List of DMA controller phandle and DMA request line ordered pairs. | ||
| 7 | - dma-names: Identifier string for each DMA request line in the dmas property. | ||
| 8 | These strings correspond 1:1 with the ordered pairs in dmas. | ||
| 9 | |||
| 10 | One of the DMA channels will be responsible for transmission (should be | ||
| 11 | named "tx") and one for reception (should be named "rx"). | ||
| 12 | |||
| 13 | Example: | ||
| 14 | |||
| 15 | audioport: audioport@b0040000 { | ||
| 16 | compatible = "sirf,audio-port"; | ||
| 17 | reg = <0xb0040000 0x10000>; | ||
| 18 | dmas = <&dmac1 3>, <&dmac1 8>; | ||
| 19 | dma-names = "rx", "tx"; | ||
| 20 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/sirf-audio.txt b/Documentation/devicetree/bindings/sound/sirf-audio.txt new file mode 100644 index 000000000000..c88882ca3704 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sirf-audio.txt | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | * SiRF atlas6 and prima2 internal audio codec and port based audio setups | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: "sirf,sirf-audio-card" | ||
| 5 | - sirf,audio-platform: phandle for the platform node | ||
| 6 | - sirf,audio-codec: phandle for the SiRF internal codec node | ||
| 7 | |||
| 8 | Optional properties: | ||
| 9 | - hp-pa-gpios: Need to be present if the board need control external | ||
| 10 | headphone amplifier. | ||
| 11 | - spk-pa-gpios: Need to be present if the board need control external | ||
| 12 | speaker amplifier. | ||
| 13 | - hp-switch-gpios: Need to be present if the board capable to detect jack | ||
| 14 | insertion, removal. | ||
| 15 | |||
| 16 | Available audio endpoints for the audio-routing table: | ||
| 17 | |||
| 18 | Board connectors: | ||
| 19 | * Headset Stereophone | ||
| 20 | * Ext Spk | ||
| 21 | * Line In | ||
| 22 | * Mic | ||
| 23 | |||
| 24 | SiRF internal audio codec pins: | ||
| 25 | * HPOUTL | ||
| 26 | * HPOUTR | ||
| 27 | * SPKOUT | ||
| 28 | * Ext Mic | ||
| 29 | * Mic Bias | ||
| 30 | |||
| 31 | Example: | ||
| 32 | |||
| 33 | sound { | ||
| 34 | compatible = "sirf,sirf-audio-card"; | ||
| 35 | sirf,audio-codec = <&audiocodec>; | ||
| 36 | sirf,audio-platform = <&audioport>; | ||
| 37 | hp-pa-gpios = <&gpio 44 0>; | ||
| 38 | spk-pa-gpios = <&gpio 46 0>; | ||
