Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbdF0PGO (ORCPT ); Tue, 27 Jun 2017 11:06:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:44048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752621AbdF0PDv (ORCPT ); Tue, 27 Jun 2017 11:03:51 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A62F22B5C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=kbingham@kernel.org From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, niklas.soderlund@ragnatech.se, hans.verkuil@cisco.com, Kieran Bingham Subject: [PATCH v6 0/3] ADV748x HDMI/Analog video receiver Date: Tue, 27 Jun 2017 16:03:31 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3846 Lines: 103 From: Kieran Bingham This is a driver for the Analog Devices ADV748x device, and follows on from a previous posting by Niklas Söderlund [0] of an earlier incarnation of this driver, and earlier versions posted by myself. ADV748x ======= The ADV7481 and ADV7482 support two video pipelines which can run independently of each other, with each pipeline terminating in a CSI-2 output: TXA (4-Lane) and TXB (1-Lane) The ADV7480 (Not included here), ADV7481, and ADV7482 are all derivatives, with the following features Analog HDMI MHL 4-Lane 1-Lane In In CSI CSI ADV7480 X X X ADV7481 X X X X X ADV7482 X X X X Implementation ============== This driver creates 4 entities. AFE (CVBS/Analog In), HDMI, TXA and TXB. At probe time, the DT is parsed to identify the endpoints for each of these nodes, and those are used for async matching of the CSI2 (TXA/TXB) entities in the master driver. The HDMI and AFE entities are then registered after a successful registration of both the CSI2 entities. HDMI is statically linked to the TXA entity, while the AFE is statically linked to the TXB entity. Routing the AFE through TXA is not supported. Support for setting the EDID on HDMI is provided (Known) Future Todo's ===================== Further potential development areas include: - ADV7480 Support (No AFE) - MHL support (Not present on ADV7482) - CEC Support - Configurable I2C addressing - Interrupt handling for format changes and hotplug detect. However, this driver is functional without the above, and these developments can be written when required. References ========== [0] http://www.mail-archive.com/linux-renesas-soc@vger.kernel.org/msg05196.html [1] https://git.ragnatech.se/linux rcar-vin-elinux-v9 [2] https://www.mail-archive.com/linux-media@vger.kernel.org/msg111332.html v1/RFC: - Initial posting v2: - Reworked DT parsing and entities v3: - Refreshed with lots of fixups from Sakari's review comments v4: - Many changes all round, following Laurent's review and extensive development - Now uses regmap - AFE port numbering has been changed to match the entity pads v5: - DT is now based on the latest salvator-common.dtsi - Entities are linked with immutable connections v6: - EDID support added to HDMI - AFE no longer autodetects input format by default. Kieran Bingham (3): media: adv748x: Add adv7181, adv7182 bindings media: i2c: adv748x: add adv748x driver MAINTAINERS: Add ADV748x driver Documentation/devicetree/bindings/media/i2c/adv748x.txt | 95 +- MAINTAINERS | 6 +- drivers/media/i2c/Kconfig | 11 +- drivers/media/i2c/Makefile | 1 +- drivers/media/i2c/adv748x/Makefile | 7 +- drivers/media/i2c/adv748x/adv748x-afe.c | 545 ++++++- drivers/media/i2c/adv748x/adv748x-core.c | 831 +++++++++- drivers/media/i2c/adv748x/adv748x-csi2.c | 327 ++++- drivers/media/i2c/adv748x/adv748x-hdmi.c | 769 ++++++++- drivers/media/i2c/adv748x/adv748x.h | 425 +++++- 10 files changed, 3017 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/adv748x.txt create mode 100644 drivers/media/i2c/adv748x/Makefile create mode 100644 drivers/media/i2c/adv748x/adv748x-afe.c create mode 100644 drivers/media/i2c/adv748x/adv748x-core.c create mode 100644 drivers/media/i2c/adv748x/adv748x-csi2.c create mode 100644 drivers/media/i2c/adv748x/adv748x-hdmi.c create mode 100644 drivers/media/i2c/adv748x/adv748x.h base-commit: 2748e76ddb2967c4030171342ebdd3faa6a5e8e8 -- git-series 0.9.1