-
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.
yaml --- r: 284151 b: refs/heads/master c: 627b796 h: refs/heads/master i: 284149: a841ed8 284147: 6598329 284143: f756df3 v: v3
- Loading branch information
Takashi Iwai
committed
Jan 12, 2012
1 parent
b900032
commit 4a9a65a
Showing
1,033 changed files
with
20,642 additions
and
16,996 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8c3f5d8a9b7d0d8506bc2a0525e012eae02b1853 | ||
refs/heads/master: 627b79628f56c3deeb17dec1edf6899b49552fa4 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
71 changes: 71 additions & 0 deletions
71
trunk/Documentation/devicetree/bindings/sound/tegra-audio-wm8903.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,71 @@ | ||
NVIDIA Tegra audio complex | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra-audio-wm8903" | ||
- nvidia,model : The user-visible name of this sound complex. | ||
- nvidia,audio-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. Valid names for sources and | ||
sinks are the WM8903's pins, and the jacks on the board: | ||
|
||
WM8903 pins: | ||
|
||
* IN1L | ||
* IN1R | ||
* IN2L | ||
* IN2R | ||
* IN3L | ||
* IN3R | ||
* DMICDAT | ||
* HPOUTL | ||
* HPOUTR | ||
* LINEOUTL | ||
* LINEOUTR | ||
* LOP | ||
* LON | ||
* ROP | ||
* RON | ||
* MICBIAS | ||
|
||
Board connectors: | ||
|
||
* Headphone Jack | ||
* Int Spk | ||
* Mic Jack | ||
|
||
- nvidia,i2s-controller : The phandle of the Tegra I2S1 controller | ||
- nvidia,audio-codec : The phandle of the WM8903 audio codec | ||
|
||
Optional properties: | ||
- nvidia,spkr-en-gpios : The GPIO that enables the speakers | ||
- nvidia,hp-mute-gpios : The GPIO that mutes the headphones | ||
- nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in | ||
- nvidia,int-mic-en-gpios : The GPIO that enables the internal microphone | ||
- nvidia,ext-mic-en-gpios : The GPIO that enables the external microphone | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "nvidia,tegra-audio-wm8903-harmony", | ||
"nvidia,tegra-audio-wm8903" | ||
nvidia,model = "tegra-wm8903-harmony"; | ||
|
||
nvidia,audio-routing = | ||
"Headphone Jack", "HPOUTR", | ||
"Headphone Jack", "HPOUTL", | ||
"Int Spk", "ROP", | ||
"Int Spk", "RON", | ||
"Int Spk", "LOP", | ||
"Int Spk", "LON", | ||
"Mic Jack", "MICBIAS", | ||
"IN1L", "Mic Jack"; | ||
|
||
nvidia,i2s-controller = <&i2s1>; | ||
nvidia,audio-codec = <&wm8903>; | ||
|
||
nvidia,spkr-en-gpios = <&codec 2 0>; | ||
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ | ||
nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ | ||
nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ | ||
}; | ||
|
12 changes: 12 additions & 0 deletions
12
trunk/Documentation/devicetree/bindings/sound/tegra20-das.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,12 @@ | ||
NVIDIA Tegra 20 DAS (Digital Audio Switch) controller | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra20-das" | ||
- reg : Should contain DAS registers location and length | ||
|
||
Example: | ||
|
||
das@70000c00 { | ||
compatible = "nvidia,tegra20-das"; | ||
reg = <0x70000c00 0x80>; | ||
}; |
17 changes: 17 additions & 0 deletions
17
trunk/Documentation/devicetree/bindings/sound/tegra20-i2s.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,17 @@ | ||
NVIDIA Tegra 20 I2S controller | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra20-i2s" | ||
- reg : Should contain I2S registers location and length | ||
- interrupts : Should contain I2S interrupt | ||
- nvidia,dma-request-selector : The Tegra DMA controller's phandle and | ||
request selector for this I2S controller | ||
|
||
Example: | ||
|
||
i2s@70002800 { | ||
compatible = "nvidia,tegra20-i2s"; | ||
reg = <0x70002800 0x200>; | ||
interrupts = < 45 >; | ||
nvidia,dma-request-selector = < &apbdma 2 >; | ||
}; |
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,50 @@ | ||
WM8903 audio CODEC | ||
|
||
This device supports I2C only. | ||
|
||
Required properties: | ||
|
||
- compatible : "wlf,wm8903" | ||
|
||
- reg : the I2C address of the device. | ||
|
||
- gpio-controller : Indicates this device is a GPIO controller. | ||
|
||
- #gpio-cells : Should be two. The first cell is the pin number and the | ||
second cell is used to specify optional parameters (currently unused). | ||
|
||
Optional properties: | ||
|
||
- interrupts : The interrupt line the codec is connected to. | ||
|
||
- micdet-cfg : Default register value for R6 (Mic Bias). If absent, the | ||
default is 0. | ||
|
||
- micdet-delay : The debounce delay for microphone detection in mS. If | ||
absent, the default is 100. | ||
|
||
- gpio-cfg : A list of GPIO configuration register values. The list must | ||
be 5 entries long. If absent, no configuration of these registers is | ||
performed. If any entry has the value 0xffffffff, that GPIO's | ||
configuration will not be modified. | ||
|
||
Example: | ||
|
||
codec: wm8903@1a { | ||
compatible = "wlf,wm8903"; | ||
reg = <0x1a>; | ||
interrupts = < 347 >; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
micdet-cfg = <0>; | ||
micdet-delay = <100>; | ||
gpio-cfg = < | ||
0x0600 /* DMIC_LR, output */ | ||
0x0680 /* DMIC_DAT, input */ | ||
0x0000 /* GPIO, output, low */ | ||
0x0200 /* Interrupt, output */ | ||
0x01a0 /* BCLK, input, active high */ | ||
>; | ||
}; |
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,18 @@ | ||
WM1811/WM8994/WM8958 audio CODEC | ||
|
||
These devices support both I2C and SPI (configured with pin strapping | ||
on the board). | ||
|
||
Required properties: | ||
|
||
- compatible : "wlf,wm1811", "wlf,wm8994", "wlf,wm8958" | ||
|
||
- reg : the I2C address of the device for I2C, the chip select | ||
number for SPI. | ||
|
||
Example: | ||
|
||
codec: wm8994@1a { | ||
compatible = "wlf,wm8994"; | ||
reg = <0x1a>; | ||
}; |
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
The I2C protocol knows about two kinds of device addresses: normal 7 bit | ||
addresses, and an extended set of 10 bit addresses. The sets of addresses | ||
do not intersect: the 7 bit address 0x10 is not the same as the 10 bit | ||
address 0x10 (though a single device could respond to both of them). You | ||
select a 10 bit address by adding an extra byte after the address | ||
byte: | ||
S Addr7 Rd/Wr .... | ||
becomes | ||
S 11110 Addr10 Rd/Wr | ||
S is the start bit, Rd/Wr the read/write bit, and if you count the number | ||
of bits, you will see the there are 8 after the S bit for 7 bit addresses, | ||
and 16 after the S bit for 10 bit addresses. | ||
address 0x10 (though a single device could respond to both of them). | ||
|
||
WARNING! The current 10 bit address support is EXPERIMENTAL. There are | ||
several places in the code that will cause SEVERE PROBLEMS with 10 bit | ||
addresses, even though there is some basic handling and hooks. Also, | ||
almost no supported adapter handles the 10 bit addresses correctly. | ||
I2C messages to and from 10-bit address devices have a different format. | ||
See the I2C specification for the details. | ||
|
||
As soon as a real 10 bit address device is spotted 'in the wild', we | ||
can and will add proper support. Right now, 10 bit address devices | ||
are defined by the I2C protocol, but we have never seen a single device | ||
which supports them. | ||
The current 10 bit address support is minimal. It should work, however | ||
you can expect some problems along the way: | ||
* Not all bus drivers support 10-bit addresses. Some don't because the | ||
hardware doesn't support them (SMBus doesn't require 10-bit address | ||
support for example), some don't because nobody bothered adding the | ||
code (or it's there but not working properly.) Software implementation | ||
(i2c-algo-bit) is known to work. | ||
* Some optional features do not support 10-bit addresses. This is the | ||
case of automatic detection and instantiation of devices by their, | ||
drivers, for example. | ||
* Many user-space packages (for example i2c-tools) lack support for | ||
10-bit addresses. | ||
|
||
Note that 10-bit address devices are still pretty rare, so the limitations | ||
listed above could stay for a long time, maybe even forever if nobody | ||
needs them to be fixed. |
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.