Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-12-02 Thread Mark Zhang
On 12/01/2012 03:28 AM, Stephen Warren wrote:
> On 11/29/2012 10:44 PM, Mark Zhang wrote:
>> This patch adds the RGB & HDMI nodes in Tegra 30 cardhu's dts.
>> This makes the LVDS & HDMI working.
> 
> This still doesn't add any of the backlight/panel GPIO programming,
> which I believe is required before we enable any LCDs. We could add the
> HDMI node without that though.

Okay. So I think I may misunderstood your words several days ago, when I
submitted the v1 and v2 version for this patch.

So let's hold on this and wait for the backlight/panel working on cardhu.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-12-02 Thread Mark Zhang
On 12/01/2012 03:28 AM, Stephen Warren wrote:
 On 11/29/2012 10:44 PM, Mark Zhang wrote:
 This patch adds the RGB  HDMI nodes in Tegra 30 cardhu's dts.
 This makes the LVDS  HDMI working.
 
 This still doesn't add any of the backlight/panel GPIO programming,
 which I believe is required before we enable any LCDs. We could add the
 HDMI node without that though.

Okay. So I think I may misunderstood your words several days ago, when I
submitted the v1 and v2 version for this patch.

So let's hold on this and wait for the backlight/panel working on cardhu.

 --
 To unsubscribe from this list: send the line unsubscribe linux-tegra in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-30 Thread Stephen Warren
On 11/29/2012 10:44 PM, Mark Zhang wrote:
> This patch adds the RGB & HDMI nodes in Tegra 30 cardhu's dts.
> This makes the LVDS & HDMI working.

This still doesn't add any of the backlight/panel GPIO programming,
which I believe is required before we enable any LCDs. We could add the
HDMI node without that though.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-30 Thread Stephen Warren
On 11/29/2012 10:44 PM, Mark Zhang wrote:
 This patch adds the RGB  HDMI nodes in Tegra 30 cardhu's dts.
 This makes the LVDS  HDMI working.

This still doesn't add any of the backlight/panel GPIO programming,
which I believe is required before we enable any LCDs. We could add the
HDMI node without that though.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-29 Thread Mark Zhang
This patch adds the RGB & HDMI nodes in Tegra 30 cardhu's dts.
This makes the LVDS & HDMI working.

Signed-off-by: Mark Zhang 
---
Changes:
- This patch depcrates the patch:
  "[PATCH V2] ARM: dt: tegra: cardhu: Add drm components"
  Because the issue that LCD and HDMI can't work at the same time
  has been fixed by Thierry's patch:
  "drm: tegra: Use framebuffer pitch as line stride"

 arch/arm/boot/dts/tegra30-cardhu.dtsi |   23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index bdb2a66..9b33bfb 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -27,6 +27,25 @@
model = "NVIDIA Tegra30 Cardhu evaluation board";
compatible = "nvidia,cardhu", "nvidia,tegra30";
 
+   host1x {
+   dc@5420 {
+   rgb {
+   status = "okay";
+   nvidia,ddc-i2c-bus = <_ddc>;
+   };
+   };
+
+   hdmi {
+   status = "okay";
+
+   vdd-supply = <_3v3_reg>;
+   pll-supply = <_reg>;
+
+   nvidia,hpd-gpio = < 111 0>; /* PN7 */
+   nvidia,ddc-i2c-bus = <_ddc>;
+   };
+   };
+
memory {
reg = <0x8000 0x4000>;
};
@@ -114,7 +133,7 @@
clock-frequency = <40800>;
};
 
-   i2c@7000c000 {
+   rgb_ddc: i2c@7000c000 {
status = "okay";
clock-frequency = <10>;
};
@@ -137,7 +156,7 @@
};
};
 
-   i2c@7000c700 {
+   hdmi_ddc: i2c@7000c700 {
status = "okay";
clock-frequency = <10>;
};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-29 Thread Mark Zhang
This patch adds the RGB  HDMI nodes in Tegra 30 cardhu's dts.
This makes the LVDS  HDMI working.

Signed-off-by: Mark Zhang ma...@nvidia.com
---
Changes:
- This patch depcrates the patch:
  [PATCH V2] ARM: dt: tegra: cardhu: Add drm components
  Because the issue that LCD and HDMI can't work at the same time
  has been fixed by Thierry's patch:
  drm: tegra: Use framebuffer pitch as line stride

 arch/arm/boot/dts/tegra30-cardhu.dtsi |   23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index bdb2a66..9b33bfb 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -27,6 +27,25 @@
model = NVIDIA Tegra30 Cardhu evaluation board;
compatible = nvidia,cardhu, nvidia,tegra30;
 
+   host1x {
+   dc@5420 {
+   rgb {
+   status = okay;
+   nvidia,ddc-i2c-bus = rgb_ddc;
+   };
+   };
+
+   hdmi {
+   status = okay;
+
+   vdd-supply = sys_3v3_reg;
+   pll-supply = vio_reg;
+
+   nvidia,hpd-gpio = gpio 111 0; /* PN7 */
+   nvidia,ddc-i2c-bus = hdmi_ddc;
+   };
+   };
+
memory {
reg = 0x8000 0x4000;
};
@@ -114,7 +133,7 @@
clock-frequency = 40800;
};
 
