diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2012-04-12 20:45:27 +0200 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2013-03-14 10:46:40 +0530 |
commit | 40d6c70b9c127f90c127c90a7d2b615bc3720668 (patch) | |
tree | 06c060e9bdc0fa0167ba2492180c59023a3ac666 | |
parent | 0e121f9a10f18be83b2600bc170ac6093c044183 (diff) |
s5p-tv: Add initial DT-support for HDMIPHY
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>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Tomasz Stanislawski <t.stanislaws@samsung.com>
-rw-r--r-- | Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 | ||||
-rw-r--r-- | drivers/media/platform/s5p-tv/hdmiphy_drv.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index 446859fcdca..9d93788e18e 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt @@ -51,6 +51,7 @@ plx,pex8648 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch ramtron,24c64 i2c serial eeprom (24cxx) ricoh,rs5c372a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power) +samsung,s5pv210-hdmiphy PLL-based clock generator for HDMI PHY found on s5pv210+ SoCs st-micro,24c256 i2c serial eeprom (24cxx) stm,m41t00 Serial Access TIMEKEEPER stm,m41t62 Serial real-time clock (RTC) with alarm diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/platform/s5p-tv/hdmiphy_drv.c index 06b5d2dbb2d..45661951ace 100644 --- a/drivers/media/platform/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/platform/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> @@ -316,10 +317,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,s5pv210-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 = hdmiphy_remove, |