samples: blinky_pwm: mimxrt685_evk_cm33 use ctimer for pwm
add overlay for using ctimer pwm driver Signed-off-by: David Ullmann <davidu@meta.com>
This commit is contained in:
parent
bcc7499684
commit
7c76464c14
27
samples/basic/blinky_pwm/boards/mimxrt685_evk_cm33.overlay
Normal file
27
samples/basic/blinky_pwm/boards/mimxrt685_evk_cm33.overlay
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
|
||||
&leds {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&green_pwm_led {
|
||||
pwms = <&ctimer2_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
|
||||
label = "Green PWM LED";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ctimer2_pwm: &ctimer2 {
|
||||
compatible = "nxp,ctimer-pwm";
|
||||
status = "okay";
|
||||
clk-source = <5>;
|
||||
clocks = <&clkctl1 MCUX_CTIMER2_CLK>;
|
||||
prescaler = <0>;
|
||||
pinctrl-0 = <&pinmux_ctimer2_pwm>;
|
||||
pinctrl-names = "default";
|
||||
#pwm-cells = <3>;
|
||||
};
|
Loading…
Reference in a new issue