From: Sakari Ailus <sakari.ailus@iki.fi>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: "Ramiro Oliveira" <Ramiro.Oliveira@synopsys.com>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
CARLOS.PALMINHA@synopsys.com,
"Andrew Morton" <akpm@linux-foundation.org>,
"Arnd Bergmann" <arnd@arndb.de>, "Benoit Parrot" <bparrot@ti.com>,
"David S. Miller" <davem@davemloft.net>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Hans Verkuil" <hans.verkuil@cisco.com>,
"Hugues Fruchet" <hugues.fruchet@st.com>,
"Jean-Christophe Trotin" <jean-christophe.trotin@st.com>,
"Kieran Bingham" <kieran+renesas@ksquared.org.uk>,
"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Minghsiu Tsai" <minghsiu.tsai@mediatek.com>,
"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
"Peter Griffin" <peter.griffin@linaro.org>,
"Rick Chang" <rick.chang@mediatek.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Simon Horman" <simon.horman@netronome.com>,
"Songjun Wu" <songjun.wu@microchip.com>,
"Tiffany Lin" <tiffany.lin@mediatek.com>
Subject: Re: [PATCH 2/4] media: platform: dwc: Support for DW CSI-2 Host
Date: Wed, 17 May 2017 11:25:50 +0300 [thread overview]
Message-ID: <20170517082550.GS3227@valkosipuli.retiisi.org.uk> (raw)
In-Reply-To: <16996e20-b636-800b-0edc-fa9cca7b4481@xs4all.nl>
Hi Hans,
On Wed, May 17, 2017 at 09:00:59AM +0200, Hans Verkuil wrote:
> Hi Sakari,
>
> Can you comment on this? You are much more a CSI sensor expert than I am.
Sure. Thanks for the ping.
>
> On 16/05/17 20:18, Ramiro Oliveira wrote:
> > Hi Hans,
> >
> > Thank you very much for your feedback.
> >
> > On 5/8/2017 11:38 AM, Hans Verkuil wrote:
> >> Hi Ramiro,
> >>
> >> My sincere apologies for the long delay in reviewing this. The good news is that
> >> I should have more time for reviews going forward, so I hope I'll be a lot quicker
> >> in the future.
> >>
> >> On 03/07/2017 03:37 PM, Ramiro Oliveira wrote:
>
> <snip>
>
> >>> + if (mf->width == bt->width && mf->height == bt->width) {
> >>
> >> This is way too generic. There are many preset timings that have the same
> >> width and height but different blanking periods.
> >>
> >> I am really not sure how this is supposed to work. If you want to support
> >> HDMI here, then I would expect to see support for the s_dv_timings op and friends
> >> in this driver. And I don't see support for that in the host driver either.
> >>
> >> Is this a generic csi driver, or specific for hdmi? Or supposed to handle both?
> >
> > This is a generic CSI driver.
> >
> >>
> >> Can you give some background and clarification of this?
> >
> > This piece of code might seem strange but I'm just using it fill our controller
> > timing configuration.
> >
> > I don't have any specific requirements, but they should match, more or less, the
> > sensor configurations, so I decided to re-use the HDMI blanking values, since,
> > usually, they match with the sensor configurations
> >
> > So, my intention is to check if there is any HDMI preset that matches the
> > required width and height, and then use the blanking values to configure our
> > controller. I know this might not be very common, and I'm open to use different
> > approaches, but from my perspective it seems to work fine.
What kind of timing information do you need to configure the receiver?
If you pick a random HDMI configuration it can't be expected to match an
unrelated configuration of a sensor. Generally CSI-2 bus frequency, number
of lanes and horizontal and vertical blanking are enough to calculate what
the hardware needs regarding timing. The received image size is necessary
for other purposes.
Do you see that you'd need something else in addition to that?
--
Sakari Ailus
e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
next prev parent reply other threads:[~2017-05-17 8:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 14:37 [PATCH 0/4] Support for Synopsys " Ramiro Oliveira
2017-03-07 14:37 ` [PATCH 1/4] Documentation: dt: Add bindings documentation for DW MIPI " Ramiro Oliveira
2017-03-15 18:26 ` Rob Herring
2017-05-16 17:55 ` Ramiro Oliveira
2017-03-07 14:37 ` [PATCH 2/4] media: platform: dwc: Support for DW " Ramiro Oliveira
2017-05-08 10:38 ` Hans Verkuil
2017-05-16 18:18 ` Ramiro Oliveira
2017-05-17 7:00 ` Hans Verkuil
2017-05-17 8:25 ` Sakari Ailus [this message]
2017-03-07 14:37 ` [PATCH 3/4] Documentation: dt: Add bindings documentation for CSI-2 Host Video Platform Ramiro Oliveira
2017-03-08 13:18 ` Sakari Ailus
2017-05-16 18:02 ` Ramiro Oliveira
2017-03-15 18:35 ` Rob Herring
2017-05-16 18:05 ` Ramiro Oliveira
2017-03-07 14:37 ` [PATCH 4/4] media: platform: dwc: Support for CSI-2 Host video platform Ramiro Oliveira
2017-05-16 21:48 ` [PATCH 0/4] Support for Synopsys DW CSI-2 Host Sakari Ailus
2017-05-17 11:47 ` Mauro Carvalho Chehab
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=20170517082550.GS3227@valkosipuli.retiisi.org.uk \
--to=sakari.ailus@iki.fi \
--cc=CARLOS.PALMINHA@synopsys.com \
--cc=Ramiro.Oliveira@synopsys.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=bparrot@ti.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=gregkh@linuxfoundation.org \
--cc=hans.verkuil@cisco.com \
--cc=hugues.fruchet@st.com \
--cc=hverkuil@xs4all.nl \
--cc=jean-christophe.trotin@st.com \
--cc=kieran+renesas@ksquared.org.uk \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.com \
--cc=mchehab@kernel.org \
--cc=minghsiu.tsai@mediatek.com \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=peter.griffin@linaro.org \
--cc=rick.chang@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=simon.horman@netronome.com \
--cc=songjun.wu@microchip.com \
--cc=tiffany.lin@mediatek.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
all inboxes | Powered by JetHome®