Skip to content

Commit

Permalink
drm/tilcdc: add encoder slave (v2)
Browse files Browse the repository at this point in the history
Add output panel driver for i2c encoder slaves.

v1: original
v2: add DT bindings docs, and minor updates for review comments

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
Rob Clark committed Feb 19, 2013
1 parent e7792ce commit 6e8de0b
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/drm/tilcdc/slave.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Device-Tree bindings for tilcdc DRM encoder slave output driver

Required properties:
- compatible: value should be "ti,tilcdc,slave".
- i2c: the phandle for the i2c device the encoder slave is connected to

Recommended properties:
- pinctrl-names, pinctrl-0: the pincontrol settings to configure
muxing properly for pins that connect to TFP410 device

Example:

hdmi {
compatible = "ti,tilcdc,slave";
i2c = <&i2c0>;
pinctrl-names = "default";
pinctrl-0 = <&nxp_hdmi_bonelt_pins>;
};
1 change: 1 addition & 0 deletions drivers/gpu/drm/tilcdc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ccflags-y := -Iinclude/drm -Werror
tilcdc-y := \
tilcdc_crtc.o \
tilcdc_tfp410.o \
tilcdc_slave.o \
tilcdc_drv.o

obj-$(CONFIG_DRM_TILCDC) += tilcdc.o
5 changes: 4 additions & 1 deletion drivers/gpu/drm/tilcdc/tilcdc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "tilcdc_drv.h"
#include "tilcdc_regs.h"
#include "tilcdc_tfp410.h"
#include "tilcdc_slave.h"

#include "drm_fb_helper.h"

Expand Down Expand Up @@ -587,17 +588,19 @@ static int __init tilcdc_drm_init(void)
{
DBG("init");
tilcdc_tfp410_init();
tilcdc_slave_init();
return platform_driver_register(&tilcdc_platform_driver);
}

static void __exit tilcdc_drm_fini(void)
{
DBG("fini");
tilcdc_tfp410_fini();
tilcdc_slave_fini();
platform_driver_unregister(&tilcdc_platform_driver);
}

module_init(tilcdc_drm_init);
late_initcall(tilcdc_drm_init);
module_exit(tilcdc_drm_fini);

MODULE_AUTHOR("Rob Clark <robdclark@gmail.com");
Expand Down
Loading

0 comments on commit 6e8de0b

Please sign in to comment.