From: Rob Herring <robh@kernel.org>
To: Philippe CORNU <philippe.cornu@st.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Neil Armstrong <narmstrong@baylibre.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
Thierry Reding <thierry.reding@gmail.com>,
Chris Zhong <zyw@rock-chips.com>,
Mickael REULIER <mickael.reulier@st.com>,
Russell King <linux@armlinux.org.uk>,
Fabien DESSENNE <fabien.dessenne@st.com>,
Xinwei Kong <kong.kongxinwei@hisilicon.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Alexandre TORGUE <alexandre.torgue@st.com>,
Arnd Bergmann <arnd@arndb.de>,
Chen Feng <puck.chen@hisilicon.com>,
Vincent ABRIOU <vincent.abriou@st.com>,
Ludovic BARRE <ludovic.barre@st.com>,
Yannick FERTRE <yannick.fertre@st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
"zourongrong@gmail.com" <zourongrong@gmail.com>,
Gabriel FERNANDEZ <gabriel.f>
Subject: Re: [PATCH v3 2/6] dt-bindings: display: Add Synopsys DW MIPI DSI DRM bridge driver
Date: Fri, 23 Jun 2017 16:24:46 -0500 [thread overview]
Message-ID: <CAL_JsqLPzoMNMhMuuvwLPRhxXgFOBroMhB8sG0zm-ofLt0AZhQ@mail.gmail.com> (raw)
In-Reply-To: <c939ea5e-1c45-72af-0a0b-1f89fffa8c87@st.com>
On Mon, Jun 19, 2017 at 11:51 AM, Philippe CORNU <philippe.cornu@st.com> wrote:
> On 06/08/2017 05:40 PM, Rob Herring wrote:
>> On Fri, Jun 02, 2017 at 04:37:11PM +0200, Philippe CORNU wrote:
>>> This patch adds documentation of device tree bindings for the
>>> Synopsys DesignWare MIPI DSI host DRM bridge driver.
>>>
>>> Signed-off-by: Philippe CORNU <philippe.cornu@st.com>
>>> ---
>>> .../bindings/display/bridge/dw_mipi_dsi.txt | 30 ++++++++++++++++++++++
>>> 1 file changed, 30 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt b/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
>>> new file mode 100644
>>> index 0000000..1d7c438
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
>>> @@ -0,0 +1,30 @@
>>> +Synopsys DesignWare MIPI DSI host controller
>>> +============================================
>>> +
>>> +This document defines device tree properties for the Synopsys DesignWare MIPI
>>> +DSI host controller. It doesn't constitue a device tree binding specification
>>> +by itself but is meant to be referenced by platform-specific device tree
>>> +bindings.
>>> +
>>> +When referenced from platform device tree bindings the properties defined in
>>> +this document are defined as follows. The platform device tree bindings are
>>> +responsible for defining whether each property is required or optional.
>>> +
>>> +- reg: Memory mapped base address and length of the DWC MIPI DSI
>>> + registers. (mandatory)
>>> +
>>> +- clocks: References to all the clocks specified in the clock-names property
>>> + as specified in [1]. (mandatory)
>>> +
>>> +- clock-names: "pclk" is peripheral clock for either AHB and APB. (mandatory)
>>
>> Seems strange there's not also a pixel or bit clock? Or this gets driven
>> from the phy?
>>
> Hi Rob,
> And many thanks for your comments :)
>
> There is a "physical" pixel clock entering into the "DSI controller IP"
> but the "DSI controller driver" does not need to control (or read) it
> with the dt because this clock information (the frequency) is also
> available in panel timings and the drm/kms framework will propagate the
> panel timings in the drm/kms "crtc/encoder/bridge&panel/connector..."
> chain. Then, the DSI controller driver will compute phy parameters
> according to these panel timings.
> Adding a pixel clock dependency in the dt here is then not necessary as
> the frequency information comes through the panel timings.
Even if the Linux driver doesn't currently need to control the pixel
clock it should still be defined in the binding. Bindings are what you
physically have, not just what the driver needs or doesn't need.
Rob
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-06-23 21:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-02 14:37 [PATCH v3 0/6] STM32 DSI HOST Philippe CORNU
2017-06-02 14:37 ` [PATCH v3 2/6] dt-bindings: display: Add Synopsys DW MIPI DSI DRM bridge driver Philippe CORNU
[not found] ` <1496414235-20098-3-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org>
2017-06-06 8:00 ` Neil Armstrong
2017-06-08 15:40 ` Rob Herring
2017-06-09 4:11 ` Archit Taneja
[not found] ` <7502cbc2-9feb-4dd3-3d95-b5f33b8a8872-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-06-09 9:43 ` Jose Abreu
[not found] ` <7dd31d6d-1d5d-2432-07aa-96349f50c924-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2017-06-09 13:01 ` Rob Herring
2017-06-11 5:58 ` Archit Taneja
2017-06-19 16:51 ` Philippe CORNU
2017-06-23 21:24 ` Rob Herring [this message]
[not found] ` <1496414235-20098-1-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org>
2017-06-02 14:37 ` [PATCH v3 1/6] drm/stm: ltdc: Add panel-bridge support Philippe CORNU
2017-06-02 20:41 ` Eric Anholt
2017-06-03 16:43 ` kbuild test robot
2017-06-02 14:37 ` [PATCH v3 3/6] drm/bridge/synopsys: Add MIPI DSI host controller bridge Philippe CORNU
[not found] ` <1496414235-20098-4-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org>
2017-06-06 8:07 ` Neil Armstrong
2017-06-09 5:21 ` Archit Taneja
2017-06-02 14:37 ` [PATCH v3 4/6] dt-bindings: display: stm32: remove st-display-subsystem parent node requirement Philippe CORNU
[not found] ` <1496414235-20098-5-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org>
2017-06-06 8:02 ` Neil Armstrong
2017-06-08 17:01 ` Rob Herring
2017-06-02 14:37 ` [PATCH v3 5/6] dt-bindings: display: stm32: Add DSI host driver Philippe CORNU
[not found] ` <1496414235-20098-6-git-send-email-philippe.cornu-qxv4g6HH51o@public.gmane.org>
2017-06-06 8:05 ` Neil Armstrong
2017-06-08 17:12 ` Rob Herring
2017-06-19 16:58 ` Philippe CORNU
2017-06-02 14:37 ` [PATCH v3 6/6] drm/stm: Add STM32 " Philippe CORNU
2017-06-06 8:11 ` Neil Armstrong
[not found] ` <e1872ac0-c0e0-b615-4b5e-d45d9ae96f85-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2017-06-09 5:31 ` Archit Taneja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL_JsqLPzoMNMhMuuvwLPRhxXgFOBroMhB8sG0zm-ofLt0AZhQ@mail.gmail.com \
--to=robh@kernel.org \
--cc=alexandre.torgue@st.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=fabien.dessenne@st.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=ludovic.barre@st.com \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mickael.reulier@st.com \
--cc=narmstrong@baylibre.com \
--cc=philippe.cornu@st.com \
--cc=puck.chen@hisilicon.com \
--cc=thierry.reding@gmail.com \
--cc=vincent.abriou@st.com \
--cc=yannick.fertre@st.com \
--cc=zourongrong@gmail.com \
--cc=zyw@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).