All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Figa <tomasz.figa@gmail.com>
To: Rahul Sharma <rahul.sharma@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com,
	t.stanislaws@samsung.com, sw0312.kim@samsung.com,
	inki.dae@samsung.com, jy0922.shim@samsung.com,
	kyungmin.park@samsung.com, thomas.ab@samsung.com,
	prashanth.g@samsung.com, joshi@samsung.com,
	s.shirish@samsung.com, r.sh.open@gmail.com
Subject: Re: [PATCH v2 1/6] dts: exynos: add device tree support for exynos5 hdmi
Date: Sat, 13 Oct 2012 15:40:48 +0200	[thread overview]
Message-ID: <10309437.yhpP5BHNDs@flatron> (raw)
In-Reply-To: <1350074555-26018-2-git-send-email-rahul.sharma@samsung.com>

On Saturday 13 of October 2012 02:12:30 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@samsung.com>
> ---
>  .../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
> 
> diff --git a/Documentation/devicetree/bindings/drm/exynos/hdmi.txt
> b/Documentation/devicetree/bindings/drm/exynos/hdmi.txt new file mode
> 100644
> index 0000000..8b0fa7c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/drm/exynos/hdmi.txt
> @@ -0,0 +1,22 @@
> +Device-Tree bindings for drm hdmi driver
> +
> +Required properties:
> +- compatible: value should be "samsung,exynos5-hdmi".
> +- reg: physical base address of the hdmi and length of memory mapped
> +	region.
> +- interrupts: interrupt number to the cpu.
> +- hpd-gpio: following information about the hotplug gpio pin.
> +	a) phandle of the gpio controller node.
> +	b) pin number within the gpio controller.
> +	c) pin function mode.
> +	d) optional flags and pull up/down.
> +	e) drive strength.
> +
> +Example:
> +
> +	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
> diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts
> b/arch/arm/boot/dts/exynos5250-smdk5250.dts index a352df4..2a478ab
> 100644
> --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
> +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
> @@ -166,4 +166,8 @@
>  	spi_2: spi@12d40000 {
>  		status = "disabled";
>  	};
> +
> +	hdmi {
> +		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..eea84a3 100644
> --- a/arch/arm/boot/dts/exynos5250.dtsi
> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> @@ -492,4 +492,10 @@
>  			#gpio-cells = <4>;
>  		};
>  	};
> +
> +	hdmi {

I guess it's discussable, but I would follow the convention of adding 
@ADDR to every node with reg property.

> +		compatible = "samsung,exynos5-hdmi";
> +		reg = <0x14530000 0x100000>;
> +		interrupts = <0 95 0>;
> +        };

Indentation of the closing bracket looks incorrect.

Rest of the patch looks fine.

Best regards,
Tomasz Figa

  reply	other threads:[~2012-10-13 13:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 20:42 [PATCH v2 0/6] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
2012-10-12 20:42 ` [PATCH v2 1/6] dts: exynos: add device tree " Rahul Sharma
2012-10-13 13:40   ` Tomasz Figa [this message]
2012-10-15  5:54     ` Rahul Sharma
2012-10-12 20:42 ` [PATCH v2 2/6] dts: exynos: add device tree support for exynos5 mixer Rahul Sharma
2012-10-12 20:42 ` [PATCH v2 3/6] dts: exynos: add device tree support for exynos5 hdmiphy Rahul Sharma
2012-10-13 13:43   ` Tomasz Figa
2012-10-12 20:42 ` [PATCH v2 4/6] dts: exynos: add device tree support for exynos5 hdmiddc Rahul Sharma
2012-10-12 20:42 ` [PATCH v2 5/6] arm: exynos: add clocks for exynos5 hdmi Rahul Sharma
2012-10-12 20:42 ` [PATCH v2 6/6] arm: exynos: removing exynos-drm device registration from non-dt platforms Rahul Sharma
2012-10-13 13:46   ` Tomasz Figa
2012-10-15  6:04     ` Rahul Sharma
2012-10-15  4:07   ` Inki Dae

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=10309437.yhpP5BHNDs@flatron \
    --to=tomasz.figa@gmail.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=inki.dae@samsung.com \
    --cc=joshi@samsung.com \
    --cc=jy0922.shim@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=prashanth.g@samsung.com \
    --cc=r.sh.open@gmail.com \
    --cc=rahul.sharma@samsung.com \
    --cc=s.shirish@samsung.com \
    --cc=sw0312.kim@samsung.com \
    --cc=t.stanislaws@samsung.com \
    --cc=thomas.ab@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.