This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
software:driver:linux:adp5520 [27 Sep 2010 17:00] – make files links to kernel.org hennerich | resources:tools-software:linux-drivers:multifunction-device:adp5520 [03 Jan 2013 20:42] – external edit | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Status | + | ===== Supported Devices |
- | + | ||
- | ^ Source | + | |
- | | [[bf> | + | |
- | + | ||
- | ===== Files ===== | + | |
- | + | ||
- | ^ Function ^ File ^ | + | |
- | | MFD-CORE | [[http:// | + | |
- | | include | [[http:// | + | |
- | | BACKLIGHT | [[http:// | + | |
- | | LED | [[http:// | + | |
- | | GPIO | [[http:// | + | |
- | | KEYPAD | [[http:// | + | |
+ | * [[adi> | ||
+ | * [[adi> | ||
- | ====== Driver Overview ====== | + | ===== Evaluation Boards |
- | More information on the:\\ | + | |
- | | + | ===== Description ===== |
- | * ADP5501 can be found here [[: | + | |
- | The ADP5520/01 utilizes several Linux device-driver subsystems and provides | + | The ADP5520/ |
various software interfaces. It is therefore implemented as a multifunction device (MFD). | various software interfaces. It is therefore implemented as a multifunction device (MFD). | ||
In this particular case the ADP5520 backlight driver and I/O expander, concurrently | In this particular case the ADP5520 backlight driver and I/O expander, concurrently | ||
leverages the Linux backlight, LED, GPIO, and input subsystems for its keypad functionality. | leverages the Linux backlight, LED, GPIO, and input subsystems for its keypad functionality. | ||
- | < | + | < |
digraph { | digraph { | ||
+ | | ||
| | ||
| | ||
Line 90: | Line 79: | ||
* Configurable number of dedicated GPIOs, up to 8 GPIOs | * Configurable number of dedicated GPIOs, up to 8 GPIOs | ||
* Configurable Pull-Ups | * Configurable Pull-Ups | ||
+ | |||
+ | |||
+ | |||
+ | ====== Source Code ====== | ||
+ | |||
+ | ===== Status ===== | ||
+ | |||
+ | ^ Source | ||
+ | | [[git.linux.org> | ||
+ | |||
+ | |||
+ | ===== Files ===== | ||
+ | |||
+ | ^ Function ^ File ^ | ||
+ | | MFD-CORE | ||
+ | | include | ||
+ | | BACKLIGHT | [[git.linux.org> | ||
+ | | LED | [[git.linux.org> | ||
+ | | GPIO | [[git.linux.org> | ||
+ | | KEYPAD | ||
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
- | <note important> | + | {{page> |
+ | |||
+ | <WRAP important> | ||
Since Keypad, GPIO and optional LEDs (2, 3) are multiplexed, | Since Keypad, GPIO and optional LEDs (2, 3) are multiplexed, | ||
- | </note> | + | </WRAP> |
^ ADP5520 PIN ^ R3 ^ R2 ^ R1 ^ R0 ^ C0 ^ C1 ^ C2 ^ C3 ^ | ^ ADP5520 PIN ^ R3 ^ R2 ^ R1 ^ R0 ^ C0 ^ C1 ^ C2 ^ C3 ^ | ||
Line 102: | Line 113: | ||
| **LED** | LED3 | | | | | | | LED2 | | | **LED** | LED3 | | | | | | | LED2 | | ||
- | <note tip> | + | <WRAP tip> |
- | Please refer to include/ | + | Please refer to [[git.linux.org> |
- | </note> | + | </WRAP> |
- | + | ||
- | <source trunk/ | + | |
==== Backlight ===== | ==== Backlight ===== | ||
Line 129: | Line 138: | ||
==== ADP5520/ | ==== ADP5520/ | ||
+ | |||
+ | {{page> | ||
<source trunk/ | <source trunk/ | ||
<source trunk/ | <source trunk/ | ||
- | <note tip> | + | <WRAP tip> |
**ADP5520 IRQ Usage:**\\ | **ADP5520 IRQ Usage:**\\ | ||
If you aren’t planning to utilize the Keypad interface, you don’t need to specify an IRQ in bfin_i2c_board_info. | If you aren’t planning to utilize the Keypad interface, you don’t need to specify an IRQ in bfin_i2c_board_info. | ||
- | </note> | + | </WRAP> |
====== Adding Linux driver support ====== | ====== Adding Linux driver support ====== | ||
Line 199: | Line 210: | ||
====== Hardware configuration ====== | ====== Hardware configuration ====== | ||
+ | |||
+ | {{: | ||
There is no dedicated Blackfin STAMP evaluation board for the ADP5520. | There is no dedicated Blackfin STAMP evaluation board for the ADP5520. | ||
During test and driver development we used the ADP5520 Demo Mother/ | During test and driver development we used the ADP5520 Demo Mother/ | ||
+ | Connect the ADP5520 Demo Mother to an USB port. | ||
It can be easily wired to the Blackfin STAMP TWI/I2C header. | It can be easily wired to the Blackfin STAMP TWI/I2C header. | ||
Line 207: | Line 221: | ||
^ BF537-STAMP (P10) TWI/I2C header | ^ BF537-STAMP (P10) TWI/I2C header | ||
^ PIN ^ Function ^ PIN/ | ^ PIN ^ Function ^ PIN/ | ||
- | | 2 | (+3.3V) | VCC | | ||
| 5 | SCL | SCL | | | 5 | SCL | SCL | | ||
| 6 | SDA| SDA | | | 6 | SDA| SDA | | ||
Line 243: | Line 256: | ||
root:/ | root:/ | ||
</ | </ | ||
+ | |||
+ | __**For more information on Backlight handling in Linux read:**__ [[git.linux.org> | ||
==== LED ===== | ==== LED ===== | ||
Line 270: | Line 285: | ||
root:/> | root:/> | ||
</ | </ | ||
+ | |||
+ | __**For more information on LEDs handling in Linux read:**__ [[git.linux.org> | ||
==== GPIO ===== | ==== GPIO ===== | ||
Line 290: | Line 307: | ||
[*] Input event device test | [*] Input event device test | ||
</ | </ | ||
+ | |||
+ | __**For more information on GPIO handling in Linux read:**__ [[git.linux.org> | ||
+ | |||
==== Keypad ===== | ==== Keypad ===== | ||
Line 338: | Line 358: | ||
root:/> | root:/> | ||
</ | </ | ||
+ | |||
+ | __**For more information on Input handling in Linux read:**__ [[git.linux.org> | ||
+ | |||
+ | ====== More Information ====== | ||
+ | |||
+ | {{page> | ||
+ |