@@ -711,13 +711,6 @@ static void pwm_stm32_irq_config_func_##index(const struct device *dev) \
711
711
.enr = DT_CLOCKS_CELL(DT_INST_PARENT(index), bits) \
712
712
}
713
713
714
- /* Print warning if any pwm node has 'st,prescaler' property */
715
- #define PRESCALER_PWM (index ) DT_INST_NODE_HAS_PROP(index, st_prescaler) ||
716
- #if (DT_INST_FOREACH_STATUS_OKAY (PRESCALER_PWM ) 0 )
717
- #warning "DT property 'st,prescaler' in pwm node is deprecated and should be \
718
- replaced by 'st,prescaler' property in parent node, aka timers"
719
- #endif
720
-
721
714
#define PWM_DEVICE_INIT (index ) \
722
715
static struct pwm_stm32_data pwm_stm32_data_##index; \
723
716
IRQ_CONFIG_FUNC(index) \
@@ -726,10 +719,7 @@ replaced by 'st,prescaler' property in parent node, aka timers"
726
719
\
727
720
static const struct pwm_stm32_config pwm_stm32_config_##index = { \
728
721
.timer = (TIM_TypeDef *)DT_REG_ADDR(DT_INST_PARENT(index)), \
729
- /* For compatibility reason, use pwm st_prescaler property */ \
730
- /* if exist, otherwise use parent (timers) property */ \
731
- .prescaler = DT_INST_PROP_OR(index, st_prescaler, \
732
- (DT_PROP(DT_INST_PARENT(index), st_prescaler))), \
722
+ .prescaler = DT_PROP(DT_INST_PARENT(index), st_prescaler), \
733
723
.countermode = DT_PROP(DT_INST_PARENT(index), st_countermode), \
734
724
.pclken = DT_INST_CLK(index, timer), \
735
725
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \
0 commit comments