From patchwork Thu Jan 26 15:20:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 92529 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp235770qgi; Thu, 26 Jan 2017 07:21:53 -0800 (PST) X-Received: by 10.98.74.84 with SMTP id x81mr3649607pfa.172.1485444113198; Thu, 26 Jan 2017 07:21:53 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d30si1650794plj.218.2017.01.26.07.21.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 07:21:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 196FD6EBD0; Thu, 26 Jan 2017 15:21:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0B8806EBD0 for ; Thu, 26 Jan 2017 15:21:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF87820445; Thu, 26 Jan 2017 15:21:49 +0000 (UTC) Received: from localhost.localdomain (li411-102.members.linode.com [106.187.91.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C813C20462; Thu, 26 Jan 2017 15:21:44 +0000 (UTC) From: Shawn Guo To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/5] Add TV Encoder support for ZTE DRM driver Date: Thu, 26 Jan 2017 23:20:48 +0800 Message-Id: <1485444053-8331-1-git-send-email-shawnguo@kernel.org> X-Mailer: git-send-email 1.9.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Daniel Vetter , Baoyou Xie , Jun Nie X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Shawn Guo The series updates zx_vou driver a bit as the preparation of adding TVENC output device, and then adds the device driver. Changes for v2: - Save the use of variable 'vactive' by checking interlaced case. - Rename mask variable for scan register to avoid naming scope confusion. - Write a proper comment to explain how vback_porch of the first and second field are related. - Embed struct drm_display_mode in zx_tvenc_mode to save function zx_tvenc_mode_to_drm_mode(). - Use drm_mode_equal() to find the matching mode. - Use drm_mode_set_name() to name mode. - Fix typos in clock multiplier comment. - Add a sanity check in .mode_valid hook to ensure the given mode is valid. - Remove destroy() calls from .unbind hook, as those are already taken care of by drm_mode_config_cleanup(). Shawn Guo (5): drm: zte: add interlace mode support drm: zte: move struct vou_inf into zx_vou driver drm: zte: add function to configure vou_ctrl dividers dt: add bindings for ZTE tvenc device drm: zte: add tvenc driver support .../devicetree/bindings/display/zte,vou.txt | 15 + drivers/gpu/drm/zte/Makefile | 1 + drivers/gpu/drm/zte/zx_drm_drv.c | 1 + drivers/gpu/drm/zte/zx_drm_drv.h | 1 + drivers/gpu/drm/zte/zx_hdmi.c | 12 +- drivers/gpu/drm/zte/zx_tvenc.c | 407 +++++++++++++++++++++ drivers/gpu/drm/zte/zx_tvenc_regs.h | 31 ++ drivers/gpu/drm/zte/zx_vou.c | 167 ++++++++- drivers/gpu/drm/zte/zx_vou.h | 32 +- drivers/gpu/drm/zte/zx_vou_regs.h | 31 ++ 10 files changed, 672 insertions(+), 26 deletions(-) create mode 100644 drivers/gpu/drm/zte/zx_tvenc.c create mode 100644 drivers/gpu/drm/zte/zx_tvenc_regs.h