Skip to contentSkip to conversation

clk: stm32: STM32F769 clocks

PATCH Applied Gabriel Fernandez 3 participants 5 messages Apr 5, 2019 – Apr 25, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index b240121d2ac9..cfa04b614d8a 100644
@@ -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
index 58d8b515be55..7d34e297049c 100644
@@ -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
maintainer Applied
#2 lore raw

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 clocks

---

Applied to clk-next

#3 lore raw

PATCH 2/2 ARM: dts: stm32: Enable STM32F769 clock driver

In reply to Gabriel Fernandez

This 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
index 3c7216844a9b..6f1d0ac8c31c 100644
@@ -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
#4 lore raw

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.

---
  arch/arm/boot/dts/stm32f769-disco.dts | 4 ++++
  1 file changed, 4 insertions(+)
arch/arm/boot/dts/stm32f769-disco.dts +0 -0
index 3c7216844a9b..6f1d0ac8c31c 100644

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