ARM: EXYNOS: Add AUXDATA for DP controller
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
@@ -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
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
@@ -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
@@ -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
Quoted 34 lines · Jingoo Han
Use AUXDATA to set the device names for DP controller instance discovered from device tree.
Signed-off-by Ajay Kumar <[email protected]>Signed-off-by Jingoo Han <[email protected]>---
Tested with SMDK5250 boardChanges since v2:
- rebase on linux-samsung for-next branchChanges since v1:
- replace the definition with the valuearch/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 100644arch/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