-
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: twl-core: Add initial DT support for twl4030/twl6030
Add initial device-tree support for twl familly chips. The current version is missing the regulator entries due to the lack of DT regulator bindings for the moment. Only the simple sub-modules that do not depend on platform_data information can be initialized properly. Add irqdomain support. Add documentation for the Texas Instruments TWL Integrated Chip. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Balaji T K <balajitk@ti.com> Cc: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Acked-by: Rob Herring <rob.herring@calxeda.com> [grant.likely@secretlab.ca: Fix IRQ_DOMAIN dependency in kconfig] Cc: Grant Likely <grant.likely@secretlab.ca>
- Loading branch information
Benoit Cousson
authored and
Samuel Ortiz
committed
Jan 8, 2012
1 parent
5391b5c
commit aeb5032
Showing
3 changed files
with
98 additions
and
2 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,47 @@ | ||
Texas Instruments TWL family | ||
|
||
The TWLs are Integrated Power Management Chips. | ||
Some version might contain much more analog function like | ||
USB transceiver or Audio amplifier. | ||
These chips are connected to an i2c bus. | ||
|
||
|
||
Required properties: | ||
- compatible : Must be "ti,twl4030"; | ||
For Integrated power-management/audio CODEC device used in OMAP3 | ||
based boards | ||
- compatible : Must be "ti,twl6030"; | ||
For Integrated power-management used in OMAP4 based boards | ||
- interrupts : This i2c device has an IRQ line connected to the main SoC | ||
- interrupt-controller : Since the twl support several interrupts internally, | ||
it is considered as an interrupt controller cascaded to the SoC one. | ||
- #interrupt-cells = <1>; | ||
- interrupt-parent : The parent interrupt controller. | ||
|
||
Optional node: | ||
- Child nodes contain in the twl. The twl family is made of several variants | ||
that support a different number of features. | ||
The children nodes will thus depend of the capability of the variant. | ||
|
||
|
||
Example: | ||
/* | ||
* Integrated Power Management Chip | ||
* http://www.ti.com/lit/ds/symlink/twl6030.pdf | ||
*/ | ||
twl@48 { | ||
compatible = "ti,twl6030"; | ||
reg = <0x48>; | ||
interrupts = <39>; /* IRQ_SYS_1N cascaded to gic */ | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
interrupt-parent = <&gic>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
twl_rtc { | ||
compatible = "ti,twl_rtc"; | ||
interrupts = <11>; | ||
reg = <0>; | ||
}; | ||
}; |
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