From patchwork Tue Jan 22 22:53:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10776411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F185D14E5 for ; Tue, 22 Jan 2019 22:54:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E31B9205AD for ; Tue, 22 Jan 2019 22:54:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D766A20748; Tue, 22 Jan 2019 22:54:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 512D32834A for ; Tue, 22 Jan 2019 22:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbfAVWyM (ORCPT ); Tue, 22 Jan 2019 17:54:12 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:60662 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfAVWyM (ORCPT ); Tue, 22 Jan 2019 17:54:12 -0500 Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0F8F0575; Tue, 22 Jan 2019 23:54:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1548197649; bh=O8jdjJgkFwpvhL3nvu1QBTolH4/+zzwRRf6EhLcYEg0=; h=From:To:Cc:Subject:Date:From; b=MjT+ixW+qSGRQl1eOYX6FBb427LjInOUS22lf0GgJ7D1U9fP4CbZhXPjkbXz7cyOj zeCST1IiXYW1DqSF6evghfoXdVTXOrwqfA9kA64nhg5xMw1q/wF08Hh1KEhbinn+fp pfh2vhjms5VOzeEFENAiRQI0Arc7h9T7Rntg9xmg= From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [PATCH v2 0/6] R-Car DU DPAD support for D3 and E3 Date: Wed, 23 Jan 2019 00:53:59 +0200 Message-Id: <20190122225405.7815-1-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This series adds support for the DPAD0 output for the D3 and E3 SoCs. On the Draak and Ebisu boards, DPAD0 is used for the VGA output. Patches 1/6 and 2/6 prepare the grounds by successfully probing LVDS encoders that have no connected output. This is required in order to provide a dot clock to the DPAD output, as on the D3 and E3 SoCs the dot clock is provided by the LVDS encoders. Patch 3/6 then adds an API to the LVDS encoder driver to control the LVDS output clock independently of the LVDS encoder itself, and patch 4/6 makes use of that API to control the clock from the DU driver. Patches 5/6 and 6/6 finally enable the LVDS1 encoders in the Ebisu and Draak boards DTs, required to operate the HDMI (out of LVDS0) and VGA (using the LVDS1 dot clock) together. Changes compared to v1 are minor and include compilation fixes (in patch 3/6), typo fixes and additional comments in the DT files. The patches have been tested on Draak only as I don't have access to an Ebisu board, but they should work equally well on both boards. For your convenience the patches are available from git://linuxtv.org/pinchartl/media.git drm/du/d3e3 Laurent Pinchart (6): drm: rcar-du: Simplify encoder registration drm: rcar-du: lvds: Don't fail probe if output is not connected on D3/E3 drm: rcar-du: lvds: Add API to enable/disable clock output drm: rcar-du: Turn LVDS clock output on/off for DPAD0 output on D3/E3 arm64: dts: renesas: r8a77990: ebisu: Enable LVDS1 encoder arm64: dts: renesas: r8a77995: draak: Enable LVDS1 encoder .../arm64/boot/dts/renesas/r8a77990-ebisu.dts | 2 + .../arm64/boot/dts/renesas/r8a77995-draak.dts | 7 ++ drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/rcar-du/Kconfig | 1 + drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 34 +++++++ drivers/gpu/drm/rcar-du/rcar_du_drv.h | 3 + drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 4 +- drivers/gpu/drm/rcar-du/rcar_du_encoder.h | 3 +- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 52 +--------- drivers/gpu/drm/rcar-du/rcar_lvds.c | 94 ++++++++++++++++--- drivers/gpu/drm/rcar-du/rcar_lvds.h | 27 ++++++ 11 files changed, 164 insertions(+), 65 deletions(-) create mode 100644 drivers/gpu/drm/rcar-du/rcar_lvds.h