clk: stm32: STM32F769 clocks
Subsystems (3)
cover clk: stm32: STM32F769 clocks
STM32F769 board is a derived of STM32F746 board.
Concerning clocks, main differences are:
- new source clock for SAI1 and SAI2 (HSI or HSE)
- Add DFSDM & DSI clock
Gabriel Fernandez (2):
clk: stm32: Introduce clocks of STM32F769 board
ARM: dts: stm32: Enable STM32F769 clock driver
.../bindings/clock/st,stm32-rcc.txt | 6 + arch/arm/boot/dts/stm32f769-disco.dts | 4 + drivers/clk/clk-stm32f4.c | 307 +++++++++++++++++- include/dt-bindings/clock/stm32fx-clock.h | 7 +- 4 files changed, 314 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/2 clk: stm32: Introduce clocks of STM32F769 board
STM32F769 clocks are derived from STM32746 clocks. main differences are:
- new source clock for SAI1 and SAI2 (HSI or HSE)
- Add DFSDM & DSI clocks
--- .../bindings/clock/st,stm32-rcc.txt | 6 + drivers/clk/clk-stm32f4.c | 307 +++++++++++++++++- include/dt-bindings/clock/stm32fx-clock.h | 7 +- 3 files changed, 310 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/clock/st,stm32-rcc.txt +6 -0
@@ -11,6 +11,8 @@ Required properties: "st,stm32f42xx-rcc" "st,stm32f469-rcc" "st,stm32f746-rcc" + "st,stm32f769-rcc" + - reg: should be register base and length as documented in the datasheet - #reset-cells: 1, see below
@@ -102,6 +104,10 @@ The secondary index is bound with the following magic numbers: 28 CLK_I2C3 29 CLK_I2C4 30 CLK_LPTIMER (LPTimer1 clock) + 31 CLK_PLL_SRC + 32 CLK_DFSDM1 + 33 CLK_ADFSDM1 + 34 CLK_F769_DSI ) Example:
drivers/clk/clk-stm32f4.c +299 -8
386 lines not on this page · raw message
include/dt-bindings/clock/stm32fx-clock.h +5 -2
@@ -54,7 +54,10 @@#define CLK_I2C3 28#define CLK_I2C4 29#define CLK_LPTIMER 30 - -#define END_PRIMARY_CLK_F7 31 +#define CLK_PLL_SRC 31 +#define CLK_DFSDM1 32 +#define CLK_ADFSDM1 33 +#define CLK_F769_DSI 34 +#define END_PRIMARY_CLK_F7 35#endif
Signature · 1 line
2.17.1
Re: [PATCH 1/2] clk: stm32: Introduce clocks of STM32F769 board
Quoting Gabriel Fernandez (2019-04-05 00:53:31)
Quoted 7 lines
STM32F769 clocks are derived from STM32746 clocks. main differences are:
- new source clock for SAI1 and SAI2 (HSI or HSE)
- Add DFSDM & DSI clocksSigned-off-by Gabriel Fernandez <[email protected]>---
Applied to clk-next
PATCH 2/2 ARM: dts: stm32: Enable STM32F769 clock driver
In reply to Gabriel FernandezThis patch enables clocks for STM32F769 boards.
--- arch/arm/boot/dts/stm32f769-disco.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/stm32f769-disco.dts +4 -0
@@ -102,6 +102,10 @@ }; }; +&rcc { + compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; +}; + &cec { pinctrl-0 = <&cec_pins_a>; pinctrl-names = "default";
Signature · 1 line
2.17.1
Re: [PATCH 2/2] ARM: dts: stm32: Enable STM32F769 clock driver
Hi Gabriel
Quoted 13 lines · Gabriel Fernandez
This patch enables clocks for STM32F769 boards.
Signed-off-by Gabriel Fernandez <[email protected]>--- arch/arm/boot/dts/stm32f769-disco.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/stm32f769-disco.dts +0
-0
arch/arm/boot/dts/stm32f769-disco.dts line 111
Quoted 10 lines
arch/arm/boot/dts/stm32f769-disco.dts +4
-0@@ -102,6 +102,10 @@ }; }; +&rcc { + compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; +}; + &cec { pinctrl-0 = <&cec_pins_a>; pinctrl-names = "default";
Even if driver part is not yet merged, this DT part can be taken as we will run with "st,stm32f746-rcc" compatible (the current one).
So:
Applied on stm32-next.
Thanks.
Alex