Skip to contentSkip to conversation

ARM: EXYNOS: Add AUXDATA for DP controller

PATCH In review Jingoo Han 2 participants 3 messages Jan 30, 2013 – Feb 12, 2013

Subsystems (4)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v3 1/2 ARM: EXYNOS: Add AUXDATA for DP controller

Use AUXDATA to set the device names for DP controller instance discovered from device tree.

---
Tested with SMDK5250 board

Changes since v2:
- rebase on linux-samsung for-next branch

Changes since v1:
- replace the definition with the value

 arch/arm/mach-exynos/mach-exynos5-dt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/mach-exynos5-dt.c +1 -0
index e99d3d8..00ee732 100644
@@ -104,6 +104,7 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
 	OF_DEV_AUXDATA("samsung,mfc-v6", 0x11000000, "s5p-mfc-v6", NULL),
 	OF_DEV_AUXDATA("samsung,exynos5250-tmu", 0x10060000,
 				"exynos-tmu", NULL),
+	OF_DEV_AUXDATA("samsung,exynos5-dp", 0x145B0000, "exynos-dp", NULL),
 	{},
 };
 
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH v3 2/2 ARM: dts: Add device tree node for DP controller for exynos5250

Add device tree node for DP controller in EXYNOS5250 and enable the instance for the SMDK5250 board.

---
Tested with SMDK5250 board

Changes since v2:
- rebase on linux-samsung for-next branch

Changes since v1:
- change the property name from 'display-port-controller' to 'dp-controller'

 arch/arm/boot/dts/exynos5250-smdk5250.dts |    9 +++++++++
 arch/arm/boot/dts/exynos5250.dtsi         |   14 ++++++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
arch/arm/boot/dts/exynos5250-smdk5250.dts +9 -0
index e05b18f..e2fe2af 100644
@@ -204,4 +204,13 @@
 		samsung,mfc-r = <0x43000000 0x800000>;
 		samsung,mfc-l = <0x51000000 0x800000>;
 	};
+
+	dp-controller {
+		samsung,color-space = <0>;
+		samsung,dynamic-range = <0>;
+		samsung,ycbcr-coeff = <0>;
+		samsung,color-depth = <1>;
+		samsung,link-rate = <0x0a>;
+		samsung,lane-count = <4>;
+	};
 };
arch/arm/boot/dts/exynos5250.dtsi +14 -0
index 30485de..b482d8e 100644
@@ -732,4 +732,18 @@
 		interrupt-parent = <&combiner>;
 		interrupts = <24 1>;
 	};
+
+	dp-controller {
+		compatible = "samsung,exynos5-dp";
+		reg = <0x145b0000 0x1000>;
+		interrupts = <10 3>;
+		interrupt-parent = <&combiner>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		dptx-phy {
+			reg = <0x10040720>;
+			samsung,enable-mask = <1>;
+		};
+	};
 };
Signature · 1 line
1.7.2.5
#2 lore raw
In reply to Jingoo Han
Quoted 34 lines · Jingoo Han

Use AUXDATA to set the device names for DP controller instance discovered from device tree.

---
Tested with SMDK5250 board

Changes since v2:
- rebase on linux-samsung for-next branch

Changes since v1:
- replace the definition with the value

 arch/arm/mach-exynos/mach-exynos5-dt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-exynos/mach-exynos5-dt.c +0 -0

exynos/mach-exynos5-dt.c
index e99d3d8..00ee732 100644

arch/arm/mach-exynos/mach-exynos5-dt.c +1 -0
@@ -104,6 +104,7 @@ static const struct of_dev_auxdata
 exynos5250_auxdata_lookup[] __initconst = {
 	OF_DEV_AUXDATA("samsung,mfc-v6", 0x11000000, "s5p-mfc-v6",
 NULL),
 	OF_DEV_AUXDATA("samsung,exynos5250-tmu", 0x10060000,
 				"exynos-tmu", NULL),
+	OF_DEV_AUXDATA("samsung,exynos5-dp", 0x145B0000, "exynos-
 dp", NULL),

{},
};

Quoted 2 lines

--
1.7.2.5

OK, applied, this series.

Thanks.

- Kukjin