From patchwork Sun Feb 4 17:49:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10199417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C444960318 for ; Sun, 4 Feb 2018 17:55:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD5202843C for ; Sun, 4 Feb 2018 17:55:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B229C2859F; Sun, 4 Feb 2018 17:55:55 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 486FD2843C for ; Sun, 4 Feb 2018 17:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1EfFtS22xC88IxlFGc48IxpowgRQO7KPcVDY5Tl3mzc=; b=p2jGsUbc/qLvLFpsRG3fenLc/E M82N8I5DldGS4/qWAHmCGm1wSAOpoCQOIDtNAeIgTXHW+2ybTp0rmvWVV6UnQ1SJIdKLgDoq+qMNS e0vtmY5C5yKeEVMWn7qzXUzwQaT3CFzitTEN4aZeQ90rHeQPtZ0N4F9eGZN9s83I9oZZp7KaABrBi onSMMEd3pLCpS4EgkC78+GdxEvLXnbj8HyowUHoCg3n0URSfEh28FDF90rzuPDt0FURXAkMfJP2dz xjVmXqQFF1yeBeSf1VzJTFeud6HX5ei0nJtrjvy0fMJnxTEnhubNV/uBm+tegaWp4MrXZpBJ/YcU8 R59hn0DA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eiOW8-0002rU-Sw; Sun, 04 Feb 2018 17:55:52 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eiOVL-0000oi-Hf for linux-arm-kernel@lists.infradead.org; Sun, 04 Feb 2018 17:55:09 +0000 Received: by mail-pl0-x243.google.com with SMTP id v3so10208417plg.3 for ; Sun, 04 Feb 2018 09:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LZpEcF65yzaYBPTvl4uH3ZQWtz3991Zt7tUQ19XYhXQ=; b=eYbDEp0VEAr7WZyN4POAmwyvfqskouBtpr7YRiRz+FJG7LUax7M8SpZ43PXvHsnohn emY4oCzWQnkeYimWZpczuchBDpT2SG7MG8/CP8x/UjwIymAIR77iMYHBc+yP0RWvzH7M Wvi8QHDuJOLVb6MZ9D38qHU6O5TH1Vm8Ok4sErtP+wC/DjOtOxU3Y/X2ydo7NS6vk1CO jDyhr8gqLgnlbxvceK3UIR+1mD0k/cGDOziCNBZv2Zs7Eo1wLQhC18jPfolNfcGdAvtq OpSJfYi+1V1zI3MhTqJ+YNbLgf/o/czMT0n+C3LPWgPAUyjonQVRkki9uWL4C/GuXQSm 4DNQ== 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:in-reply-to :references; bh=LZpEcF65yzaYBPTvl4uH3ZQWtz3991Zt7tUQ19XYhXQ=; b=jyJDlULEDgEjimvyM82y6M22TfxUh8o9BT/jXUmkT5cnP+29Xs1EBqps2/RcZqQ6vt 8/OkLg56CDhpZs9my2VzyN29le5jc32OqJ9zYN5r1Sd6iVp4UeosZvHeyzV2rHZSz8c6 fqUEgRQwNk17rjbDOEEJ0XjUhuXYkTHHpOVfHaihZ/IybVvcqTmAct7A/UR1Mx6/EM1x LtxfdXdEZVNXXFkwWiaH3iqBUTyBiVnedoFThb2L527sL/NcaZwO9ZjP1EJsS4eBEfPj v1qUop7BfQdzuMhaHZurlFY+fiaGkF8nA30p5retCk5H8et3cotWd25gEx1AmB+XK/8U Bw6g== X-Gm-Message-State: AKwxytf3MCNa39/QBzSQNf5XipsHuslWkYB6aHUbYxtY9oP6NWWR33T4 vlPnGsVybHMV//E+RueKcas= X-Google-Smtp-Source: AH8x224N4iLknjuOP3DNJL2BMjwh6WcrmmFhYMLcz7wSqt/rwxqjRiDQTeAW2brCZpI2XdHE4PIZMA== X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr42274503plv.270.1517766901170; Sun, 04 Feb 2018 09:55:01 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id u86sm13113279pfa.102.2018.02.04.09.54.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Feb 2018 09:55:00 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Shawn Guo Subject: [PATCH v3 4/7] drm/panel: simple: Add support for KEO TX31D200VM0BAA Date: Sun, 4 Feb 2018 23:19:28 +0530 Message-Id: <1517766571-409-5-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517766571-409-1-git-send-email-jagan@amarulasolutions.com> References: <1517766571-409-1-git-send-email-jagan@amarulasolutions.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding , Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the Kaohsiung Opto-Electronics., TX31D200VM0BAA 12.3" HSXGA LVDS panel, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Changes for v3: - collect Rob reiew tag Changes for v2: - Updated binding info about optional properties, node and example .../bindings/display/panel/koe,tx31d200vm0baa.txt | 25 ++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/koe,tx31d200vm0baa.txt diff --git a/Documentation/devicetree/bindings/display/panel/koe,tx31d200vm0baa.txt b/Documentation/devicetree/bindings/display/panel/koe,tx31d200vm0baa.txt new file mode 100644 index 0000000..6a036ed --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/koe,tx31d200vm0baa.txt @@ -0,0 +1,25 @@ +Kaohsiung Opto-Electronics. TX31D200VM0BAA 12.3" HSXGA LVDS panel + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Required properties: +- compatible: should be "koe,tx31d200vm0baa" + +Optional properties: +- backlight: phandle of the backlight device attached to the panel + +Optional nodes: +- Video port for LVDS panel input. + +Example: + panel { + compatible = "koe,tx31d200vm0baa"; + backlight = <&backlight_lvds>; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 2ecc14b..8a0e4a8 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1241,6 +1241,30 @@ static const struct panel_desc innolux_zj070na_01p = { }, }; +static const struct display_timing koe_tx31d200vm0baa_timing = { + .pixelclock = { 39600000, 43200000, 48000000 }, + .hactive = { 1280, 1280, 1280 }, + .hfront_porch = { 16, 36, 56 }, + .hback_porch = { 16, 36, 56 }, + .hsync_len = { 8, 8, 8 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 6, 21, 33.5 }, + .vback_porch = { 6, 21, 33.5 }, + .vsync_len = { 8, 8, 8 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc koe_tx31d200vm0baa = { + .timings = &koe_tx31d200vm0baa_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 292, + .height = 109, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, +}; + static const struct display_timing kyo_tcg121xglp_timing = { .pixelclock = { 52000000, 65000000, 71000000 }, .hactive = { 1024, 1024, 1024 }, @@ -2151,6 +2175,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "innolux,zj070na-01p", .data = &innolux_zj070na_01p, }, { + .compatible = "koe,tx31d200vm0baa", + .data = &koe_tx31d200vm0baa, + }, { .compatible = "kyo,tcg121xglp", .data = &kyo_tcg121xglp, }, {