From: Todor Tomov <todor.tomov@linaro.org>
To: Rob Herring <robh@kernel.org>
Cc: mchehab@kernel.org, laurent.pinchart+renesas@ideasonboard.com,
hans.verkuil@cisco.com, javier@osg.samsung.com,
s.nawrocki@samsung.com, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, mark.rutland@arm.com,
devicetree@vger.kernel.org, bjorn.andersson@linaro.org,
srinivas.kandagatla@linaro.org
Subject: Re: [PATCH 01/10] doc: DT: camss: Binding document for Qualcomm Camera subsystem driver
Date: Mon, 19 Jun 2017 14:56:13 +0300 [thread overview]
Message-ID: <c60a52a5-d4ce-ba77-4455-220021df0dd2@linaro.org> (raw)
In-Reply-To: <58739F2D.5020607@linaro.org>
Hi Rob,
On 01/09/2017 04:33 PM, Todor Tomov wrote:
> Hi Rob,
>
> Happy new year,
> And thank you for the review.
>
> On 12/01/2016 12:03 AM, Rob Herring wrote:
>> On Fri, Nov 25, 2016 at 04:56:53PM +0200, Todor Tomov wrote:
>>> Add DT binding document for Qualcomm Camera subsystem driver.
>>>
>>> Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
>>> ---
>>> .../devicetree/bindings/media/qcom,camss.txt | 196 +++++++++++++++++++++
>>> 1 file changed, 196 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/media/qcom,camss.txt
>>>
>>> diff --git a/Documentation/devicetree/bindings/media/qcom,camss.txt b/Documentation/devicetree/bindings/media/qcom,camss.txt
>>> new file mode 100644
>>> index 0000000..76ad89a
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/media/qcom,camss.txt
>>> @@ -0,0 +1,196 @@
>>> +Qualcomm Camera Subsystem
>>> +
>>> +* Properties
>>> +
>>> +- compatible:
>>> + Usage: required
>>> + Value type: <stringlist>
>>> + Definition: Should contain:
>>> + - "qcom,8x16-camss"
>>
>> Don't use wildcards in compatible strings. One string per SoC.
>
> Ok, I'll fix this.
>
>>
>>> +- reg:
>>> + Usage: required
>>> + Value type: <prop-encoded-array>
>>> + Definition: Register ranges as listed in the reg-names property.
>>> +- reg-names:
>>> + Usage: required
>>> + Value type: <stringlist>
>>> + Definition: Should contain the following entries:
>>> + - "csiphy0"
>>> + - "csiphy0_clk_mux"
>>> + - "csiphy1"
>>> + - "csiphy1_clk_mux"
>>> + - "csid0"
>>> + - "csid1"
>>> + - "ispif"
>>> + - "csi_clk_mux"
>>> + - "vfe0"
>>
>> Kind of looks like the phy's should be separate nodes since each phy has
>> its own register range, irq, clocks, etc.
>
> Yes, there are a lot of hardware resources here.
> I have decided to keep everything into a single platform device as this
> represents it better from system point of view.
>
Following this patch,
- following the short discussion which we had on Linaro Connect,
- following some evaluation of the possibilities,
I'd like to try to keep it as a single node. Some of the resources are separate
and so appear to be the clocks too but actually there are dependencies across the
hardware modules for clocks of their adjacent modules. In addition there
are configuration dependencies across the hardware modules - e.g. on a CSID module
a CSIPHY module's id needs to be set (and vice-versa), on a CSID module the
csi lane positions need to be set and so on. So I think a single driver to
handle this (and thus a single dt node) makes more sense. I'm preparing a
v2 of the patch set and will send it shortly.
--
Best regards,
Todor Tomov
prev parent reply other threads:[~2017-06-19 11:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-25 14:56 Todor Tomov
2016-11-30 22:03 ` Rob Herring
2017-01-09 14:33 ` Todor Tomov
2017-06-19 11:56 ` Todor Tomov [this message]
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=c60a52a5-d4ce-ba77-4455-220021df0dd2@linaro.org \
--to=todor.tomov@linaro.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hans.verkuil@cisco.com \
--cc=javier@osg.samsung.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=srinivas.kandagatla@linaro.org \
/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
all inboxes | Powered by JetHome®