summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/at91-kizbox.dts
diff options
context:
space:
mode:
authorGaël PORTAY <g.portay@overkiz.com>2015-04-30 09:33:36 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2015-04-30 09:53:18 +0200
commit4a225bed2b6e45b146d508ceb55f1d7c813050c4 (patch)
treeedff6f985f47f4b2f6368609275d1e55afa04262 /arch/arm/boot/dts/at91-kizbox.dts
parentd1b063aba81320cabdb093739b54dd4b3c92d159 (diff)
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>
Diffstat (limited to 'arch/arm/boot/dts/at91-kizbox.dts')
-rw-r--r--arch/arm/boot/dts/at91-kizbox.dts53
1 files changed, 34 insertions, 19 deletions
diff --git a/arch/arm/boot/dts/at91-kizbox.dts b/arch/arm/boot/dts/at91-kizbox.dts
index 73e4559862d3..b19f568824df 100644
--- a/arch/arm/boot/dts/at91-kizbox.dts
+++ b/arch/arm/boot/dts/at91-kizbox.dts
@@ -8,6 +8,7 @@
*/
/dts-v1/;
#include "at91sam9g20.dtsi"
+#include <dt-bindings/pwm/pwm.h>
/ {
model = "Overkiz Kizbox";
@@ -112,32 +113,46 @@
};
};
- leds {
- compatible = "gpio-leds";
+ pwm_leds {
+ compatible = "pwm-leds";
- led1g {
- label = "led1:green";
- gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "none";
+ network_green {
+ label = "pwm:green:network";
+ pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
+ max-brightness = <255>;
+ linux,default-trigger = "default-on";
};
- led1r {
- label = "led1:red";
- gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "none";
+ network_red {
+ label = "pwm:red:network";
+ pwms = <&tcb_pwm 3 10000000 PWM_POLARITY_INVERTED>;
+ max-brightness = <255>;
+ linux,default-trigger = "default-on";
};
- led2g {
- label = "led2:green";
- gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "none";
- default-state = "on";
+ user_green {
+ label = "pwm:green:user";
+ pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
+ max-brightness = <255>;
+ linux,default-trigger = "default-on";
};
- led2r {
- label = "led2:red";
- gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "none";
+ user_red {
+ label = "pwm:red:user";
+ pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
+ 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>;
+ };
};