zephyr/drivers/counter
Alberto Escolar Piedras f9d5e8458c drivers/counter nrfx: Fix with DT instance not matching device instance
478530ec0aa1fe5f481786c25d50f7a081b22208 introduced a bug
where if the DT index while iterating its DT structure
initialization does not match the actual peripheral instance,
or if the device instance string is not just a simple integer,
but a more complex string like "00", or "02", either
the wrong peripheral address would be used, or the file
would failt to compile.

Let's fix this by reverting that change, and instead, for
simulation converting the hardcoded DT/real HW address
to the valid addr for simulation on the fly.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-11 14:09:16 +00:00
..
CMakeLists.txt dts: bindings: renamed binding used for pit 2024-03-07 13:23:58 -06:00
counter_ace_v1x_art.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00
counter_ace_v1x_art_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ace_v1x_rtc.c drivers: counter: align ace rtc get_value with api 2023-02-20 11:13:45 +01:00
counter_ace_v1x_rtc_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ambiq_timer.c drivers: counter: counter_ambiq_timer: Enable interrupt in set_alarm 2024-01-08 14:16:13 +01:00
counter_andes_atcpit100.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_cmos.c x86: revert removing soc.h from atom soc 2024-03-04 20:07:30 +01:00
counter_dw_timer.c drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
counter_esp32_rtc.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_esp32_tmr.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_gd32_timer.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_gecko_rtcc.c devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
counter_gecko_stimer.c drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
counter_handlers.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
counter_ifx_cat1.c drivers: counter: cat1: Fix formatting issues 2023-08-10 08:13:11 +00:00
counter_imx_epit.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_ll_stm32_rtc.c drivers: counter: stm32 rtc: add basic pm support 2024-01-30 10:49:22 +01:00
counter_ll_stm32_timer.c drivers: counter: ll_stm32_timer: F1X changes 2023-12-06 12:10:08 +00:00
counter_mchp_xec.c arm: add missing includes 2022-10-11 18:37:53 -04:00
counter_mcux_ctimer.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
counter_mcux_gpt.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_lpc_rtc.c drivers: mcux_lpc_rtc: Add support for 1KHz counter 2024-01-12 13:34:19 +01:00
counter_mcux_lptmr.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_mcux_qtmr.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_rtc.c drivers: counter: mcux_rtc: enable oscillator if supported 2024-02-02 12:43:00 +01:00
counter_mcux_snvs.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
counter_native_posix.c drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
counter_nrfx_rtc.c drivers counter nrfx RTC: Fix ISR prototype 2024-03-08 19:00:46 +01:00
counter_nrfx_timer.c drivers/counter nrfx: Fix with DT instance not matching device instance 2024-03-11 14:09:16 +00:00
counter_nxp_mrt.c drivers: counter: Add NXP MRT driver 2023-11-10 10:40:54 +01:00
counter_nxp_pit.c drivers: counter: Adding Mutli Channel PIT Support 2024-03-07 13:23:58 -06:00
counter_nxp_s32_sys_timer.c drivers: counter_nxp_s32_sys_timer: update to RTD 1.0.0 2023-11-16 09:28:16 +01:00
counter_rpi_pico_timer.c drivers: counter: rpi_pico: Turn on clock and reset device on init 2023-12-20 11:14:24 +01:00
counter_sam0_tc32.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_sam_tc.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_smartbond_timer.c drivers: counter: Fix Smartbond counter get_rate 2023-09-20 20:17:11 +01:00
counter_timer_shell.c drivers: counter: Add shell commands for timer 2023-08-16 10:20:31 +02:00
counter_xlnx_axi_timer.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
dualtimer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
Kconfig dts: bindings: renamed binding used for pit 2024-03-07 13:23:58 -06:00
Kconfig.ace drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
Kconfig.ambiq drivers: counter: Add Ambiq counter driver 2023-08-07 16:12:58 +02:00
Kconfig.andes_atcpit100 drivers: counter: add Andes atcpit100 counter driver 2022-08-26 11:55:36 +02:00
Kconfig.cmos drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B 2023-04-27 14:15:22 +02:00
Kconfig.dtmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.dw drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
Kconfig.esp32_rtc esp32: driver: counter: add RTC-based implementation 2022-07-27 09:48:33 +02:00
Kconfig.esp32_tmr esp32: drivers: counter: update build references 2022-08-04 15:30:18 +02:00
Kconfig.gd32 drivers: counter: gd32: depend on !SOC_SERIES_GD32VF103 2024-01-10 15:05:54 +01:00
Kconfig.gecko drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
Kconfig.ifx_cat1 drivers: counter: Add Infineon CAT1 counter driver 2023-07-26 09:10:31 +02:00
Kconfig.imx_epit drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.maxim_ds3231 lib: notify: build sys-notify conditionally. 2022-10-03 10:18:15 +02:00
Kconfig.mcp7940n drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_ctimer drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_gpt drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_lpc_rtc drivers: mcux_lpc_rtc: Add support for 1KHz counter 2024-01-12 13:34:19 +01:00
Kconfig.mcux_lptmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_qtmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_rtc drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_snvs drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.native_posix drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
Kconfig.nrfx drivers: counter: Adapt to use device tree 2023-03-20 16:59:40 +01:00
Kconfig.nxp_mrt drivers: counter: Add NXP MRT driver 2023-11-10 10:40:54 +01:00
Kconfig.nxp_pit drivers: counter: Adding Mutli Channel PIT Support 2024-03-07 13:23:58 -06:00
Kconfig.nxp_s32 counter: nxp_s32_sys_timer: use clock control APIs 2023-09-29 16:29:31 +02:00
Kconfig.rpi_pico drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
Kconfig.sam drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.sam0 drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.smartbond_timer drivers: counter: Add Smartbond basic support 2023-07-05 13:00:50 +02:00
Kconfig.stm32_rtc counter: stm32 rtc: handle sub second registers 2023-09-26 15:05:35 +02:00
Kconfig.stm32_timer drivers: counter: Reset timer using RCC before initialization 2022-12-09 09:43:36 -08:00
Kconfig.tmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xec drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xlnx drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
maxim_ds3231.c drivers: counter: maxim_ds3231: Fix coverity errors 2024-02-13 10:25:53 +01:00
rtc_mcp7940n.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
timer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
timer_dtmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
timer_tmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00