Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752073AbbGOPoi (ORCPT ); Wed, 15 Jul 2015 11:44:38 -0400 Received: from mout.gmx.net ([212.227.17.20]:58172 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbbGOPoh (ORCPT ); Wed, 15 Jul 2015 11:44:37 -0400 Message-ID: <55A67FDB.8010602@gmx.at> Date: Wed, 15 Jul 2015 17:44:27 +0200 From: Manfred Schlaegl User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: David Airlie , Philipp Zabel , Jean-Christophe Plagniol-Villard , Tomi Valkeinen CC: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Manfred Schlaegl , Steve Longerbeam , Deepak Das , Jiada Wang , linux-fbdev@vger.kernel.org Subject: [RFC PATCH 0/2] drm: add support for for clk and de polarity & gpu: ipu-v3: use clock and de polarity Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:p/9THqJu8K1jNYjcHi3Ydsh9inCZxovJZ7099rppRYWAttbOl8P 0o5otO3hbdWUvCxEhfrgiiDYOb7TAXbvh4ddp0MOu1T2qnxTtu92640UBrx0JG6CRPr+KFX +YTcpaV0IAhMIU18DXQwXnnxGfjcrd+EEWxwORcvNitu1vSnLclIJpERBp5Ya5LexYN4/Zf umYlOVVFXiaVxLMr4K92w== X-UI-Out-Filterresults: notjunk:1;V01:K0:In652QEPUCA=:q0+jbTimXAYUqWgRqYbf2A QQ5XHG15K8om1oHdA4WYRGXPJiYLOv+8oj1t0MA9K8QicbgL4D4DdWgTG2OuDsjXtnCRGHoyw 1EryeTqc7HZwJW10BzZDkslk1J5z7hcyt4Riwvm6mQctOnFVYuNq8nLQ3yfusFP+Qu44kG1l1 qe576DYgAo1N/+fecomcXtWiQSPsQkdQHUHmSRDwsl0e9K28G4f9/3wmvkRwYfJ0+cmeQzUn4 jtCAMggDWQdbRJv0Sk5X8nruOoC4x0qnXliSJg6LCyiJgGamX6EHt7VPxCVub5vPOn1x5j6R9 SWPychnNn04hhDJjC69RreOgmeAt9vgjY4zTGfLRjzyOEAQ8L0ttVzFH211mii2QvRrRffY3U CzMYOJJ+IautHOuUFNAFYrKsz4dWoJLliPR+ZN4YxDkGm689eEMBw/hmvWsiIkxyON2FNszqQ TDjcucmEH3kAOVq5dtkHz2Rx8EGar6HNX1M9PNhesop9MOmjOfHjrXiROaMCi0Np6JMLJ4Jch 8QA0HAyOfROcYdb1gmmIHbrOdje8OxAFqjwXOHERXtP6PFw8FFwpg8f9x9CSIoagW5iBaDUJ6 I8Tmi9ITVfsgdLnJenO3WzY8N00aDaHoXP8yrQfMdVi2TPa3OHlQHLqukWGduY+SbpOg2Bt2e E2E4T/rj366zUC6wTu9oRjjZljFGqtKn9xLkvlmKnwZiv+QKE/029EPAFvWSsZ6rHl+M= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2076 Lines: 52 Hello! These patches address a problem we ran into using parallel displays with Freescale i.MX53 and i.MX6 SoC's. In short: We wanted to change the clock signal polarity by using display-timing in the devicetree description, but the output signal stayed unchanged. Parallel displays may have different polarities for clock and data enable signals. (Clock polarity is also a topic on LVDS displays). This is the reason why there are some properties in devicetree display-timing [1] called * pixelclk-active .. pixel clock polarity * de-active .. data enable pulse polarity This properties are correctly represented in struct display_timings [2] and struct videomode [3] by using enum display_flags [3]. But when it comes to struct drm_display_mode [4] there are no representations for this. The properties are "lost in conversion" and never reach imx drm. (or other drm drivers). Changing this would be especially important for embedded devices where parallel(RGB) and LVDS displays are still widely used and drm already plays an important role. Following two patches will 1. Introduce representation of clock and data enable polarities in struct drm_display_mode analog to hsync/vsync signals. * "drm: add support for for clk and de polarity" 2. Implicitly enable usage of the newly introduced flags in imx drm (with respect to devicetree compatibility.) * "gpu: ipu-v3: use clock and de polarity from videomode" I'm aware that introducing new flags in struct drm_display_mode affects user space too and therefore has to be considered carefully. As I'm not really deep in drm user space your suggestions are very welcome. best regards, manfred [1] Documentation/devicetree/bindings/video/display-timing.txt [2] include/video/display_timing.h [3] include/video/videomode.h [4] include/drm/drm_modes.h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/