devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem
@ 2013-08-26  9:38 Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 1/6] ARM: dts: add mixer clocks to mixer node for Exynos5250 Rahul Sharma
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Rahul Sharma

It adds Device tree nodes and clocks information for HDMI subsystem
for exynos5420 and exynos5250 SoCs. It adds pinctrl node for hdmi
hpd gpio and update binding documents.

This set is based on kukjin's for-next branch at
http://git.kernel.org/cgit/linux/kernel/git/kgene/linux-samsung.git.

v5:
1) Merged Clock addition patch to DT nmde addition patch.
2) Add dout_pixel clock for hdmi in place of sclk_pixel.
3) Enable mixer node in soc dtsi file.

v4:
1) Remove the movement of common properties to Exynos5.dtsi for
I2C and hdmi subsystem.
2) Change the title of the patches.

v3:
1) Rebase to kgene for-next based on 3.11-rc1.
2) Changes clock numbers as per updated clocks file for
exyno5250 and exynos5420.
3) Dropped Sachin patch as already got merged.

v2:
1) Added patch for moving common i2c properties to exynos5.dtsi
2) Added patch for moving common hdmi, mixer properties to exynos5.dtsi
3) moved hpd pinctrl node to board file.
4) Added Sachin's patch to update binding document for hdmi with hpd
information.



Andrew Bresticker (1):
  ARM: dts: add i2c device nodes for Exynos5420

Rahul Sharma (4):
  ARM: dts: add clocks to hdmi dt node for exynos5250
  ARM: dts: add dt nodes for hdmi subsystem for exynos5420
  ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420
  of/documentation: update with clock information for exynos hdmi
    subsystem

Sean Paul (1):
  ARM: dts: add mixer clocks to mixer node for Exynos5250

 .../devicetree/bindings/video/exynos_hdmi.txt      |   14 +++-
 .../devicetree/bindings/video/exynos_mixer.txt     |    4 ++
 arch/arm/boot/dts/exynos5250.dtsi                  |    8 ++-
 arch/arm/boot/dts/exynos5420-smdk5420.dts          |   26 +++++++
 arch/arm/boot/dts/exynos5420.dtsi                  |   75 ++++++++++++++++++++
 5 files changed, 123 insertions(+), 4 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v5 1/6] ARM: dts: add mixer clocks to mixer node for Exynos5250
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 2/6] ARM: dts: add clocks to hdmi dt node for exynos5250 Rahul Sharma
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Sean Paul, Rahul Sharma

From: Sean Paul <seanpaul@chromium.org>

This patch adds the mixer clocks to the mixer node in the
exynos 5250 dts file.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 arch/arm/boot/dts/exynos5250.dtsi |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 1eec646..dcb6c03 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -622,6 +622,8 @@
 		compatible = "samsung,exynos5250-mixer";
 		reg = <0x14450000 0x10000>;
 		interrupts = <0 94 0>;
+		clocks = <&clock 343>, <&clock 136>;
+		clock-names = "mixer", "sclk_hdmi";
 	};
 
 	dp_phy: video-phy@10040720 {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v5 2/6] ARM: dts: add clocks to hdmi dt node for exynos5250
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 1/6] ARM: dts: add mixer clocks to mixer node for Exynos5250 Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 3/6] ARM: dts: add i2c device nodes for Exynos5420 Rahul Sharma
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Rahul Sharma

Fix wrong clock numbers in hdmi dt node. Removed hdmiphy
clock which was a dummy clock earlier and not required now.
Also added mux clock to change the clock parent.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 arch/arm/boot/dts/exynos5250.dtsi |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index dcb6c03..19c8174 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -612,10 +612,10 @@
 		compatible = "samsung,exynos4212-hdmi";
 		reg = <0x14530000 0x70000>;
 		interrupts = <0 95 0>;
-		clocks = <&clock 333>, <&clock 136>, <&clock 137>,
-				<&clock 333>, <&clock 333>;
+		clocks = <&clock 344>, <&clock 136>, <&clock 137>,
+				<&clock 159>, <&clock 1024>;
 		clock-names = "hdmi", "sclk_hdmi", "sclk_pixel",
