Both sides previous revisionPrevious revisionNext revision | Previous revision |
resources:tools-software:linux-drivers:leds:adp1650 [08 Nov 2011 17:40] – [Supported Devices] Michael Hennerich | resources:tools-software:linux-drivers:leds:adp1650 [11 Feb 2016 21:12] (current) – [Status] Lars-Peter Clausen |
---|
===== Description ===== | ===== Description ===== |
| |
{{scrape>adi>ADP1650#product_description}} | {{scrape>adi>ADP1650#description}} |
| |
* [[adi>ADP1650|Product Page]] | * [[adi>ADP1650|Product Page]] |
* {{scrape>adi>ADP1650#datasheet_pdf_dspart}} | * {{scrape>adi>ADP1650#datasheet-details}} |
| |
====== Source Code ====== | ====== Source Code ====== |
===== Status ===== | ===== Status ===== |
| |
^ Source ^ Mainlined? ^ | ^ Source ^ Mainlined? ^ |
| [[bfgit>linux-kernel?drivers/leds/leds-adp1650.c|git]] | [[git.linux.org>drivers/leds/leds-adp1650.c|In Progress]] | | | [[bfgit>linux-kernel?drivers/leds/leds-adp1650.c|git]] | [[git.linux.org>drivers/leds/leds-adp1650.c|In Progress]] | |
| |
===== Files ===== | ===== Files ===== |
{{page>software/linux/docs/platform_and_bus_model#Platform Data&noheader&firstseconly&noeditbtn}} | {{page>software/linux/docs/platform_and_bus_model#Platform Data&noheader&firstseconly&noeditbtn}} |
| |
<note info> | <WRAP info> |
**platform_data: Platform data specific to the ADP1650 device.**\\ | **platform_data: Platform data specific to the ADP1650 device.**\\ |
Includes feature selections and default initialization. | Includes feature selections and default initialization. |
| |
Please see [[http://blackfin.uclinux.org/git/?p=linux-kernel;a=blob_plain;f=include/linux/i2c/adp1650.h;hb=HEAD|include/linux/i2c/adp1650.h]] for details. | Please see [[http://blackfin.uclinux.org/git/?p=linux-kernel;a=blob_plain;f=include/linux/i2c/adp1650.h;hb=HEAD|include/linux/i2c/adp1650.h]] for details. |
</note> | </WRAP> |
| |
<code c> | <code c> |
"make qconfig") | "make qconfig") |
| |
<note tip> | <WRAP tip> |
The ADP1650 LED driver depends on I2C. | The ADP1650 LED driver depends on I2C. |
</note> | </WRAP> |
| |
<xterm> | <xterm> |
=== Enable TORCH/Assist Light (Intensity 100mA) === | === Enable TORCH/Assist Light (Intensity 100mA) === |
| |
<note> | <WRAP round help> |
A subsequent assert of **STROBE** will trigger the FLASH | A subsequent assert of **STROBE** will trigger the FLASH |
</note> | </WRAP> |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 4 > brightness** | root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 4 > brightness** |
</xterm></box> | </xterm></WRAP> |
| |
=== Prepare TORCH/Assist Light for an GPIO1 enable trigger (Intensity 100mA) === | === Prepare TORCH/Assist Light for an GPIO1 enable trigger (Intensity 100mA) === |
| |
<note> | <WRAP round help> |
A subsequent assert of **STROBE** will trigger the FLASH | A subsequent assert of **STROBE** will trigger the FLASH |
</note> | </WRAP> |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 12 > brightness** | root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 12 > brightness** |
</xterm></box> | </xterm></WRAP> |
| |
=== Initiate FLASH (Intensity set by I_FL) === | === Initiate FLASH (Intensity set by I_FL) === |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 254 > brightness** | root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 254 > brightness** |
</xterm></box> | </xterm></WRAP> |
| |
=== Prepare FLASH for an STROBE triggered enable (Intensity set by I_FL) === | === Prepare FLASH for an STROBE triggered enable (Intensity set by I_FL) === |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 255 > brightness** | root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 255 > brightness** |
</xterm></box> | </xterm></WRAP> |
| |
=== Disable all LED activity === | === Disable all LED activity === |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 0 > brightness** | root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0030/leds/adp1650> **echo 0 > brightness** |
</xterm></box> | </xterm></WRAP> |
| |
====== More Information ====== | ====== More Information ====== |
| |
| |