Devicetree
 help / color / mirror / Atom feed
From: Tomasz Figa <t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: Kukjin Kim <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Cc: t.stanislaws-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jy0922.shim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	sw0312.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	joshi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	s.shirish-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	r.sh.open-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	prashanth.g-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	'Rahul Sharma'
	<rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH v3 1/6] dts: exynos: add device tree support for exynos5 hdmi
Date: Wed, 17 Oct 2012 13:49:38 +0200	[thread overview]
Message-ID: <1928447.6kgkcZq6oY@amdc1227> (raw)
In-Reply-To: <006101cdac5b$08e06ee0$1aa14ca0$%kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2327 bytes --]

Hi Rahul, Kgene,

On Wednesday 17 of October 2012 20:32:05 Kukjin Kim wrote:
> Rahul Sharma wrote:
> > This patch adds support for device tree based discovery for exynos5
> > hdmi. Hdmi node is also renamed with "exynos5-hdmi".
> > 
> > Signed-off-by: Rahul Sharma <rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> > ---
> > 
> >  .../devicetree/bindings/drm/exynos/hdmi.txt        |   22
> > 
> > ++++++++++++++++++++
> > 
> >  arch/arm/boot/dts/exynos5250-smdk5250.dts          |    4 +++
> >  arch/arm/boot/dts/exynos5250.dtsi                  |    6 +++++
> >  arch/arm/mach-exynos/include/mach/map.h            |    1 +
> >  arch/arm/mach-exynos/mach-exynos5-dt.c             |    2 +
> >  5 files changed, 35 insertions(+), 0 deletions(-)
> >  create mode 100644
> >  Documentation/devicetree/bindings/drm/exynos/hdmi.txt
> [...]
> 
> > +	hdmi {
> > +		compatible = "samsung,exynos5-hdmi";
> > +		reg = <0x14530000 0x100000>;
> > +		interrupts = <0 95 0>;
> > +		hpd-gpio = <&gpx3 7 0xf 1 3>;
> > +	};
> > \ No newline at end of file
> 
> What's this?
> 
> [...]
> 
> > +	hdmi@14530000 {
> 
> +	hdmi {
>

Isn't there a convention to use @ADDR whenever a node contains a reg 
property? Please see exynos4.dtsi, all the nodes with reg have @ADDR.

> > +		hpd-gpio = <&gpx3 7 0xf 1 3>;
> > +	};
> > 
> >  };
> > 
> > diff --git a/arch/arm/boot/dts/exynos5250.dtsi
> > b/arch/arm/boot/dts/exynos5250.dtsi
> > index f69e389..ec7ea2d 100644
> > --- a/arch/arm/boot/dts/exynos5250.dtsi
> > +++ b/arch/arm/boot/dts/exynos5250.dtsi
> > @@ -492,4 +492,10 @@
> > 
> >  			#gpio-cells = <4>;
> >  		
> >  		};
> >  	
> >  	};
> > 
> > +
> > +	hdmi@14530000 {
> 
> Ditto.
> 

Ditto.

> [...]
> 
> > +#define EXYNOS5_PA_HDMI		0x14530000
> 
> I think, we don't need this because see below.
> 
> [...]
> 
> > +	OF_DEV_AUXDATA("samsung,exynos5-hdmi", EXYNOS5_PA_HDMI,
> > +				"exynos5-hdmi", NULL),
> 
> +	OF_DEV_AUXDATA("samsung,exynos5-hdmi", 0x14530000, "exynos5-hdmi",
> NULL),
> 
> I think, if the address as defined above is used only here, let's just
> the value because nobody don't know it is the address.

I don't like the idea of having such magic numbers in code, but since the 
whole auxdata array is going to be removed in future anyway, I guess this 
is OK.

Best regards,
-- 
Tomasz Figa
Samsung Poland R&D Center

[-- Attachment #1.2: Type: text/html, Size: 16207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

  parent reply	other threads:[~2012-10-17 11:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 23:30 [PATCH v3 0/6] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
2012-10-15 23:30 ` [PATCH v3 1/6] dts: exynos: add device tree " Rahul Sharma
     [not found]   ` <1350343834-23992-2-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-10-17 11:32     ` Kukjin Kim
     [not found]       ` <006101cdac5b$08e06ee0$1aa14ca0$%kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-10-17 11:49         ` Tomasz Figa [this message]
2012-10-15 23:30 ` [PATCH v3 2/6] dts: exynos: add device tree support for exynos5 mixer Rahul Sharma
2012-10-17 11:32   ` Kukjin Kim
2012-10-15 23:30 ` [PATCH v3 3/6] dts: exynos: add device tree support for exynos5 hdmiphy Rahul Sharma
     [not found]   ` <1350343834-23992-4-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-10-16  9:03     ` Tomasz Figa
2012-10-15 23:30 ` [PATCH v3 4/6] dts: exynos: add device tree support for exynos5 hdmiddc Rahul Sharma
     [not found]   ` <1350343834-23992-5-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-10-16  9:04     ` Tomasz Figa
2012-10-15 23:30 ` [PATCH v3 5/6] arm: exynos: add clocks for exynos5 hdmi Rahul Sharma
2012-10-15 23:30 ` [PATCH v3 6/6] arm: exynos: removing exynos-drm device registration from non-dt platforms Rahul Sharma
     [not found] ` <1350343834-23992-1-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2012-10-16  9:31   ` [PATCH v3 0/6] arm: exynos: add dt based support for exynos5 hdmi Tomasz Figa
2012-10-16 11:02     ` Rahul Sharma
2012-10-17  3:39       ` Kyungmin Park
2012-10-17  4:06         ` Rahul Sharma
2012-10-17 11:41           ` Kukjin Kim

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=1928447.6kgkcZq6oY@amdc1227 \
    --to=t.figa-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=joshi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=jy0922.shim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=prashanth.g-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=r.sh.open-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=s.shirish-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=sw0312.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=t.stanislaws-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.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