-				"sclk_hdmiphy", "hdmiphy";
+				"sclk_hdmiphy", "mout_hdmi";
 	};
 
 	mixer {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v5 3/6] ARM: dts: add i2c device nodes for Exynos5420
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 1/6] ARM: dts: add mixer clocks to mixer node for Exynos5250 Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 2/6] ARM: dts: add clocks to hdmi dt node for exynos5250 Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem Rahul Sharma
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Andrew Bresticker, Rahul Sharma

From: Andrew Bresticker <abrestic@chromium.org>

This adds device-tree nodes for the i2c busses on Exynos
5420 platforms.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 arch/arm/boot/dts/exynos5420.dtsi |   56 +++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 5353e32..05dee86 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -27,6 +27,10 @@
 		pinctrl2 = &pinctrl_2;
 		pinctrl3 = &pinctrl_3;
 		pinctrl4 = &pinctrl_4;
+		i2c0 = &i2c_0;
+		i2c1 = &i2c_1;
+		i2c2 = &i2c_2;
+		i2c3 = &i2c_3;
 	};
 
 	cpus {
@@ -218,4 +222,56 @@
 		clocks = <&clock 147>, <&clock 421>;
 		clock-names = "sclk_fimd", "fimd";
 	};
+
+	i2c_0: i2c@12C60000 {
+		compatible = "samsung,s3c2440-i2c";
+		reg = <0x12C60000 0x100>;
+		interrupts = <0 56 0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clocks = <&clock 261>;
+		clock-names = "i2c";
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2c0_bus>;
+		status = "disabled";
+	};
+
+	i2c_1: i2c@12C70000 {
+		compatible = "samsung,s3c2440-i2c";
+		reg = <0x12C70000 0x100>;
+		interrupts = <0 57 0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clocks = <&clock 262>;
+		clock-names = "i2c";
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2c1_bus>;
+		status = "disabled";
+	};
+
+       i2c_2: i2c@12C80000 {
+		compatible = "samsung,s3c2440-i2c";
+		reg = <0x12C80000 0x100>;
+		interrupts = <0 58 0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clocks = <&clock 263>;
+		clock-names = "i2c";
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2c2_bus>;
+		status = "disabled";
+       };
+
+	i2c_3: i2c@12C90000 {
+		compatible = "samsung,s3c2440-i2c";
+		reg = <0x12C90000 0x100>;
+		interrupts = <0 59 0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clocks = <&clock 264>;
+		clock-names = "i2c";
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2c3_bus>;
+		status = "disabled";
+	};
 };
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
                   ` (2 preceding siblings ...)
  2013-08-26  9:38 ` [PATCH v5 3/6] ARM: dts: add i2c device nodes for Exynos5420 Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26 23:29   ` Tomasz Figa
  2013-08-26  9:38 ` [PATCH v5 5/6] ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420 Rahul Sharma
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Rahul Sharma

Add hdmi, mixer, ddc device tree nodes for Exynos 5420 SoC.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 arch/arm/boot/dts/exynos5420-smdk5420.dts |   15 +++++++++++++++
 arch/arm/boot/dts/exynos5420.dtsi         |   19 +++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts
index bafba25..140565f 100644
--- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
+++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
@@ -61,4 +61,19 @@
 		};
 	};
 
+	hdmi@14530000 {
+		status = "okay";
+		hpd-gpio = <&gpx3 7 0>;
+	};
+
+	i2c_2: i2c@12C80000 {
+		samsung,i2c-sda-delay = <100>;
+		samsung,i2c-max-bus-freq = <66000>;
+		status = "okay";
+
+		hdmiddc@50 {
+			compatible = "samsung,exynos4210-hdmiddc";
+			reg = <0x50>;
+		};
+	};
 };
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 05dee86..aff1679 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -274,4 +274,23 @@
 		pinctrl-0 = <&i2c3_bus>;
 		status = "disabled";
 	};
