Commit Graph

417 Commits

Author SHA1 Message Date
Erwan Gouriou 0be5dd364c dts/st: New batch of -pinctrl.dtsi file with UCPD_CC pins
New version of -pinctrl.dtsi files with UCPD_CC pins generated.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-06-06 23:10:52 +02:00
Erwan Gouriou 36f3cd523e scripts/genpinctrl: Add UCPD CC pins
Add generation for UCPD CC pins as analog pins.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-06-06 23:10:50 +02:00
Erwan Gouriou 51b373cd34 dts/st: stm32f1: New batch of -pinctrl.dtsi with remap info in name
Use the previous change to generate required pin names.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-05-25 10:39:56 +02:00
Erwan Gouriou 726950e8e6 scripts/genpinctrl: Add remap variant if any
Pin remap configurations may take two different values
For instance:
 USART3_CTS PA13 matches both remap values 00 and 01.

In a peripheral pin remapping configuration, all pins associated to the
device must share the same remap value.
For instance, on USART3
-remap0 cfg uses PB10, PB11, PB12, PB13, PB14, all configured with remap0
-remap1 cfg uses PC10, PC11, PC12, PB13, PB14, all configured with remap1

If pinctrl driver detects one of the pins has a remap value different
from the whole set, it will generate an error.

As a consequence, it may happen that for a single pin (PB13, in the above
example), we need to generate both remap configurations, each one
correctly identified with a specific name.

To take this into account, always include the remap information in
the generated pin configuration node.
T
o minimize the impact, it has been decided to apply this only if remap
value differs for "0" or "No remap".

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-05-25 10:39:56 +02:00
Gerard Marull-Paretas 6253094a41 dts: regenerate to include /omit-if-no-ref/ to octospi nodes
octospi nodes were not generated with the prefix.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-10 15:10:03 +02:00
Gerard Marull-Paretas 589072fc5c dts: regenerate pinctrl files with <zephyr/...> include prefix
Files have been regenerated with the same CubeMX database.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-10 15:10:03 +02:00
Gerard Marull-Paretas 923fb67a44 scripts: genpinctrl: use <zephyr/...> include prefix
Zephyr has prefixed all of its includes with <zephyr/...>. While the old
mode can still be used (CONFIG_LEGACY_INCLUDE_PATH) and is still enabled
by default, it's better to be prepared for its removal in the future.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-10 15:10:03 +02:00
Francois Ramu 1131096de3 dts/st: stm32h7 add the support of pins for the octospi
Re-generated pinctrl files with STM32 open pin data.
Update the dts/st/h7 soc serie.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-05-10 14:19:37 +02:00
Francois Ramu 1c4c3a9470 dts/st: stm32u5x add the support of pins for the octospi
Re-generated pinctrl files with STM32 open pin data.
Update the dts/st/u5 soc serie.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-05-10 14:19:37 +02:00
Francois Ramu 147f0eb9fb dts/st: stm32l4 plus add the support of pins for the octospi
Re-generated pinctrl files with STM32 open pin data.
Update the dts/st/l4+ soc serie.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-05-10 14:19:37 +02:00
Francois Ramu 921e1e981d dts/st: stm32l5x2 add the support of pins for the octospi
Re-generated pinctrl files with STM32 open pin data.
Update the dts/st/l5 soc serie.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-05-10 14:19:37 +02:00
Francois Ramu 089d54eada scripts/genpinctrl: generate octospi pin configurations
Adds pin configuration generation for the octospi interface
including 8 IO lines, clk, nCS and DQS signals.
for octospi through IO manager (OCTOSPIM) or not

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-05-10 14:19:37 +02:00
Gerard Marull-Paretas e31e840271 dts: readme: use rst extension
File content is written in rst, not markdown.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-03 16:30:33 +02:00
Gerard Marull-Paretas 40cc632187 dts: re-generate pinctrl files using /omit-if-no-ref/
Regenerate all pinctrl files using revision
ff795904601ad4a0b8e8b36fee02b5a67f7d41c2. Only change is the addition of
/omit-if-no-ref/.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-03 16:30:33 +02:00
Gerard Marull-Paretas a21cd41c19 scripts: genpinctrl: add /omit-if-no-ref/ to generated nodes
All DT nodes end up being part of the generated 'devicetree_unfixed.h'
header, wether they are referenced or not. A quick test on a board,
nucleo_l4r5zi, shows that such header has ~55K lines. When adding
/omit-if-no-ref/ attribute to pinctrl nodes, the number of lines goes
down to ~14K. Since the devicetree_unfixed.h header ends up being
included in lots of places (via devicetree.h), it should reduce build
times (specially noticeable in CI environments). Something similar
happened to NXP based boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-05-03 16:30:33 +02:00
Erwan Gouriou 22efc45f02 dts/st: New batch of -pinctrl.dtsi files using CubeMx V6.5.0
Generate a new batch of -pinctrl.dtsi files using CubeMx V6.5.0.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-05-03 16:07:43 +02:00
Georgij Cernysiov 9d0593e2fa dts/st: provide uart/usart/lpuart de pins
Re-generated pinctrl files with STM32 open pin data.
Adds hardware flow control RS-485 pin configurations.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2022-05-03 15:12:05 +02:00
Georgij Cernysiov 8eca925f38 scripts/genpinctrl: generate uart/usart/lpuart de pin configurations
Adds hardware flow control RS-485 pin configuration generation.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2022-05-03 15:12:05 +02:00
Erwan Gouriou 5945d50882 stm32cube: stm32f4xx: Use Legacy ethernet HAL
A new ETH API was provided in last F4 HAL release.
Since Zephyr driver is not yet updated, don't use it and enable
what is now the Legacy API instead.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-04-05 08:49:27 +02:00
Erwan Gouriou 13964e0af1 stm32cube: l1: Clear comment in README
This comment should have been cleared previously.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 8f6645b143 stm32cube: common_ll: Regeneration after cube updates
Re - generate common_ll headers after Cube updates

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 4110c5c7cd stm32cube: update stm32f7 to cube version V1.16.2
Update Cube version for STM32F7xx series
on https://github.com/STMicroelectronics
from version v1.16.1
to version v1.16.2

