From: Grant Likely <grant.likely@secretlab.ca>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: linux-media@vger.kernel.org, g.liakhovetski@gmx.de,
rob.herring@calxeda.com, thomas.abraham@linaro.org,
t.figa@samsung.com, sw0312.kim@samsung.com,
kyungmin.park@samsung.com, devicetree-discuss@lists.ozlabs.org,
linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH RFC 01/12] s5p-csis: Add device tree support
Date: Tue, 11 Dec 2012 16:55:50 +0000 [thread overview]
Message-ID: <20121211165550.14BDD3E0C3E@localhost> (raw)
In-Reply-To: <50C717E7.10801@samsung.com>
On Tue, 11 Dec 2012 12:24:23 +0100, Sylwester Nawrocki <s.nawrocki@samsung.com> wrote:
> Hello Grant,
>
> On 12/11/2012 09:36 AM, Grant Likely wrote:
> > On Mon, 10 Dec 2012 20:45:55 +0100, Sylwester Nawrocki <s.nawrocki@samsung.com> wrote:
> >> s5p-csis is platform device driver for MIPI-CSI frontend to the FIMC
> >> (camera host interface DMA engine and image processor). This patch
> >> adds support for instantiating the MIPI-CSIS devices from DT and
> >> parsing all SoC and board specific properties from device tree.
> >>
> >> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >> ---
> >> .../bindings/media/soc/samsung-mipi-csis.txt | 82 +++++++++++
> >> drivers/media/platform/s5p-fimc/mipi-csis.c | 155 +++++++++++++++-----
> >> drivers/media/platform/s5p-fimc/mipi-csis.h | 1 +
> >> 3 files changed, 202 insertions(+), 36 deletions(-)
> >> create mode 100644 Documentation/devicetree/bindings/media/soc/samsung-mipi-csis.txt
> >>
> >> diff --git a/Documentation/devicetree/bindings/media/soc/samsung-mipi-csis.txt b/Documentation/devicetree/bindings/media/soc/samsung-mipi-csis.txt
> >> new file mode 100644
> >> index 0000000..f57cbdc
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/media/soc/samsung-mipi-csis.txt
> >> @@ -0,0 +1,82 @@
> >> +Samsung S5P/EXYNOS SoC MIPI-CSI2 receiver (MIPI CSIS)
> >> +-----------------------------------------------------
> >> +
> >> +Required properties:
> >> +
> >> +- compatible : "samsung,s5pv210-csis" for S5PV210 SoCs,
> >> + "samsung,exynos4210-csis" for Exynos4210 and later SoCs;
> >> +- reg : physical base address and size of the device memory mapped
> >> + registers;
> >> +- interrupts : should contain MIPI CSIS interrupt; the format of the
> >> + interrupt specifier depends on the interrupt controller;
> >> +- max-data-lanes : maximum number of data lanes supported (SoC specific);
> >> +- vddio-supply : MIPI CSIS I/O and PLL voltage supply (e.g. 1.8V);
> >> +- vddcore-supply : MIPI CSIS Core voltage supply (e.g. 1.1V).
> >> +
> >> +Optional properties:
> >> +
> >> +- clock-frequency : The IP's main (system bus) clock frequency in Hz, default
> >> + value when this property is not specified is 166 MHz;
> >> +- samsung,csis,wclk : CSI-2 wrapper clock selection. If this property is present
> >> + external clock from CMU will be used, if not bus clock will
> >> + be selected.
> >> +
> >> +The device node should contain one 'port' child node with one child 'endpoint'
> >> +node, as outlined in the common media bindings specification. See
> >> +Documentation/devicetree/bindings/media/v4l2.txt for details. The following are
> >> +properties specific to those nodes. (TODO: update the file path)
> >> +
> >> +port node
> >> +---------
> >> +
> >> +- reg : (required) must be 2 for camera C input (CSIS0) or 3 for
> >> + camera D input (CSIS1);
> >
> > 'reg' has a very specific definition. If you're going to use a reg
> > property here, then the parent nodes need to have
> > #address-cells=<1>;#size-cells=<0>; properties to define the address
> > specifier format.
> >
> > However since you're identifying port numbers that aren't really
> > addresses I would suggest simply changing this property to something
> > like 'port-num'.
> >
> > Otherwise the binding looks good.
>
> Thank you for the review. Indeed I should have said about #address-cells,
> #size-cells here. I thought using 'reg' was agreed during previous discussions
> on the mailing lists (e.g. [1]), so I just carried on with 'reg'.
> I should just have addressed the comments from Stephen and Rob, instead of
> just resending same version of the documentation. I'll try to take care of
> it in the next post. i.e. rename 'link' node to 'endpoint' and 'remote'
> phandle to 'remote-endpoint'.
Could be. I can't remember what has been discussed from one day to the
next. :-) If you've got #address/#size-cells in the binding, then reg is
fine. If that's what you've already got, then just leave it. As long as
the conventions are intact.
g.
next prev parent reply other threads:[~2012-12-11 16:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 19:45 [PATCH RFC 00/12] Device tree support for Exynos4 SoC camera drivers Sylwester Nawrocki
2012-12-10 19:45 ` [PATCH RFC 01/12] s5p-csis: Add device tree support Sylwester Nawrocki
2012-12-11 8:36 ` Grant Likely
2012-12-11 11:24 ` Sylwester Nawrocki
2012-12-11 16:55 ` Grant Likely [this message]
2012-12-10 19:45 ` [PATCH RFC 02/12] s5p-fimc: Add device tree support for FIMC devices Sylwester Nawrocki
[not found] ` <1355168766-6068-1-git-send-email-s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-12-10 19:45 ` [PATCH RFC 03/12] s5p-fimc: Add device tree support for FIMC-LITE Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 06/12] s5p-fimc: Use pinctrl API for camera ports configuration Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 07/12] ARM: EXYNOS4: Add OF_DEV_AUXDATA for FIMC, FIMC-LITE and CSIS Sylwester Nawrocki
2012-12-10 19:45 ` [PATCH RFC 04/12] s5p-fimc: Instantiate media device from device tree Sylwester Nawrocki
2012-12-10 19:45 ` [PATCH RFC 05/12] s5p-fimc: Add device tree based sensors registration Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 08/12] ARM: dts: Add camera node exynos4.dtsi Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 09/12] ARM: dts: Add ISP power domain node for Exynos4x12 Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 10/12] ARM: dts: Add FIMC and MIPI CSIS device nodes " Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 11/12] ARM: dts: Add camera pinctrl nodes for Exynos4x12 SoCs Sylwester Nawrocki
2012-12-10 19:46 ` [PATCH RFC 12/12] ARM: dts: Add camera device nodes nodes for PQ board Sylwester Nawrocki
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=20121211165550.14BDD3E0C3E@localhost \
--to=grant.likely@secretlab.ca \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=g.liakhovetski@gmx.de \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=rob.herring@calxeda.com \
--cc=s.nawrocki@samsung.com \
--cc=sw0312.kim@samsung.com \
--cc=t.figa@samsung.com \
--cc=thomas.abraham@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;
as well as URLs for NNTP newsgroup(s).