zephyr/drivers/pwm
Pierre Marzin 1d2752f4ee drivers: pwm: add Renesas R-Car driver
Add R-Car Gen3 PWM driver.

Clock diviser is automatically adjusted according to requested period
and duty-cycle in order to obtain as much accuracy as possible.
Indeed, in order to improve PWM accurancy, the PWM clock has to fit
the requested period. So use the given period_cycle to define if the
clock as to be adapted. In such case, increase/decrease the clock
diviser to adapt the period_cycle and be sure that it fits into the
10 bits counter of the PWM controller.

Tested on H3ULCB on pwm0 and pwm4.

Signed-off-by: Pierre Marzin <pierre.marzin@iot.bzh>
2022-09-07 15:50:49 +02:00
..
CMakeLists.txt drivers: pwm: add Renesas R-Car driver 2022-09-07 15:50:49 +02:00
Kconfig drivers: pwm: add Renesas R-Car driver 2022-09-07 15:50:49 +02:00
Kconfig.b91 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.esp32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.gd32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.gecko drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.imx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.it8xxx2 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.litex drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_ftm drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_pwt drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_sctimer drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_tpm drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.npcx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.nrf5_sw drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.nrfx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.rcar drivers: pwm: add Renesas R-Car driver 2022-09-07 15:50:49 +02:00
Kconfig.rpi_pico drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.rv32m1_tpm drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.sam drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.sam0 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.sifive drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.stm32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.test drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.xec drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.xlnx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
pwm_b91.c drivers: pwm: b91: fix non-local headers include 2022-06-28 16:17:46 +02:00
pwm_capture.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
pwm_gd32.c drivers: pwm: gd32: use clock control API 2022-09-06 09:57:25 +02:00
pwm_gecko.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_handlers.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm_imx.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_ite_it8xxx2.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_led_esp32.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_litex.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm_mc_esp32.c west.yml: update hal to v4.4.1 base 2022-09-01 21:48:18 +00:00
pwm_mchp_xec.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_mcux.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_mcux_ftm.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_mcux_pwt.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_mcux_sctimer.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_mcux_tpm.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_npcx.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_nrf5_sw.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_nrfx.c drivers: pwm_nrfx: Improve tracking of PWM peripheral usage 2022-07-28 20:52:41 +02:00
pwm_rcar.c drivers: pwm: add Renesas R-Car driver 2022-09-07 15:50:49 +02:00
pwm_rpi_pico.c drivers: pwm: add pwm driver for rpi_pico 2022-07-07 15:17:26 +02:00
pwm_rv32m1_tpm.c drivers: pwm: check if clock device is ready before accessing 2022-08-09 17:16:16 +02:00
pwm_sam.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_sam0_tcc.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm_shell.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm_sifive.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00
pwm_stm32.c pwm: stm32: Remove support for deprecated st,prescaler prop 2022-08-18 10:20:32 +02:00
pwm_test.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
pwm_xlnx_axi_timer.c drivers: pwm: minor formatting enhancements 2022-07-12 17:51:23 +02:00