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:
David Ullmann 2023-08-02 16:13:19 -04:00 committed by Chris Friedt
parent bcc7499684
commit 7c76464c14

View 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>;
};