* [PATCH 1/8] dts: exynos: add device tree support for exynos5 hdmi
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 2/8] dts: exynos: add device tree support for exynos5 mixer Rahul Sharma
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for device tree based discovery for exynos5
hdmi. Hdmi node is also renamed with "exynos5-hdmi".
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/boot/dts/exynos5250-smdk5250.dts | 4 ++++
arch/arm/boot/dts/exynos5250.dtsi | 7 +++++++
arch/arm/mach-exynos/include/mach/map.h | 1 +
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
4 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index a352df4..2a478ab 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -166,4 +166,8 @@
spi_2: spi@12d40000 {
status = "disabled";
};
+
+ hdmi {
+ hpd-gpio = <&gpx3 7 0xf 1 3>;
+ };
};
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index f69e389..4e019b5 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -492,4 +492,11 @@
#gpio-cells = <4>;
};
};
+
+ hdmi {
+ compatible = "samsung,exynos5-hdmi";
+ reg = <0x14530000 0x100000>;
+ interrupts = <0 95 0>;
+ version = "1.4";
+ };
};
diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h
index 5edbbe9..7b9efb2 100644
--- a/arch/arm/mach-exynos/include/mach/map.h
+++ b/arch/arm/mach-exynos/include/mach/map.h
@@ -201,6 +201,7 @@
#define EXYNOS4_PA_SDO 0x12C20000
#define EXYNOS4_PA_HDMI 0x12D00000
#define EXYNOS4_PA_IIC_HDMIPHY 0x138E0000
+#define EXYNOS5_PA_HDMI 0x14530000
#define EXYNOS4_PA_IIC(x) (0x13860000 + ((x) * 0x10000))
#define EXYNOS5_PA_IIC(x) (0x12C60000 + ((x) * 0x10000))
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index ce82f30..43449fb 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -64,6 +64,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA0, "dma-pl330.0", NULL),
OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA1, "dma-pl330.1", NULL),
OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL),
+ OF_DEV_AUXDATA("samsung,exynos5-hdmi", EXYNOS5_PA_HDMI,
+ "exynos5-hdmi", NULL),
{},
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/8] dts: exynos: add device tree support for exynos5 mixer
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
2012-10-04 16:14 ` [PATCH 1/8] dts: exynos: add device tree " Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 3/8] dts: exynos: add device tree support for exynos5 hdmiphy Rahul Sharma
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for device tree based discovery for exynos5
mixer. Mixer node is also renamed with "exynos5-mixer".
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++++
arch/arm/mach-exynos/include/mach/map.h | 1 +
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 4e019b5..e4483bc 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -499,4 +499,12 @@
interrupts = <0 95 0>;
version = "1.4";
};
+
+ mixer {
+ compatible = "samsung,exynos5-mixer";
+ reg = <0x14450000 0x10000>;
+ interrupts = <0 94 0>;
+ version = "16.0.33.0";
+ vp-support = <0>;
+ };
};
diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h
index 7b9efb2..314ee75 100644
--- a/arch/arm/mach-exynos/include/mach/map.h
+++ b/arch/arm/mach-exynos/include/mach/map.h
@@ -201,6 +201,7 @@
#define EXYNOS4_PA_SDO 0x12C20000
#define EXYNOS4_PA_HDMI 0x12D00000
#define EXYNOS4_PA_IIC_HDMIPHY 0x138E0000
+#define EXYNOS5_PA_MIXER 0x14450000
#define EXYNOS5_PA_HDMI 0x14530000
#define EXYNOS4_PA_IIC(x) (0x13860000 + ((x) * 0x10000))
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 43449fb..cdad7c1 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -66,6 +66,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL),
OF_DEV_AUXDATA("samsung,exynos5-hdmi", EXYNOS5_PA_HDMI,
"exynos5-hdmi", NULL),
+ OF_DEV_AUXDATA("samsung,exynos5-mixer", EXYNOS5_PA_MIXER,
+ "exynos5-mixer", NULL),
{},
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/8] dts: exynos: add device tree support for exynos5 hdmiphy
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
2012-10-04 16:14 ` [PATCH 1/8] dts: exynos: add device tree " Rahul Sharma
2012-10-04 16:14 ` [PATCH 2/8] dts: exynos: add device tree support for exynos5 mixer Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 4/8] dts: exynos: add device tree support for exynos5 hdmiddc Rahul Sharma
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for device tree based discovery for exynos5
hdmiphy.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/boot/dts/exynos5250-smdk5250.dts | 10 ++++++++++
arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++++
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
3 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index 2a478ab..af9271c 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -79,6 +79,16 @@
status = "disabled";
};
+ i2c@12CE0000 {
+ samsung,i2c-sda-delay = <100>;
+ samsung,i2c-max-bus-freq = <66000>;
+
+ hdmiphy {
+ compatible = "samsung,exynos5-hdmiphy";
+ reg = <0x38>;
+ };
+ };
+
dwmmc_0: dwmmc0@12200000 {
num-slots = <1>;
supports-highspeed;
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index e4483bc..dd5a4c3 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -152,6 +152,14 @@
#size-cells = <0>;
};
+ i2c@12CE0000 {
+ compatible = "samsung,s3c2440-hdmiphy-i2c";
+ reg = <0x12CE0000 0x1000>;
+ interrupts = <0 64 0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
spi_0: spi@12d20000 {
compatible = "samsung,exynos4210-spi";
reg = <0x12d20000 0x100>;
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index cdad7c1..3f129db 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -47,6 +47,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
"s3c2440-i2c.0", NULL),
OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS5_PA_IIC(1),
"s3c2440-i2c.1", NULL),
+ OF_DEV_AUXDATA("samsung,s3c2440-hdmiphy-i2c", EXYNOS5_PA_IIC(8),
+ "s3c2440-hdmiphy-i2c", NULL),
OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI0,
"dw_mmc.0", NULL),
OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI1,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/8] dts: exynos: add device tree support for exynos5 hdmiddc
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
` (2 preceding siblings ...)
2012-10-04 16:14 ` [PATCH 3/8] dts: exynos: add device tree support for exynos5 hdmiphy Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 5/8] arm: exynos: add clocks for exynos5 hdmi Rahul Sharma
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for device tree based discovery for exynos5
hdmi ddc.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/boot/dts/exynos5250-smdk5250.dts | 10 +++++++++-
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index af9271c..be22a83 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -56,7 +56,15 @@
};
i2c@12C80000 {
- status = "disabled";
+ samsung,i2c-sda-delay = <100>;
+ samsung,i2c-max-bus-freq = <66000>;
+ gpios = <&gpa0 6 3 3 0>,
+ <&gpa0 7 3 3 0>;
+
+ hdmiddc {
+ compatible = "samsung,exynos5-hdmiddc";
+ reg = <0x50>;
+ };
};
i2c@12C90000 {
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 3f129db..003963c 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -47,6 +47,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
"s3c2440-i2c.0", NULL),
OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS5_PA_IIC(1),
"s3c2440-i2c.1", NULL),
+ OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS5_PA_IIC(2),
+ "s3c2440-i2c.2", NULL),
OF_DEV_AUXDATA("samsung,s3c2440-hdmiphy-i2c", EXYNOS5_PA_IIC(8),
"s3c2440-hdmiphy-i2c", NULL),
OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI0,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/8] arm: exynos: add clocks for exynos5 hdmi
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
` (3 preceding siblings ...)
2012-10-04 16:14 ` [PATCH 4/8] dts: exynos: add device tree support for exynos5 hdmiddc Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 6/8] arm: exynos: config exynos5 hdmi-hpd gpio Rahul Sharma
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for clocks for hdmi, hdmiphy and mixer.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/mach-exynos/clock-exynos5.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c
index 17e6c77..ec2a4da 100644
--- a/arch/arm/mach-exynos/clock-exynos5.c
+++ b/arch/arm/mach-exynos/clock-exynos5.c
@@ -201,6 +201,11 @@ static int exynos5_clk_ip_isp1_ctrl(struct clk *clk, int enable)
return s5p_gatectrl(EXYNOS5_CLKGATE_IP_ISP1, clk, enable);
}
+static int exynos5_clk_hdmiphy_ctrl(struct clk *clk, int enable)
+{
+ return s5p_gatectrl(S5P_HDMI_PHY_CONTROL, clk, enable);
+}
+
/* Core list of CMU_CPU side */
static struct clksrc_clk exynos5_clk_mout_apll = {
@@ -612,12 +617,17 @@ static struct clk exynos5_init_clocks_off[] = {
.ctrlbit = (1 << 0),
}, {
.name = "hdmi",
- .devname = "exynos4-hdmi",
+ .devname = "exynos5-hdmi",
.enable = exynos5_clk_ip_disp1_ctrl,
.ctrlbit = (1 << 6),
}, {
+ .name = "hdmiphy",
+ .devname = "exynos5-hdmi",
+ .enable = exynos5_clk_hdmiphy_ctrl,
+ .ctrlbit = (1 << 0),
+ }, {
.name = "mixer",
- .devname = "s5p-mixer",
+ .devname = "exynos5-mixer",
.enable = exynos5_clk_ip_disp1_ctrl,
.ctrlbit = (1 << 5),
}, {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/8] arm: exynos: config exynos5 hdmi-hpd gpio
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
` (4 preceding siblings ...)
2012-10-04 16:14 ` [PATCH 5/8] arm: exynos: add clocks for exynos5 hdmi Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 8:15 ` Kyungmin Park
2012-10-04 16:14 ` [PATCH 7/8] arm: exynos: add exynos5 drm framework platform device Rahul Sharma
2012-10-04 16:14 ` [PATCH 8/8] arm: exynos: add exynos5 drm-hdmi common " Rahul Sharma
7 siblings, 1 reply; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds support for the configuration of exynos5 hdmi-hpd gpio.
It sets the gpio fucntion to EINT which is required for recieving
external hpd interrupt in drm hdmi driver.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/mach-exynos/mach-exynos5-dt.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 003963c..9a6d569 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -11,6 +11,7 @@
#include <linux/of_platform.h>
#include <linux/serial_core.h>
+#include <linux/gpio.h>
#include <asm/mach/arch.h>
#include <asm/hardware/gic.h>
@@ -18,6 +19,7 @@
#include <plat/cpu.h>
#include <plat/regs-serial.h>
+#include <plat/gpio-cfg.h>
#include "common.h"
@@ -81,10 +83,17 @@ static void __init exynos5250_dt_map_io(void)
s3c24xx_init_clocks(24000000);
}
+static void smdk_hpd_setup(void)
+{
+ s3c_gpio_cfgpin(EXYNOS5_GPX3(7), S3C_GPIO_SFN(0xf));
+ s3c_gpio_setpull(EXYNOS5_GPX3(7), S3C_GPIO_PULL_DOWN);
+}
+
static void __init exynos5250_dt_machine_init(void)
{
of_platform_populate(NULL, of_default_bus_match_table,
exynos5250_auxdata_lookup, NULL);
+ smdk_hpd_setup();
}
static char const *exynos5250_dt_compat[] __initdata = {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 6/8] arm: exynos: config exynos5 hdmi-hpd gpio
2012-10-04 16:14 ` [PATCH 6/8] arm: exynos: config exynos5 hdmi-hpd gpio Rahul Sharma
@ 2012-10-04 8:15 ` Kyungmin Park
0 siblings, 0 replies; 10+ messages in thread
From: Kyungmin Park @ 2012-10-04 8:15 UTC (permalink / raw)
To: Rahul Sharma
Cc: linux-samsung-soc, devicetree-discuss, kgene.kim, t.stanislaws,
sw0312.kim, inki.dae, jy0922.shim, prashanth.g, joshi, s.shirish,
fahad.k, l.krishna, r.sh.open
On 10/5/12, Rahul Sharma <rahul.sharma@samsung.com> wrote:
> This patch adds support for the configuration of exynos5 hdmi-hpd gpio.
> It sets the gpio fucntion to EINT which is required for recieving
> external hpd interrupt in drm hdmi driver.
>
> Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
> ---
> arch/arm/mach-exynos/mach-exynos5-dt.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c
> b/arch/arm/mach-exynos/mach-exynos5-dt.c
> index 003963c..9a6d569 100644
> --- a/arch/arm/mach-exynos/mach-exynos5-dt.c
> +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
> @@ -11,6 +11,7 @@
>
> #include <linux/of_platform.h>
> #include <linux/serial_core.h>
> +#include <linux/gpio.h>
>
> #include <asm/mach/arch.h>
> #include <asm/hardware/gic.h>
> @@ -18,6 +19,7 @@
>
> #include <plat/cpu.h>
> #include <plat/regs-serial.h>
> +#include <plat/gpio-cfg.h>
>
> #include "common.h"
>
> @@ -81,10 +83,17 @@ static void __init exynos5250_dt_map_io(void)
> s3c24xx_init_clocks(24000000);
> }
>
> +static void smdk_hpd_setup(void)
> +{
> + s3c_gpio_cfgpin(EXYNOS5_GPX3(7), S3C_GPIO_SFN(0xf));
> + s3c_gpio_setpull(EXYNOS5_GPX3(7), S3C_GPIO_PULL_DOWN);
> +}
these should be described at dts file instead of here. and name is not
good. smdk...
Thank you,
Kyungmin Park
> +
> static void __init exynos5250_dt_machine_init(void)
> {
> of_platform_populate(NULL, of_default_bus_match_table,
> exynos5250_auxdata_lookup, NULL);
> + smdk_hpd_setup();
> }
>
> static char const *exynos5250_dt_compat[] __initdata = {
> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 7/8] arm: exynos: add exynos5 drm framework platform device
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
` (5 preceding siblings ...)
2012-10-04 16:14 ` [PATCH 6/8] arm: exynos: config exynos5 hdmi-hpd gpio Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
2012-10-04 16:14 ` [PATCH 8/8] arm: exynos: add exynos5 drm-hdmi common " Rahul Sharma
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds drm framework platform device. This device is a
software device, hence not made part of device tree file.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/mach-exynos/mach-exynos5-dt.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 9a6d569..db3447c 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -17,6 +17,7 @@
#include <asm/hardware/gic.h>
#include <mach/map.h>
+#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/regs-serial.h>
#include <plat/gpio-cfg.h>
@@ -77,6 +78,9 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
{},
};
+static struct platform_device *exynos5_devices[] __initdata = {
+ &exynos_device_drm,
+};
static void __init exynos5250_dt_map_io(void)
{
exynos_init_io(NULL, 0);
@@ -94,6 +98,7 @@ static void __init exynos5250_dt_machine_init(void)
of_platform_populate(NULL, of_default_bus_match_table,
exynos5250_auxdata_lookup, NULL);
smdk_hpd_setup();
+ platform_add_devices(exynos5_devices, ARRAY_SIZE(exynos5_devices));
}
static char const *exynos5250_dt_compat[] __initdata = {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 8/8] arm: exynos: add exynos5 drm-hdmi common platform device
2012-10-04 16:14 [PATCH 0/8] arm: exynos: add dt based support for exynos5 hdmi Rahul Sharma
` (6 preceding siblings ...)
2012-10-04 16:14 ` [PATCH 7/8] arm: exynos: add exynos5 drm framework platform device Rahul Sharma
@ 2012-10-04 16:14 ` Rahul Sharma
7 siblings, 0 replies; 10+ messages in thread
From: Rahul Sharma @ 2012-10-04 16:14 UTC (permalink / raw)
To: linux-samsung-soc, devicetree-discuss
Cc: kgene.kim, t.stanislaws, sw0312.kim, inki.dae, jy0922.shim,
kyungmin.park, prashanth.g, joshi, s.shirish, fahad.k, l.krishna,
r.sh.open, rahul.sharma
This patch adds drm-hdmi-common platform device which abstracts hdmi
and mixer device. This is software module hence not palced as device
tree node.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
arch/arm/mach-exynos/dev-drm.c | 5 +++++
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
arch/arm/plat-samsung/include/plat/devs.h | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos/dev-drm.c b/arch/arm/mach-exynos/dev-drm.c
index 17c9c6e..ca811de 100644
--- a/arch/arm/mach-exynos/dev-drm.c
+++ b/arch/arm/mach-exynos/dev-drm.c
@@ -27,3 +27,8 @@ struct platform_device exynos_device_drm = {
.coherent_dma_mask = DMA_BIT_MASK(32),
}
};
+
+/* common drm-hdmi device which abstracts hdmi and mixer dev*/
+struct platform_device exynos_drm_hdmi_device = {
+ .name = "exynos-drm-hdmi",
+};
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index db3447c..db7092e 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -79,8 +79,10 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
};
static struct platform_device *exynos5_devices[] __initdata = {
+ &exynos_drm_hdmi_device,
&exynos_device_drm,
};
+
static void __init exynos5250_dt_map_io(void)
{
exynos_init_io(NULL, 0);
diff --git a/arch/arm/plat-samsung/include/plat/devs.h b/arch/arm/plat-samsung/include/plat/devs.h
index 5da4b4f..cda177e 100644
--- a/arch/arm/plat-samsung/include/plat/devs.h
+++ b/arch/arm/plat-samsung/include/plat/devs.h
@@ -134,6 +134,7 @@ extern struct platform_device exynos4_device_pcm2;
extern struct platform_device exynos4_device_spdif;
extern struct platform_device exynos_device_drm;
+extern struct platform_device exynos_drm_hdmi_device;
extern struct platform_device samsung_asoc_dma;
extern struct platform_device samsung_asoc_idma;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread