Received: by 10.192.165.148 with SMTP id m20csp57758imm; Wed, 9 May 2018 08:45:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMUWJtoBxwTjfpf2HrX7rb9ZPhE1gaqMohh2ijnRlFKBTl4uylsrEGh4fhpbTApGuo80sC X-Received: by 10.98.71.141 with SMTP id p13mr44280031pfi.164.1525880705260; Wed, 09 May 2018 08:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525880705; cv=none; d=google.com; s=arc-20160816; b=l7w49Ma79RGx108Kmab27WFwr4FsXTfL90Cc2ZS9zhNImjEKMFF1qK4tUjwnwSfD2e v/30XceO4HKl2LU39JqDcT8RKFrQLy9HMvxCQ4uatgXWx7maanydhAhO+VNLdtCYvkLJ 1oYS25uOSwvV7zTDN4MtYj73uKvzNW5vVzV/bIQ/xai2ihgaVes63cnWgdbxOEiDizhZ MklQPJB6H9/xQvNMSeD3n79qGY+/eQXquvXIQ5+teJTirv4LX0hULdSkBNW2e/O8ingn mJrXONG4A74MVUc7FdEQ4zwcTAha2MoUwZM26RIQfNsiRE1uK2qMmqpuj7WV1uAEgx7q eEYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=cP0GbF66UYoWXvrF9gy5dZhqLTpRVwqZna9yguG7kfg=; b=qoL7xM6TEPaMd8QA8pRXnSZg0aoqo5k87MpzR3qWlu96wd/DZKVTR0GzdsYr8s47yV ULfOXnW8qZBFm52TJKijMWgXGLkyw3tL836+I4X+UhOE9AQCPKZJ2jVAGc3ac0rPdiRg w8WU4hvp3sPVh3zaBz/sXyGPILRd0W1rfAUgTKg5fdi4I32EuiLxHYg81uASw0H33BHt Tw0tiBZYHQFbkiSDSaVGfnJ+W75jNQ+Zhvhhggze4RKj9fLDajHlXeTzggkxLXuklpyU nYfXnZX63xbg42UNTOzKpuTIAqLpOmCG/1LjkaAuaiHaHzlXH+VIYuJCG5GngLIUyIax h/Tg== 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 t6-v6si316973pgr.355.2018.05.09.08.44.48; Wed, 09 May 2018 08:45:05 -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 S965116AbeEIPoW (ORCPT + 99 others); Wed, 9 May 2018 11:44:22 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:36044 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935397AbeEIPoU (ORCPT ); Wed, 9 May 2018 11:44:20 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40h0yp5tcMz1qsjh; Wed, 9 May 2018 17:44:18 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40h0yp4s4Pz1qrfv; Wed, 9 May 2018 17:44:18 +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 TFyd912BFpEF; Wed, 9 May 2018 17:44:17 +0200 (CEST) X-Auth-Info: FvnlDdnSt70YP4dJG506J6AbrKPZWpWYfxPMWRB5ZLk= 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; Wed, 9 May 2018 17:44:17 +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 RESEND] display: panel: Add KOE tx14d24vm1bpa display support (320x240) Date: Wed, 9 May 2018 17:43:38 +0200 Message-Id: <20180509154338.2841-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180412143715.6828-1-lukma@denx.de> References: <20180412143715.6828-1-lukma@denx.de> 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 d9984bdb5bb5..103b43ce7dee 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1268,6 +1268,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 koe_tx31d200vm0baa_timing = { .pixelclock = { 39600000, 43200000, 48000000 }, .hactive = { 1280, 1280, 1280 }, @@ -2204,6 +2227,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 = "koe,tx31d200vm0baa", .data = &koe_tx31d200vm0baa, }, { -- 2.11.0