From: Tomasz Figa <tomasz.figa@gmail.com>
To: Rahul Sharma <r.sh.open@gmail.com>
Cc: Thomas Abraham <thomas.abraham@linaro.org>,
Rahul Sharma <rahul.sharma@samsung.com>,
linux-samsung-soc@vger.kernel.org,
devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com,
inki.dae@samsung.com, joshi@samsung.com
Subject: Re: [PATCH 1/4] ARM: dts: add support for hdmi to exynos4
Date: Mon, 28 Jan 2013 19:48:21 +0100 [thread overview]
Message-ID: <1877374.JGtShV5Erp@flatron> (raw)
In-Reply-To: <CAPdUM4N0r0p5BOvtZ2urShkafiavdE-1jxbNZGCtEkecBDTGvg@mail.gmail.com>
On Monday 28 of January 2013 14:53:10 Rahul Sharma wrote:
> Hi Tomasz,
>
> On Mon, Jan 28, 2013 at 2:14 PM, Tomasz Figa <tomasz.figa@gmail.com>
wrote:
> > Hi Rahul,
> >
> > On Monday 28 of January 2013 12:25:27 Rahul Sharma wrote:
> >> Hi Thomas,
> >>
> >> On Fri, Jan 25, 2013 at 11:10 PM, Thomas Abraham
> >>
> >> <thomas.abraham@linaro.org> wrote:
> >> > On 25 January 2013 02:39, Rahul Sharma <rahul.sharma@samsung.com>
> >
> > wrote:
> >> >> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
> >> >>
> >> >> Conflicts:
> >> >> arch/arm/mach-exynos/mach-exynos4-dt.c
> >> >>
> >> >> ---
> >> >>
> >> >> arch/arm/boot/dts/exynos4.dtsi | 7 +++++++
> >> >> arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++
> >> >> 2 files changed, 9 insertions(+)
> >> >>
> >> >> diff --git a/arch/arm/boot/dts/exynos4.dtsi
> >> >> b/arch/arm/boot/dts/exynos4.dtsi index e1347fc..6c2c79d 100644
> >> >> --- a/arch/arm/boot/dts/exynos4.dtsi
> >> >> +++ b/arch/arm/boot/dts/exynos4.dtsi
> >> >> @@ -289,4 +289,11 @@
> >> >>
> >> >> interrupts = <0 34 0>;
> >> >>
> >> >> };
> >> >>
> >> >> };
> >> >>
> >> >> +
> >> >> + hdmi {
> >> >> + compatible = "samsung,exynos4-hdmi14";
> >> >> + reg = <0x12D00000 0x70000>;
> >> >> + interrupts = <0 95 0>;
> >> >> + hpd-gpio = <&gpx3 7 0xf 1 3>;
> >> >
> >> > This is using the older gpio dt bindings but exynos4 has started
> >> > using
> >> > the pinctrl bindings. So this is not sufficient to do the
> >> > pinmux/pinconfig settings on Exynos4.
> >> >
> >> > Thanks,
> >> > Thomas.
> >>
> >> I have chosen this as exynos5 DT using it in same way and parsed by
> >> common code in driver for exy4 and 5. Secondly, one-time initial
> >> configuration is sufficient for
> >> hdmi hpd-gpio. Please share your opinion.
> >
> > Exynos4 SoCs use pin control for pin mux configuration, which implies
> > different GPIO specifiers than what you used. On Exynos4 generic GPIO
> > specifiers are used:
> >
> > <&gpio-controller pin flags>
> >
> > As you can see, it does not contain pin mux configuration, which must
> > be
> > configured if special function is to be used. In case of EINTs and
> > input/output functions, they are configured automatically, respectively
> > by request_irq (with appropriate interrupt trigger flag) and
> > gpio_direction_*.
> >
> > Keep in mind that Exynos5 will be eventually moved to pin control as
> > well and its old GPIO bindings will be dropped as they are only
> > temporary.
> >
> > Best regards,
> > Tomasz
>
> Since Exynos5 pinctrl is not yet merged, either I need to add "hpd-
> gpio" in non-pinctrl way and keep the parsing code (in driver) same
> for exynos4 and 5, as I have done in posted patch. This is same for
> exynos5.
> Or, I need to parse gpio information in a two different manners for
> the two SoC series.
>
> It will remain as a special case till we have exynos5 pinctrl driver.
> IMO, above code looks better till I can provide same solution for both,
> exynos4 & exynos5.
Well, it might look better, but it is incorrect, so I don't see the point
of merging it. Please either provide a patch which handles Exynos4 properly
or wait until Exynos5 pin control support gets merged.
You can look at sdhci-s3c driver for an example how to handle multiple pin
mux configuration methods.
Best regards,
Tomasz
next prev parent reply other threads:[~2013-01-28 18:48 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 10:39 [PATCH 0/4] 0/4] ARM: dts: add support for hdmi to exynos4412 Rahul Sharma
2013-01-25 10:39 ` [PATCH 1/4] ARM: dts: add support for hdmi to exynos4 Rahul Sharma
[not found] ` <1359110384-28402-2-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-01-25 17:40 ` Thomas Abraham
2013-01-28 6:55 ` Rahul Sharma
2013-01-28 8:44 ` Tomasz Figa
2013-01-28 9:23 ` Rahul Sharma
2013-01-28 18:48 ` Tomasz Figa [this message]
2013-01-27 20:54 ` Sylwester Nawrocki
2013-01-28 6:19 ` Rahul Sharma
2013-01-29 20:42 ` Sylwester Nawrocki
2013-01-31 8:09 ` Rahul Sharma
2013-01-31 22:25 ` Kukjin Kim
2013-02-01 4:04 ` Rahul Sharma
2013-01-25 10:39 ` [PATCH 2/4] ARM: dts: add support for mixer " Rahul Sharma
2013-01-27 21:04 ` Sylwester Nawrocki
2013-01-28 6:44 ` Rahul Sharma
2013-01-28 8:38 ` Tomasz Figa
2013-01-29 20:15 ` Sylwester Nawrocki
2013-01-29 20:24 ` Sylwester Nawrocki
2013-01-31 8:33 ` Rahul Sharma
2013-01-25 10:39 ` [PATCH 3/4] ARM: dts: add support for hdmi-ddc to exynos4412-origen Rahul Sharma
2013-01-27 20:37 ` Sylwester Nawrocki
2013-01-25 10:39 ` [PATCH 4/4] ARM: dts: add support for hdmi-phy to exynos4412 Rahul Sharma
2013-01-27 20:43 ` [PATCH 0/4] 0/4] ARM: dts: add support for hdmi " 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=1877374.JGtShV5Erp@flatron \
--to=tomasz.figa@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=inki.dae@samsung.com \
--cc=joshi@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=r.sh.open@gmail.com \
--cc=rahul.sharma@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).