+
+	hdmi@14530000 {
+		compatible = "samsung,exynos4212-hdmi";
+		reg = <0x14530000 0x70000>;
+		interrupts = <0 95 0>;
+		clocks = <&clock 413>, <&clock 143>, <&clock 2048>,
+			<&clock 158>, <&clock 1024>;
+		clock-names = "hdmi", "sclk_hdmi", "sclk_pixel",
+			"sclk_hdmiphy", "mout_hdmi";
+		status = "disabled";
+	};
+
+	mixer@14450000 {
+		compatible = "samsung,exynos5420-mixer";
+		reg = <0x14450000 0x10000>;
+		interrupts = <0 94 0>;
+		clocks = <&clock 431>, <&clock 143>;
+		clock-names = "mixer", "sclk_hdmi";
+	};
 };
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v5 5/6] ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
                   ` (3 preceding siblings ...)
  2013-08-26  9:38 ` [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26  9:38 ` [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem Rahul Sharma
  2013-08-26 23:42 ` [PATCH v5 0/6] ARM: dts: add support " Tomasz Figa
  6 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Rahul Sharma

Add pinctrl node for hdmi-hpd gpio pin to exynos5420
device tree files.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 arch/arm/boot/dts/exynos5420-smdk5420.dts |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts
index 140565f..79524c7 100644
--- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
+++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
@@ -61,9 +61,20 @@
 		};
 	};
 
+	pinctrl@13400000 {
+		hdmi_hpd_irq: hdmi-hpd-irq {
+			samsung,pins = "gpx3-7";
+			samsung,pin-function = <0>;
+			samsung,pin-pud = <1>;
+			samsung,pin-drv = <0>;
+		};
+	};
+
 	hdmi@14530000 {
 		status = "okay";
 		hpd-gpio = <&gpx3 7 0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&hdmi_hpd_irq>;
 	};
 
 	i2c_2: i2c@12C80000 {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
                   ` (4 preceding siblings ...)
  2013-08-26  9:38 ` [PATCH v5 5/6] ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420 Rahul Sharma
@ 2013-08-26  9:38 ` Rahul Sharma
  2013-08-26 23:40   ` Tomasz Figa
  2013-08-26 23:42 ` [PATCH v5 0/6] ARM: dts: add support " Tomasz Figa
  6 siblings, 1 reply; 13+ messages in thread
From: Rahul Sharma @ 2013-08-26  9:38 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree
  Cc: kgene.kim, sw0312.kim, inki.dae, tomasz.figa, s.nawrocki, joshi,
	r.sh.open, Rahul Sharma

Adding information about clocks to the binding documentation
for exynos mixer and hdmi.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 Documentation/devicetree/bindings/video/exynos_hdmi.txt  |   14 +++++++++++++-
 Documentation/devicetree/bindings/video/exynos_mixer.txt |    4 ++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/video/exynos_hdmi.txt b/Documentation/devicetree/bindings/video/exynos_hdmi.txt
index 323983b..94aaa7d 100644
--- a/Documentation/devicetree/bindings/video/exynos_hdmi.txt
+++ b/Documentation/devicetree/bindings/video/exynos_hdmi.txt
@@ -12,7 +12,19 @@ Required properties:
 	a) phandle of the gpio controller node.
 	b) pin number within the gpio controller.
 	c) optional flags and pull up/down.
-
+- clocks: list of clock IDs from SoC clock driver.
+	a) hdmi: It is required for gate operation on aclk_200_disp1 clock
+		which clocks the display1 block.
+	b) sclk_hdmi: It is required for gate operation on sclk_hdmi clock
+		which clocks hdmi IP.
+	c) sclk_pixel: Parent for mux mout_hdmi.
+	d) sclk_hdmiphy: Parent for mux mout_hdmi.
+	e) mout_hdmi: It is required by the driver to switch between the 2
+		parents i.e. sclk_pixel and sclk_hdmiphy. If hdmiphy is stable
+		after configuration, parent is set to sclk_hdmiphy else
+		sclk_pixel.
+- clock-names: aliases as per driver requirements for above clock IDs:
+	"hdmi", "sclk_hdmi", "sclk_pixel", "sclk_hdmiphy" and "mout_hdmi".
 Example:
 
 	hdmi {
diff --git a/Documentation/devicetree/bindings/video/exynos_mixer.txt b/Documentation/devicetree/bindings/video/exynos_mixer.txt
index 3334b0a..94b40b6 100644
--- a/Documentation/devicetree/bindings/video/exynos_mixer.txt
+++ b/Documentation/devicetree/bindings/video/exynos_mixer.txt
@@ -10,6 +10,10 @@ Required properties:
 - reg: physical base address of the mixer and length of memory mapped
 	region.
 - interrupts: interrupt number to the cpu.
+- clocks: list of clock IDs from SoC clock driver.
+	a) mixer: It is required for gate operation on aclk_200_disp1 clock
+		which clocks the display1 block.
+	b) sclk_hdmi: Parent for mux mout_mixer.
 
 Example:
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem
  2013-08-26  9:38 ` [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem Rahul Sharma
@ 2013-08-26 23:29   ` Tomasz Figa
  2013-08-27  3:56     ` Rahul Sharma
  0 siblings, 1 reply; 13+ messages in thread
From: Tomasz Figa @ 2013-08-26 23:29 UTC (permalink / raw)
  To: Rahul Sharma
  Cc: linux-samsung-soc, devicetree, kgene.kim, sw0312.kim, inki.dae,
	s.nawrocki, joshi, r.sh.open

Hi Rahul,

On Monday 26 of August 2013 15:08:19 Rahul Sharma wrote:
> Add hdmi, mixer, ddc device tree nodes for Exynos 5420 SoC.
> 
> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
> ---
>  arch/arm/boot/dts/exynos5420-smdk5420.dts |   15 +++++++++++++++
>  arch/arm/boot/dts/exynos5420.dtsi         |   19 +++++++++++++++++++
>  2 files changed, 34 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts
> b/arch/arm/boot/dts/exynos5420-smdk5420.dts index bafba25..140565f
> 100644
> --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
> +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
> @@ -61,4 +61,19 @@
>  		};
>  	};
> 
> +	hdmi@14530000 {
> +		status = "okay";
> +		hpd-gpio = <&gpx3 7 0>;
> +	};
> +
> +	i2c_2: i2c@12C80000 {
> +		samsung,i2c-sda-delay = <100>;
> +		samsung,i2c-max-bus-freq = <66000>;
> +		status = "okay";
> +
> +		hdmiddc@50 {
> +			compatible = "samsung,exynos4210-hdmiddc";
> +			reg = <0x50>;
> +		};
> +	};
>  };

