From: Neil Armstrong Subject: Re: [PATCH v3 5/6] dt-bindings: display: stm32: Add DSI host driver Date: Tue, 6 Jun 2017 10:05:45 +0200 Message-ID: <6a0a8673-72f4-b253-b6cc-31b600ac5f13@baylibre.com> References: <1496414235-20098-1-git-send-email-philippe.cornu@st.com> <1496414235-20098-6-git-send-email-philippe.cornu@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1496414235-20098-6-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Philippe CORNU , Alexandre Torgue , Thierry Reding , David Airlie , Maxime Coquelin , Russell King , Mark Rutland , Rob Herring , Arnd Bergmann , Benjamin Gaignard , Yannick Fertre , Archit Taneja , Eric Anholt , Chris Zhong , Andrzej Hajda , Xinliang Liu , zourongrong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Xinwei Kong , Chen Feng , Mark Yao Cc: Mickael Reulier , Gabriel Fernandez , Vincent Abriou , Fabien Dessenne , Ludovic Barre , dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: dri-devel@lists.freedesktop.org Hi Philippe, On 06/02/2017 04:37 PM, Philippe CORNU wrote: > This patch adds documentation of device tree bindings for the STM32 > DSI host driver based on the Synopsys DW MIPI DSI bridge driver. > --- > .../devicetree/bindings/display/st,stm32-ltdc.txt | 83 +++++++++++++++++++++- > 1 file changed, 82 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.txt b/Documentation/devicetree/bindings/display/st,stm32-ltdc.txt > index 90a8459..4cd32bd 100644 > --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.txt > +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.txt > @@ -12,8 +12,39 @@ > Required nodes: > - Video port for RGB output. > > -Example: > +* STMicroelectronics STM32 dsi specific extensions to Synopsys DesignWare MIPI > + DSI host controller Why is "dsi" in low-case only here and below ? > > +The STMicroelectronics STM32 dsi driver uses the Synopsys DesignWare MIPI > +DSI host controller driver (related documentation in [5]). > + > +Required properties: > +- #address-cells: Should be <1>. > +- #size-cells: Should be <0>. > +- compatible: "st,stm32-dsi". > +- reg: Memory mapped base address and length of the DWC MIPI DSI registers. > +- clocks: References to all the clocks specified in the clock-names property > + as specified in [1]. > +- clock-names: > + - peripheral clock string name, must be "pclk". > + - phy pll reference clock string name, must be "ref". > +- resets: References to all the resets specified in the reset-names property > + as specified in [2]. > +- reset-names: string reset name, must be "apb". > + > +Required nodes: > +- dsi input port node: connected to the ltdc rgb output port, see [3] & [4]. > +- panel or bridge node: see [6]. > + > +Note: You can find more documentation > +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt > +[2] Documentation/devicetree/bindings/reset/reset.txt > +[3] Documentation/devicetree/bindings/media/video-interfaces.txt > +[4] Documentation/devicetree/bindings/graph.txt > +[5] Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt > +[6] Documentation/devicetree/bindings/display/mipi-dsi-bus.txt > + > +Example 1: RGB panel > / { > ... > soc { > @@ -33,3 +64,53 @@ Example: > }; > }; > }; > + > +Example 2: DSI panel > + > +/ { > + ... > + soc { > + ... > + ltdc: display-controller@40016800 { > + compatible = "st,stm32-ltdc"; > + reg = <0x40016800 0x200>; > + interrupts = <88>, <89>; > + resets = <&rcc STM32F4_APB2_RESET(LTDC)>; > + clocks = <&rcc 1 CLK_LCD>; > + clock-names = "lcd"; > + > + port { > + ltdc_out_dsi: endpoint { > + remote-endpoint = <&dsi_in>; > + }; > + }; > + }; > + > + > + dsi: dsi@40016c00 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-dsi"; > + reg = <0x40016c00 0x800>; > + clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>; > + clock-names = "ref", "pclk"; > + resets = <&rcc STM32F4_APB2_RESET(DSI)>; > + reset-names = "apb"; > + > + port { > + dsi_in: endpoint { > + remote-endpoint = <<dc_out_dsi>; > + }; > + }; > + > + panel-dsi@0 { > + reg = <0>; /* dsi virtual channel (0..3) */ > + compatible = ...; > + enable-gpios = ...; > + > + }; > + > + }; > + > + }; > +}; > Apart from that : Reviewed-by: Neil Armstrong -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html