Use DRM component API in tilcdc to connect to tda998x
Subsystems (4)
v2 cover Use DRM component API in tilcdc to connect to tda998x
Changes since first version of the patch-set:
- Rename DRM_TILCDC_INIT to DRM_TILCDC_SLAVE_COMPAT and make it visible
- Add separate:
drm/tilcdc: Decrement refcount of ep-node from of_graph_get_next_endpoint
- Reduce info-level spam
- Use component_master_add_with_match()
- Be more explicit about tda998x being the only supported external encoder
Remove tilcdc slave support and connect to tda998x trough its component DRM API. For dtb backward compatibility the code creates at boot time a DT overlay based on the earlier binding. The overlay conforms to the new graph based binding.
The first patch is just a bugfix and can be applied or dropped independently.
Jyri Sarha (7):
drm/tilcdc: Fix module unloading
drm/tilcdc: Remove tilcdc slave support for tda998x driver drm/tilcdc: Add support for external tda998x encoder drm/tilcdc: Decrement refcount of ep-node from
of_graph_get_next_endpoint
drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding
support
drm/tilcdc: Force building of DRM_TILCDC_SLAVE_COMPAT
ARM: dts: am335x-boneblack: Use new binding for HDMI
.../devicetree/bindings/drm/tilcdc/slave.txt | 18 - .../devicetree/bindings/drm/tilcdc/tilcdc.txt | 27 ++ arch/arm/boot/dts/am335x-boneblack.dts | 20 +- drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/tilcdc/Kconfig | 13 + drivers/gpu/drm/tilcdc/Makefile | 5 +- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 36 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 89 +++-- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 5 +- drivers/gpu/drm/tilcdc/tilcdc_external.c | 105 ++++++ drivers/gpu/drm/tilcdc/tilcdc_external.h | 24 ++ drivers/gpu/drm/tilcdc/tilcdc_slave.c | 411 --------------------- drivers/gpu/drm/tilcdc/tilcdc_slave.h | 26 -- drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 270 ++++++++++++++ drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dts | 72 ++++ 15 files changed, 633 insertions(+), 489 deletions(-) delete mode 100644 Documentation/devicetree/bindings/drm/tilcdc/slave.txt create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_external.c create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_external.h delete mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave.c delete mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave.h create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dts
Signature · 1 line
1.9.1
PATCH v2 1/7 drm/tilcdc: Fix module unloading
Force crtc dpms off before destroying the crtc instead of just checking the dpms state. This fixes warning message and frozen picture after tilcdc module unloading.
--- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +2 -1
@@ -135,11 +135,12 @@ static void stop(struct drm_crtc *crtc)tilcdc_clear (dev,LCDC_RASTER_CTRL_REG ,LCDC_RASTER_ENABLE ); } +static void tilcdc_crtc_dpms (struct drm_crtc *crtc,int mode);static void tilcdc_crtc_destroy (struct drm_crtc *crtc) {struct tilcdc_crtc *tilcdc_crtc =to_tilcdc_crtc (crtc); -WARN_ON (tilcdc_crtc->dpms ==DRM_MODE_DPMS_ON ); +tilcdc_crtc_dpms (crtc,DRM_MODE_DPMS_OFF );drm_crtc_cleanup (crtc);drm_flip_work_cleanup (&tilcdc_crtc->unref_work);
Signature · 1 line
1.9.1
PATCH v2 2/7 drm/tilcdc: Remove tilcdc slave support for tda998x driver
In reply to Jyri SarhaRemove tilcdc slave support for tda998x driver. The tilcdc slave support would conflicts with componentized use of tda998x.
--- .../devicetree/bindings/drm/tilcdc/slave.txt | 18 - drivers/gpu/drm/tilcdc/Makefile | 1 - drivers/gpu/drm/tilcdc/tilcdc_drv.c | 13 - drivers/gpu/drm/tilcdc/tilcdc_drv.h | 1 - drivers/gpu/drm/tilcdc/tilcdc_slave.c | 411 --------------------- drivers/gpu/drm/tilcdc/tilcdc_slave.h | 26 -- 6 files changed, 470 deletions(-) delete mode 100644 Documentation/devicetree/bindings/drm/tilcdc/slave.txt delete mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave.c delete mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave.h
Documentation/devicetree/bindings/drm/tilcdc/slave.txt deleted +0 -18
@@ -1,18 +0,0 @@ -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>; - };
drivers/gpu/drm/tilcdc/Makefile +0 -1
@@ -6,7 +6,6 @@ endif tilcdc-y := \ tilcdc_crtc.o \ tilcdc_tfp410.o \ - tilcdc_slave.o \ tilcdc_panel.o \ tilcdc_drv.o
drivers/gpu/drm/tilcdc/tilcdc_drv.c +0 -13
@@ -20,13 +20,11 @@#include "tilcdc_drv.h" #include "tilcdc_regs.h" #include "tilcdc_tfp410.h" -#include "tilcdc_slave.h" #include "tilcdc_panel.h" #include "drm_fb_helper.h" static LIST_HEAD (module_list); -static bool slave_probing;void tilcdc_module_init (struct tilcdc_module *mod,const char *name,const struct tilcdc_module_ops *funcs)
@@ -42,11 +40,6 @@ void tilcdc_module_cleanup(struct tilcdc_module *mod)list_del (&mod->list); } -void tilcdc_slave_probedefer (bool defered) -{ - slave_probing = defered; -} -static struct of_device_id tilcdc_of_match[]; static struct drm_framebuffer *tilcdc_fb_create(struct drm_device *dev,
@@ -620,10 +613,6 @@ static int tilcdc_pdev_probe(struct platform_device *pdev)return -ENXIO ; } -/* defer probing if slave is in deferred probing */ -if (slave_probing == true) -return -EPROBE_DEFER ; -return drm_platform_init (&tilcdc_driver, pdev); }
@@ -654,7 +643,6 @@ static int __init tilcdc_drm_init(void) {DBG ("init" );tilcdc_tfp410_init (); -tilcdc_slave_init ();tilcdc_panel_init ();return platform_driver_register (&tilcdc_platform_driver); }
@@ -664,7 +652,6 @@ static void __exit tilcdc_drm_fini(void)DBG ("fini" );platform_driver_unregister (&tilcdc_platform_driver);tilcdc_panel_fini (); -tilcdc_slave_fini ();tilcdc_tfp410_fini (); }
drivers/gpu/drm/tilcdc/tilcdc_drv.h +0 -1
@@ -116,7 +116,6 @@ struct tilcdc_module {void tilcdc_module_init (struct tilcdc_module *mod,const char *name,const struct tilcdc_module_ops *funcs);void tilcdc_module_cleanup (struct tilcdc_module *mod); -void tilcdc_slave_probedefer (bool defered);/* Panel config that needs to be set in the crtc, but is not coming from * the mode timings. The display module is expected to call
drivers/gpu/drm/tilcdc/tilcdc_slave.c deleted +0 -411
411 lines not on this page · raw message
drivers/gpu/drm/tilcdc/tilcdc_slave.h deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* Copyright (C) 2012 Texas Instruments -* Author: Rob Clark <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License version 2 as published by -* the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#ifndef __TILCDC_SLAVE_H__ -#define __TILCDC_SLAVE_H__ - -/* sub-module for i2c slave encoder output */ - -int tilcdc_slave_init (void ); -void tilcdc_slave_fini (void ); - -#endif /* __TILCDC_SLAVE_H__ */
Signature · 1 line
1.9.1
PATCH v2 3/7 drm/tilcdc: Add support for external tda998x encoder
In reply to Jyri SarhaAdd support for an external compontised DRM encoder. The external encoder can be connected to tilcdc trough device tree graph binding. The binding document for tilcdc has been updated. The current implementation supports only tda998x encoder.
I got the idea and some lines of code from Jean-Francois Moine's "drm/tilcdc: Change the interface with the tda998x driver"-patch.
--- .../devicetree/bindings/drm/tilcdc/tilcdc.txt | 27 ++++++ drivers/gpu/drm/tilcdc/Makefile | 1 + drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 33 +++++++ drivers/gpu/drm/tilcdc/tilcdc_drv.c | 76 ++++++++++++--- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 4 + drivers/gpu/drm/tilcdc/tilcdc_external.c | 104 +++++++++++++++++++++ drivers/gpu/drm/tilcdc/tilcdc_external.h | 24 +++++ 7 files changed, 256 insertions(+), 13 deletions(-) create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_external.c create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_external.h
Documentation/devicetree/bindings/drm/tilcdc/tilcdc.txt +27 -0
@@ -18,6 +18,12 @@ Optional properties: - max-pixelclock: The maximum pixel clock that can be supported by the lcd controller in KHz. +Optional nodes: + + - port/ports: to describe a connection to an external encoder. The + binding follows Documentation/devicetree/bindings/graph.txt and + suppors a single port with a single endpoint. + Example: fb: fb@4830e000 {
@@ -26,4 +32,25 @@ Example: interrupt-parent = <&intc>; interrupts = <36>; ti,hwmods = "lcdc"; + + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&hdmi_0>; + }; + }; + }; + + tda19988: tda19988 { + compatible = "nxp,tda998x"; + reg = <0x70>; + + pinctrl-names = "default", "off"; + pinctrl-0 = <&nxp_hdmi_bonelt_pins>; + pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; + + port { + hdmi_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; + }; };
drivers/gpu/drm/tilcdc/Makefile +1 -0
@@ -7,6 +7,7 @@ tilcdc-y := \ tilcdc_crtc.o \ tilcdc_tfp410.o \ tilcdc_panel.o \ + tilcdc_external.o \ tilcdc_drv.o obj-$(CONFIG_DRM_TILCDC) += tilcdc.o
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +33 -0
@@ -37,6 +37,9 @@ struct tilcdc_crtc {/* for deferred fb unref's: */ struct drm_flip_work unref_work; + +/* Only set if an external encoder is connected */ +bool simulate_vesa_sync; };#define to_tilcdc_crtc (x) container_of(x, struct tilcdc_crtc, base)
@@ -214,6 +217,28 @@ static bool tilcdc_crtc_mode_fixup(struct drm_crtc *crtc,const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { + struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); + +if (!tilcdc_crtc->simulate_vesa_sync) +return true; + +/* +* tilcdc does not generate VESA-compliant sync but aligns +* VS on the second edge of HS instead of first edge. +* We use adjusted_mode, to fixup sync by aligning both rising +* edges and add HSKEW offset to fix the sync. +*/ + adjusted_mode->hskew = mode->hsync_end - mode->hsync_start; + adjusted_mode->flags |=DRM_MODE_FLAG_HSKEW ; + +if (mode->flags &DRM_MODE_FLAG_NHSYNC ) { + adjusted_mode->flags |=DRM_MODE_FLAG_PHSYNC ; + adjusted_mode->flags &= ~DRM_MODE_FLAG_NHSYNC ; + }else { + adjusted_mode->flags |=DRM_MODE_FLAG_NHSYNC ; + adjusted_mode->flags &= ~DRM_MODE_FLAG_PHSYNC ; + } +return true; }
@@ -534,6 +559,14 @@ void tilcdc_crtc_set_panel_info(struct drm_crtc *crtc, tilcdc_crtc->info = info; } +void tilcdc_crtc_set_simulate_vesa_sync (struct drm_crtc *crtc, +bool simulate_vesa_sync) +{ +struct tilcdc_crtc *tilcdc_crtc =to_tilcdc_crtc (crtc); + + tilcdc_crtc->simulate_vesa_sync = simulate_vesa_sync; +} +void tilcdc_crtc_update_clk (struct drm_crtc *crtc) {struct tilcdc_crtc *tilcdc_crtc =to_tilcdc_crtc (crtc);
drivers/gpu/drm/tilcdc/tilcdc_drv.c +63 -13
137 lines not on this page · raw message
drivers/gpu/drm/tilcdc/tilcdc_drv.h +4 -0
@@ -85,6 +85,8 @@ struct tilcdc_drm_private {unsigned int num_connectors;struct drm_connector *connectors[8 ]; + +bool is_componentized; };/* Sub-module for display. Since we don't know at compile time what panels
@@ -165,6 +167,8 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc);void tilcdc_crtc_update_clk (struct drm_crtc *crtc);void tilcdc_crtc_set_panel_info (struct drm_crtc *crtc,const struct tilcdc_panel_info *info); +void tilcdc_crtc_set_simulate_vesa_sync (struct drm_crtc *crtc, +bool simulate_vesa_sync);int tilcdc_crtc_mode_valid (struct drm_crtc *crtc,struct drm_display_mode *mode);int tilcdc_crtc_max_width (struct drm_crtc *crtc);
drivers/gpu/drm/tilcdc/tilcdc_external.c new file +104 -0
104 lines not on this page · raw message
drivers/gpu/drm/tilcdc/tilcdc_external.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright (C) 2015 Texas Instruments +* Author: Jyri Sarha <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License version 2 as published by +* the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but WITHOUT +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +* more details. +* +* You should have received a copy of the GNU General Public License along with +* this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __TILCDC_EXTERNAL_H__ +#define __TILCDC_EXTERNAL_H__ + +int tilcdc_add_external_encoders (struct drm_device *dev,int *bpp); +int tilcdc_get_external_components (struct device *dev, +struct component_match **match); +#endif /* __TILCDC_SLAVE_H__ */
Signature · 1 line
1.9.1
PATCH v2 4/7 drm/tilcdc: Decrement refcount of ep-node from of_graph_get_next_endpoint
In reply to Jyri SarhaThis patch should be dropped/reverterd if/after "of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint" patch has been merged.
--- drivers/gpu/drm/tilcdc/tilcdc_external.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tilcdc/tilcdc_external.c +1 -0
@@ -83,6 +83,7 @@ int tilcdc_get_external_components(struct device *dev,struct device_node *node; node =of_graph_get_remote_port_parent (ep); +of_node_put (ep);if (!node && !of_device_is_available (node)) {of_node_put (node);continue ;
Signature · 1 line
1.9.1
PATCH v2 5/7 drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding support
In reply to Jyri SarhaAdds a CONFIG_DRM_TILCDC_SLAVE_COMPAT module for "ti,tilcdc,slave" node conversion. The implementation is in tilcdc_slave_compat.c and it uses tilcdc_slave_compat.dts as a basis for creating a DTS overlay. The DTS overlay adds an external tda998x encoder to tilcdc that corresponds to the old tda998x based slave encoder.
--- drivers/gpu/drm/tilcdc/Kconfig | 13 ++ drivers/gpu/drm/tilcdc/Makefile | 3 + drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 270 +++++++++++++++++++++++++ drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dts | 72 +++++++ 4 files changed, 358 insertions(+) create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c create mode 100644 drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dts
drivers/gpu/drm/tilcdc/Kconfig +13 -0
@@ -1,3 +1,15 @@ +config DRM_TILCDC_SLAVE_COMPAT + bool "Support device tree blobs using TI LCDC Slave binding" + depends on DRM_TILCDC + default y + select OF_RESOLVE + select OF_OVERLAY + help + Choose this option if you need a kernel that is compatible + with device tree blobs using the obsolete "ti,tilcdc,slave" + binding. If you find "ti,tilcdc,slave"-string from your DTB, + you probably need this. Otherwise you do not. + config DRM_TILCDC tristate "DRM Support for TI LCDC Display Controller" depends on DRM && OF && ARM && HAVE_DMA_ATTRS
@@ -8,6 +20,7 @@ config DRM_TILCDC select VIDEOMODE_HELPERS select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_LCD_SUPPORT + select DRM_TILCDC_INIT help Choose this option if you have an TI SoC with LCDC display controller, for example AM33xx in beagle-bone, DA8xx, or
drivers/gpu/drm/tilcdc/Makefile +3 -0
@@ -3,6 +3,9 @@ ifeq (, $(findstring -W,$(EXTRA_CFLAGS))) ccflags-y += -Werror endif +obj-$(CONFIG_DRM_TILCDC_SLAVE_COMPAT) += tilcdc_slave_compat.o \ + tilcdc_slave_compat.dtb.o + tilcdc-y := \ tilcdc_crtc.o \ tilcdc_tfp410.o \
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c new file +270 -0
270 lines not on this page · raw message
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dts new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v2 6/7 drm/tilcdc: Force building of DRM_TILCDC_SLAVE_COMPAT
In reply to Jyri SarhaIf I read Documentation/kbuild/makefiles.txt section 3.6 right, this patch should not be needed. However, without this patch the objects needed for DRM_TILCDC_SLAVE_COMPAT are not linked, if DRM_TILCDC is built as module.
--- drivers/gpu/drm/Makefile | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/Makefile +1 -0
@@ -60,6 +60,7 @@ obj-$(CONFIG_DRM_RCAR_DU) += rcar-du/ obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/ obj-$(CONFIG_DRM_OMAP) += omapdrm/ obj-$(CONFIG_DRM_TILCDC) += tilcdc/ +obj-$(CONFIG_DRM_TILCDC_SLAVE_COMPAT) += tilcdc/ obj-$(CONFIG_DRM_QXL) += qxl/ obj-$(CONFIG_DRM_BOCHS) += bochs/ obj-$(CONFIG_DRM_MSM) += msm/
Signature · 1 line
1.9.1
Re: [PATCH v2 6/7] drm/tilcdc: Force building of DRM_TILCDC_SLAVE_COMPAT
Quoted 15 lines · Jyri Sarha
If I read
Documentation/kbuild/makefiles.txtsection 3.6 right, this patch should not be needed. However, without this patch the objects needed forDRM_TILCDC_SLAVE_COMPATare not linked, ifDRM_TILCDCis built as module.Signed-off-by Jyri Sarha <[email protected]>--- drivers/gpu/drm/Makefile | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/Makefile +0
-0
drivers/gpu/drm/Makefile obj-$(CONFIG_DRM_RCAR_DU) += rcar-du/ · line 66
Quoted 7 lines
drivers/gpu/drm/Makefile +1
-0@@ -60,6 +60,7 @@ obj-$(CONFIG_DRM_RCAR_DU) += rcar-du/ obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/ obj-$(CONFIG_DRM_OMAP) += omapdrm/ obj-$(CONFIG_DRM_TILCDC) += tilcdc/ +obj-$(CONFIG_DRM_TILCDC_SLAVE_COMPAT) += tilcdc/ obj-$(CONFIG_DRM_QXL) += qxl/ obj-$(CONFIG_DRM_BOCHS) += bochs/ obj-$(CONFIG_DRM_MSM) += msm/
I don't think it's a good idea to enter the directory twice. Maybe it works fine, I don't know, but I'd suggest just using "obj-y" above.
Tomi
PATCH v2 7/7 ARM: dts: am335x-boneblack: Use new binding for HDMI
In reply to Jyri SarhaUse new binding for the external tda19988 HDMI encoder.
--- arch/arm/boot/dts/am335x-boneblack.dts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)
arch/arm/boot/dts/am335x-boneblack.dts +15 -5
@@ -68,16 +68,26 @@ &lcdc { status = "okay"; + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&hdmi_0>; + }; + }; }; -/ { - hdmi { - compatible = "ti,tilcdc,slave"; - i2c = <&i2c0>; +&i2c0 { + tda19988 { + compatible = "nxp,tda998x"; + reg = <0x70>; pinctrl-names = "default", "off"; pinctrl-0 = <&nxp_hdmi_bonelt_pins>; pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; - status = "okay"; + + port { + hdmi_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; + }; }; };
Signature · 1 line
1.9.1
Re: [PATCH v2 7/7] ARM: dts: am335x-boneblack: Use new binding for HDMI
Quoted 1 line · Jyri Sarha
Use new binding for the external tda19988 HDMI encoder.
Can this be merged separately after the driver code is merged with things still working?
Otherwise we can have glitches with the output working and have dependencies between kernel branches.
Regards,
Tony
Quoted 48 lines
Signed-off-by Jyri Sarha <[email protected]>--- arch/arm/boot/dts/am335x-boneblack.dts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)arch/arm/boot/dts/am335x-boneblack.dts +15
-5@@ -68,16 +68,26 @@ &lcdc { status = "okay"; + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&hdmi_0>; + }; + }; }; -/ { - hdmi { - compatible = "ti,tilcdc,slave"; - i2c = <&i2c0>; +&i2c0 { + tda19988 { + compatible = "nxp,tda998x"; + reg = <0x70>; pinctrl-names = "default", "off"; pinctrl-0 = <&nxp_hdmi_bonelt_pins>; pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; - status = "okay"; + + port { + hdmi_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; + }; }; };Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 7/7] ARM: dts: am335x-boneblack: Use new binding for HDMI
Quoted 6 lines · Tony Lindgren
Quoted 1 line · Jyri Sarha
Use new binding for the external tda19988 HDMI encoder.
Can this be merged separately after the driver code is merged with things still working?
Yes absolutely. That is why DRM_TILCDC_SLAVE_COMPAT is there for.
Cheers,
Jyri
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v2 7/7] ARM: dts: am335x-boneblack: Use new binding for HDMI
Quoted 9 lines · Jyri Sarha
Quoted 6 lines · Tony Lindgren
Quoted 1 line · Jyri Sarha
Use new binding for the external tda19988 HDMI encoder.
Can this be merged separately after the driver code is merged with things still working?
Yes absolutely. That is why
DRM_TILCDC_SLAVE_COMPATis there for.
Great, thanks for sorting it out properly. Please ping me to apply this patch when the driver changes are in Linux next.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html