As I mentioned in my reply for previous version of this patch, changes 
done to this board dts file should be moved to next patch instead and its 
subject appropriately modified.

Best regards,
Tomasz

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem
  2013-08-26  9:38 ` [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem Rahul Sharma
@ 2013-08-26 23:40   ` Tomasz Figa
  2013-08-27  5:05     ` Rahul Sharma
  0 siblings, 1 reply; 13+ messages in thread
From: Tomasz Figa @ 2013-08-26 23:40 UTC (permalink / raw)
  To: Rahul Sharma
  Cc: linux-samsung-soc, devicetree, kgene.kim, sw0312.kim, inki.dae,
	s.nawrocki, joshi, r.sh.open

Hi Rahul,

On Monday 26 of August 2013 15:08:21 Rahul Sharma wrote:
> Adding information about clocks to the binding documentation
> for exynos mixer and hdmi.
> 
> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
> ---
>  Documentation/devicetree/bindings/video/exynos_hdmi.txt  |   14
> +++++++++++++- Documentation/devicetree/bindings/video/exynos_mixer.txt
> |    4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/video/exynos_hdmi.txt
> b/Documentation/devicetree/bindings/video/exynos_hdmi.txt index
> 323983b..94aaa7d 100644
> --- a/Documentation/devicetree/bindings/video/exynos_hdmi.txt
> +++ b/Documentation/devicetree/bindings/video/exynos_hdmi.txt
> @@ -12,7 +12,19 @@ Required properties:
>  	a) phandle of the gpio controller node.
>  	b) pin number within the gpio controller.
>  	c) optional flags and pull up/down.
> -
> +- clocks: list of clock IDs from SoC clock driver.
> +	a) hdmi: It is required for gate operation on aclk_200_disp1 clock
> +		which clocks the display1 block.

Isn't aclk_200_disp1 a name specific to Exynos5 SoCs? AFAIK this binding 
is also used for other SoCs, including Exynos4 and probably S5PV210, so it 
should be written to either be SoC-agnostic or account for all supported 
SoCs. What about following descriptions:

Gate of HDMI IP block bus clock.

> +	b) sclk_hdmi: It is required for gate operation on sclk_hdmi clock
> +		which clocks hdmi IP.

Gate of HDMI special clock.

> +	c) sclk_pixel: Parent for mux mout_hdmi.

Pixel special clock, one of two possible inputs of HDMI clock mux.

> +	d) sclk_hdmiphy: Parent for mux mout_hdmi.

HDMI PHY clock output, one of two possible inputs of HDMI clock mux.

> +	e) mout_hdmi: It is required by the driver to switch between the 2
> +		parents i.e. sclk_pixel and sclk_hdmiphy. If hdmiphy is 
stable
> +		after configuration, parent is set to sclk_hdmiphy else
> +		sclk_pixel.

HDMI clock mux, used to select between clock generated by HDMI PHY and 
alternative clock source that can be used until HDMI PHY is set up.

> +- clock-names: aliases as per driver requirements for above clock IDs:
> +	"hdmi", "sclk_hdmi", "sclk_pixel", "sclk_hdmiphy" and "mout_hdmi".
>  Example:
> 
>  	hdmi {
> diff --git a/Documentation/devicetree/bindings/video/exynos_mixer.txt
> b/Documentation/devicetree/bindings/video/exynos_mixer.txt index
> 3334b0a..94b40b6 100644
> --- a/Documentation/devicetree/bindings/video/exynos_mixer.txt
> +++ b/Documentation/devicetree/bindings/video/exynos_mixer.txt
> @@ -10,6 +10,10 @@ Required properties:
>  - reg: physical base address of the mixer and length of memory mapped
>  	region.
>  - interrupts: interrupt number to the cpu.
> +- clocks: list of clock IDs from SoC clock driver.
> +	a) mixer: It is required for gate operation on aclk_200_disp1 
clock

Gate of Mixer IP bus clock.

> +		which clocks the display1 block.
> +	b) sclk_hdmi: Parent for mux mout_mixer.

I'm not sure why this clock is needed here. Could you explain what role it 
plays in functioning of the Mixer IP?

Best regards,
Tomasz

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem
  2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
                   ` (5 preceding siblings ...)
  2013-08-26  9:38 ` [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem Rahul Sharma
@ 2013-08-26 23:42 ` Tomasz Figa
  2013-08-27  5:29   ` Rahul Sharma
  6 siblings, 1 reply; 13+ messages in thread
From: Tomasz Figa @ 2013-08-26 23:42 UTC (permalink / raw)
  To: Rahul Sharma
  Cc: linux-samsung-soc, devicetree, kgene.kim, sw0312.kim, inki.dae,
	s.nawrocki, joshi, r.sh.open

Hi Rahul,

On Monday 26 of August 2013 15:08:15 Rahul Sharma wrote:
> It adds Device tree nodes and clocks information for HDMI subsystem
> for exynos5420 and exynos5250 SoCs. It adds pinctrl node for hdmi
> hpd gpio and update binding documents.
> 
> This set is based on kukjin's for-next branch at
> http://git.kernel.org/cgit/linux/kernel/git/kgene/linux-samsung.git.
> 
> v5:
> 1) Merged Clock addition patch to DT nmde addition patch.
> 2) Add dout_pixel clock for hdmi in place of sclk_pixel.
> 3) Enable mixer node in soc dtsi file.
> 
> v4:
> 1) Remove the movement of common properties to Exynos5.dtsi for
> I2C and hdmi subsystem.
> 2) Change the title of the patches.
> 
> v3:
> 1) Rebase to kgene for-next based on 3.11-rc1.
> 2) Changes clock numbers as per updated clocks file for
> exyno5250 and exynos5420.
> 3) Dropped Sachin patch as already got merged.
> 
> v2:
> 1) Added patch for moving common i2c properties to exynos5.dtsi
> 2) Added patch for moving common hdmi, mixer properties to exynos5.dtsi
> 3) moved hpd pinctrl node to board file.
> 4) Added Sachin's patch to update binding document for hdmi with hpd
> information.
> 
> 
> 
> Andrew Bresticker (1):
>   ARM: dts: add i2c device nodes for Exynos5420
> 
> Rahul Sharma (4):
>   ARM: dts: add clocks to hdmi dt node for exynos5250
>   ARM: dts: add dt nodes for hdmi subsystem for exynos5420
>   ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420
>   of/documentation: update with clock information for exynos hdmi
>     subsystem
> 
> Sean Paul (1):
>   ARM: dts: add mixer clocks to mixer node for Exynos5250
> 
>  .../devicetree/bindings/video/exynos_hdmi.txt      |   14 +++-
>  .../devicetree/bindings/video/exynos_mixer.txt     |    4 ++
>  arch/arm/boot/dts/exynos5250.dtsi                  |    8 ++-
>  arch/arm/boot/dts/exynos5420-smdk5420.dts          |   26 +++++++
>  arch/arm/boot/dts/exynos5420.dtsi                  |   75
> ++++++++++++++++++++ 5 files changed, 123 insertions(+), 4 deletions(-)

Except patches 4-6, which I have commented on, for the series:

Reviewed-by: Tomasz Figa <t.figa@samsung.com>

Also one minor comment: It would be better if you updated the 
documentation as first patch. This would make all the following patches to 
be based on already existing documentation.

Best regards,
Tomasz

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem
  2013-08-26 23:29   ` Tomasz Figa
