Skip to contentSkip to conversation

drm/exynos: add dt support to exynos4 mixer and hdmi

PATCH In review Rahul Sharma 3 participants 5 messages Jan 25, 2013 – Jan 31, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover drm/exynos: add dt support to exynos4 mixer and hdmi

This patch enables the DT based search to DRM Mixer and HDMI driver for Samsung Exynos4 family soc.

This set is base on "exynos-drm-fixes" branch at
http://git.kernel.org/?p=linux/kernel/git/daeinki/drm-exynos.git

Rahul Sharma (2):
drm/exynos: add support for dt based search to exynos4 hdmi drm/exynos: add support for dt based search to exynos4 mixer

 drivers/gpu/drm/exynos/exynos_ddc.c     | 2 ++
 drivers/gpu/drm/exynos/exynos_hdmi.c    | 6 ++++++
 drivers/gpu/drm/exynos/exynos_hdmiphy.c | 2 ++
 drivers/gpu/drm/exynos/exynos_mixer.c   | 3 +++
 4 files changed, 13 insertions(+)
Signature · 1 line
1.8.0
#1 lore raw

PATCH 1/2 drm/exynos: add support for dt based search to exynos4 hdmi

---
 drivers/gpu/drm/exynos/exynos_ddc.c     | 2 ++
 drivers/gpu/drm/exynos/exynos_hdmi.c    | 6 ++++++
 drivers/gpu/drm/exynos/exynos_hdmiphy.c | 2 ++
 3 files changed, 10 insertions(+)
drivers/gpu/drm/exynos/exynos_ddc.c +2 -0
index 4e9b5ba..7680809 100644
@@ -53,6 +53,8 @@ static struct of_device_id hdmiddc_match_types[] = {
 	{
 		.compatible = "samsung,exynos5-hdmiddc",
 	}, {
+		.compatible = "samsung,exynos4-hdmiddc",
+	}, {
 		/* end node */
 	}
 };
