zephyr/boards/arm/legend/legend_25hdd.overlay
Gerard Marull-Paretas fe41c54bcd boards: arm: legend: fix PWM LEDs period
The period was 255 nsec, a value that doesn't make much sense when
driving an LED. Since the period cell is rarely used nowadays, the
value was probably copy&pasted or a random value was added since it is
required. A period of 20 msec has been chosen as most other boards do
for PWM LEDs.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-04-24 19:48:07 +02:00

57 lines
795 B
Plaintext

/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
model = "Seagate Legend 2.5 HDD board";
compatible = "legend25_hdd", "seagate,legend25_hdd";
aliases {
pwm-led0 = &pwm_led0;
led-strip = &led_strip_spi;
};
led_pwm: pwmleds {
compatible = "pwm-leds";
label = "LED PWM";
pwm_led0: pwm_led_0 {
label = "Activity LED";
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};
&clk_hsi {
status = "okay";
};
&pll {
clocks = <&clk_hsi>;
prediv = <1>;
mul = <6>;
status = "okay";
};
&rcc {
clocks = <&pll>;
clock-frequency = <DT_FREQ_M(48)>;
ahb-prescaler = <1>;
apb1-prescaler = <1>;
};
&led_strip_spi {
chain-length = <6>;
status = "okay";
};
&timers3 {
status = "okay";
};
&pwm3 {
status = "okay";
};