* [PATCH 0/3] [media] s5p-tv: Add initial DT-support to s5p-tv's subdevices
@ 2012-02-29 14:51 Karol Lewandowski
  2012-02-29 14:51 ` [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 Karol Lewandowski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Karol Lewandowski @ 2012-02-29 14:51 UTC (permalink / raw)
  To: t.stanislaws
  Cc: m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc,
	thomas.abraham, Karol Lewandowski
This patchset adds initial device tree support to drivers used by
s5p-tv on Exynos4.
DT support for s5p-tv driver itself would benefit from changes to v4l
core (missing OF helper functions) and thus, will be sent later in
separate patchset.
Karol Lewandowski (3):
  [media] s5p-tv: Add initial DT-support for sii9234
  [media] s5p-tv: Add initial DT-support for HDMIPHY
  [media] s5p-tv: Add initial DT-support for TV mixer
 Documentation/devicetree/bindings/i2c/sii9234.txt |   14 ++++++++++++++
 drivers/media/video/s5p-tv/hdmiphy_drv.c          |   10 ++++++++++
 drivers/media/video/s5p-tv/mixer_drv.c            |    9 +++++++++
 drivers/media/video/s5p-tv/sii9234_drv.c          |   20 +++++++++++++++++++-
 4 files changed, 52 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/i2c/sii9234.txt
-- 
1.7.8.3
^ permalink raw reply	[flat|nested] 9+ messages in thread* [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 2012-02-29 14:51 [PATCH 0/3] [media] s5p-tv: Add initial DT-support to s5p-tv's subdevices Karol Lewandowski @ 2012-02-29 14:51 ` Karol Lewandowski 2012-03-01 3:09 ` Thomas Abraham 2012-02-29 14:51 ` [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY Karol Lewandowski 2012-02-29 14:51 ` [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer Karol Lewandowski 2 siblings, 1 reply; 9+ messages in thread From: Karol Lewandowski @ 2012-02-29 14:51 UTC (permalink / raw) To: t.stanislaws Cc: m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, thomas.abraham, Karol Lewandowski, Kyungmin Park Make it possible to instantiate sii9234, HDMI's MHL, from regular device tree description. Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> --- Documentation/devicetree/bindings/i2c/sii9234.txt | 14 ++++++++++++++ drivers/media/video/s5p-tv/sii9234_drv.c | 20 +++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/sii9234.txt diff --git a/Documentation/devicetree/bindings/i2c/sii9234.txt b/Documentation/devicetree/bindings/i2c/sii9234.txt new file mode 100644 index 0000000..7bb7636 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/sii9234.txt @@ -0,0 +1,14 @@ +* SII 9234 + +Required properties : + - compatible : "sii,9234" + - reg : i2c device address + - gpio-reset : gpio line used to reset IC + +Example: + + mhl@39 { + compatible = "sii,9234"; + reg = <0x39>; + gpio-reset = <&gpf3 4 0 0 0>; + }; diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c index 0f31ecc..0a1511a 100644 --- a/drivers/media/video/s5p-tv/sii9234_drv.c +++ b/drivers/media/video/s5p-tv/sii9234_drv.c @@ -22,6 +22,8 @@ #include <linux/pm_runtime.h> #include <linux/regulator/machine.h> #include <linux/slab.h> +#include <linux/of.h> +#include <linux/of_gpio.h> #include <mach/gpio.h> #include <plat/gpio-cfg.h> @@ -338,7 +340,15 @@ static int __devinit sii9234_probe(struct i2c_client *client, goto fail_ctx; } - ctx->gpio_n_reset = pdata->gpio_n_reset; + if (dev->of_node) { + ctx->gpio_n_reset = of_get_named_gpio(dev->of_node, "gpio-reset", 0); + if (ctx->gpio_n_reset < 0) { + ret = -ENODEV; + goto fail_power; + } + } else + ctx->gpio_n_reset = pdata->gpio_n_reset; + ret = gpio_request(ctx->gpio_n_reset, "MHL_RST"); if (ret) { dev_err(dev, "failed to acquire MHL_RST gpio\n"); @@ -401,6 +411,13 @@ static int __devexit sii9234_remove(struct i2c_client *client) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id sii9234_dt_match[] = { + { .compatible = "sii,9234" }, + { }, +}; +MODULE_DEVICE_TABLE(of, sii9234_dt_match); +#endif static const struct i2c_device_id sii9234_id[] = { { "SII9234", 0 }, @@ -413,6 +430,7 @@ static struct i2c_driver sii9234_driver = { .name = "sii9234", .owner = THIS_MODULE, .pm = &sii9234_pm_ops, + .of_match_table = of_match_ptr(sii9234_dt_match), }, .probe = sii9234_probe, .remove = __devexit_p(sii9234_remove), -- 1.7.8.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 2012-02-29 14:51 ` [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 Karol Lewandowski @ 2012-03-01 3:09 ` Thomas Abraham 2012-03-01 15:11 ` Karol Lewandowski 0 siblings, 1 reply; 9+ messages in thread From: Thomas Abraham @ 2012-03-01 3:09 UTC (permalink / raw) To: Karol Lewandowski Cc: t.stanislaws, m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, Kyungmin Park Hi Karol, On 29 February 2012 20:21, Karol Lewandowski <k.lewandowsk@samsung.com> wrote: > Make it possible to instantiate sii9234, HDMI's MHL, from regular > device tree description. > > Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> > --- > Documentation/devicetree/bindings/i2c/sii9234.txt | 14 ++++++++++++++ > drivers/media/video/s5p-tv/sii9234_drv.c | 20 +++++++++++++++++++- > 2 files changed, 33 insertions(+), 1 deletions(-) > create mode 100644 Documentation/devicetree/bindings/i2c/sii9234.txt > > diff --git a/Documentation/devicetree/bindings/i2c/sii9234.txt b/Documentation/devicetree/bindings/i2c/sii9234.txt > new file mode 100644 > index 0000000..7bb7636 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/sii9234.txt > @@ -0,0 +1,14 @@ > +* SII 9234 > + A minimal description about this device would be helpful here. > +Required properties : > + - compatible : "sii,9234" To be more informative, can this be changed to "sil,mhl-9234". > + - reg : i2c device address > + - gpio-reset : gpio line used to reset IC > + > +Example: > + > + mhl@39 { > + compatible = "sii,9234"; > + reg = <0x39>; > + gpio-reset = <&gpf3 4 0 0 0>; > + }; > diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c > index 0f31ecc..0a1511a 100644 > --- a/drivers/media/video/s5p-tv/sii9234_drv.c > +++ b/drivers/media/video/s5p-tv/sii9234_drv.c > @@ -22,6 +22,8 @@ > #include <linux/pm_runtime.h> > #include <linux/regulator/machine.h> > #include <linux/slab.h> > +#include <linux/of.h> > +#include <linux/of_gpio.h> > > #include <mach/gpio.h> > #include <plat/gpio-cfg.h> > @@ -338,7 +340,15 @@ static int __devinit sii9234_probe(struct i2c_client *client, > goto fail_ctx; > } > > - ctx->gpio_n_reset = pdata->gpio_n_reset; > + if (dev->of_node) { > + ctx->gpio_n_reset = of_get_named_gpio(dev->of_node, "gpio-reset", 0); > + if (ctx->gpio_n_reset < 0) { if (gpio_is_valid(ctx->gpio_n_reset)) can be used here. > + ret = -ENODEV; > + goto fail_power; > + } > + } else > + ctx->gpio_n_reset = pdata->gpio_n_reset; linux coding style suggests to have braces for 'else' branch when braces are used for the 'if' branch. > + > ret = gpio_request(ctx->gpio_n_reset, "MHL_RST"); > if (ret) { > dev_err(dev, "failed to acquire MHL_RST gpio\n"); > @@ -401,6 +411,13 @@ static int __devexit sii9234_remove(struct i2c_client *client) > return 0; > } > > +#ifdef CONFIG_OF > +static const struct of_device_id sii9234_dt_match[] = { > + { .compatible = "sii,9234" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, sii9234_dt_match); > +#endif > > static const struct i2c_device_id sii9234_id[] = { > { "SII9234", 0 }, > @@ -413,6 +430,7 @@ static struct i2c_driver sii9234_driver = { > .name = "sii9234", > .owner = THIS_MODULE, > .pm = &sii9234_pm_ops, > + .of_match_table = of_match_ptr(sii9234_dt_match), > }, > .probe = sii9234_probe, > .remove = __devexit_p(sii9234_remove), > -- > 1.7.8.3 > Thanks, Thomas. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 2012-03-01 3:09 ` Thomas Abraham @ 2012-03-01 15:11 ` Karol Lewandowski 0 siblings, 0 replies; 9+ messages in thread From: Karol Lewandowski @ 2012-03-01 15:11 UTC (permalink / raw) To: Thomas Abraham Cc: t.stanislaws, m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, Kyungmin Park On 01.03.2012 04:09, Thomas Abraham wrote: > Hi Karol, Hi! > On 29 February 2012 20:21, Karol Lewandowski <k.lewandowsk@samsung.com> wrote: >> Make it possible to instantiate sii9234, HDMI's MHL, from regular >> device tree description. >> >> Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> >> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> >> --- >> Documentation/devicetree/bindings/i2c/sii9234.txt | 14 ++++++++++++++ >> drivers/media/video/s5p-tv/sii9234_drv.c | 20 +++++++++++++++++++- >> 2 files changed, 33 insertions(+), 1 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/i2c/sii9234.txt >> >> diff --git a/Documentation/devicetree/bindings/i2c/sii9234.txt b/Documentation/devicetree/bindings/i2c/sii9234.txt >> new file mode 100644 >> index 0000000..7bb7636 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/i2c/sii9234.txt >> @@ -0,0 +1,14 @@ >> +* SII 9234 >> + > > A minimal description about this device would be helpful here. > >> +Required properties : >> + - compatible : "sii,9234" > > To be more informative, can this be changed to "sil,mhl-9234". Thanks for pointing this out - I'll fix compat string and add description. > >> + - reg : i2c device address >> + - gpio-reset : gpio line used to reset IC >> + >> +Example: >> + >> + mhl@39 { >> + compatible = "sii,9234"; >> + reg = <0x39>; >> + gpio-reset = <&gpf3 4 0 0 0>; >> + }; >> diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c >> index 0f31ecc..0a1511a 100644 >> --- a/drivers/media/video/s5p-tv/sii9234_drv.c >> +++ b/drivers/media/video/s5p-tv/sii9234_drv.c >> @@ -22,6 +22,8 @@ >> #include <linux/pm_runtime.h> >> #include <linux/regulator/machine.h> >> #include <linux/slab.h> >> +#include <linux/of.h> >> +#include <linux/of_gpio.h> >> >> #include <mach/gpio.h> >> #include <plat/gpio-cfg.h> >> @@ -338,7 +340,15 @@ static int __devinit sii9234_probe(struct i2c_client *client, >> goto fail_ctx; >> } >> >> - ctx->gpio_n_reset = pdata->gpio_n_reset; >> + if (dev->of_node) { >> + ctx->gpio_n_reset = of_get_named_gpio(dev->of_node, "gpio-reset", 0); >> + if (ctx->gpio_n_reset < 0) { > > if (gpio_is_valid(ctx->gpio_n_reset)) can be used here. Will fix, I wasn't aware of this either. > >> + ret = -ENODEV; >> + goto fail_power; >> + } >> + } else >> + ctx->gpio_n_reset = pdata->gpio_n_reset; > > linux coding style suggests to have braces for 'else' branch when > braces are used for the 'if' branch. Ok. > >> + >> ret = gpio_request(ctx->gpio_n_reset, "MHL_RST"); >> if (ret) { >> dev_err(dev, "failed to acquire MHL_RST gpio\n"); >> @@ -401,6 +411,13 @@ static int __devexit sii9234_remove(struct i2c_client *client) >> return 0; >> } >> >> +#ifdef CONFIG_OF >> +static const struct of_device_id sii9234_dt_match[] = { >> + { .compatible = "sii,9234" }, >> + { }, >> +}; >> +MODULE_DEVICE_TABLE(of, sii9234_dt_match); >> +#endif >> >> static const struct i2c_device_id sii9234_id[] = { >> { "SII9234", 0 }, >> @@ -413,6 +430,7 @@ static struct i2c_driver sii9234_driver = { >> .name = "sii9234", >> .owner = THIS_MODULE, >> .pm = &sii9234_pm_ops, >> + .of_match_table = of_match_ptr(sii9234_dt_match), >> }, >> .probe = sii9234_probe, >> .remove = __devexit_p(sii9234_remove), >> -- >> 1.7.8.3 >> > > Thanks, > Thomas. Thanks for reviewing this! Regards, -- Karol Lewandowski | Samsung Poland R&D Center | Linux/Platform ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY 2012-02-29 14:51 [PATCH 0/3] [media] s5p-tv: Add initial DT-support to s5p-tv's subdevices Karol Lewandowski 2012-02-29 14:51 ` [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 Karol Lewandowski @ 2012-02-29 14:51 ` Karol Lewandowski 2012-03-01 3:11 ` Thomas Abraham 2012-02-29 14:51 ` [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer Karol Lewandowski 2 siblings, 1 reply; 9+ messages in thread From: Karol Lewandowski @ 2012-02-29 14:51 UTC (permalink / raw) To: t.stanislaws Cc: m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, thomas.abraham, Karol Lewandowski, Kyungmin Park Make it possible to instantiate driver from device tree description. Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> --- drivers/media/video/s5p-tv/hdmiphy_drv.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/s5p-tv/hdmiphy_drv.c b/drivers/media/video/s5p-tv/hdmiphy_drv.c index 6693f4a..77f5caa 100644 --- a/drivers/media/video/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/video/s5p-tv/hdmiphy_drv.c @@ -18,6 +18,7 @@ #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/err.h> +#include <linux/of.h> #include <media/v4l2-subdev.h> @@ -165,10 +166,19 @@ static const struct i2c_device_id hdmiphy_id[] = { }; MODULE_DEVICE_TABLE(i2c, hdmiphy_id); +#ifdef CONFIG_OF +static struct of_device_id hdmiphy_dt_match[] = { + { .compatible = "samsung,exynos4210-hdmiphy" }, + { }, +}; +MODULE_DEVICE_TABLE(of, hdmiphy_dt_match); +#endif + static struct i2c_driver hdmiphy_driver = { .driver = { .name = "s5p-hdmiphy", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(hdmiphy_dt_match), }, .probe = hdmiphy_probe, .remove = __devexit_p(hdmiphy_remove), -- 1.7.8.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY 2012-02-29 14:51 ` [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY Karol Lewandowski @ 2012-03-01 3:11 ` Thomas Abraham 0 siblings, 0 replies; 9+ messages in thread From: Thomas Abraham @ 2012-03-01 3:11 UTC (permalink / raw) To: Karol Lewandowski Cc: t.stanislaws, m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, Kyungmin Park On 29 February 2012 20:21, Karol Lewandowski <k.lewandowsk@samsung.com> wrote: > Make it possible to instantiate driver from device tree description. > > Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> > --- > drivers/media/video/s5p-tv/hdmiphy_drv.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/video/s5p-tv/hdmiphy_drv.c b/drivers/media/video/s5p-tv/hdmiphy_drv.c > index 6693f4a..77f5caa 100644 > --- a/drivers/media/video/s5p-tv/hdmiphy_drv.c > +++ b/drivers/media/video/s5p-tv/hdmiphy_drv.c > @@ -18,6 +18,7 @@ > #include <linux/interrupt.h> > #include <linux/irq.h> > #include <linux/err.h> > +#include <linux/of.h> > > #include <media/v4l2-subdev.h> > > @@ -165,10 +166,19 @@ static const struct i2c_device_id hdmiphy_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, hdmiphy_id); > > +#ifdef CONFIG_OF > +static struct of_device_id hdmiphy_dt_match[] = { > + { .compatible = "samsung,exynos4210-hdmiphy" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, hdmiphy_dt_match); > +#endif > + > static struct i2c_driver hdmiphy_driver = { > .driver = { > .name = "s5p-hdmiphy", > .owner = THIS_MODULE, > + .of_match_table = of_match_ptr(hdmiphy_dt_match), > }, > .probe = hdmiphy_probe, > .remove = __devexit_p(hdmiphy_remove), > -- > 1.7.8.3 > Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer 2012-02-29 14:51 [PATCH 0/3] [media] s5p-tv: Add initial DT-support to s5p-tv's subdevices Karol Lewandowski 2012-02-29 14:51 ` [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 Karol Lewandowski 2012-02-29 14:51 ` [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY Karol Lewandowski @ 2012-02-29 14:51 ` Karol Lewandowski 2012-03-01 3:18 ` Thomas Abraham 2 siblings, 1 reply; 9+ messages in thread From: Karol Lewandowski @ 2012-02-29 14:51 UTC (permalink / raw) To: t.stanislaws Cc: m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc, thomas.abraham, Karol Lewandowski --- drivers/media/video/s5p-tv/mixer_drv.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/s5p-tv/mixer_drv.c b/drivers/media/video/s5p-tv/mixer_drv.c index a2c0c25..6bf4a9e 100644 --- a/drivers/media/video/s5p-tv/mixer_drv.c +++ b/drivers/media/video/s5p-tv/mixer_drv.c @@ -448,6 +448,14 @@ static int __devexit mxr_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id mxr_dt_match[] = { + { .compatible = "samsung,exynos4210-tvmixer" }, + { }, +}; +MODULE_DEVICE_TABLE(of, mxr_dt_match); +#endif + static struct platform_driver mxr_driver __refdata = { .probe = mxr_probe, .remove = __devexit_p(mxr_remove), @@ -455,6 +463,7 @@ static struct platform_driver mxr_driver __refdata = { .name = MXR_DRIVER_NAME, .owner = THIS_MODULE, .pm = &mxr_pm_ops, + .of_match_table = of_match_ptr(mxr_dt_match), } }; -- 1.7.8.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer 2012-02-29 14:51 ` [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer Karol Lewandowski @ 2012-03-01 3:18 ` Thomas Abraham 2012-03-01 17:27 ` Karol Lewandowski 0 siblings, 1 reply; 9+ messages in thread From: Thomas Abraham @ 2012-03-01 3:18 UTC (permalink / raw) To: Karol Lewandowski Cc: t.stanislaws, m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc On 29 February 2012 20:21, Karol Lewandowski <k.lewandowsk@samsung.com> wrote: > --- > drivers/media/video/s5p-tv/mixer_drv.c | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/video/s5p-tv/mixer_drv.c b/drivers/media/video/s5p-tv/mixer_drv.c > index a2c0c25..6bf4a9e 100644 > --- a/drivers/media/video/s5p-tv/mixer_drv.c > +++ b/drivers/media/video/s5p-tv/mixer_drv.c > @@ -448,6 +448,14 @@ static int __devexit mxr_remove(struct platform_device *pdev) > return 0; > } > > +#ifdef CONFIG_OF > +static const struct of_device_id mxr_dt_match[] = { > + { .compatible = "samsung,exynos4210-tvmixer" }, If the tvmixer module is also available in SoC's prior to Exynos4210, and if tvmixer in Exynos4210 is similar to tvmixer found on prior SoC's, the base version should indicate that. For instance, if the tvmixer started to appear from s5pv210 onwards, then the compatible value should be "samsung,s5pv210-tvmixer". The compatible string should indicate the base version. > + { }, > +}; > +MODULE_DEVICE_TABLE(of, mxr_dt_match); > +#endif > + > static struct platform_driver mxr_driver __refdata = { > .probe = mxr_probe, > .remove = __devexit_p(mxr_remove), > @@ -455,6 +463,7 @@ static struct platform_driver mxr_driver __refdata = { > .name = MXR_DRIVER_NAME, > .owner = THIS_MODULE, > .pm = &mxr_pm_ops, > + .of_match_table = of_match_ptr(mxr_dt_match), > } > }; > > -- > 1.7.8.3 > Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer 2012-03-01 3:18 ` Thomas Abraham @ 2012-03-01 17:27 ` Karol Lewandowski 0 siblings, 0 replies; 9+ messages in thread From: Karol Lewandowski @ 2012-03-01 17:27 UTC (permalink / raw) To: Thomas Abraham Cc: t.stanislaws, m.szyprowski, linux-kernel, devicetree-discuss, linux-samsung-soc On 01.03.2012 04:18, Thomas Abraham wrote: > On 29 February 2012 20:21, Karol Lewandowski <k.lewandowsk@samsung.com> wrote: >> --- >> drivers/media/video/s5p-tv/mixer_drv.c | 9 +++++++++ >> 1 files changed, 9 insertions(+), 0 deletions(-) >> >> diff --git a/drivers/media/video/s5p-tv/mixer_drv.c b/drivers/media/video/s5p-tv/mixer_drv.c >> index a2c0c25..6bf4a9e 100644 >> --- a/drivers/media/video/s5p-tv/mixer_drv.c >> +++ b/drivers/media/video/s5p-tv/mixer_drv.c >> @@ -448,6 +448,14 @@ static int __devexit mxr_remove(struct platform_device *pdev) >> return 0; >> } >> >> +#ifdef CONFIG_OF >> +static const struct of_device_id mxr_dt_match[] = { >> + { .compatible = "samsung,exynos4210-tvmixer" }, > > If the tvmixer module is also available in SoC's prior to Exynos4210, > and if tvmixer in Exynos4210 is similar to tvmixer found on prior > SoC's, the base version should indicate that. For instance, if the > tvmixer started to appear from s5pv210 onwards, then the compatible > value should be "samsung,s5pv210-tvmixer". The compatible string > should indicate the base version. Fair point, although I'm afraid that chosing "base" version might be tricky sometimes (e.g. while g2d seems to be available on s5pv210 driver itself have been tested only on s5pv310/exynos4210 - chosing s5pv210 as base doesn't look like best idea.) I'll resend fixed patches later. Thank you very much for review! Regards, -- Karol Lewandowski | Samsung Poland R&D Center | Linux/Platform ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-03-01 17:27 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-02-29 14:51 [PATCH 0/3] [media] s5p-tv: Add initial DT-support to s5p-tv's subdevices Karol Lewandowski 2012-02-29 14:51 ` [PATCH 1/3] [media] s5p-tv: Add initial DT-support for sii9234 Karol Lewandowski 2012-03-01 3:09 ` Thomas Abraham 2012-03-01 15:11 ` Karol Lewandowski 2012-02-29 14:51 ` [PATCH 2/3] [media] s5p-tv: Add initial DT-support for HDMIPHY Karol Lewandowski 2012-03-01 3:11 ` Thomas Abraham 2012-02-29 14:51 ` [PATCH 3/3] [media] s5p-tv: Add initial DT-support for TV mixer Karol Lewandowski 2012-03-01 3:18 ` Thomas Abraham 2012-03-01 17:27 ` Karol Lewandowski
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).