drivers/gpu/drm/exynos/exynos_hdmi.c +6 -0
index fbab3c4..202b65f 100644
@@ -2418,6 +2418,12 @@ static struct platform_device_id hdmi_driver_types[] = {
 #ifdef CONFIG_OF
 static struct of_device_id hdmi_match_types[] = {
 	{
+		.compatible = "samsung,exynos4-hdmi",
+		.data	= (void	*)HDMI_TYPE13,
+	}, {
+		.compatible = "samsung,exynos4-hdmi14",
+		.data	= (void	*)HDMI_TYPE14,
+	}, {
 		.compatible = "samsung,exynos5-hdmi",
 		.data	= (void	*)HDMI_TYPE14,
 	}, {
drivers/gpu/drm/exynos/exynos_hdmiphy.c +2 -0
index ea49d13..2e33f90 100644
@@ -51,6 +51,8 @@ static struct of_device_id hdmiphy_match_types[] = {
 	{
 		.compatible = "samsung,exynos5-hdmiphy",
 	}, {
+		.compatible = "samsung,exynos4-hdmiphy",
+	}, {
 		/* end node */
 	}
 };
Signature · 1 line
1.8.0
maintainer
#2 lore raw

Re: [PATCH 1/2] drm/exynos: add support for dt based search to exynos4 hdmi

Hi Rahul,

Could you add descriptions to dt document file? For this, you can refer to the below link,

        https://patchwork.kernel.org/patch/1948061/

Thanks,
Inki Dae

2013/1/25 Rahul Sharma <[email protected]>:

Quoted 57 lines
---
 drivers/gpu/drm/exynos/exynos_ddc.c     | 2 ++
 drivers/gpu/drm/exynos/exynos_hdmi.c    | 6 ++++++
 drivers/gpu/drm/exynos/exynos_hdmiphy.c | 2 ++
 3 files changed, 10 insertions(+)
drivers/gpu/drm/exynos/exynos_ddc.c +2 -0
index 4e9b5ba..7680809 100644
@@ -53,6 +53,8 @@ static struct of_device_id hdmiddc_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiddc",
        }, {
+               .compatible = "samsung,exynos4-hdmiddc",
+       }, {
                /* end node */
        }
 };
drivers/gpu/drm/exynos/exynos_hdmi.c +6 -0
index fbab3c4..202b65f 100644
@@ -2418,6 +2418,12 @@ static struct platform_device_id hdmi_driver_types[] = {
 #ifdef CONFIG_OF
 static struct of_device_id hdmi_match_types[] = {
        {
+               .compatible = "samsung,exynos4-hdmi",
+               .data   = (void *)HDMI_TYPE13,
+       }, {
+               .compatible = "samsung,exynos4-hdmi14",
+               .data   = (void *)HDMI_TYPE14,
+       }, {
                .compatible = "samsung,exynos5-hdmi",
                .data   = (void *)HDMI_TYPE14,
        }, {
drivers/gpu/drm/exynos/exynos_hdmiphy.c +2 -1
index ea49d13..2e33f90 100644
@@ -51,6 +51,8 @@ static struct of_device_id hdmiphy_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiphy",
        }, {
+               .compatible = "samsung,exynos4-hdmiphy",
+       }, {
                /* end node */
        }
 };
--

1.8.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Re: [PATCH 1/2] drm/exynos: add support for dt based search to exynos4 hdmi

Thanks Mr. Dae,

I will include DT binding documentation in Arch side patches. I am following the mentioned thread.

regards,
Rahul Sharma.

Quoted 71 lines · Inki Dae

Hi Rahul,

Could you add descriptions to dt document file? For this, you can refer to the below link,

        https://patchwork.kernel.org/patch/1948061/

Thanks,
Inki Dae

2013/1/25 Rahul Sharma <[email protected]>:

Quoted 53 lines
---
 drivers/gpu/drm/exynos/exynos_ddc.c     | 2 ++
 drivers/gpu/drm/exynos/exynos_hdmi.c    | 6 ++++++
 drivers/gpu/drm/exynos/exynos_hdmiphy.c | 2 ++
 3 files changed, 10 insertions(+)
drivers/gpu/drm/exynos/exynos_ddc.c +2 -0
index 4e9b5ba..7680809 100644
@@ -53,6 +53,8 @@ static struct of_device_id hdmiddc_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiddc",
        }, {
+               .compatible = "samsung,exynos4-hdmiddc",
+       }, {
                /* end node */
        }
 };
drivers/gpu/drm/exynos/exynos_hdmi.c +6 -0
index fbab3c4..202b65f 100644
@@ -2418,6 +2418,12 @@ static struct platform_device_id hdmi_driver_types[] = {
 #ifdef CONFIG_OF
 static struct of_device_id hdmi_match_types[] = {
        {
+               .compatible = "samsung,exynos4-hdmi",
+               .data   = (void *)HDMI_TYPE13,
+       }, {
+               .compatible = "samsung,exynos4-hdmi14",
+               .data   = (void *)HDMI_TYPE14,
+       }, {
                .compatible = "samsung,exynos5-hdmi",
                .data   = (void *)HDMI_TYPE14,
        }, {
drivers/gpu/drm/exynos/exynos_hdmiphy.c +2 -1
index ea49d13..2e33f90 100644
@@ -51,6 +51,8 @@ static struct of_device_id hdmiphy_match_types[] = {
        {
                .compatible = "samsung,exynos5-hdmiphy",
        }, {
+               .compatible = "samsung,exynos4-hdmiphy",
+       }, {
                /* end node */
        }
 };
--

1.8.0

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

PATCH 2/2 drm/exynos: add support for dt based search to exynos4 mixer

In reply to Rahul Sharma
---
 drivers/gpu/drm/exynos/exynos_mixer.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/exynos/exynos_mixer.c +3 -0
index c414584..67f50b5 100644
@@ -1131,6 +1131,9 @@ static struct of_device_id mixer_match_types[] = {
 		.compatible = "samsung,exynos5-mixer",
 		.data	= &exynos5_mxr_drv_data,
 	}, {
+		.compatible = "samsung,exynos4-mixer",
+		.data	= &exynos4_mxr_drv_data,
+	}, {
 		/* end node */
 	}
 };
Signature · 1 line
1.8.0