boards: arm: stm32: set LEDs period to 20ms
Most LEDs had 0 or 4 nanoseconds set as a period, a value that doesn't make sense for a PWM signal driving an LED. A period of 20ms (50Hz) is a frequently used value as it is above the flicker fusion threshold. All STM32 based boards have been updated. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
c2208e213d
commit
5a0b12c230
12 changed files with 15 additions and 15 deletions
|
@ -30,7 +30,7 @@
|
||||||
pwmleds {
|
pwmleds {
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm2 2 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
pwmleds {
|
pwmleds {
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm2 2 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
pwmleds {
|
pwmleds {
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm2 1 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm2 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm2 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
label = "User LD3 - PWM12";
|
label = "User LD3 - PWM12";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
label = "User LD3 - PWM12";
|
label = "User LD3 - PWM12";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
|
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm15 1 4 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm15 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -42,16 +42,16 @@
|
||||||
pwmleds {
|
pwmleds {
|
||||||
compatible = "pwm-leds";
|
compatible = "pwm-leds";
|
||||||
green_pwm_led: green_pwm_led {
|
green_pwm_led: green_pwm_led {
|
||||||
pwms = <&pwm4 1 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm4 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
orange_pwm_led: orange_pwm_led {
|
orange_pwm_led: orange_pwm_led {
|
||||||
pwms = <&pwm4 2 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm4 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
red_pwm_led: red_pwm_led {
|
red_pwm_led: red_pwm_led {
|
||||||
pwms = <&pwm4 3 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm4 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
blue_pwm_led: blue_pwm_led {
|
blue_pwm_led: blue_pwm_led {
|
||||||
pwms = <&pwm4 4 0 PWM_POLARITY_NORMAL>;
|
pwms = <&pwm4 4 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue