* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 11:22 ` [PATCH V6 2/2] video: drm: exynos: Add device tree support Leela Krishna Amudala
@ 2012-09-21 5:14 ` Stephen Warren
2012-09-21 7:22 ` Inki Dae
2012-10-01 5:29 ` Leela Krishna Amudala
0 siblings, 2 replies; 15+ messages in thread
From: Stephen Warren @ 2012-09-21 5:14 UTC (permalink / raw)
To: Leela Krishna Amudala
Cc: dri-devel, devicetree-discuss, inki.dae, kgene.kim,
linux-samsung-soc, laurent.pinchart, linux-arm-kernel
On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
> This patch adds device tree based discovery support for exynos DRM-FIMD
> driver which includes driver modification to handle platform data in
> both the cases with DT and non-DT, Also adds the documentation for bindings.
> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
...
> + - samsung,fimd-display: This property should specify the phandle of the
> + display device node which holds the video interface timing with the
> + below mentioned properties.
> +
> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
> + horizontal timing includes four parameters in the following order.
> +
> + - horizontal back porch (in number of lcd clocks)
> + - horizontal front porch (in number of lcd clocks)
> + - hsync pulse width (in number of lcd clocks)
> + - Display panels X resolution.
> +
> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
> + vertical timing includes four parameters in the following order.
> +
> + - vertical back porch (in number of lcd lines)
> + - vertical front porch (in number of lcd lines)
> + - vsync pulse width (in number of lcd clocks)
> + - Display panels Y resolution.
Should this not use the new videomode timings that are under discussion at:
http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 5:14 ` Stephen Warren
@ 2012-09-21 7:22 ` Inki Dae
2012-09-21 16:06 ` Stephen Warren
2012-10-01 5:29 ` Leela Krishna Amudala
1 sibling, 1 reply; 15+ messages in thread
From: Inki Dae @ 2012-09-21 7:22 UTC (permalink / raw)
To: Stephen Warren
Cc: Leela Krishna Amudala, linux-samsung-soc, devicetree-discuss,
dri-devel, kgene.kim, laurent.pinchart, linux-arm-kernel
2012/9/21 Stephen Warren <swarren@wwwdotorg.org>:
> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
>> This patch adds device tree based discovery support for exynos DRM-FIMD
>> driver which includes driver modification to handle platform data in
>> both the cases with DT and non-DT, Also adds the documentation for bindings.
>
>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
> ...
>> + - samsung,fimd-display: This property should specify the phandle of the
>> + display device node which holds the video interface timing with the
>> + below mentioned properties.
>> +
>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>> + horizontal timing includes four parameters in the following order.
>> +
>> + - horizontal back porch (in number of lcd clocks)
>> + - horizontal front porch (in number of lcd clocks)
>> + - hsync pulse width (in number of lcd clocks)
>> + - Display panels X resolution.
>> +
>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
>> + vertical timing includes four parameters in the following order.
>> +
>> + - vertical back porch (in number of lcd lines)
>> + - vertical front porch (in number of lcd lines)
>> + - vsync pulse width (in number of lcd clocks)
>> + - Display panels Y resolution.
>
> Should this not use the new videomode timings that are under discussion at:
>
> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>
ok, I agree with you. then the videomode helper is going to be merged
to mainline(3.6)? if so, this patch should be reworked based on the
videomode helper.
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V6 0/2] video: drm: Add Device tree support to exynos DRM-FIMD
@ 2012-09-21 11:22 Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 1/2] drm/exynos: add platform_device_id table and driver data for drm fimd Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 2/2] video: drm: exynos: Add device tree support Leela Krishna Amudala
0 siblings, 2 replies; 15+ messages in thread
From: Leela Krishna Amudala @ 2012-09-21 11:22 UTC (permalink / raw)
To: dri-devel, devicetree-discuss
Cc: linux-arm-kernel, linux-samsung-soc, inki.dae, kgene.kim,
laurent.pinchart
This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250.
It includes parsing platform data from dts file. Also, adds the driver data
for exynos4 and exynos5 devices.
This patchset is based and tested on top of v3.6-rc4 on smdk5250 board
Also depends on below patchset
http://lists.freedesktop.org/archives/dri-devel/2012-August/026076.html
Changes since V5:
- Moved the documentation file to appropriate location.
- Given more description in the commit message to the patch
video: drm: exynos: Add device tree support
Changes since V4:
- Changed the compatible string from "samsung,exynos4-fb" to
"samsung,exynos4-fimd".
Changes since V3:
- Removed the fimd version from driver data and using timing base
address instead
- Removed the drm_ prefixes to the structures and fucntions
Changes since V2:
- Added driver data to exynos5-drm-fimd as per Marek Szyprowski suggestion
Changes since V1:
- Corrected typo errors and changed compatibility string
Leela Krishna Amudala (2):
drm/exynos: add platform_device_id table and driver data for drm fimd
video: drm: exynos: Add device tree support
.../devicetree/bindings/drm/exynos/fimd.txt | 80 +++++++++++
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 138 +++++++++++++++++++-
2 files changed, 212 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V6 1/2] drm/exynos: add platform_device_id table and driver data for drm fimd
2012-09-21 11:22 [PATCH V6 0/2] video: drm: Add Device tree support to exynos DRM-FIMD Leela Krishna Amudala
@ 2012-09-21 11:22 ` Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 2/2] video: drm: exynos: Add device tree support Leela Krishna Amudala
1 sibling, 0 replies; 15+ messages in thread
From: Leela Krishna Amudala @ 2012-09-21 11:22 UTC (permalink / raw)
To: dri-devel, devicetree-discuss
Cc: linux-arm-kernel, linux-samsung-soc, inki.dae, kgene.kim,
laurent.pinchart
Two device ids are created for exynos4-fb and exynos5-fb.
Also, added driver data for exynos4 and exynos5 to pick the timing base address
at runtime to write data into appropriate register address.
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 43 +++++++++++++++++++++++++++---
1 files changed, 39 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index d96db5e..1ad10b6 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -57,6 +57,18 @@
#define get_fimd_context(dev) platform_get_drvdata(to_platform_device(dev))
+struct fimd_driver_data {
+ unsigned int timing_base;
+};
+
+struct fimd_driver_data exynos4_fimd_driver_data = {
+ .timing_base = 0x0,
+};
+
+struct fimd_driver_data exynos5_fimd_driver_data = {
+ .timing_base = 0x20000,
+};
+
struct fimd_win_data {
unsigned int offset_x;
unsigned int offset_y;
@@ -91,6 +103,13 @@ struct fimd_context {
struct exynos_drm_panel_info *panel;
};
+static inline struct fimd_driver_data *drm_fimd_get_driver_data(
+ struct platform_device *pdev)
+{
+ return (struct fimd_driver_data *)
+ platform_get_device_id(pdev)->driver_data;
+}
+
static bool fimd_display_is_connected(struct device *dev)
{
DRM_DEBUG_KMS("%s\n", __FILE__);
@@ -194,32 +213,35 @@ static void fimd_commit(struct device *dev)
struct fimd_context *ctx = get_fimd_context(dev);
struct exynos_drm_panel_info *panel = ctx->panel;
struct fb_videomode *timing = &panel->timing;
+ struct fimd_driver_data *driver_data;
+ struct platform_device *pdev = to_platform_device(dev);
u32 val;
+ driver_data = drm_fimd_get_driver_data(pdev);
if (ctx->suspended)
return;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* setup polarity values from machine code. */
- writel(ctx->vidcon1, ctx->regs + VIDCON1);
+ writel(ctx->vidcon1, ctx->regs + driver_data->timing_base + VIDCON1);
/* setup vertical timing values. */
val = VIDTCON0_VBPD(timing->upper_margin - 1) |
VIDTCON0_VFPD(timing->lower_margin - 1) |
VIDTCON0_VSPW(timing->vsync_len - 1);
- writel(val, ctx->regs + VIDTCON0);
+ writel(val, ctx->regs + driver_data->timing_base + VIDTCON0);
/* setup horizontal timing values. */
val = VIDTCON1_HBPD(timing->left_margin - 1) |
VIDTCON1_HFPD(timing->right_margin - 1) |
VIDTCON1_HSPW(timing->hsync_len - 1);
- writel(val, ctx->regs + VIDTCON1);
+ writel(val, ctx->regs + driver_data->timing_base + VIDTCON1);
/* setup horizontal and vertical display size. */
val = VIDTCON2_LINEVAL(timing->yres - 1) |
VIDTCON2_HOZVAL(timing->xres - 1);
- writel(val, ctx->regs + VIDTCON2);
+ writel(val, ctx->regs + driver_data->timing_base + VIDTCON2);
/* setup clock source, clock divider, enable dma. */
val = ctx->vidcon0;
@@ -977,6 +999,18 @@ static int fimd_runtime_resume(struct device *dev)
}
#endif
+static struct platform_device_id fimd_driver_ids[] = {
+ {
+ .name = "exynos4-fb",
+ .driver_data = (unsigned long)&exynos4_fimd_driver_data,
+ }, {
+ .name = "exynos5-fb",
+ .driver_data = (unsigned long)&exynos5_fimd_driver_data,
+ },
+ {},
+};
+MODULE_DEVICE_TABLE(platform, fimd_driver_ids);
+
static const struct dev_pm_ops fimd_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(fimd_suspend, fimd_resume)
SET_RUNTIME_PM_OPS(fimd_runtime_suspend, fimd_runtime_resume, NULL)
@@ -985,6 +1019,7 @@ static const struct dev_pm_ops fimd_pm_ops = {
struct platform_driver fimd_driver = {
.probe = fimd_probe,
.remove = __devexit_p(fimd_remove),
+ .id_table = fimd_driver_ids,
.driver = {
.name = "exynos4-fb",
.owner = THIS_MODULE,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 11:22 [PATCH V6 0/2] video: drm: Add Device tree support to exynos DRM-FIMD Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 1/2] drm/exynos: add platform_device_id table and driver data for drm fimd Leela Krishna Amudala
@ 2012-09-21 11:22 ` Leela Krishna Amudala
2012-09-21 5:14 ` Stephen Warren
1 sibling, 1 reply; 15+ messages in thread
From: Leela Krishna Amudala @ 2012-09-21 11:22 UTC (permalink / raw)
To: dri-devel, devicetree-discuss
Cc: linux-arm-kernel, linux-samsung-soc, inki.dae, kgene.kim,
laurent.pinchart
This patch adds device tree based discovery support for exynos DRM-FIMD
driver which includes driver modification to handle platform data in
both the cases with DT and non-DT, Also adds the documentation for bindings.
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
---
.../devicetree/bindings/drm/exynos/fimd.txt | 80 ++++++++++++++++
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 95 +++++++++++++++++++-
2 files changed, 173 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
new file mode 100644
index 0000000..e94120c
--- /dev/null
+++ b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
@@ -0,0 +1,80 @@
+* Samsung Display Controller using DRM frame work
+
+The display controller is used to transfer image data from memory to an
+external LCD driver interface. It supports various color formats such as
+rgb and yuv.
+
+Required properties:
+ - compatible: Should be "samsung,exynos5-fimd" or "samsung,exynos4-fimd" for
+ fimd using DRM frame work.
+ - reg: physical base address of the controller and length of memory
+ mapped region.
+ - interrupts: Three interrupts should be specified. The interrupts should be
+ specified in the following order.
+ - VSYNC interrupt
+ - FIFO level interrupt
+ - FIMD System Interrupt
+
+ - samsung,fimd-display: This property should specify the phandle of the
+ display device node which holds the video interface timing with the
+ below mentioned properties.
+
+ - lcd-htiming: Specifies the horizontal timing for the overlay. The
+ horizontal timing includes four parameters in the following order.
+
+ - horizontal back porch (in number of lcd clocks)
+ - horizontal front porch (in number of lcd clocks)
+ - hsync pulse width (in number of lcd clocks)
+ - Display panels X resolution.
+
+ - lcd-vtiming: Specifies the vertical timing for the overlay. The
+ vertical timing includes four parameters in the following order.
+
+ - vertical back porch (in number of lcd lines)
+ - vertical front porch (in number of lcd lines)
+ - vsync pulse width (in number of lcd clocks)
+ - Display panels Y resolution.
+
+
+ - samsung,default-window: Specifies the default window number of the fimd controller.
+
+ - samsung,fimd-win-bpp: Specifies the bits per pixel.
+
+Optional properties:
+ - samsung,fimd-vidout-rgb: Video output format is RGB.
+ - samsung,fimd-inv-vclk: invert video clock polarity.
+ - samsung,fimd-frame-rate: Number of video frames per second.
+
+Example:
+
+ The following is an example for the fimd controller is split into
+ two portions. The SoC specific portion can be specified in the SoC
+ specific dts file. The board specific portion can be specified in the
+ board specific dts file.
+
+ - SoC Specific portion
+
+ fimd {
+ compatible = "samsung,exynos5-fimd";
+ interrupt-parent = <&combiner>;
+ reg = <0x14400000 0x40000>;
+ interrupts = <18 5>, <18 4>, <18 6>;
+ };
+
+ - Board Specific portion
+
+ lcd_fimd0: lcd_panel0 {
+ lcd-htiming = <4 4 4 480>;
+ lcd-vtiming = <4 4 4 320>;
+ supports-mipi-panel;
+ };
+
+ fimd {
+ samsung,fimd-display = <&lcd_fimd0>;
+ samsung,fimd-vidout-rgb;
+ samsung,fimd-inv-vclk;
+ samsung,fimd-frame-rate = <60>;
+ samsung,default-window = <0>;
+ samsung,fimd-win-bpp = <32>;
+ };
+
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 1ad10b6..b2d22ac 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -18,6 +18,7 @@
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
+#include <linux/of.h>
#include <video/samsung_fimd.h>
#include <drm/exynos_drm.h>
@@ -103,9 +104,18 @@ struct fimd_context {
struct exynos_drm_panel_info *panel;
};
+static const struct of_device_id fimd_dt_match[];
+
static inline struct fimd_driver_data *drm_fimd_get_driver_data(
struct platform_device *pdev)
{
+#ifdef CONFIG_OF
+ if (pdev->dev.of_node) {
+ const struct of_device_id *match;
+ match = of_match_ptr(fimd_dt_match);
+ return (struct fimd_driver_data *)match->data;
+ }
+#endif
return (struct fimd_driver_data *)
platform_get_device_id(pdev)->driver_data;
}
@@ -809,12 +819,77 @@ static int fimd_power_on(struct fimd_context *ctx, bool enable)
return 0;
}
+#ifdef CONFIG_OF
+static struct exynos_drm_fimd_pdata *drm_fimd_dt_parse_pdata(struct device *dev)
+{
+ struct device_node *np = dev->of_node;
+ struct device_node *disp_np;
+ struct exynos_drm_fimd_pdata *pd;
+ u32 data[4];
+
+ pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
+ if (!pd) {
+ dev_err(dev, "memory allocation for pdata failed\n");
+ return ERR_PTR(-ENOMEM);
+ }
+
+ if (of_get_property(np, "samsung,fimd-vidout-rgb", NULL))
+ pd->vidcon0 |= VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB;
+ if (of_get_property(np, "samsung,fimd-inv-hsync", NULL))
+ pd->vidcon1 |= VIDCON1_INV_HSYNC;
+ if (of_get_property(np, "samsung,fimd-inv-vsync", NULL))
+ pd->vidcon1 |= VIDCON1_INV_VSYNC;
+ if (of_get_property(np, "samsung,fimd-inv-vclk", NULL))
+ pd->vidcon1 |= VIDCON1_INV_VCLK;
+ if (of_get_property(np, "samsung,fimd-inv-vden", NULL))
+ pd->vidcon1 |= VIDCON1_INV_VDEN;
+
+ disp_np = of_parse_phandle(np, "samsung,fimd-display", 0);
+ if (!disp_np) {
+ dev_err(dev, "unable to find display panel info\n");
+ return ERR_PTR(-EINVAL);
+ }
+
+ if (of_property_read_u32_array(disp_np, "lcd-htiming", data, 4)) {
+ dev_err(dev, "invalid horizontal timing\n");
+ return ERR_PTR(-EINVAL);
+ }
+ pd->panel.timing.left_margin = data[0];
+ pd->panel.timing.right_margin = data[1];
+ pd->panel.timing.hsync_len = data[2];
+ pd->panel.timing.xres = data[3];
+
+ if (of_property_read_u32_array(disp_np, "lcd-vtiming", data, 4)) {
+ dev_err(dev, "invalid vertical timing\n");
+ return ERR_PTR(-EINVAL);
+ }
+ pd->panel.timing.upper_margin = data[0];
+ pd->panel.timing.lower_margin = data[1];
+ pd->panel.timing.vsync_len = data[2];
+ pd->panel.timing.yres = data[3];
+
+ of_property_read_u32(np, "samsung,fimd-frame-rate",
+ &pd->panel.timing.refresh);
+
+ of_property_read_u32(np, "samsung,default-window", &pd->default_win);
+
+ of_property_read_u32(np, "samsung,fimd-win-bpp", &pd->bpp);
+
+ return pd;
+}
+#else
+static struct exynos_drm_fimd_pdata *drm_fimd_dt_parse_pdata(struct device *dev)
+{
+ return NULL;
+}
+#endif /* CONFIG_OF */
+
static int __devinit fimd_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct fimd_context *ctx;
struct exynos_drm_subdrv *subdrv;
- struct exynos_drm_fimd_pdata *pdata;
+ struct exynos_drm_fimd_pdata *pdata = pdev->dev.platform_data;
struct exynos_drm_panel_info *panel;
struct resource *res;
int win;
@@ -822,7 +897,11 @@ static int __devinit fimd_probe(struct platform_device *pdev)
DRM_DEBUG_KMS("%s\n", __FILE__);
- pdata = pdev->dev.platform_data;
+ if (pdev->dev.of_node) {
+ pdata = drm_fimd_dt_parse_pdata(&pdev->dev);
+ if (IS_ERR(pdata))
+ return PTR_ERR(pdata);
+ }
if (!pdata) {
dev_err(dev, "no platform data specified\n");
return -EINVAL;
@@ -1011,6 +1090,17 @@ static struct platform_device_id fimd_driver_ids[] = {
};
MODULE_DEVICE_TABLE(platform, fimd_driver_ids);
+#ifdef CONFIG_OF
+static const struct of_device_id fimd_dt_match[] = {
+ { .compatible = "samsung,exynos5-fimd",
+ .data = &exynos5_fimd_driver_data },
+ { .compatible = "samsung,exynos4-fimd",
+ .data = &exynos4_fimd_driver_data },
+ {},
+};
+MODULE_DEVICE_TABLE(of, fimd_dt_match);
+#endif
+
static const struct dev_pm_ops fimd_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(fimd_suspend, fimd_resume)
SET_RUNTIME_PM_OPS(fimd_runtime_suspend, fimd_runtime_resume, NULL)
@@ -1024,5 +1114,6 @@ struct platform_driver fimd_driver = {
.name = "exynos4-fb",
.owner = THIS_MODULE,
.pm = &fimd_pm_ops,
+ .of_match_table = of_match_ptr(fimd_dt_match),
},
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 7:22 ` Inki Dae
@ 2012-09-21 16:06 ` Stephen Warren
2012-09-24 12:35 ` Inki Dae
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Warren @ 2012-09-21 16:06 UTC (permalink / raw)
To: Inki Dae
Cc: Leela Krishna Amudala, linux-samsung-soc, devicetree-discuss,
dri-devel, kgene.kim, laurent.pinchart, linux-arm-kernel
On 09/21/2012 01:22 AM, Inki Dae wrote:
> 2012/9/21 Stephen Warren <swarren@wwwdotorg.org>:
>> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
>>> This patch adds device tree based discovery support for exynos DRM-FIMD
>>> driver which includes driver modification to handle platform data in
>>> both the cases with DT and non-DT, Also adds the documentation for bindings.
>>
>>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
>> ...
>>> + - samsung,fimd-display: This property should specify the phandle of the
>>> + display device node which holds the video interface timing with the
>>> + below mentioned properties.
>>> +
>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>>> + horizontal timing includes four parameters in the following order.
>>> +
>>> + - horizontal back porch (in number of lcd clocks)
>>> + - horizontal front porch (in number of lcd clocks)
>>> + - hsync pulse width (in number of lcd clocks)
>>> + - Display panels X resolution.
>>> +
>>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
>>> + vertical timing includes four parameters in the following order.
>>> +
>>> + - vertical back porch (in number of lcd lines)
>>> + - vertical front porch (in number of lcd lines)
>>> + - vsync pulse width (in number of lcd clocks)
>>> + - Display panels Y resolution.
>>
>> Should this not use the new videomode timings that are under discussion at:
>>
>> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>>
>
> ok, I agree with you. then the videomode helper is going to be merged
> to mainline(3.6)? if so, this patch should be reworked based on the
> videomode helper.
I think the videomode helpers would be merged for 3.7 at the very
earliest; 3.6 is cooked already. Given there are still some comments on
the binding, perhaps it won't happen until 3.8, but it'd be best to ask
on that thread so that people more directly involved with the status can
answer.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 16:06 ` Stephen Warren
@ 2012-09-24 12:35 ` Inki Dae
2012-09-25 13:03 ` Laurent Pinchart
0 siblings, 1 reply; 15+ messages in thread
From: Inki Dae @ 2012-09-24 12:35 UTC (permalink / raw)
To: Stephen Warren
Cc: kgene.kim, Leela Krishna Amudala, devicetree-discuss, dri-devel,
linux-samsung-soc, laurent.pinchart, linux-arm-kernel
2012/9/22 Stephen Warren <swarren@wwwdotorg.org>:
> On 09/21/2012 01:22 AM, Inki Dae wrote:
>> 2012/9/21 Stephen Warren <swarren@wwwdotorg.org>:
>>> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
>>>> This patch adds device tree based discovery support for exynos DRM-FIMD
>>>> driver which includes driver modification to handle platform data in
>>>> both the cases with DT and non-DT, Also adds the documentation for bindings.
>>>
>>>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
>>> ...
>>>> + - samsung,fimd-display: This property should specify the phandle of the
>>>> + display device node which holds the video interface timing with the
>>>> + below mentioned properties.
>>>> +
>>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>>>> + horizontal timing includes four parameters in the following order.
>>>> +
>>>> + - horizontal back porch (in number of lcd clocks)
>>>> + - horizontal front porch (in number of lcd clocks)
>>>> + - hsync pulse width (in number of lcd clocks)
>>>> + - Display panels X resolution.
>>>> +
>>>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
>>>> + vertical timing includes four parameters in the following order.
>>>> +
>>>> + - vertical back porch (in number of lcd lines)
>>>> + - vertical front porch (in number of lcd lines)
>>>> + - vsync pulse width (in number of lcd clocks)
>>>> + - Display panels Y resolution.
>>>
>>> Should this not use the new videomode timings that are under discussion at:
>>>
>>> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>>>
>>
>> ok, I agree with you. then the videomode helper is going to be merged
>> to mainline(3.6)? if so, this patch should be reworked based on the
>> videomode helper.
>
> I think the videomode helpers would be merged for 3.7 at the very
> earliest; 3.6 is cooked already. Given there are still some comments on
> the binding, perhaps it won't happen until 3.8, but it'd be best to ask
> on that thread so that people more directly involved with the status can
> answer.
>
as I mentioned before, it's better to use videomode helper instead but
for this, we should wait for that the videomode helper are merged to
mainline so I think it's better to merge it as is and then modify it
for videomode helper to be used later.
Thanks,
Inki Dae
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-24 12:35 ` Inki Dae
@ 2012-09-25 13:03 ` Laurent Pinchart
2012-09-25 15:03 ` Inki Dae
0 siblings, 1 reply; 15+ messages in thread
From: Laurent Pinchart @ 2012-09-25 13:03 UTC (permalink / raw)
To: Inki Dae
Cc: Stephen Warren, kgene.kim, Leela Krishna Amudala,
devicetree-discuss, dri-devel, linux-samsung-soc,
linux-arm-kernel
On Monday 24 September 2012 21:35:46 Inki Dae wrote:
> 2012/9/22 Stephen Warren <swarren@wwwdotorg.org>:
> > On 09/21/2012 01:22 AM, Inki Dae wrote:
> >> 2012/9/21 Stephen Warren <swarren@wwwdotorg.org>:
> >>> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
> >>>> This patch adds device tree based discovery support for exynos DRM-FIMD
> >>>> driver which includes driver modification to handle platform data in
> >>>> both the cases with DT and non-DT, Also adds the documentation for
> >>>> bindings.
> >>>>
> >>>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt
> >>>> b/Documentation/devicetree/bindings/drm/exynos/fimd.txt>>>
> >>> ...
> >>>
> >>>> + - samsung,fimd-display: This property should specify the phandle of
> >>>> the
> >>>> + display device node which holds the video interface timing with the
> >>>> + below mentioned properties.
> >>>> +
> >>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
> >>>> + horizontal timing includes four parameters in the following
> >>>> order.
> >>>> +
> >>>> + - horizontal back porch (in number of lcd clocks)
> >>>> + - horizontal front porch (in number of lcd clocks)
> >>>> + - hsync pulse width (in number of lcd clocks)
> >>>> + - Display panels X resolution.
> >>>> +
> >>>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
> >>>> + vertical timing includes four parameters in the following order.
> >>>> +
> >>>> + - vertical back porch (in number of lcd lines)
> >>>> + - vertical front porch (in number of lcd lines)
> >>>> + - vsync pulse width (in number of lcd clocks)
> >>>> + - Display panels Y resolution.
> >>>
> >>> Should this not use the new videomode timings that are under discussion
> >>> at:
> >>>
> >>> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
> >>
> >> ok, I agree with you. then the videomode helper is going to be merged
> >> to mainline(3.6)? if so, this patch should be reworked based on the
> >> videomode helper.
> >
> > I think the videomode helpers would be merged for 3.7 at the very
> > earliest; 3.6 is cooked already. Given there are still some comments on
> > the binding, perhaps it won't happen until 3.8, but it'd be best to ask
> > on that thread so that people more directly involved with the status can
> > answer.
>
> as I mentioned before, it's better to use videomode helper instead but
> for this, we should wait for that the videomode helper are merged to
> mainline so I think it's better to merge it as is and then modify it
> for videomode helper to be used later.
Aren't DT bindings considered as an ABI, and required to be supported more or
less forever ? If you merge this DT binding you'll have to keep supporting it.
That's why DT bindings should not be rushed in.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-25 13:03 ` Laurent Pinchart
@ 2012-09-25 15:03 ` Inki Dae
2012-09-25 15:31 ` Mark Brown
0 siblings, 1 reply; 15+ messages in thread
From: Inki Dae @ 2012-09-25 15:03 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-samsung-soc, Stephen Warren, Leela Krishna Amudala,
devicetree-discuss, dri-devel, kgene.kim, linux-arm-kernel
2012/9/25 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
> On Monday 24 September 2012 21:35:46 Inki Dae wrote:
>> 2012/9/22 Stephen Warren <swarren@wwwdotorg.org>:
>> > On 09/21/2012 01:22 AM, Inki Dae wrote:
>> >> 2012/9/21 Stephen Warren <swarren@wwwdotorg.org>:
>> >>> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
>> >>>> This patch adds device tree based discovery support for exynos DRM-FIMD
>> >>>> driver which includes driver modification to handle platform data in
>> >>>> both the cases with DT and non-DT, Also adds the documentation for
>> >>>> bindings.
>> >>>>
>> >>>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt
>> >>>> b/Documentation/devicetree/bindings/drm/exynos/fimd.txt>>>
>> >>> ...
>> >>>
>> >>>> + - samsung,fimd-display: This property should specify the phandle of
>> >>>> the
>> >>>> + display device node which holds the video interface timing with the
>> >>>> + below mentioned properties.
>> >>>> +
>> >>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>> >>>> + horizontal timing includes four parameters in the following
>> >>>> order.
>> >>>> +
>> >>>> + - horizontal back porch (in number of lcd clocks)
>> >>>> + - horizontal front porch (in number of lcd clocks)
>> >>>> + - hsync pulse width (in number of lcd clocks)
>> >>>> + - Display panels X resolution.
>> >>>> +
>> >>>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
>> >>>> + vertical timing includes four parameters in the following order.
>> >>>> +
>> >>>> + - vertical back porch (in number of lcd lines)
>> >>>> + - vertical front porch (in number of lcd lines)
>> >>>> + - vsync pulse width (in number of lcd clocks)
>> >>>> + - Display panels Y resolution.
>> >>>
>> >>> Should this not use the new videomode timings that are under discussion
>> >>> at:
>> >>>
>> >>> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>> >>
>> >> ok, I agree with you. then the videomode helper is going to be merged
>> >> to mainline(3.6)? if so, this patch should be reworked based on the
>> >> videomode helper.
>> >
>> > I think the videomode helpers would be merged for 3.7 at the very
>> > earliest; 3.6 is cooked already. Given there are still some comments on
>> > the binding, perhaps it won't happen until 3.8, but it'd be best to ask
>> > on that thread so that people more directly involved with the status can
>> > answer.
>>
>> as I mentioned before, it's better to use videomode helper instead but
>> for this, we should wait for that the videomode helper are merged to
>> mainline so I think it's better to merge it as is and then modify it
>> for videomode helper to be used later.
>
> Aren't DT bindings considered as an ABI, and required to be supported more or
> less forever ? If you merge this DT binding you'll have to keep supporting it.
> That's why DT bindings should not be rushed in.
>
is ABI required for DT binding? I know DT binding parses just lcd
timing data from device tree file so ABI isn't needed. but when it
comes to DT, I'm novice yet so there may be my missing point. could
you tell me why DT bindings are considered as an ABI? if there is my
missing point, will consider it again.
Thanks,
Inki Dae
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-25 15:03 ` Inki Dae
@ 2012-09-25 15:31 ` Mark Brown
2012-09-26 4:32 ` Inki Dae
0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2012-09-25 15:31 UTC (permalink / raw)
To: Inki Dae
Cc: Laurent Pinchart, linux-samsung-soc, Stephen Warren,
Leela Krishna Amudala, devicetree-discuss, dri-devel, kgene.kim,
linux-arm-kernel
On Wed, Sep 26, 2012 at 12:03:44AM +0900, Inki Dae wrote:
> 2012/9/25 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
> > Aren't DT bindings considered as an ABI, and required to be supported more or
> > less forever ? If you merge this DT binding you'll have to keep supporting it.
> > That's why DT bindings should not be rushed in.
> is ABI required for DT binding? I know DT binding parses just lcd
> timing data from device tree file so ABI isn't needed. but when it
> comes to DT, I'm novice yet so there may be my missing point. could
> you tell me why DT bindings are considered as an ABI? if there is my
> missing point, will consider it again.
It's supposed to be possible to ship a DT with a board and then boot any
OS or OS version on the board. If the meaning of the DT keeps changing
then this becomes impossible, you need to keep changing the DT when you
change the thing that parses it (rendering the whole exercise pointless).
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-25 15:31 ` Mark Brown
@ 2012-09-26 4:32 ` Inki Dae
0 siblings, 0 replies; 15+ messages in thread
From: Inki Dae @ 2012-09-26 4:32 UTC (permalink / raw)
To: Mark Brown
Cc: linux-samsung-soc, Stephen Warren, Leela Krishna Amudala,
devicetree-discuss, dri-devel, kgene.kim, Laurent Pinchart,
linux-arm-kernel
2012/9/26 Mark Brown <broonie@opensource.wolfsonmicro.com>:
> On Wed, Sep 26, 2012 at 12:03:44AM +0900, Inki Dae wrote:
>> 2012/9/25 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
>
>> > Aren't DT bindings considered as an ABI, and required to be supported more or
>> > less forever ? If you merge this DT binding you'll have to keep supporting it.
>> > That's why DT bindings should not be rushed in.
>
>> is ABI required for DT binding? I know DT binding parses just lcd
>> timing data from device tree file so ABI isn't needed. but when it
>> comes to DT, I'm novice yet so there may be my missing point. could
>> you tell me why DT bindings are considered as an ABI? if there is my
>> missing point, will consider it again.
>
> It's supposed to be possible to ship a DT with a board and then boot any
> OS or OS version on the board. If the meaning of the DT keeps changing
> then this becomes impossible, you need to keep changing the DT when you
> change the thing that parses it (rendering the whole exercise pointless).
>
thank you for your comments. got it. DT is built as an binary(dtb) and
the dtb file should be re-used without any modifications. will keep
this patch until the videomode helper will be merged to mainline so
that this could be modified based on videomode helper later.
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-09-21 5:14 ` Stephen Warren
2012-09-21 7:22 ` Inki Dae
@ 2012-10-01 5:29 ` Leela Krishna Amudala
[not found] ` <CAL1wa8eOA6eV-9EoeUFrSFaFwq5sEVnYXn9yKnPRv=0mSU5WvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 15+ messages in thread
From: Leela Krishna Amudala @ 2012-10-01 5:29 UTC (permalink / raw)
To: Stephen Warren
Cc: dri-devel, devicetree-discuss, inki.dae, kgene.kim,
linux-samsung-soc, laurent.pinchart, linux-arm-kernel
Hello Stephen Warren,
The binding names that I use in my dts file should match with the
names given in http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
right?
I think that is the only thing I have to take care, and as I'm not
using "struct drm_display_mode" in my driver its my wish whether to
use the helper function or not.
Please clarify me if I miss something.
Best Regards,
Leela Krishna Amudala.
On Fri, Sep 21, 2012 at 10:44 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 09/21/2012 05:22 AM, Leela Krishna Amudala wrote:
>> This patch adds device tree based discovery support for exynos DRM-FIMD
>> driver which includes driver modification to handle platform data in
>> both the cases with DT and non-DT, Also adds the documentation for bindings.
>
>> diff --git a/Documentation/devicetree/bindings/drm/exynos/fimd.txt b/Documentation/devicetree/bindings/drm/exynos/fimd.txt
> ...
>> + - samsung,fimd-display: This property should specify the phandle of the
>> + display device node which holds the video interface timing with the
>> + below mentioned properties.
>> +
>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>> + horizontal timing includes four parameters in the following order.
>> +
>> + - horizontal back porch (in number of lcd clocks)
>> + - horizontal front porch (in number of lcd clocks)
>> + - hsync pulse width (in number of lcd clocks)
>> + - Display panels X resolution.
>> +
>> + - lcd-vtiming: Specifies the vertical timing for the overlay. The
>> + vertical timing includes four parameters in the following order.
>> +
>> + - vertical back porch (in number of lcd lines)
>> + - vertical front porch (in number of lcd lines)
>> + - vsync pulse width (in number of lcd clocks)
>> + - Display panels Y resolution.
>
> Should this not use the new videomode timings that are under discussion at:
>
> http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
> --
> 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] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
[not found] ` <CAL1wa8eOA6eV-9EoeUFrSFaFwq5sEVnYXn9yKnPRv=0mSU5WvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-01 16:20 ` Stephen Warren
2012-10-03 4:06 ` Leela Krishna Amudala
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Warren @ 2012-10-01 16:20 UTC (permalink / raw)
To: Leela Krishna Amudala
Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
inki.dae-Sze3O3UU22JBDgjK7y7TUQ, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ,
laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On 09/30/2012 11:29 PM, Leela Krishna Amudala wrote:
> Hello Stephen Warren,
>
> The binding names that I use in my dts file should match with the
> names given in http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
> right?
I don't think so; the binding in that link is for example:
> + - xres, yres: Display resolution
> + - left-margin, right-margin, hsync-len: Horizontal Display timing parameters
> + in pixels
> + upper-margin, lower-margin, vsync-len: Vertical display timing parameters in
> + lines
> + - clock: displayclock in Hz
i.e. a bunch of separate properties, one for each value needed to
describe the display timing. However, your patch contains:
>>> + - samsung,fimd-display: This property should specify the phandle of the
>>> + display device node which holds the video interface timing with the
>>> + below mentioned properties.
>>> +
>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>>> + horizontal timing includes four parameters in the following order.
>>> +
>>> + - horizontal back porch (in number of lcd clocks)
>>> + - horizontal front porch (in number of lcd clocks)
>>> + - hsync pulse width (in number of lcd clocks)
>>> + - Display panels X resolution.
A single lcd-htiming property, which contains 4 values. (and a similar
construct for the vertical timing).
That seems entirely different to me...
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
2012-10-01 16:20 ` Stephen Warren
@ 2012-10-03 4:06 ` Leela Krishna Amudala
[not found] ` <CAL1wa8egdA=1iu8Jr-TQLnSweOQoCL=TD4cvo1BHHNn9UyOSEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 15+ messages in thread
From: Leela Krishna Amudala @ 2012-10-03 4:06 UTC (permalink / raw)
To: Stephen Warren
Cc: linux-samsung-soc, devicetree-discuss, dri-devel, inki.dae,
kgene.kim, laurent.pinchart, linux-arm-kernel
On Mon, Oct 1, 2012 at 9:50 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 09/30/2012 11:29 PM, Leela Krishna Amudala wrote:
>> Hello Stephen Warren,
>>
>> The binding names that I use in my dts file should match with the
>> names given in http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>> right?
>
> I don't think so; the binding in that link is for example:
>
>> + - xres, yres: Display resolution
>> + - left-margin, right-margin, hsync-len: Horizontal Display timing parameters
>> + in pixels
>> + upper-margin, lower-margin, vsync-len: Vertical display timing parameters in
>> + lines
>> + - clock: displayclock in Hz
>
> i.e. a bunch of separate properties, one for each value needed to
> describe the display timing. However, your patch contains:
>
I mean to say that even I have to use separate properties for each one
instead of grouping them.
Also the names should match with the ones given in the example..?
>>>> + - samsung,fimd-display: This property should specify the phandle of the
>>>> + display device node which holds the video interface timing with the
>>>> + below mentioned properties.
>>>> +
>>>> + - lcd-htiming: Specifies the horizontal timing for the overlay. The
>>>> + horizontal timing includes four parameters in the following order.
>>>> +
>>>> + - horizontal back porch (in number of lcd clocks)
>>>> + - horizontal front porch (in number of lcd clocks)
>>>> + - hsync pulse width (in number of lcd clocks)
>>>> + - Display panels X resolution.
>
> A single lcd-htiming property, which contains 4 values. (and a similar
> construct for the vertical timing).
>
> That seems entirely different to me...
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V6 2/2] video: drm: exynos: Add device tree support
[not found] ` <CAL1wa8egdA=1iu8Jr-TQLnSweOQoCL=TD4cvo1BHHNn9UyOSEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-03 15:27 ` Stephen Warren
0 siblings, 0 replies; 15+ messages in thread
From: Stephen Warren @ 2012-10-03 15:27 UTC (permalink / raw)
To: Leela Krishna Amudala
Cc: kgene.kim-Sze3O3UU22JBDgjK7y7TUQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
inki.dae-Sze3O3UU22JBDgjK7y7TUQ,
linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA,
laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On 10/02/2012 10:06 PM, Leela Krishna Amudala wrote:
> On Mon, Oct 1, 2012 at 9:50 PM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
>> On 09/30/2012 11:29 PM, Leela Krishna Amudala wrote:
>>> Hello Stephen Warren,
>>>
>>> The binding names that I use in my dts file should match with the
>>> names given in http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html
>>> right?
>>
>> I don't think so; the binding in that link is for example:
>>
>>> + - xres, yres: Display resolution
>>> + - left-margin, right-margin, hsync-len: Horizontal Display timing parameters
>>> + in pixels
>>> + upper-margin, lower-margin, vsync-len: Vertical display timing parameters in
>>> + lines
>>> + - clock: displayclock in Hz
>>
>> i.e. a bunch of separate properties, one for each value needed to
>> describe the display timing. However, your patch contains:
>
> I mean to say that even I have to use separate properties for each one
> instead of grouping them.
> Also the names should match with the ones given in the example..?
Yes. The patch I pointed to isn't supposed to be just an example, but
/the/ standard way of representing display timings.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2012-10-03 15:27 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 11:22 [PATCH V6 0/2] video: drm: Add Device tree support to exynos DRM-FIMD Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 1/2] drm/exynos: add platform_device_id table and driver data for drm fimd Leela Krishna Amudala
2012-09-21 11:22 ` [PATCH V6 2/2] video: drm: exynos: Add device tree support Leela Krishna Amudala
2012-09-21 5:14 ` Stephen Warren
2012-09-21 7:22 ` Inki Dae
2012-09-21 16:06 ` Stephen Warren
2012-09-24 12:35 ` Inki Dae
2012-09-25 13:03 ` Laurent Pinchart
2012-09-25 15:03 ` Inki Dae
2012-09-25 15:31 ` Mark Brown
2012-09-26 4:32 ` Inki Dae
2012-10-01 5:29 ` Leela Krishna Amudala
[not found] ` <CAL1wa8eOA6eV-9EoeUFrSFaFwq5sEVnYXn9yKnPRv=0mSU5WvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-01 16:20 ` Stephen Warren
2012-10-03 4:06 ` Leela Krishna Amudala
[not found] ` <CAL1wa8egdA=1iu8Jr-TQLnSweOQoCL=TD4cvo1BHHNn9UyOSEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-03 15:27 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).