ARM: at91/dt: at91-kizbox: leds related changes
This: * moves to pwm-leds using tcb-pwm driver and * renames leds to pwm:<color>:<function>. Signed-off-by: Gaël PORTAY <g.portay@overkiz.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
This commit is contained in:
parent
d1b063aba8
commit
4a225bed2b
1 changed files with 34 additions and 19 deletions
|
@ -8,6 +8,7 @@
|
||||||
*/
|
*/
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "at91sam9g20.dtsi"
|
#include "at91sam9g20.dtsi"
|
||||||
|
#include <dt-bindings/pwm/pwm.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Overkiz Kizbox";
|
model = "Overkiz Kizbox";
|
||||||
|
@ -112,32 +113,46 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
pwm_leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
led1g {
|
network_green {
|
||||||
label = "led1:green";
|
label = "pwm:green:network";
|
||||||
gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
|
pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
|
||||||
linux,default-trigger = "none";
|
max-brightness = <255>;
|
||||||
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led1r {
|
network_red {
|
||||||
label = "led1:red";
|
label = "pwm:red:network";
|
||||||
gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
|
pwms = <&tcb_pwm 3 10000000 PWM_POLARITY_INVERTED>;
|
||||||
linux,default-trigger = "none";
|
max-brightness = <255>;
|
||||||
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led2g {
|
user_green {
|
||||||
label = "led2:green";
|
label = "pwm:green:user";
|
||||||
gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
|
pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
|
||||||
linux,default-trigger = "none";
|
max-brightness = <255>;
|
||||||
default-state = "on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led2r {
|
user_red {
|
||||||
label = "led2:red";
|
label = "pwm:red:user";
|
||||||
gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
|
pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
|
||||||
linux,default-trigger = "none";
|
max-brightness = <255>;
|
||||||
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tcb_pwm: pwm {
|
||||||
|
compatible = "atmel,tcb-pwm";
|
||||||
|
#pwm-cells = <3>;
|
||||||
|
tc-block = <1>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_tcb1_tioa0
|
||||||
|
&pinctrl_tcb1_tioa1
|
||||||
|
&pinctrl_tcb1_tioa2
|
||||||
|
&pinctrl_tcb1_tiob0>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue