Skip to contentSkip to conversation

ARM: dt: tegra: cardhu: Add drm components

PATCH Superseded Mark Zhang 2 participants 2 messages Nov 16, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Mark Zhang

author
#0 lore raw

PATCH 1/1 ARM: dt: tegra: cardhu: Add drm components

This patch adds the rgb and hdmi nodes which are necessary for tegra drm driver.

---
 arch/arm/boot/dts/tegra30-cardhu.dtsi |   23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)
arch/arm/boot/dts/tegra30-cardhu.dtsi +21 -2
index bdb2a66..9af6987 100644
@@ -27,6 +27,25 @@
 	model = "NVIDIA Tegra30 Cardhu evaluation board";
 	compatible = "nvidia,cardhu", "nvidia,tegra30";
 
+	host1x {
+		dc at 54200000 {
+			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 = <0x80000000 0x40000000>;
 	};
@@ -114,7 +133,7 @@
 		clock-frequency = <408000000>;
 	};
 
-	i2c at 7000c000 {
+	rgbddc: i2c at 7000c000 {
 		status = "okay";
 		clock-frequency = <100000>;
 	};
@@ -137,7 +156,7 @@
 		};
 	};
 
-	i2c at 7000c700 {
+	hdmiddc: i2c at 7000c700 {
 		status = "okay";
 		clock-frequency = <100000>;
 	};
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 15 lines · Mark Zhang

This patch adds the rgb and hdmi nodes which are necessary for tegra drm driver.

arch/arm/boot/dts/tegra30-cardhu.dtsi +10 -0
 
+	host1x {
+		dc at 54200000 {
+			rgb {
+				status = "okay";
+				nvidia,ddc-i2c-bus = <&rgbddc>;
+			};
+		};
+
+		hdmi {
+			status = "okay";

...

arch/arm/boot/dts/tegra30-cardhu.dtsi

Quoted 2 lines
arch/arm/boot/dts/tegra30-cardhu.dtsi +2 -0
+		};
+	};

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.