@ 2013-08-27  3:56     ` Rahul Sharma
  0 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-27  3:56 UTC (permalink / raw)
  To: Tomasz Figa
  Cc: Rahul Sharma, linux-samsung-soc, devicetree, Kukjin Kim,
	sw0312.kim, Inki Dae, Sylwester Nawrocki, sunil joshi

On 27 August 2013 04:59, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> Hi Rahul,
>
> On Monday 26 of August 2013 15:08:19 Rahul Sharma wrote:
>> Add hdmi, mixer, ddc device tree nodes for Exynos 5420 SoC.
>>
>> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
>> ---
>>  arch/arm/boot/dts/exynos5420-smdk5420.dts |   15 +++++++++++++++
>>  arch/arm/boot/dts/exynos5420.dtsi         |   19 +++++++++++++++++++
>>  2 files changed, 34 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts
>> b/arch/arm/boot/dts/exynos5420-smdk5420.dts index bafba25..140565f
>> 100644
>> --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts
>> +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts
>> @@ -61,4 +61,19 @@
>>               };
>>       };
>>
>> +     hdmi@14530000 {
>> +             status = "okay";
>> +             hpd-gpio = <&gpx3 7 0>;
>> +     };
>> +
>> +     i2c_2: i2c@12C80000 {
>> +             samsung,i2c-sda-delay = <100>;
>> +             samsung,i2c-max-bus-freq = <66000>;
>> +             status = "okay";
>> +
>> +             hdmiddc@50 {
>> +                     compatible = "samsung,exynos4210-hdmiddc";
>> +                     reg = <0x50>;
>> +             };
>> +     };
>>  };
>
> As I mentioned in my reply for previous version of this patch, changes
> done to this board dts file should be moved to next patch instead and its
> subject appropriately modified.
>

Hi Tomasz,

Sorry. I missed that. I will move the hpd-gpio related change to patch 5.
I will spin off a new patch for Hdmi ddc related additions.

regards,
Rahul Sharma.

> Best regards,
> Tomasz
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem
  2013-08-26 23:40   ` Tomasz Figa
