Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
53e6d10
include/drivers: clock_control.h: Add configure() to api
erwango Mar 11, 2022
a6d8a96
tests/drivers/clock_control: stm32h7: Move tests under stm32h7_core
erwango Jan 13, 2022
c4d9076
tests/drivers/clock_control: stm32h7: Add test for devices clock cfg
erwango Jan 13, 2022
2d373ba
dts/arm: stm32h7: Introduce a stm32h7 specific clock binding
erwango Jan 14, 2022
8f4f5e7
drivers/clock_control: stm32h7: Change clock bus bindings values
erwango Jan 14, 2022
4196862
tests/drivers/clock_control: stm32h7_devices: Test clock api
erwango Jan 14, 2022
5f83962
drivers/clock_control: stm32h7: Add support for alt clocks
erwango Jan 14, 2022
6ba2d55
tests/drivers/clock_control: stm32h7_devices: Add TC using pll3_p
erwango Jan 21, 2022
5252ecd
include/drivers: stm32_clock_control: Avoid non defined PLL outputs
erwango Jan 21, 2022
4b6ab8b
tests/drivers/clock_control: stm32h7: device_test: Clean up
erwango Jan 24, 2022
9e2c7ff
include/drivers/clock_control: stm32: Add _DT_CLOCK helpers
erwango Jan 28, 2022
3ba8e80
tests/drivers/clock_control: stm32h7_device: Use STM32_DT_CLOCKS_FOO
erwango Jan 24, 2022
0d3e1ae
boards: nucleo_h723zg: Enable SPI
erwango Jan 24, 2022
09a4933
drivers/spi: stm32: Use alt clock freq if available
erwango Jan 31, 2022
15bdee2
ds/bindings/clocks: Add stm32 clock mux binding
erwango Feb 3, 2022
fc61680
drivers: clock_control: Add STM32 clock multiplexer driver
erwango Feb 4, 2022
9476ccd
dts/arm/st: stm32h7: Add perck clock-mux node
erwango Feb 4, 2022
8920e87
drivers/clock_control: stm32h7: Add support for CKPER clock mux
erwango Feb 4, 2022
3380bba
tests/drivers/clock_control: stm32h7_device: Add test for CKPER source
erwango Feb 4, 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