Received: by 10.192.165.156 with SMTP id m28csp2041645imm; Thu, 12 Apr 2018 07:41:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48i1uBoGtUWWrQjzMH6/FE0PyshlVHIkKzSz8ltKm4K19b2i8BMkvtLAIGexes3Gw6P6NEB X-Received: by 2002:a17:902:8b89:: with SMTP id ay9-v6mr1367195plb.306.1523544118393; Thu, 12 Apr 2018 07:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523544118; cv=none; d=google.com; s=arc-20160816; b=lRzeIdMHAR+6PFl9kr6/bpC3vB7lM9tiKhRss2pJcmHxqYF6KpIRfEux7siu5KejNT KOVq+TKSrtQ1fr4v6O0cOw1k/tL7iZsPPi+kwqOwaqRH6NVZJw4XXKvDYvS15wLthOX7 +2YxeDj6ZaNST1QG55I3DoZXKRBANNF4aMyZrxQo6+VLz3gxbyehrdCLrYfKdb+2ewZJ C8vVR+wqwj1PkSyZzv5L90CWN4voykhpDqVH3nUPbMoem/TcUQw2G1NsyHJpylywPncy JmuSLvr1WPXHdt2w0eGc1/68P8GtItoQCYbRYQKXq5D+pqXKF1zkVJ4o7Wii9R9opBbD W+Yg== 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 :arc-authentication-results; bh=oOmcZWYCqSbg0m6hm4QSrRYJC71fjvbDQx/hGjdsMJU=; b=HaVpBV/wBseXPSHY3gL2UA/z05wGjGWyheWI3IOPrKOCsGUj9U3EMuNPJ64+K5sCp0 +objA0l8rW9ZcfWHRHmUyKHaM7PnYu+dCu4hu1ppTMWWufPalIylQGNrs3U77vk18jNB c5eSobD23t6/ntJMZKCRjcT7/x2PB4KVEaqyaZNQQiKbv2vPS3+7HE/EmQJMNoVdnZLH yeSEoeNhQgMSIBNNo/YF6RhbfhCsJOVeFIH/zcfAOA/oSJlj0JlLf5XFHh5ar1hpfLl0 cwG/iS9NMFU2/hvoK51vQW3let4BGg2zpA3VrsnZhmzjwawU3udcjRv3Ygc90+214gyY HI/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8-v6si3277524plk.734.2018.04.12.07.41.21; Thu, 12 Apr 2018 07:41:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753303AbeDLOhd (ORCPT + 99 others); Thu, 12 Apr 2018 10:37:33 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:55480 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752652AbeDLOha (ORCPT ); Thu, 12 Apr 2018 10:37:30 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40MNm84FLkz1qvV6; Thu, 12 Apr 2018 16:37:28 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40MNm832bjz1qqyr; Thu, 12 Apr 2018 16:37:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1fCnbhKIwwTV; Thu, 12 Apr 2018 16:37:27 +0200 (CEST) X-Auth-Info: cbJoZlUtFaoBgEa6PVfKbgUItrPsC1k4rkwEX7HIiSY= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 12 Apr 2018 16:37:26 +0200 (CEST) From: Lukasz Majewski To: Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lukasz Majewski Subject: [PATCH] display: panel: Add KOE tx14d24vm1bpa display support (320x240) Date: Thu, 12 Apr 2018 16:37:15 +0200 Message-Id: <20180412143715.6828-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds support for KOE's 5.7" display. Signed-off-by: Lukasz Majewski --- .../bindings/display/panel/koe,tx14d24vm1bpa.txt | 42 ++++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt diff --git a/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt b/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt new file mode 100644 index 000000000000..be7ac666807b --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt @@ -0,0 +1,42 @@ +Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel + +Required properties: +- compatible: should be "koe,tx14d24vm1bpa" +- backlight: phandle of the backlight device attached to the panel +- power-supply: single regulator to provide the supply voltage + +Required nodes: +- port: Parallel port mapping to connect this display + +This panel needs single power supply voltage. Its backlight is conntrolled +via PWM signal. + +Example: +-------- + +Example device-tree definition when connected to iMX53 based board + + lcd_panel: lcd-panel { + compatible = "koe,tx14d24vm1bpa"; + backlight = <&backlight_lcd>; + power-supply = <®_3v3>; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcd_display_out>; + }; + }; + }; + +Then one needs to extend the dispX node: + + lcd_display: disp1 { + + port@1 { + reg = <1>; + + lcd_display_out: endpoint { + remote-endpoint = <&lcd_panel_in>; + }; + }; + }; diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 62314085b635..45e61af936e0 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1245,6 +1245,29 @@ static const struct panel_desc innolux_zj070na_01p = { }, }; +static const struct display_timing koe_tx14d24vm1bpa_timing = { + .pixelclock = { 5580000, 5850000, 6200000 }, + .hactive = { 320, 320, 320 }, + .hfront_porch = { 30, 30, 30 }, + .hback_porch = { 30, 30, 30 }, + .hsync_len = { 1, 5, 17 }, + .vactive = { 240, 240, 240 }, + .vfront_porch = { 6, 6, 6 }, + .vback_porch = { 5, 5, 5 }, + .vsync_len = { 1, 2, 11 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc koe_tx14d24vm1bpa = { + .timings = &koe_tx14d24vm1bpa_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 115, + .height = 86, + }, +}; + static const struct display_timing kyo_tcg121xglp_timing = { .pixelclock = { 52000000, 65000000, 71000000 }, .hactive = { 1024, 1024, 1024 }, @@ -2155,6 +2178,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "innolux,zj070na-01p", .data = &innolux_zj070na_01p, }, { + .compatible = "koe,tx14d24vm1bpa", + .data = &koe_tx14d24vm1bpa, + }, { .compatible = "kyo,tcg121xglp", .data = &kyo_tcg121xglp, }, { -- 2.11.0