Skip to contentSkip to conversation

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

PATCH In review Philippe Cornu 1 participant 2 messages Jan 22, 2018 – Jan 25, 2018

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

PATCH 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.

---
Please apply "dt-bindings: display: stm32: correct clock-names in dsi panel example" before this patch.

Changes in v3: remove the note regarding swapped clock names
(now in a separate patch).
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 3eb1b48b47dd..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 = "pclk", "ref";
+			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
#1 lore raw

Hi,

in short: this patch is "CANCELLED" : )

There is no need to add the pixel clock as a mandatory property because now the clock value is ajusted in adjusted_mode.

Please have a look to patches:
- drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock
- drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

Hope it is better, comments are welcome

Many thanks,
Philippe :-)

Quoted 41 lines · Philippe Cornu

Add the DPI/RGB input pixel clock in mandatory properties because it really offers a better preciseness for timing computations.

---
Please apply "dt-bindings: display: stm32: correct clock-names in dsi panel example" before this patch.

Changes in v3: remove the note regarding swapped clock names
(now in a separate patch).
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 3eb1b48b47dd..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 = "pclk", "ref";
+			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";