-   i2c@7000c000 {
+   rgb_ddc: i2c@7000c000 {
status = okay;
clock-frequency = 10;
};
@@ -137,7 +156,7 @@
};
};
 
-   i2c@7000c700 {
+   hdmi_ddc: i2c@7000c700 {
status = okay;
clock-frequency = 10;
};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-16 Thread Stephen Warren
On 11/15/2012 10:00 PM, Mark Zhang wrote:
> This patch adds the rgb and hdmi nodes which are necessary for
> tegra drm driver.

> diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
> b/arch/arm/boot/dts/tegra30-cardhu.dtsi

> + host1x {
> + dc@5420 {
> + rgb {
> + status = "okay";
> + nvidia,ddc-i2c-bus = <>;
> + };
> + };
> +
> + hdmi {
> + status = "okay";
...
> + };
> + };

This patch enables both LCD (which will always get enabled, since
there's no way to unplug it) and HDMI (which may optionally get enabled,
depending on whether an HDMI device is plugged in). tegradrm currently
has issues when two outputs are enabled at once (and I just validated
this is still true with all the latest patches). As such, please can you
repost with only the internal LCD enabled. We can enable the LCD port
later once the tegradrm issues are fixed. Thanks.

With no HDMI plugged in, I tested Cardhu's LCD and it works fine.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-16 Thread Stephen Warren
On 11/15/2012 10:00 PM, Mark Zhang wrote:
 This patch adds the rgb and hdmi nodes which are necessary for
 tegra drm driver.

 diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
 b/arch/arm/boot/dts/tegra30-cardhu.dtsi

 + host1x {
 + dc@5420 {
 + rgb {
 + status = okay;
 + nvidia,ddc-i2c-bus = rgbddc;
 + };
 + };
 +
 + hdmi {
 + status = okay;
...
 + };
 + };

This patch enables both LCD (which will always get enabled, since
there's no way to unplug it) and HDMI (which may optionally get enabled,
depending on whether an HDMI device is plugged in). tegradrm currently
has issues when two outputs are enabled at once (and I just validated
this is still true with all the latest patches). As such, please can you
repost with only the internal LCD enabled. We can enable the LCD port
later once the tegradrm issues are fixed. Thanks.

With no HDMI plugged in, I tested Cardhu's LCD and it works fine.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-15 Thread Mark Zhang
This patch adds the rgb and hdmi nodes which are necessary for
tegra drm driver.

Signed-off-by: Mark Zhang 
---
 arch/arm/boot/dts/tegra30-cardhu.dtsi |   23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index bdb2a66..9af6987 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -27,6 +27,25 @@
model = "NVIDIA Tegra30 Cardhu evaluation board";
compatible = "nvidia,cardhu", "nvidia,tegra30";
 
+   host1x {
+   dc@5420 {
+   rgb {
+   status = "okay";
+   nvidia,ddc-i2c-bus = <>;
+   };
+   };
+
+   hdmi {
+   status = "okay";
+
+   vdd-supply = <_3v3_reg>;
+   pll-supply = <_reg>;
+
+   nvidia,hpd-gpio = < 111 0>; /* PN7 */
+   nvidia,ddc-i2c-bus = <>;
+   };
+   };
+
memory {
reg = <0x8000 0x4000>;
};
@@ -114,7 +133,7 @@
clock-frequency = <40800>;
};
 
-   i2c@7000c000 {
+   rgbddc: i2c@7000c000 {
status = "okay";
clock-frequency = <10>;
};
@@ -137,7 +156,7 @@
};
};
 
-   i2c@7000c700 {
+   hdmiddc: i2c@7000c700 {
status = "okay";
clock-frequency = <10>;
};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-15 Thread Mark Zhang
This patch adds the rgb and hdmi nodes which are necessary for
tegra drm driver.

Signed-off-by: Mark Zhang ma...@nvidia.com
---
 arch/arm/boot/dts/tegra30-cardhu.dtsi |   23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index bdb2a66..9af6987 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -27,6 +27,25 @@
model = NVIDIA Tegra30 Cardhu evaluation board;
compatible = nvidia,cardhu, nvidia,tegra30;
 
+   host1x {
+   dc@5420 {
+   rgb {
+   status = okay;
+   nvidia,ddc-i2c-bus = rgbddc;
+   };
+   };
+
+   hdmi {
+   status = okay;
+
+   vdd-supply = sys_3v3_reg;
+   pll-supply = vio_reg;
+
+   nvidia,hpd-gpio = gpio 111 0; /* PN7 */
+   nvidia,ddc-i2c-bus = hdmiddc;
+   };
+   };
+
memory {
reg = 0x8000 0x4000;
};
@@ -114,7 +133,7 @@
clock-frequency = 40800;
};
 
-   i2c@7000c000 {
+   rgbddc: i2c@7000c000 {
status = okay;
clock-frequency = 10;
};
@@ -137,7 +156,7 @@
};
};
 
-   i2c@7000c700 {
+   hdmiddc: i2c@7000c700 {
status = okay;
clock-frequency = 10;
};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/