Re-generate pinctrl files using STM32 open pin data. No changes are
present since data is based on the same CubeMX version.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Change script to require STM32 Open Pin Data as input. README file is
now autogenerated so that it will always include the STM32 Open Pin Data
commit used for generation.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This new set of files includes "additional functions"
analog signals as defined in reference manuals.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
It is now possible that mode is not provided for non-F1 series
configs.
On F1 series ADC1_IN0 could be af 0.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Due to inference of mode for default configurations, mode
should not be set unless it specifies a specific signal variant.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
For non-F1 series:
Add generation of additional functions by inferring mode based
on AF detection instead of the mode value filed in config file.
This allows to detect that a signal should use 'analog' mode
when no AF function is associated to it.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Add systematic compialtion of '..._hal_rcc_ex.c' in 'CMakeLists.txt'
generation. There is more and more dependence of HAL IP to
'..._hal_rcc_ex.c'
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Define class Stm32SerieUpdate
Use Pathlib instead of os.path
Add CLI option to provide directory path where to clone
STM32Cube repo (-r <repo_path>)
Reformat README.rst
Add *.pyc to .gitignore
Refactor variable naming (mainly paths),
* to be fully compilant with PEP8
* to be more understandable
* to simplify maintenance
Usage changed. Basic usage:
* update a single serie:
'python3 update_stm32_package.py -s <stm32_serie>'
* update all serie at once:
'python3 update_stm32_package.py
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
The script is able to generate common LL headers which can be used in
both Zephyr and applications to make it easier to create family
independent code.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
STM32 timers are multi-purpose peripherals ranging from PWM, Input
capture, encoder, HALL sensor... In all series except F1 the timer pins
will always be configured in the same mode, i.e. alternate. So using a
variant for each functionality is not necessary. When working with F1
series mode is still required because the pin may operate in either
alternate or input mode depending on the assigned functionality.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Add systematic compialtion of '..._hal_rcc_ex.c' in 'CMakeLists.txt'
generation. There is more and more dependence of HAL IP to
'..._hal_rcc_ex.c'
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Remove i2s references from stm32wbxx_hal_conf.h
which prevent compilation, as there is no i2s in this STM32WB
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.5.0
to version v1.9.0
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32L5xx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.1
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32L4xx series
on https://github.com/STMicroelectronics
from version v1.15.1
to version v1.16.0
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32L0xx series
on https://github.com/STMicroelectronics
from version v1.11.2
to version v1.11.3
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32H7xx series
on https://github.com/STMicroelectronics
from version v1.6.0
to version v1.8.0
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32G4xx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.0
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F7xx series
on https://github.com/STMicroelectronics
from version v1.15.0
to version v1.16.0
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F4xx series
on https://github.com/STMicroelectronics
from version v1.25.0
to version v1.25.1
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F3xx series
on https://github.com/STMicroelectronics
from version v1.11.0
to version v1.11.1
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F2xx series
on https://github.com/STMicroelectronics
from version v1.9.0
to version v1.9.1
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F1xx series
on https://github.com/STMicroelectronics
from version v1.8.0
to version v1.8.2
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Update Cube version for STM32F0xx series
on https://github.com/STMicroelectronics
from version v1.11.0
to version v1.11.1
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Add support for ethernet pins.
F1 settings taken from RM0008 Rev 20, Table 209.
Other series settings are taken from current Zephyr settings. Note that
they will likely need to be adjusted, as very-high-speed is not needed
for all signals.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Includes following signals:
F1: USB DM/DP, USB_OTG_FS DM/DP/SOF/ID/VBUS
Others: USB DM/DP/NOE, USB_OTG_FS DM/DP/SOF/ID/VBUS
USB_OTG_HS DM/DP/SOF/ID/VBUS and DIR/STP/NXT/D[0-7]
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Includes USB, OTG_FS and OTG_HS various signals.
This only concerns signals that are configured using alternate.
Signals requiring analog configuration are left a part for now on.
This could lead to situations where only USB_NOE signals are
available on some SoCs (other signals will require a script update
to be generated).
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Only first remap block was being processed, take into account all of
them now. Note that ``FULL_REMAP`` has been adjusted to ``REMAP_FULL``
as it was wrong. Tests updated to cover multiple remap cases.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
When working with F1 series pins not present in the GPIO IP files need
to be taken into account with the NO_REMAP setting.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Now that dts contain a README file, don't clean up the entire
directory but only sub directories.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>