Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
61827ff
include/drivers: clock_control.h: Add configure() to api
erwango Mar 11, 2022
2533160
tests/drivers/clock_control: stm32h7: Add test for devices clock cfg
erwango Jan 13, 2022
9b51096
drivers/clock_control: stm32h7: Add support for alt clocks
erwango Jan 14, 2022
d19e3b4
include/drivers/clock_control: stm32: Add _DT_CLOCK helpers
erwango Jan 28, 2022
f05d643
tests/drivers/clock_control: stm32h7_device: Use STM32_DT_CLOCKS_FOO
erwango Jan 24, 2022
4c22a90
boards: nucleo_h723zg: Enable SPI
erwango Jan 24, 2022
7299f84
drivers/spi: stm32: Use alt clock freq if available
erwango Jan 31, 2022
bae861e
dts/bindings/clocks: Add stm32 clock mux binding
erwango Feb 3, 2022
211c618
drivers: clock_control: Add STM32 clock multiplexer driver
erwango Feb 4, 2022
c2c6ac0
dts/arm/st: stm32h7: Add perck clock-mux node
erwango Feb 4, 2022
c983691
drivers/clock_control: stm32h7: Add support for CKPER clock mux
erwango Feb 4, 2022
012bc18
tests/drivers/clock_control: stm32h7_device: Add test for CKPER source
erwango Feb 4, 2022
b5caedb
tests/drivers/clock_control: stm32u5: Add a _devices test
erwango Mar 1, 2022
25ddcae
include/dt-bindings/clock: Add stm32u5 clock bindings
erwango Mar 1, 2022
dd2ddbb
drivers/clock_control: stm32u5: Add support for optional clocks config
erwango Mar 2, 2022
ad454a2
tests/drivers/clock_control: stm32u5: Fix pll_msis_80 test config
erwango Mar 4, 2022
2cedafe
include/dt-bindings/clock: stm32: Factorize Clock source binding acce…
erwango Mar 31, 2022
85b046c
include/dt-bindings/clock: stm32: Add clock sources bindings
erwango Mar 31, 2022
cb8f684
drivers/clock_control: stm32_common: Remove unused definitions
erwango Apr 1, 2022
eaa7f4c
drivers/clock_control: stm32_common: Implement clock source selection
erwango Apr 22, 2022
2275aa9
tests/drivers/clock_control: stm32_common: Move to stm32_common_core
erwango Apr 22, 2022
bb75fb4
tests/drivers/clock_control: stm32: Add stm32_common_devices tests
erwango Apr 22, 2022
abeb247
dts/bindings/clocks: stm32: 'clock-names' optional for source clock s…
erwango Apr 26, 2022
5263854
tests/drivers/clock_control: stm32: Migrate includes to <zephyr/...>
erwango May 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/arm/nucleo_h723zg/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
};

arduino_i2c: &i2c1 {};

arduino_spi: &spi1 {};
arduino_serial: &uart8 {};
3 changes: 3 additions & 0 deletions boards/arm/nucleo_h723zg/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ features:
+-------------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-------------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-------------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-------------+------------+-------------------------------------+
| ETHERNET | on-chip | ethernet |
Expand Down Expand Up @@ -135,6 +137,7 @@ and a ST morpho connector. Board is configured as follows:
- LD2 : PB7
- LD3 : PB14
- I2C : PB8, PB9
- SPI1 NSS/SCK/MISO/MOSI : PD14PA5/PA6/PB5 (Arduino SPI)

System Clock
------------
Expand Down
7 changes: 7 additions & 0 deletions boards/arm/nucleo_h723zg/nucleo_h723zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@
status = "okay";
};

&spi1 {
status = "okay";
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
pinctrl-names = "default";
cs-gpios = <&gpiod 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
pinctrl-names = "default";
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_h723zg/nucleo_h723zg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ flash: 1024
supported:
- arduino_gpio
- arduino_i2c
- arduino_spi
- uart
- gpio
- counter
- i2c
- pwm
- spi
- netif:eth
- backup_sram
1 change: 1 addition & 0 deletions drivers/clock_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_RCAR_CPG_MSSR clock_cont
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c)

if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
zephyr_library_sources_ifdef(CONFIG_CLOCK_STM32_MUX clock_stm32_mux.c)
if(CONFIG_SOC_SERIES_STM32MP1X)
zephyr_library_sources(clock_stm32_ll_mp1.c)
elseif(CONFIG_SOC_SERIES_STM32H7X)
Expand Down
12 changes: 11 additions & 1 deletion drivers/clock_control/Kconfig.stm32
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ menuconfig CLOCK_CONTROL_STM32_CUBE
bool "STM32 Reset & Clock Control"
depends on SOC_FAMILY_STM32
select USE_STM32_LL_UTILS
select USE_STM32_LL_RCC if SOC_SERIES_STM32MP1X
select USE_STM32_LL_RCC if (SOC_SERIES_STM32MP1X || SOC_SERIES_STM32H7X)
help
Enable driver for Reset & Clock Control subsystem found
in STM32 family of MCUs
Expand All @@ -17,6 +17,7 @@ if CLOCK_CONTROL_STM32_CUBE

DT_STM32_HSE_CLOCK := $(dt_nodelabel_path,clk_hse)
DT_STM32_HSE_CLOCK_FREQ := $(dt_node_int_prop_int,$(DT_STM32_HSE_CLOCK),clock-frequency)
DT_COMPAT_ST_MUX_CLOCK := st,stm32-clock-mux

config CLOCK_STM32_HSE_CLOCK
int "HSE clock value"
Expand All @@ -33,6 +34,15 @@ config CLOCK_STM32_HSE_CLOCK
Note: Device tree configuration is overridden when current symbol is set:
CONFIG_CLOCK_STM32_HSE_CLOCK=32000000

config CLOCK_STM32_MUX
bool "STM32 clock mux driver"
default $(dt_compat_enabled,$(DT_COMPAT_ST_MUX_CLOCK))
help
Enable driver for STM32 clock mux which don't match an
existing clock hardware block but allows to select a clock
for a specific domain. For instance per_ck clock on STM32H7 or
CLK48 clock

# Micro-controller Clock output configuration options

choice
Expand Down
Loading