@ 2013-08-27  5:05     ` Rahul Sharma
  0 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-27  5:05 UTC (permalink / raw)
  To: Tomasz Figa
  Cc: Rahul Sharma, linux-samsung-soc, devicetree, Kukjin Kim,
	sw0312.kim, Inki Dae, Sylwester Nawrocki, sunil joshi

On 27 August 2013 05:10, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> Hi Rahul,
>
> On Monday 26 of August 2013 15:08:21 Rahul Sharma wrote:
>> Adding information about clocks to the binding documentation
>> for exynos mixer and hdmi.
>>
>> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
>> ---
>>  Documentation/devicetree/bindings/video/exynos_hdmi.txt  |   14
>> +++++++++++++- Documentation/devicetree/bindings/video/exynos_mixer.txt
>> |    4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/video/exynos_hdmi.txt
>> b/Documentation/devicetree/bindings/video/exynos_hdmi.txt index
>> 323983b..94aaa7d 100644
>> --- a/Documentation/devicetree/bindings/video/exynos_hdmi.txt
>> +++ b/Documentation/devicetree/bindings/video/exynos_hdmi.txt
>> @@ -12,7 +12,19 @@ Required properties:
>>       a) phandle of the gpio controller node.
>>       b) pin number within the gpio controller.
>>       c) optional flags and pull up/down.
>> -
>> +- clocks: list of clock IDs from SoC clock driver.
>> +     a) hdmi: It is required for gate operation on aclk_200_disp1 clock
>> +             which clocks the display1 block.
>
> Isn't aclk_200_disp1 a name specific to Exynos5 SoCs? AFAIK this binding
> is also used for other SoCs, including Exynos4 and probably S5PV210, so it
> should be written to either be SoC-agnostic or account for all supported
> SoCs. What about following descriptions:
>
> Gate of HDMI IP block bus clock.
>
>> +     b) sclk_hdmi: It is required for gate operation on sclk_hdmi clock
>> +             which clocks hdmi IP.
>
> Gate of HDMI special clock.
>
>> +     c) sclk_pixel: Parent for mux mout_hdmi.
>
> Pixel special clock, one of two possible inputs of HDMI clock mux.
>
>> +     d) sclk_hdmiphy: Parent for mux mout_hdmi.
>
> HDMI PHY clock output, one of two possible inputs of HDMI clock mux.
>
>> +     e) mout_hdmi: It is required by the driver to switch between the 2
>> +             parents i.e. sclk_pixel and sclk_hdmiphy. If hdmiphy is
> stable
>> +             after configuration, parent is set to sclk_hdmiphy else
>> +             sclk_pixel.
>
> HDMI clock mux, used to select between clock generated by HDMI PHY and
> alternative clock source that can be used until HDMI PHY is set up.
>
>> +- clock-names: aliases as per driver requirements for above clock IDs:
>> +     "hdmi", "sclk_hdmi", "sclk_pixel", "sclk_hdmiphy" and "mout_hdmi".
>>  Example:
>>
>>       hdmi {
>> diff --git a/Documentation/devicetree/bindings/video/exynos_mixer.txt
>> b/Documentation/devicetree/bindings/video/exynos_mixer.txt index
>> 3334b0a..94b40b6 100644
>> --- a/Documentation/devicetree/bindings/video/exynos_mixer.txt
>> +++ b/Documentation/devicetree/bindings/video/exynos_mixer.txt
>> @@ -10,6 +10,10 @@ Required properties:
>>  - reg: physical base address of the mixer and length of memory mapped
>>       region.
>>  - interrupts: interrupt number to the cpu.
>> +- clocks: list of clock IDs from SoC clock driver.
>> +     a) mixer: It is required for gate operation on aclk_200_disp1
> clock
>
> Gate of Mixer IP bus clock.
>
>> +             which clocks the display1 block.
>> +     b) sclk_hdmi: Parent for mux mout_mixer.
>
> I'm not sure why this clock is needed here. Could you explain what role it
> plays in functioning of the Mixer IP?
>
I have done above rephrasing.

For exynos4 socs, sclk_mixer can have sclk_hdmi or sclk_dac as inputs.
mout_mixer
is configured to select sclk_hdmi. I am not sure that how sclk_mixer
is utilized inside
mixer hardware.

regards,
Rahul Sharma.

> Best regards,
> Tomasz
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem
  2013-08-26 23:42 ` [PATCH v5 0/6] ARM: dts: add support " Tomasz Figa
@ 2013-08-27  5:29   ` Rahul Sharma
  0 siblings, 0 replies; 13+ messages in thread
From: Rahul Sharma @ 2013-08-27  5:29 UTC (permalink / raw)
  To: Tomasz Figa
  Cc: Rahul Sharma, linux-samsung-soc, devicetree, Kukjin Kim,
	sw0312.kim, Inki Dae, Sylwester Nawrocki, sunil joshi

On 27 August 2013 05:12, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> Hi Rahul,
>
> On Monday 26 of August 2013 15:08:15 Rahul Sharma wrote:
>> It adds Device tree nodes and clocks information for HDMI subsystem
>> for exynos5420 and exynos5250 SoCs. It adds pinctrl node for hdmi
>> hpd gpio and update binding documents.
>>
>> This set is based on kukjin's for-next branch at
>> http://git.kernel.org/cgit/linux/kernel/git/kgene/linux-samsung.git.
>>
>> v5:
>> 1) Merged Clock addition patch to DT nmde addition patch.
>> 2) Add dout_pixel clock for hdmi in place of sclk_pixel.
>> 3) Enable mixer node in soc dtsi file.
>>
>> v4:
>> 1) Remove the movement of common properties to Exynos5.dtsi for
>> I2C and hdmi subsystem.
>> 2) Change the title of the patches.
>>
>> v3:
>> 1) Rebase to kgene for-next based on 3.11-rc1.
>> 2) Changes clock numbers as per updated clocks file for
>> exyno5250 and exynos5420.
>> 3) Dropped Sachin patch as already got merged.
>>
>> v2:
>> 1) Added patch for moving common i2c properties to exynos5.dtsi
>> 2) Added patch for moving common hdmi, mixer properties to exynos5.dtsi
>> 3) moved hpd pinctrl node to board file.
>> 4) Added Sachin's patch to update binding document for hdmi with hpd
>> information.
>>
>>
>>
>> Andrew Bresticker (1):
>>   ARM: dts: add i2c device nodes for Exynos5420
>>
>> Rahul Sharma (4):
>>   ARM: dts: add clocks to hdmi dt node for exynos5250
>>   ARM: dts: add dt nodes for hdmi subsystem for exynos5420
>>   ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420
>>   of/documentation: update with clock information for exynos hdmi
>>     subsystem
>>
>> Sean Paul (1):
>>   ARM: dts: add mixer clocks to mixer node for Exynos5250
>>
>>  .../devicetree/bindings/video/exynos_hdmi.txt      |   14 +++-
>>  .../devicetree/bindings/video/exynos_mixer.txt     |    4 ++
>>  arch/arm/boot/dts/exynos5250.dtsi                  |    8 ++-
>>  arch/arm/boot/dts/exynos5420-smdk5420.dts          |   26 +++++++
>>  arch/arm/boot/dts/exynos5420.dtsi                  |   75
>> ++++++++++++++++++++ 5 files changed, 123 insertions(+), 4 deletions(-)
>
> Except patches 4-6, which I have commented on, for the series:
>
> Reviewed-by: Tomasz Figa <t.figa@samsung.com>
>
> Also one minor comment: It would be better if you updated the
> documentation as first patch. This would make all the following patches to
> be based on already existing documentation.
>

Done. I reordered them.

regards,
Rahul Sharma.

> Best regards,
> Tomasz
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-08-27  5:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26  9:38 [PATCH v5 0/6] ARM: dts: add support for exynos hdmi subsystem Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 1/6] ARM: dts: add mixer clocks to mixer node for Exynos5250 Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 2/6] ARM: dts: add clocks to hdmi dt node for exynos5250 Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 3/6] ARM: dts: add i2c device nodes for Exynos5420 Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 4/6] ARM: dts: add dt nodes for exynos5420 hdmi subsystem Rahul Sharma
2013-08-26 23:29   ` Tomasz Figa
2013-08-27  3:56     ` Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 5/6] ARM: dts: add hdmi hpd gpio pinctrl node for exynos5420 Rahul Sharma
2013-08-26  9:38 ` [PATCH v5 6/6] of/documentation: update with clock information for exynos hdmi subsystem Rahul Sharma
2013-08-26 23:40   ` Tomasz Figa
2013-08-27  5:05     ` Rahul Sharma
2013-08-26 23:42 ` [PATCH v5 0/6] ARM: dts: add support " Tomasz Figa
2013-08-27  5:29   ` Rahul Sharma

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).