drivers/usb: stm32: Deprecate 'enable-pin-remap'

'enable-pin-remap' is deprecated in favor of 'remap-pa11-pa12' from
'st-stm32-pinctrl'.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-10-04 17:55:44 +02:00 committed by Christopher Friedt
commit 19a40a15b6
2 changed files with 4 additions and 2 deletions

View file

@ -45,7 +45,8 @@ LOG_MODULE_REGISTER(usb_dc_stm32);
#define DT_DRV_COMPAT st_stm32_usb
#define USB_IRQ_NAME usb
#if DT_INST_NODE_HAS_PROP(0, enable_pin_remap)
#define USB_ENABLE_PIN_REMAP DT_INST_PROP(0, enable_pin_remap)
#define USB_ENABLE_PIN_REMAP __DEPRECATED_MACRO DT_INST_PROP(0, enable_pin_remap)
#warning "Property deprecated in favor of property 'remap-pa11-pa12' from 'st-stm32-pinctrl'"
#endif
#endif

View file

@ -38,7 +38,8 @@ properties:
required: false
description: |
For STM32F0 series SoCs on QFN28 and TSSOP20 packages
enable PIN pair PA11/12 mapped instead of PA9/10 (e.g. stm32f070x6)
enable PIN pair PA11/12 mapped instead of PA9/10 (e.g. stm32f070x6).
Deprecated in favor of 'remap-pa11-pa12' from 'st-stm32-pinctrl'
clocks:
required: true