drm/exynos: add new compatible strings for hdmi subsystem
authorRahul Sharma <rahul.sharma@samsung.com>
Wed, 19 Jun 2013 12:51:07 +0000 (18:21 +0530)
committerInki Dae <daeinki@gmail.com>
Fri, 28 Jun 2013 12:13:57 +0000 (21:13 +0900)
This patch adds new combatible strings for hdmi, mixer, ddc
and hdmiphy. It follows the convention of using compatible string
which represent the SoC in which the IP was added for the first
time.

Drivers continue to support the previous compatible strings
but further addition of these compatible strings in device tree
is deprecated.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Documentation/devicetree/bindings/video/exynos_hdmi.txt
Documentation/devicetree/bindings/video/exynos_hdmiddc.txt
Documentation/devicetree/bindings/video/exynos_hdmiphy.txt
Documentation/devicetree/bindings/video/exynos_mixer.txt
drivers/gpu/drm/exynos/exynos_ddc.c
drivers/gpu/drm/exynos/exynos_hdmi.c
drivers/gpu/drm/exynos/exynos_hdmiphy.c
drivers/gpu/drm/exynos/exynos_mixer.c

index 589edee37394997b32a94c46ac26b0414773b34c..c71d0f0b750ae9918989760c658a1bb4fd36d165 100644 (file)
@@ -1,7 +1,10 @@
 Device-Tree bindings for drm hdmi driver
 
 Required properties:
-- compatible: value should be "samsung,exynos5-hdmi".
+- compatible: value should be one among the following:
+       1) "samsung,exynos5-hdmi" <DEPRECATED>
+       2) "samsung,exynos4210-hdmi"
+       3) "samsung,exynos4212-hdmi"
 - reg: physical base address of the hdmi and length of memory mapped
        region.
 - interrupts: interrupt number to the cpu.
@@ -15,7 +18,7 @@ Required properties:
 Example:
 
        hdmi {
-               compatible = "samsung,exynos5-hdmi";
+               compatible = "samsung,exynos4212-hdmi";
                reg = <0x14530000 0x100000>;
                interrupts = <0 95 0>;
                hpd-gpio = <&gpx3 7 0xf 1 3>;
index fa166d9458097b993c61b9f4db2717f60ea67df9..41eee971562b384813f6bdb93e0a917c10786c04 100644 (file)
@@ -1,12 +1,15 @@
 Device-Tree bindings for hdmiddc driver
 
 Required properties:
-- compatible: value should be "samsung,exynos5-hdmiddc".
+- compatible: value should be one of the following
+       1) "samsung,exynos5-hdmiddc" <DEPRECATED>
+       2) "samsung,exynos4210-hdmiddc"
+
 - reg: I2C address of the hdmiddc device.
 
 Example:
 
        hdmiddc {
-               compatible = "samsung,exynos5-hdmiddc";
+               compatible = "samsung,exynos4210-hdmiddc";
                reg = <0x50>;
        };
index 858f4f9b902fb5c005ad036328532dc5e4d03eac..162f641f7639c02a27c47cbf8e137c01b0dfc1d9 100644 (file)
@@ -1,12 +1,15 @@
 Device-Tree bindings for hdmiphy driver
 
 Required properties:
-- compatible: value should be "samsung,exynos5-hdmiphy".
+- compatible: value should be one of the following:
+       1) "samsung,exynos5-hdmiphy" <DEPRECATED>
+       2) "samsung,exynos4210-hdmiphy".
+       3) "samsung,exynos4212-hdmiphy".
 - reg: I2C address of the hdmiphy device.
 
 Example:
 
        hdmiphy {
-               compatible = "samsung,exynos5-hdmiphy";
+               compatible = "samsung,exynos4210-hdmiphy";
                reg = <0x38>;
        };
index 9b2ea03435665f4aecbd4cd049b56b41f4a6aa46..9131b99cd8ff1bef40198790ee254a80bdd58fb1 100644 (file)
@@ -1,7 +1,11 @@
 Device-Tree bindings for mixer driver
 
 Required properties:
-- compatible: value should be "samsung,exynos5-mixer".
+- compatible: value should be one of the following:
+       1) "samsung,exynos5-mixer" <DEPRECATED>
+       2) "samsung,exynos4210-mixer"
+       3) "samsung,exynos5250-mixer"
+
 - reg: physical base address of the mixer and length of memory mapped
        region.
 - interrupts: interrupt number to the cpu.
@@ -9,7 +13,7 @@ Required properties:
 Example:
 
        mixer {
-               compatible = "samsung,exynos5-mixer";
+               compatible = "samsung,exynos5250-mixer";
                reg = <0x14450000 0x10000>;
                interrupts = <0 94 0>;
        };
index 4e9b5ba8edff962bd1a5bd6720daa782e5388619..95c75edef01a0440303a36f2692ce963fe6a135e 100644 (file)
@@ -52,6 +52,8 @@ static struct i2c_device_id ddc_idtable[] = {
 static struct of_device_id hdmiddc_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiddc",
+       }, {
+               .compatible = "samsung,exynos4210-hdmiddc",
        }, {
                /* end node */
        }
index b565d1e63b3bddbb7a17ba20e0e7dbd7dd6a1d23..62ef5971ac3c6c40f2d269251a1d098386e024c4 100644 (file)
@@ -1917,6 +1917,9 @@ static struct of_device_id hdmi_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmi",
                .data   = (void *)HDMI_TYPE14,
+       }, {
+               .compatible = "samsung,exynos4212-hdmi",
+               .data   = (void *)HDMI_TYPE14,
        }, {
                /* end node */
        }
index ea49d132ecf66f2696d3673f3df1dfa09d2cfbaa..ef04255076c7f30bd293aa97f95fdaa7d6c5fdcd 100644 (file)
@@ -50,6 +50,10 @@ static const struct i2c_device_id hdmiphy_id[] = {
 static struct of_device_id hdmiphy_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiphy",
+       }, {
+               .compatible = "samsung,exynos4210-hdmiphy",
+       }, {
+               .compatible = "samsung,exynos4212-hdmiphy",
        }, {
                /* end node */
        }
index f36f878f1e3a4774e05ab172c78e50ecbe6c4b8c..62255011c9d60208fe6875e4c43c7b7648abe30e 100644 (file)
@@ -1115,12 +1115,12 @@ static int vp_resources_init(struct exynos_drm_hdmi_context *ctx,
        return 0;
 }
 
-static struct mixer_drv_data exynos5_mxr_drv_data = {
+static struct mixer_drv_data exynos5250_mxr_drv_data = {
        .version = MXR_VER_16_0_33_0,
        .is_vp_enabled = 0,
 };
 
-static struct mixer_drv_data exynos4_mxr_drv_data = {
+static struct mixer_drv_data exynos4210_mxr_drv_data = {
        .version = MXR_VER_0_0_0_16,
        .is_vp_enabled = 1,
 };
@@ -1128,10 +1128,10 @@ static struct mixer_drv_data exynos4_mxr_drv_data = {
 static struct platform_device_id mixer_driver_types[] = {
        {
                .name           = "s5p-mixer",
-               .driver_data    = (unsigned long)&exynos4_mxr_drv_data,
+               .driver_data    = (unsigned long)&exynos4210_mxr_drv_data,
        }, {
                .name           = "exynos5-mixer",
-               .driver_data    = (unsigned long)&exynos5_mxr_drv_data,
+               .driver_data    = (unsigned long)&exynos5250_mxr_drv_data,
        }, {
                /* end node */
        }
@@ -1140,7 +1140,10 @@ static struct platform_device_id mixer_driver_types[] = {
 static struct of_device_id mixer_match_types[] = {
        {
                .compatible = "samsung,exynos5-mixer",
-               .data   = &exynos5_mxr_drv_data,
+               .data   = &exynos5250_mxr_drv_data,
+       }, {
+               .compatible = "samsung,exynos5250-mixer",
+               .data   = &exynos5250_mxr_drv_data,
        }, {
                /* end node */
        }