From patchwork Thu Jun 21 18:49:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 139560 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2436701lji; Thu, 21 Jun 2018 11:51:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJCn0H27+yNO2tjiDmWvam9IV2G3RdSJXBsL4vj3Kt4fTs6bFoGzhg6FjfmczI6/XiG+Q8f X-Received: by 2002:a62:e208:: with SMTP id a8-v6mr28424238pfi.6.1529607114157; Thu, 21 Jun 2018 11:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529607114; cv=none; d=google.com; s=arc-20160816; b=CUauZNQ8c1TsGxaf+bI2k/1zj8+SS//4Q9kvBAVL5MQLWe9ICaiXLoCBV4NYKj/dzY d09ttJQp+wrm7ZBf6L0YxHRG37wn5duK9m9JOaAZN7DvXZJ5U/zpSog66fP4E5FldzyN oSFxJc8xi7L5Onrom9V1RH6SOEcfQNwXu5JFH1WfqgIYXixXfcf0xSqT5j3Lke/JFqxu rDzBX7h03wc8lb4EIc4uAyMenBAM4qWN+XTMU7r8ZUU+dEOBE3gTKBBByZTZBWkWAybu I4LpFJdlWR3JU3GlOLPX0MnlRV8bqg2Zrm83++FoJK/2jEm2PdpO8bUg3zQ8W5rY0G+8 s/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/8xX0Jqv0aj1aH2I0vWCsqY1sIa7cIJlzvOoI80QvDI=; b=hI8ftx9kh1QbiS2XD0ubBGDBqeTwWq0OcoNa83EPcogQ/4mmvSmaFEiKKr0Ca+zbdu LuLVRLi3ixHnmx4fUML73N8DTjhJpmXNcwchTlIddBbalGSXLxjVJPKqE3c41cHLk/dR MrKjdtsg0ujRtvbheg7z1BszVU81IhU1nteHD5Zgfvl0rnO6tt5nmjVyJFnwoYKoM5zS SCkHEsMT6xEy+8O9+E4J+d3fSIqmOYj51msPgI2Wd3bwvTUvgvJelzJhnmcDjfnr8N6h PNOFwYHGOZD7jjjdqpviGAg8G9UbovSEektNPan+KaEoJUNwz4aIfZTggGU87dFsdDk4 BUaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hw3lSt5h; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si1982408pgn.194.2018.06.21.11.51.53; Thu, 21 Jun 2018 11:51:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hw3lSt5h; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932994AbeFUSvw (ORCPT + 5 others); Thu, 21 Jun 2018 14:51:52 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:46751 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932719AbeFUSvw (ORCPT ); Thu, 21 Jun 2018 14:51:52 -0400 Received: by mail-lf0-f67.google.com with SMTP id m4-v6so4357522lfj.13 for ; Thu, 21 Jun 2018 11:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vhjezqH7eDAVlQ5vBwEozobkQhwjERGiWg40cYUpYMs=; b=Hw3lSt5hXV0fmjR56AIfj9j4aBJ+Hk66puEDnA369Ptpzrl6C+474JvqVALs5zwG70 M3Y8A/zgbnvhLzJwRfDRQNO5QuF2DBPXHjCpzKTCa4Z6WplFeTLg+s9URcBExlRSl/ku 1+/T4DH9831TUVIMdcHImSL15EuuiBIse4S9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vhjezqH7eDAVlQ5vBwEozobkQhwjERGiWg40cYUpYMs=; b=mddnDRTSKiA4EtOI9dj7J8yC4wEfkT7rGch5iC39na0gWFcp2P3kR2VQg1N7SPqudI gganfRVh7z2GqnfgYQnZAbopAtEYD56z3Kf0xVjvysi/M0+pb2igJ36s1il/nBqiDA6D Z29Qf4d5FV1IDljQWvkZsNVoepqnB3luD8pNf6+06ZFO4iZBLVlBlcjxi133zXAvDdvd GlSFPaOgFTZR9PNVD0PNsn0crgVbTM9iYdJFrRpkSxiyN8+Lbf+2G4ewyp3maQvOzUKb zAS0MPDLEAEWN9QL6ZGfd++0tAoOMw2UAkwrR6394q+2+O+jxsycknXDO49vTtEwzRiE LXhQ== X-Gm-Message-State: APt69E33Z167d9mi6MLnZYdChuoxVcKHCIuQk7BLvMnx6wA9dh9n30GF 4WJxia5FdP8ZuS3EWiGmTYSavAovANg= X-Received: by 2002:a2e:980f:: with SMTP id a15-v6mr17727343ljj.143.1529607110761; Thu, 21 Jun 2018 11:51:50 -0700 (PDT) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id s5-v6sm977793ljj.93.2018.06.21.11.51.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jun 2018 11:51:49 -0700 (PDT) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2] drm/panel: Augment the TPO TPG110 bindings Date: Thu, 21 Jun 2018 20:49:41 +0200 Message-Id: <20180621184942.26087-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The TPO TPG110 bindings were using the DPI bindings (popular in the fbdev subsystem) but this misses the finer points learned in the DRM subsystem. We need to augment the bindings for proper DRM integration: the timings are expressed by the hardware, not put into the device tree. Old device trees with the DPI info will continue to work, but no known deployments exist. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/display/panel/tpo,tpg110.txt | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt index f5e3c6f2095a..0e918076d55e 100644 --- a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt +++ b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt @@ -1,26 +1,32 @@ TPO TPG110 Panel ================ -This binding builds on the DPI bindings, adding a few properties -as a superset of a DPI. See panel-dpi.txt for the required DPI -bindings. +This panel driver can driver a variety of panels. It requires +a few GPIO lines for control of its reset line and custom serial +protocol. Required properties: -- compatible : "tpo,tpg110" +- compatible : one of: + "ste,nomadik-nhk15-display", "tpo,tpg110" + "tpo,tpg110" - grestb-gpios : panel reset GPIO - scen-gpios : serial control enable GPIO - scl-gpios : serial control clock line GPIO - sda-gpios : serial control data line GPIO +- width-mm : see display/panel/panel-common.txt +- height-mm : see display/panel/panel-common.txt -Required nodes: -- Video port for DPI input, see panel-dpi.txt -- Panel timing for DPI setup, see panel-dpi.txt +The device node can contain one 'port' child node with one child +'endpoint' node, according to the bindings defined in +media/video-interfaces.txt. This node should describe panel's video bus. Example ------- panel { - compatible = "tpo,tpg110", "panel-dpi"; + compatible = "tpo,tpg110"; + width-mm = <116>; + height-mm = <87>; grestb-gpios = <&stmpe_gpio44 5 GPIO_ACTIVE_LOW>; scen-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; scl-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; @@ -32,16 +38,4 @@ panel { remote-endpoint = <&nomadik_clcd_pads>; }; }; - - panel-timing { - clock-frequency = <33200000>; - hactive = <800>; - hback-porch = <216>; - hfront-porch = <40>; - hsync-len = <1>; - vactive = <480>; - vback-porch = <35>; - vfront-porch = <10>; - vsync-len = <1>; - }; };