Added LICENSE.md as software component license.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou f050d2f0df stm32cube: stm32h7: Fix warning on LL_SPI_ReceiveData16
New function implementation generates warning when -Wstrict-aliasing
is used.
Fix it for now.
Internal reference: 124484

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 2e7527d45d stm32cube: update stm32h7 to cube version V1.10.0
Update Cube version for STM32H7xx series
on https://github.com/STMicroelectronics
from version v1.9.0
to version v1.10.0

This package provides a new implementation of ethernet HAL,
not backward compatible.
Waiting Zephyr HAL based ethernet driver to be converted to this
new implementation, H7 hal module is tweaked to use the legacy ethernet
API.

Added LICENSE.md as software component license.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 43755d1cc0 stm32cube: update stm32g4 to cube version V1.5.0
Update Cube version for STM32G4xx series
on https://github.com/STMicroelectronics
from version v1.4.0
to version v1.5.0

Added LICENCE.md as software component license.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 6415bf7def stm32cube: update stm32u5 to cube version V1.1.0
Update Cube version for STM32U5xx series
on https://github.com/STMicroelectronics
from version v1.0.2
to version v1.1.0

Removed patch "Fix utils_ll.c definitions" which is now part of official
package delivery.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou aa942619e3 stm32cube: update stm32f4 to cube version V1.27.0
Update Cube version for STM32F4xx series
on https://github.com/STMicroelectronics
from version v1.26.2
to version v1.27.0

Added LICENSE.md as software component license.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 045e192f51 lib/stm32: update stm32wb to cube version V1.13.2
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.13.0
to version v1.13.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 302758edd3 stm32cube: update stm32wb to cube version V1.13.2
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.13.0
to version v1.13.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
Erwan Gouriou 34ec944177 stm32cube: update stm32l4 to cube version V1.17.1
Update Cube version for STM32L4xx series
on https://github.com/STMicroelectronics
from version v1.17.0
to version v1.17.1

Added LICENSE.md as software component license.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-31 13:14:50 +02:00
tmilkovic cfb0b8dc34 dts/st: add USB_OTG_HS_ULPI_CK signal for all supported SoCs
This signal was missing for a complete set of ULPI signals

Signed-off-by: tmilkovic <tomislav.milkovic95@gmail.com>
2022-03-31 13:14:34 +02:00
tmilkovic a41fbed03f scripts/genpinctrl: stm32-pinctrl-config: add USB_ULPI_CK
Add CK signal to USB_OTG_HS_ULPI regex

Signed-off-by: tmilkovic <tomislav.milkovic95@gmail.com>
2022-03-31 13:14:34 +02:00
Erwan Gouriou f1cae48438 dts/st: Provide analog configuration for each pin
Batch of -pinctrl.dtsi providing analog_lp_pxy configuration
for each pin.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-21 15:31:54 +01:00
Erwan Gouriou ea018a5039 scripts/genpinctrl: Generate analog pin configurations
In a majority of cases low power pin configuration would be
analog.
Instead of providing a analog variant for each signal, which would
be equivalent between each signal, generate analog variant
for each pin supporting it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-03-21 15:31:54 +01:00
Gerard Marull-Paretas 5d37e1514c ci: test: update tested Python versions
Drop 3.6 (EOL) and add 3.9/3.10.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-03-18 18:30:28 +01:00
Gerard Marull-Paretas c34446ca2f scripts: dependencies: do not specify any version
Allow for more flexibility when it comes to dependencies. The scripts do
not have any strong dependency or known compatiblity issues, so do not
specify any version. This means the latest version will be downloaded.
If anything comes up scripts can always be updated or versions until
scripts are updated.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-03-18 18:30:28 +01:00
Francois Ramu ab42f7015e update README for the stm32wl after changing LL_PLL_ConfigSystemClock_MSI
after merge of the
https://github.com/zephyrproject-rtos/hal_stm32/pull/133/

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-03-14 11:27:20 +01:00
Francois Ramu 9699ff44bc stm32WL gives the right value to LL_RCC_MSI_IsEnabledRangeSelect
If LL_RCC_MSI_IsEnabledRangeSelect returns 1 it means RUN mode.
 __LL_RCC_CALC_MSI_FREQ expects MSISEL param to be
LL_RCC_MSIRANGESEL_STANDBY or LL_RCC_MSIRANGESEL_RUN
which is not the value that LL_RCC_MSI_IsEnabledRangeSelect
returns.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-03-14 11:01:41 +01:00
Erwan Gouriou 300109f807 lib/stm32wb/hci: app_conf.h: Re-apply patch Z-WB-3
When updating stm32wb hci lib from V1.12.0 to V1.13.0,
Zephyr specific patch Z-WB-3 (which configures BLE controller
firmware to work in mode LL only) was overwitten.
As a consequence, it was not possible to establish BLE connection
anymore.
Set it back.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-02-02 09:07:50 +01:00
Erwan Gouriou 44cc276a48 stm32cube: stm32wl: Fix LL_SYSCFG_GetEXTISource
This function was not returning the expected port.
Fix it

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-01-28 11:23:21 +01:00
Erwan Gouriou 360c9c89ff stm32cube/stm32u5: ll_utils.c: Fix UTILS_SCALE_... definitions
These definitions were suspicious
Fix them.
Internal issue: 116963

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/42228

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-01-28 11:23:06 +01:00
Francois Ramu 91531028be stm32cube: common_ll: Regeneration after cube updates
Re - generate common_ll headers after Cube updates

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-01-05 15:12:48 +01:00
Francois Ramu 22a9041171 stm32cube: update stm32u5 to cube version V1.0.2
Update Cube version for STM32U5xx series
on https://github.com/STMicroelectronics
from version v1.0.0
to version v1.0.2

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-01-05 15:12:48 +01:00
Francois Ramu 07383b4a46 stm32cube: update stm32mp1 to version 1.5.0
Update Cube version for STM32MP1xx series
on https://github.com/STMicroelectronics
from version 1.4.0
to version 1.5.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-01-05 15:12:48 +01:00
Francois Ramu c02720d3ac lib/stm32: update stm32wb to cube version V1.13.0
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.12.0
to version v1.13.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-01-05 15:12:48 +01:00
Francois Ramu eb8a2faa40 stm32cube: update stm32wb to cube version V1.13.0
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.12.0
to version v1.13.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-01-05 15:12:48 +01:00
tmilkovic 34fe6f7332 dts/st: add LTDC signals
Add LTDC signals on all targets that support an LTDC peripheral (F4, L4, F7, H7 and MP1)
2021-12-17 14:05:25 +01:00
tmilkovic f57562a299 scripts/genpinctrl: stm32-pinctrl-config: add regex for LTDC pins
Generate pinctrl nodes for LCD-TFT display controller (LTDC) pins

Pins used by LTDC peripheral are:
LTDC_DE, LTDC_CLK, LTDC_HSYNC, LTDC_VSYNC, LTDC_R[0-7], LTDC_G[0-7] and LTDC_B[0-7]
2021-12-17 14:05:25 +01:00
Erwan Gouriou 161c4b2a1b dts/st/g4: Add Quadspi Signals
Add QSPI signals on stm32g4 targets.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-12-13 18:09:11 +01:00
Erwan Gouriou 3c4660e5a9 scripts/genpinctrl: stm32-pinctyrl-config: QUASPI1 is a valid signal
On some series, QUASPI signals are defined with a numbered instance:
QUASPI1_CLK, ....

Allow instance number in quaspi signal searches


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-12-13 18:09:11 +01:00