-
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.
mfd: Add device tree bindings for Arizona class devices
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit d781009ca6bb5b9711c74700242855e0a70ee7a3) Change-Id: Idf492bac074d3e74d7734c2348ed8c423a3fc1e1 Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> (cherry picked from commit 25012d08ab6902cf6b053aa331dfd4c639abbbef)
- Loading branch information
Showing
5 changed files
with
159 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Wolfson Arizona class audio SoCs | ||
|
||
These devices are audio SoCs with extensive digital capabilites and a range | ||
of analogue I/O. | ||
|
||
Required properties: | ||
|
||
- compatible : one of the following chip-specific strings: | ||
"wlf,wm5102" | ||
"wlf,wm5110" | ||
- reg : I2C slave address when connected using I2C, chip select number when | ||
using SPI. | ||
|
||
- interrupts : The interrupt line the /IRQ signal for the device is | ||
connected to. | ||
- interrupt-controller : Arizona class devices contain interrupt controllers | ||
and may provide interrupt services to other devices. | ||
- interrupt-parent : The parent interrupt controller. | ||
- #interrupt-cells: the number of cells to describe an IRQ, this should be 2. | ||
The first cell is the IRQ number. | ||
The second cell is the flags, encoded as the trigger masks from | ||
Documentation/devicetree/bindings/interrupts.txt | ||
|
||
- gpio-controller : Indicates this device is a GPIO controller. | ||
- #gpio-cells : Must be 2. The first cell is the pin number and the | ||
second cell is used to specify optional parameters (currently unused). | ||
|
||
- AVDD1-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply, CPVDD-supply, | ||
SPKVDDL-supply, SPKVDDR-supply : power supplies for the device, as covered | ||
in Documentation/devicetree/bindings/regulator/regulator.txt | ||
|
||
Optional properties: | ||
|
||
- wlf,reset : GPIO specifier for the GPIO controlling /RESET | ||
- wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA | ||
|
||
- wlf,gpio-defaults : A list of GPIO configuration register values. If | ||
absent, no configuration of these registers is performed. If any | ||
entry has a value that is out of range for a 16 bit register then | ||
the chip default will be used. If present exactly five values must | ||
be specified. | ||
|
||
Example: | ||
|
||
codec: wm5102@1a { | ||
compatible = "wlf,wm5102"; | ||
reg = <0x1a>; | ||
interrupts = <347>; | ||
#interrupt-cells = <2>; | ||
interrupt-parent = <&gic>; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
wlf,gpio-defaults = < | ||
0x00000000, /* AIF1TXLRCLK */ | ||
0xffffffff, | ||
0xffffffff, | ||
0xffffffff, | ||
0xffffffff, | ||
>; | ||
}; |
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