From patchwork Thu Jan 4 06:12:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10143939 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 81DBC60594 for ; Thu, 4 Jan 2018 06:28:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75B482842E for ; Thu, 4 Jan 2018 06:28:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A7D428434; Thu, 4 Jan 2018 06:28:20 +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_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable 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 EB9F52842E for ; Thu, 4 Jan 2018 06:28:19 +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=lAuYeWfGrYG7CU1W5Xf+0a4P6uPvkjFrw2NuaGTm7Ko=; b=GuiC2be6AH1LtixdiGPjuvBvE1 ajuo1e0XVspK5ZtPaWH6stHqf92F0NuBoQedzjGjgDTsZLDT3Q/tsGyBihCZEBJ6RbBNzSExlVy7m sM0Q3Y/x2BIQlq/8437d88L4YycOW45FKEBJ1CsVh0axAreaIBufU082kBAg77KUp+ffh9UUvwdzK bisL7+GWpJ4/+ryTWRd6CqM7QemXvt1XHjxRsSE6KZvu3mBtWOGqAppD6Xct1uSC+GF/MeZowY059 wiRHBnkkbmJeE+Y/VUhjissc0lsHJxg9QTGnmYg3v2ww/7L/xv1UPm/VgETFrSja2zvZ7RES4Y04e FVtkhXKA==; 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 1eWz0f-0000kO-HV; Thu, 04 Jan 2018 06:28:13 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWynv-00024E-AW for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 06:15:18 +0000 Received: by mail-pf0-x241.google.com with SMTP id v26so381973pfl.7 for ; Wed, 03 Jan 2018 22:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V6VWq4+C3OU4Futy/xPwKlSDfp5mAwUtT+0FHebrdL4=; b=zSca92qytGNkr1XK1R9o6vLG998dJ5/433XZI7uWkyEo64kAKZrHdVAmOy4AZaEZTp GyiPBs+93TAJdFJvJtKJIEyr9pjW+8CGy3qXO5xrWIUxjp3InLXrpFMtkAz5vC+Gv+vR V7OBTJv9vtcJMOxCVuCRBngXu/FyVZzYw+5QaOG11z0v+adSSayd6VEDzQfqbfAH4aRi 471IUWhLfrI32R7tGBVSQ5qUtZzLL8Pmwy6NxGWuEkz0UP8i3cPnKsBKNd5zF4013FLb yKSVngYieUKeEG3ueLF+t4o3dTiNvMxoNlnLPeqVDZdFHPcIIVTwmabtoOX3f04pQTb4 VKdg== 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=V6VWq4+C3OU4Futy/xPwKlSDfp5mAwUtT+0FHebrdL4=; b=RBOfgaYJ1BGrF3HngmMM4Pk5vkE68DSP8hLFWIYW7Vr6KlAkFyRC7GIfqeE2nh/Bbq pywt9ANWgDT7zeBpCIGmFJsOOOUUSSQQCMJ4bhpFtiFEqf/jAHE30+t5Zr64Ns4oxk/L VQr6cj4VipUMXaHYl9WBY7+0LjtlSnUqsmV+Pz+SqnQt6KYr0wVw0Wn1Rtq7WbjuGsk9 2225aE1b+mVjAOiZF0WBvpjuvBXXV+t+Yh47fuYLdawCmk+4DYevxNeVjG0JcO5ttP4I WuMsk55DjcDBhRWTIGqJM805HlS0jqiFgNJECqQ1CXjr6JG/V9OVhfveuGPMVgQh+Skm 8xRA== X-Gm-Message-State: AKGB3mL6o+EZaZ8KFz1zQddDKkOPgNdH+8izE2YDpn1J3mpKAv0SZ4cj ElG8SVjgXU30uFwVPBOyj+JDEg== X-Google-Smtp-Source: ACJfBovXHBdoJx8suLlvGHAJTe8avdfA8rFPU72L3u7d0XfFGU/BiefRrdvjqZ0D8P1T6IZ5C2uwcQ== X-Received: by 10.101.81.13 with SMTP id f13mr3249862pgq.150.1515046492227; Wed, 03 Jan 2018 22:14:52 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id y5sm5921514pfa.128.2018.01.03.22.14.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 22:14:50 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 4/7] drm/panel: simple: Add support for KEO TX31D200VM0BAA Date: Thu, 4 Jan 2018 11:42:22 +0530 Message-Id: <1515046345-15881-5-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> References: <1515046345-15881-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_221504_390919_5ECB3253 X-CRM114-Status: GOOD ( 14.43 ) 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 , linux-kernel@vger.kernel.org, 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 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 e262462..ef3973d 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1267,6 +1267,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 }, @@ -2180,6 +2204,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, }, {