Quantcast
Viewing all articles
Browse latest Browse all 486

Compiling dts files

Hello everybody 

 

I expose my problem ...

I create my own a20 card ( based on olimex a20 lime) ( 90% similar )

I have no problem with the hardware ....all work except ....leds  ( you know in /sys/class/leds ....)

But i need 3 leds ... so i write this in dts file ( sun7i-a20-olinuxino-lime.dts)

 

leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_olinuxinolime>;
 
green {
label = "a20-olinuxino-lime:green:usr";
gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
red {
label = "a20-olinuxino-lime:red:usr";
gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
blue {
label = "a20-olinuxino-lime:blue:usr";
gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
 
 
 
and instead of 
 
led_pins_olinuxinolime: led_pins@0 {
allwinner,pins = "PH2"
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 
 
i wrote
 
led_pins_olinuxinolime: led_pins@0 {
allwinner,pins = "PH2", "PH0" , "PD27";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_20_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};

 

 

It work fine with 4.4xx version of kernel and armbian 5

 

But i need some 4.6.1 functionnality's 

 

So i download the armbian 5.14 ( and i build kernel 4.6.1)

 

All hardware is ok and work except leds

 

After a ./ compile  ( completed ) , i changed the the dts file  with my leds parameters ...and nothing ....I have only the "green" led (in /sys/class/leds/ )

 

So i suppose that dts files were compiled the first time and will be never compiled again Or .... if you have a solution it will be cool !

 

I just going to be crazy  Image may be NSFW.
Clik here to view.
:D

 

Thanks a lot 

 

 

Ps: Excuse me for my very bad english .....I'm french  Image may be NSFW.
Clik here to view.
:)


Viewing all articles
Browse latest Browse all 486

Trending Articles