forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asoc-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/g…
…it/broonie/sound into for-linus ASoC: Updates for v4.11 Another release that's mainly focused on drivers rather than core changes, highlights include: - A huge batch of updates to the Intel drivers, mainly around DisplayPort and HDMI with some additional board support too. - Channel mapping support for HDMI. - Support for AllWinner A31 and A33, Everest Semiconductor ES8328, Nuvoton NAU8540.
- Loading branch information
Showing
147 changed files
with
5,466 additions
and
1,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NAU85L40 audio CODEC | ||
|
||
This device supports I2C only. | ||
|
||
Required properties: | ||
|
||
- compatible : "nuvoton,nau8540" | ||
|
||
- reg : the I2C address of the device. | ||
|
||
Example: | ||
|
||
codec: nau8540@1c { | ||
compatible = "nuvoton,nau8540"; | ||
reg = <0x1c>; | ||
}; |
36 changes: 36 additions & 0 deletions
36
Documentation/devicetree/bindings/sound/rockchip,rk3288-hdmi-analog.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
ROCKCHIP RK3288 with HDMI and analog audio | ||
|
||
Required properties: | ||
- compatible: "rockchip,rk3288-hdmi-analog" | ||
- rockchip,model: The user-visible name of this sound complex | ||
- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's | ||
connected to the CODEC | ||
- rockchip,audio-codec: The phandle of the analog audio codec. | ||
- rockchip,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. For this driver the first string should always be | ||
"Analog". | ||
|
||
Optionnal properties: | ||
- rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the | ||
headphone (when the analog output is an headphone). | ||
- rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone | ||
(when the analog output is an headphone). | ||
- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "rockchip,rockchip-audio-es8388"; | ||
rockchip,model = "Analog audio output"; | ||
rockchip,i2s-controller = <&i2s>; | ||
rockchip,audio-codec = <&es8388>; | ||
rockchip,routing = "Analog", "LOUT2", | ||
"Analog", "ROUT2"; | ||
rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>; | ||
rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&headphone>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
Documentation/devicetree/bindings/sound/sun8i-a33-codec.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Allwinner SUN8I audio codec | ||
------------------------------------ | ||
|
||
On Sun8i-A33 SoCs, the audio is separated in different parts: | ||
- A DAI driver. It uses the "sun4i-i2s" driver which is | ||
documented here: | ||
Documentation/devicetree/bindings/sound/sun4i-i2s.txt | ||
- An analog part of the codec which is handled as PRCM registers. | ||
See Documentation/devicetree/bindings/sound/sun8i-codec-analog.txt | ||
- An digital part of the codec which is documented in this current | ||
binding documentation. | ||
- And finally, an audio card which links all the above components. | ||
The simple-audio card will be used. | ||
See Documentation/devicetree/bindings/sound/simple-card.txt | ||
|
||
This bindings documentation exposes Sun8i codec (digital part). | ||
|
||
Required properties: | ||
- compatible: must be "allwinner,sun8i-a33-codec" | ||
- reg: must contain the registers location and length | ||
- interrupts: must contain the codec interrupt | ||
- clocks: a list of phandle + clock-specifer pairs, one for each entry | ||
in clock-names. | ||
- clock-names: should contain followings: | ||
- "bus": the parent APB clock for this controller | ||
- "mod": the parent module clock | ||
|
||
Here is an example to add a sound card and the codec binding on sun8i SoCs that | ||
are similar to A33 using simple-card: | ||
|
||
sound { | ||
compatible = "simple-audio-card"; | ||
simple-audio-card,name = "sun8i-a33-audio"; | ||
simple-audio-card,format = "i2s"; | ||
simple-audio-card,frame-master = <&link_codec>; | ||
simple-audio-card,bitclock-master = <&link_codec>; | ||
simple-audio-card,mclk-fs = <512>; | ||
simple-audio-card,aux-devs = <&codec_analog>; | ||
simple-audio-card,routing = | ||
"Left DAC", "Digital Left DAC", | ||
"Right DAC", "Digital Right DAC"; | ||
|
||
simple-audio-card,cpu { | ||
sound-dai = <&dai>; | ||
}; | ||
|
||
link_codec: simple-audio-card,codec { | ||
sound-dai = <&codec>; | ||
}; | ||
|
||
soc@01c00000 { | ||
[...] | ||
|
||
audio-codec@1c22e00 { | ||
#sound-dai-cells = <0>; | ||
compatible = "allwinner,sun8i-a33-codec"; | ||
reg = <0x01c22e00 0x400>; | ||
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; | ||
clock-names = "bus", "mod"; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.