Skip to contentSkip to conversation

dt-bindings: display: stm32: add pixel clock mandatory property

PATCH In review Philippe Cornu 2 participants 3 messages Jan 12, 2018 – Jan 21, 2018

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

PATCH v2 1/1 dt-bindings: display: stm32: add pixel clock mandatory property

Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations.
Note: Fix also the DSI panel example where "ref" & "pclk" clocks were swapped.

---
Changes in v2: put new clock in last position (Rob Herring)

 Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +4 -2
index 029252253ad4..942b7237ae87 100644
@@ -29,6 +29,7 @@ Mandatory properties specific to STM32 DSI:
 - compatible: "st,stm32-dsi".
 - clock-names:
   - phy pll reference clock string name, must be "ref".
+  - DPI/RGB input pixel clock string name, must be "px_clk".
 - resets: see [5].
 - reset-names: see [5].
 
@@ -97,8 +98,9 @@ Example 2: DSI panel
 			#size-cells = <0>;
 			compatible = "st,stm32-dsi";
 			reg = <0x40016c00 0x800>;
-			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>;
-			clock-names = "ref", "pclk";
+			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>,
+				 <&rcc 1 CLK_LCD>;
+			clock-names = "pclk", "ref", "px_clk";
 			resets = <&rcc STM32F4_APB2_RESET(DSI)>;
 			reset-names = "apb";
 
Signature · 1 line
2.15.1
maintainer
#1 lore raw
Quoted 26 lines · Philippe Cornu

Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations.
Note: Fix also the DSI panel example where "ref" & "pclk" clocks were swapped.

---
Changes in v2: put new clock in last position (Rob Herring)

 Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +1 -0
index 029252253ad4..942b7237ae87 100644
@@ -29,6 +29,7 @@ Mandatory properties specific to STM32 DSI:
 - compatible: "st,stm32-dsi".
 - clock-names:
   - phy pll reference clock string name, must be "ref".
+  - DPI/RGB input pixel clock string name, must be "px_clk".
 - resets: see [5].
 - reset-names: see [5].
 

Documentation/devicetree/bindings/display/st,stm32-ltdc.txt Example 2: DSI panel · line 103

Quoted 8 lines
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +3 -2
@@ -97,8 +98,9 @@ Example 2: DSI panel
 			#size-cells = <0>;
 			compatible = "st,stm32-dsi";
 			reg = <0x40016c00 0x800>;
-			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>;
-			clock-names = "ref", "pclk";
+			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>,
+				 <&rcc 1 CLK_LCD>;
+			clock-names = "pclk", "ref", "px_clk";

You have the existing names reversed here.

Quoted 6 lines
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +0 -0
 			resets = <&rcc STM32F4_APB2_RESET(DSI)>;
 			reset-names = "apb";
 
Signature · 1 line
2.15.1
#2 lore raw

Hi Rob,

Quoted 26 lines · Rob Herring
Quoted 25 lines · Philippe Cornu

Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations.
Note: Fix also the DSI panel example where "ref" & "pclk" clocks were swapped.

---
Changes in v2: put new clock in last position (Rob Herring)

  Documentation/devicetree/bindings/display/st,stm32-ltdc.txt | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +1 -0
index 029252253ad4..942b7237ae87 100644
@@ -29,6 +29,7 @@ Mandatory properties specific to STM32 DSI:
  - compatible: "st,stm32-dsi".
  - clock-names:
    - phy pll reference clock string name, must be "ref".
+  - DPI/RGB input pixel clock string name, must be "px_clk".
  - resets: see [5].
  - reset-names: see [5].
 
Quoted 11 lines

Documentation/devicetree/bindings/display/st,stm32-ltdc.txt Example 2: DSI panel · line 103

Quoted 9 lines
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +3 -2
@@ -97,8 +98,9 @@ Example 2: DSI panel
  			#size-cells = <0>;
  			compatible = "st,stm32-dsi";
  			reg = <0x40016c00 0x800>;
-			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>;
-			clock-names = "ref", "pclk";
+			clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>,
+				 <&rcc 1 CLK_LCD>;
+			clock-names = "pclk", "ref", "px_clk";

You have the existing names reversed here.

And many thanks for your review.

Names are "reversed" as explained in the note in the commit message.

Well, maybe the note is not clear enough... So I have just sent 2 separate patches that I hope will be better to understand.

Many thanks,
Philippe : )

Quoted 12 lines
Quoted 7 lines
Documentation/devicetree/bindings/display/st,stm32-ltdc.txt +0 -0
  			resets = <&rcc STM32F4_APB2_RESET(DSI)>;
  			reset-names = "apb";
 
Signature · 1 line
2.15.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel