drivers: pwm: mcux_tpm: allow configuring the clock prescaler
Allow configuring the clock prescaler divider for the NXP Kinetis Timer/PWM Module (TPM). Setting the prescaler to a lower value allows for higher resolution for the generated PWM waveforms. This change is inspired from the pwm_mcux_ftm driver: Link: https://github.com/zephyrproject-rtos/zephyr/pull/25396 Signed-off-by: Maximilian Werner <maximilian.werner96@gmail.com>
This commit is contained in:
parent
48b70cf180
commit
66df541d6c
6 changed files with 31 additions and 1 deletions
|
@ -248,6 +248,7 @@
|
|||
reg = <0x31000 0x100>;
|
||||
interrupts = <37 0>;
|
||||
clocks = <&scg SCG_K4_FIRC_CLK 0xc4>;
|
||||
prescaler = <16>;
|
||||
status = "disabled";
|
||||
#pwm-cells = <3>;
|
||||
};
|
||||
|
@ -257,6 +258,7 @@
|
|||
reg = <0x32000 0x100>;
|
||||
interrupts = <38 0>;
|
||||
clocks = <&scg SCG_K4_FIRC_CLK 0xc8>;
|
||||
prescaler = <16>;
|
||||
status = "disabled";
|
||||
#pwm-cells = <3>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue