drm: sti: add DVO output connector
Subsystems (4)
PATCH 1/1 drm: sti: add DVO output connector
Digital Video Out connector driver LCD panels. Like HDMI and HDA it create bridge, encoder and connector drm object.
Add binding descrition.
Signed-off-by Benjamin Gaignard <[email protected]>
--- .../devicetree/bindings/gpu/st,stih4xx.txt | 29 ++ drivers/gpu/drm/sti/Makefile | 4 + drivers/gpu/drm/sti/sti_awg_utils.c | 184 +++++++ drivers/gpu/drm/sti/sti_awg_utils.h | 34 ++ drivers/gpu/drm/sti/sti_dvo.c | 551 +++++++++++++++++++++ drivers/gpu/drm/sti/sti_tvout.c | 118 +++++ 6 files changed, 920 insertions(+) create mode 100644 drivers/gpu/drm/sti/sti_awg_utils.c create mode 100644 drivers/gpu/drm/sti/sti_awg_utils.h create mode 100644 drivers/gpu/drm/sti/sti_dvo.c
Documentation/devicetree/bindings/gpu/st,stih4xx.txt +29 -0
@@ -83,6 +83,22 @@ sti-hda: - clock-names: names of the clocks listed in clocks property in the same order. +sti-dvo: + Required properties: + must be a child of sti-tvout + - compatible: "st,stih<chip>-dvo" + - reg: Physical base address of the IP registers and length of memory mapped region. + - reg-names: names of the mapped memory regions listed in regs property in + the same order. + - clocks: from common clock binding: handle hardware IP needed clocks, the + number of clocks may depend of the SoC type. + See ../clocks/clock-bindings.txt for details. + - clock-names: names of the clocks listed in clocks property in the same + order. + - pinctrl-0: pin control handle + - pinctrl-name: names of the pin control to use + - sti,panel: phandle of the panel connected to the DVO output + sti-hqvdp: must be a child of sti-display-subsystem Required properties:
@@ -198,6 +214,19 @@ Example: clock-names = "pix", "hddac"; clocks = <&clockgen_c_vcc CLK_S_PIX_HD>, <&clockgen_c_vcc CLK_S_HDDAC>; }; + + sti-dvo@8d00400 { + compatible = "st,stih407-dvo"; + reg = <0x8d00400 0x200>; + reg-names = "dvo-reg"; + clock-names = "dvo_pix", "dvo", + "main_parent", "aux_parent"; + clocks = <&clk_s_d2_flexgen CLK_PIX_DVO>, <&clk_s_d2_flexgen CLK_DVO>, + <&clk_s_d2_quadfs 0>, <&clk_s_d2_quadfs 1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dvo>; + sti,panel = <&panel_dvo>; + }; }; sti-hqvdp@9c000000 {
drivers/gpu/drm/sti/Makefile +4 -0
@@ -12,6 +12,9 @@ stihdmi-y := sti_hdmi.o \ sti_hdmi_tx3g0c55phy.o \ sti_hdmi_tx3g4c28phy.o \ +stidvo-y := sti_dvo.o \ + sti_awg_utils.o + obj-$(CONFIG_DRM_STI) = \ sti_vtg.o \ sti_vtac.o \
@@ -20,4 +23,5 @@ obj-$(CONFIG_DRM_STI) = \ sti_tvout.o \ sticompositor.o \ sti_hqvdp.o \ + stidvo.o \ sti_drm_drv.o
drivers/gpu/drm/sti/sti_awg_utils.c new file +184 -0
184 lines not on this page · raw message
drivers/gpu/drm/sti/sti_awg_utils.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (C) STMicroelectronics SA 2014 +* Author: Vincent Abriou <[email protected]> for STMicroelectronics. +* License terms: GNU General Public License (GPL), version 2 +*/ + +#ifndef _STI_AWG_UTILS_H_ +#define _STI_AWG_UTILS_H_ + +#include <drm/drmP.h> + +#define AWG_MAX_INST 64 + +struct awg_code_generation_params { +u32 *ram_code; +u8 instruction_offset; +}; + +struct awg_timing { +u32 total_lines; +u32 active_lines; +u32 blanking_lines; +u32 trailing_lines; +u32 total_pixels; +u32 active_pixels; +u32 blanking_pixels; +u32 trailing_pixels; +u32 blanking_level; +}; + +int sti_awg_generate_code_data_enable_mode ( +struct awg_code_generation_params *fw_gen_params, +struct awg_timing *timing); +#endif
drivers/gpu/drm/sti/sti_dvo.c new file +551 -0
551 lines not on this page · raw message
drivers/gpu/drm/sti/sti_tvout.c +118 -0
154 lines not on this page · raw message
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel