Skip to contentSkip to conversation

arm: dt-bindings: mfd: stm32f-rcc: Add missing DSI clock

PATCH Superseded Adrian Pop 2 participants 4 messages Apr 24, 2020 – Apr 28, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Adrian Pop

author
#0 lore raw

PATCH 1/2 arm: dt-bindings: mfd: stm32f-rcc: Add missing DSI clock

Add missing clock.

---
 include/dt-bindings/mfd/stm32f7-rcc.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/mfd/stm32f7-rcc.h +1 -0
index a90f3613c584..ba5cb7456ee4 100644
@@ -107,6 +107,7 @@
 #define STM32F7_RCC_APB2_SAI1		22
 #define STM32F7_RCC_APB2_SAI2		23
 #define STM32F7_RCC_APB2_LTDC		26
+#define STM32F7_RCC_APB2_DSI		27
 
 #define STM32F7_APB2_RESET(bit)	(STM32F7_RCC_APB2_##bit + (0x24 * 8))
 #define STM32F7_APB2_CLOCK(bit)	(STM32F7_RCC_APB2_##bit + 0xA0)
Signature · 1 line
2.26.2
#1 lore raw
Quoted 6 lines · Adrian Pop

Add missing clock.

---
 include/dt-bindings/mfd/stm32f7-rcc.h | 1 +
 1 file changed, 1 insertion(+)

I assume patch 2 depends on this?

If so, where is it? Why isn't it in my inbox?

Quoted 12 lines
include/dt-bindings/mfd/stm32f7-rcc.h +1 -0
index a90f3613c584..ba5cb7456ee4 100644
@@ -107,6 +107,7 @@
 #define STM32F7_RCC_APB2_SAI1		22
 #define STM32F7_RCC_APB2_SAI2		23
 #define STM32F7_RCC_APB2_LTDC		26
+#define STM32F7_RCC_APB2_DSI		27
 
 #define STM32F7_APB2_RESET(bit)	(STM32F7_RCC_APB2_##bit + (0x24 * 8))
 #define STM32F7_APB2_CLOCK(bit)	(STM32F7_RCC_APB2_##bit + 0xA0)
Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
author
#2 lore raw
Quoted 11 lines · Lee Jones
Quoted 6 lines · Adrian Pop

Add missing clock.

---
 include/dt-bindings/mfd/stm32f7-rcc.h | 1 +
 1 file changed, 1 insertion(+)

I assume patch 2 depends on this?

Yes, second patch depends on this.

Quoted 3 lines

If so, where is it? Why isn't it in my inbox?

Here it is:

STM32f769-disco features a 4" MIPI DSI display: add support for it.

---
 arch/arm/boot/dts/stm32f746.dtsi      | 34 ++++++++++++++++++
 arch/arm/boot/dts/stm32f769-disco.dts | 50 +++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)
arch/arm/boot/dts/stm32f746.dtsi +34 -0
index 93c063796780..202bb6edc9f1 100644
@@ -48,6 +48,19 @@ / {
        #address-cells = <1>;
        #size-cells = <1>;
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               linux,dma {
+                       compatible = "shared-dma-pool";
+                       linux,dma-default;
+                       no-map;
+                       size = <0x10F000>;
+               };
+       };
+
        clocks {
                clk_hse: clk-hse {
                        #clock-cells = <0>;
@@ -75,6 +88,27 @@ clk_i2s_ckin: clk-i2s-ckin {
        };
 
        soc {
+               ltdc: display-controller@40016800 {
+                       compatible = "st,stm32-ltdc";
+                       reg = <0x40016800 0x200>;
+                       interrupts = <88>, <89>;
+                       resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
+                       clocks = <&rcc 1 CLK_LCD>;
+                       clock-names = "lcd";
+                       status = "disabled";
+               };
+
+               dsi: dsi@40016c00 {
+                       compatible = "st,stm32-dsi";
+                       reg = <0x40016c00 0x800>;
+                       interrupts = <98>;
+                       clocks = <&rcc 1 CLK_F769_DSI>, <&clk_hse>;
+                       clock-names = "pclk", "ref";
+                       resets = <&rcc STM32F7_APB2_RESET(DSI)>;
+                       reset-names = "apb";
+                       status = "disabled";
+               };
+
                timer2: timer@40000000 {
                        compatible = "st,stm32-timer";
                        reg = <0x40000000 0x400>;
(quoted diff) +0 -0

b/arch/arm/boot/dts/stm32f769-disco.dts
index 1626e00bb2cb..30ebbc193e82 100644

arch/arm/boot/dts/stm32f769-disco.dts +50 -0

53 lines not on this page · raw message

--

Quoted 18 lines

include/dt-bindings/mfd/stm32f7-rcc.h line 113

Quoted 12 lines
include/dt-bindings/mfd/stm32f7-rcc.h +1 -0
index a90f3613c584..ba5cb7456ee4 100644
@@ -107,6 +107,7 @@
 #define STM32F7_RCC_APB2_SAI1                22
 #define STM32F7_RCC_APB2_SAI2                23
 #define STM32F7_RCC_APB2_LTDC                26
+#define STM32F7_RCC_APB2_DSI         27
 
 #define STM32F7_APB2_RESET(bit)      (STM32F7_RCC_APB2_##bit + (0x24 * 8))
 #define STM32F7_APB2_CLOCK(bit)      (STM32F7_RCC_APB2_##bit + 0xA0)

--
Lee Jones [李琼斯]
Linaro Services Technical Lead

Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Quoted 32 lines · Lee Jones
Quoted 6 lines · Adrian Pop

Add missing clock.

---
 include/dt-bindings/mfd/stm32f7-rcc.h | 1 +
 1 file changed, 1 insertion(+)

I assume patch 2 depends on this?

If so, where is it? Why isn't it in my inbox?

include/dt-bindings/mfd/stm32f7-rcc.h line 113

Quoted 12 lines
include/dt-bindings/mfd/stm32f7-rcc.h +1 -0
index a90f3613c584..ba5cb7456ee4 100644
@@ -107,6 +107,7 @@
 #define STM32F7_RCC_APB2_SAI1                22
 #define STM32F7_RCC_APB2_SAI2                23
 #define STM32F7_RCC_APB2_LTDC                26
+#define STM32F7_RCC_APB2_DSI         27
 
 #define STM32F7_APB2_RESET(bit)      (STM32F7_RCC_APB2_##bit + (0x24 * 8))
 #define STM32F7_APB2_CLOCK(bit)      (STM32F7_RCC_APB2_##bit + 0xA0)

--
Lee Jones [李琼斯]
Linaro Services Technical Lead

Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#3 lore raw
Quoted 21 lines · Adrian Pop
Quoted 11 lines · Lee Jones
Quoted 6 lines · Adrian Pop

Add missing clock.

---
 include/dt-bindings/mfd/stm32f7-rcc.h | 1 +
 1 file changed, 1 insertion(+)

I assume patch 2 depends on this?

Yes, second patch depends on this.

Quoted 3 lines

If so, where is it? Why isn't it in my inbox?

Here it is:

Quoted 7 lines

STM32f769-disco features a 4" MIPI DSI display: add support for it.

---
 arch/arm/boot/dts/stm32f746.dtsi      | 34 ++++++++++++++++++
 arch/arm/boot/dts/stm32f769-disco.dts | 50 +++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

When you resubmit this, please add all recipients to all patches.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog