LEDs
#13
I am not a Linux expert, but I have some further information that might help with the LEDs.

CHGLED: According to the data sheet for the AXP803, REG 32H controls the charge LED output. Page 61 and 62 lists the function of each bit. The default value is 43H.

The bits that are relevant to the charge LED are bits 5 and 4:
CHGLED pin control
00: Hi-Z, 01: 25% 0.5Hz toggle, 10: 25% 2Hz toggle, 11: drive low, default: 00

The default setting disables the CHGLED output, so to enable it, bits 5 and 4 need to be changed. So depending on preference, there are two blink options, and full on.
The AXP803 is connected to USB0 according to the schematic (page 6).
I do not know how to write to it.

Now, the activity LED. While I was researching device trees, I came across code for the act LED on the Raspberry Pi 2 in the book ‘Exploring Raspberry Pi’, by Derek Molloy.

Code:
&leds {
         act_led: act {
                 label =  “led0”;
                 linux,default-trigger = “mmc0”;
                 gpios = <&gpio 47 0>;
         };
         pwr_led: pwr {
                 label = “led1”;
                 linux,default-trigger = “input”;
                 gpios = <&gpio 35 0>;
         };
};


Messages In This Thread
LEDs - by modsbyus - 06-18-2016, 08:03 PM
RE: LEDs - by MarkHaysHarris777 - 06-18-2016, 09:51 PM
RE: LEDs - by pfeerick - 06-20-2016, 05:17 AM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 08:00 AM
RE: LEDs - by martinayotte - 06-20-2016, 12:17 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 12:32 PM
RE: LEDs - by martinayotte - 06-20-2016, 01:41 PM
RE: LEDs - by xalius - 06-20-2016, 02:02 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 09:15 PM
RE: LEDs - by longsleep - 06-20-2016, 02:11 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 10:19 PM
RE: LEDs - by MarkHaysHarris777 - 06-21-2016, 01:14 AM
RE: LEDs - by stephen fleming - 04-12-2017, 06:38 PM
RE: LEDs - by xalius - 04-13-2017, 05:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)