aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/media/exynos5-gsc.txt30
-rw-r--r--arch/arm/boot/dts/exynos5250.dtsi28
-rw-r--r--arch/arm/mach-exynos/include/mach/map.h5
-rw-r--r--arch/arm/mach-exynos/mach-exynos5-dt.c8
4 files changed, 71 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/exynos5-gsc.txt b/Documentation/devicetree/bindings/media/exynos5-gsc.txt
new file mode 100644
index 000000000000..0604d42f38d1
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/exynos5-gsc.txt
@@ -0,0 +1,30 @@
1* Samsung Exynos5 G-Scaler device
2
3G-Scaler is used for scaling and color space conversion on EXYNOS5 SoCs.
4
5Required properties:
6- compatible: should be "samsung,exynos5-gsc"
7- reg: should contain G-Scaler physical address location and length.
8- interrupts: should contain G-Scaler interrupt number
9
10Example:
11
12gsc_0: gsc@0x13e00000 {
13 compatible = "samsung,exynos5-gsc";
14 reg = <0x13e00000 0x1000>;
15 interrupts = <0 85 0>;
16};
17
18Aliases:
19Each G-Scaler node should have a numbered alias in the aliases node,
20in the form of gscN, N = 0...3. G-Scaler driver uses these aliases
21to retrieve the device IDs using "of_alias_get_id()" call.
22
23Example:
24
25aliases {
26 gsc0 =&gsc_0;
27 gsc1 =&gsc_1;
28 gsc2 =&gsc_2;
29 gsc3 =&gsc_3;
30};
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 004aaa8d123c..b55794b494b4 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -27,6 +27,10 @@
27 spi0 = &spi_0; 27 spi0 = &spi_0;
28 spi1 = &spi_1; 28 spi1 = &spi_1;
29 spi2 = &spi_2; 29 spi2 = &spi_2;
30 gsc0 = &gsc_0;
31 gsc1 = &gsc_1;
32 gsc2 = &gsc_2;
33 gsc3 = &gsc_3;
30 }; 34 };
31 35
32 gic:interrupt-controller@10481000 { 36 gic:interrupt-controller@10481000 {
@@ -460,4 +464,28 @@
460 #gpio-cells = <4>; 464 #gpio-cells = <4>;
461 }; 465 };
462 }; 466 };
467
468 gsc_0: gsc@0x13e00000 {
469 compatible = "samsung,exynos5-gsc";
470 reg = <0x13e00000 0x1000>;
471 interrupts = <0 85 0>;
472 };
473
474 gsc_1: gsc@0x13e10000 {
475 compatible = "samsung,exynos5-gsc";
476 reg = <0x13e10000 0x1000>;
477 interrupts = <0 86 0>;
478 };
479
480 gsc_2: gsc@0x13e20000 {
481 compatible = "samsung,exynos5-gsc";
482 reg = <0x13e20000 0x1000>;
483 interrupts = <0 87 0>;
484 };
485
486 gsc_3: gsc@0x13e30000 {
487 compatible = "samsung,exynos5-gsc";
488 reg = <0x13e30000 0x1000>;
489 interrupts = <0 88 0>;
490 };
463}; 491};
diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h
index c72b675b3e4b..0300d7adc151 100644
--- a/arch/arm/mach-exynos/include/mach/map.h
+++ b/arch/arm/mach-exynos/include/mach/map.h
@@ -121,6 +121,11 @@
121#define EXYNOS4_PA_SYSMMU_MFC_L 0x13620000 121#define EXYNOS4_PA_SYSMMU_MFC_L 0x13620000
122#define EXYNOS4_PA_SYSMMU_MFC_R 0x13630000 122#define EXYNOS4_PA_SYSMMU_MFC_R 0x13630000
123 123
124#define EXYNOS5_PA_GSC0 0x13E00000
125#define EXYNOS5_PA_GSC1 0x13E10000
126#define EXYNOS5_PA_GSC2 0x13E20000
127#define EXYNOS5_PA_GSC3 0x13E30000
128
124#define EXYNOS5_PA_SYSMMU_MDMA1 0x10A40000 129#define EXYNOS5_PA_SYSMMU_MDMA1 0x10A40000
125#define EXYNOS5_PA_SYSMMU_SSS 0x10A50000 130#define EXYNOS5_PA_SYSMMU_SSS 0x10A50000
126#define EXYNOS5_PA_SYSMMU_2D 0x10A60000 131#define EXYNOS5_PA_SYSMMU_2D 0x10A60000
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index ef770bc2318f..e707eb1b1eab 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -56,6 +56,14 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
56 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA0, "dma-pl330.0", NULL), 56 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA0, "dma-pl330.0", NULL),
57 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA1, "dma-pl330.1", NULL), 57 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA1, "dma-pl330.1", NULL),
58 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL), 58 OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL),
59 OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC0,
60 "exynos-gsc.0", NULL),
61 OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC1,
62 "exynos-gsc.1", NULL),
63 OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC2,
64 "exynos-gsc.2", NULL),
65 OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC3,
66 "exynos-gsc.3", NULL),
59 {}, 67 {},
60}; 68};
61 69