Anyone have clue on how to turn off the lights or change them?

BliteKnight

New member
Like the title says, I know the Android image wrote to /sys/devices/platform/fd6513_dev/led_flash to modify the colors; just don't know what the linux equivalent would be. Thanks
 

BliteKnight

New member
first at all, you need to enable it on DTB.
DTS generate DTB that enable ports that you can set and reset
For example, my device have a 7seg clock display

this is how it works:
Thanks for the reply I have tried this in the dts
Code:
awleds {                                                                                                                                                                                                                                               
    phandle = <0x1bd>;                                                                                                                                                                                                                                   
    leds_dat = <0x87 0x7 0x6 0x1 0xffffffff 0xffffffff 0x0>;                                                                                                                                                                                             
    status = "okay";                                                                                                                                                                                                                                     
    device_type = "awleds";                                                                                                                                                                                                                              
    leds_clk = <0x87 0x7 0x5 0x1 0xffffffff 0xffffffff 0x0>;                                                                                                                                                                                             
    compatible = "allwinner,fd6513_dev";                                                                                                                                                                                                                 
  };

Another one I found was this

Code:
    fd655_dev {
        compatible = "rockchip,fd655_dev";
        status = "okay";
        clk_pin = <0x10b 0x01 0x00>;
        dat_pin = <0x10b 0x00 0x00>;
    };

    fd6513_dev {
        compatible = "amlogic,FD6513";
        status = "okay";
        clk_pin = <0x10b 0x0a 0x00>;
        dat_pin = <0x10b 0x09 0x00>;
    };

The issue is I do not know what the values should be - just found that online when looking for anything related to fd6513_dev.
Do you know if there is a way to look at the Android code to figure out what the correct DTS values would be?
Thanks.
 
Last edited:

hotnikq

New member
You can look on your board if they use fd6513 or fd655 this is a chip id, related to the Integrated circuit from Led contol
 

BliteKnight

New member
You can look on your board if they use fd6513 or fd655 this is a chip id, related to the Integrated circuit from Led contol
it is using the FD6513 chip, and I added this to the dts before compiling the dtb
Code:
fd6513_dev {
        compatible = "amlogic,FD6513";
        status = "okay";
        clk_pin = <0x10b 0x0a 0x00>;
        dat_pin = <0x10b 0x09 0x00>;
    };

The thing I'm confused about it after adding that would I need to install additional drivers to get it to work as I don't see this folder fd6153_dev or fd6153 anywhere on my system like it was in Android (/sys/devices/platform/fd6513_dev/)

I feel like I am missing something, thanks for the help.
 
Top