From patchwork Tue Jan 2 09:02:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10140129 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 DEC9660362 for ; Tue, 2 Jan 2018 09:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3F6328A51 for ; Tue, 2 Jan 2018 09:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7BE028A75; Tue, 2 Jan 2018 09:09:30 +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 5413A28A51 for ; Tue, 2 Jan 2018 09:09:30 +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=TEmYQ7QTjy0qpH8GGLi7ETswxALyYhD6QzTUxWB4y5Q=; b=FdUguZ6qwBy9c3+HQaQGYbUJ3d l/QOcCbCEZtl1hyBxZ8Cj/FYx34QJ+aA8fIIX8DGvj4q65u/V97eJdwsBMp3+ouRfC1kG6I7v9VLy E/d0p6tIf3EW7pYcHPzJ0Z9few1dNmtmLjOrBYT4T9YirJsVWTPAbB9Lj02l2+qOkFraw8Gq03CEL ecO9Gvwu02W+Zr9G/93vo+g0X3iYc/fV8FBIB0IHor6iOX6FfMKEEqNJ5rlcnBNP1NL0vd6U5Ocun elGJ8DsOFkIU0iZG+0+q90R7VuHIF07atzzagNncB8Dw07vJ9KbB0OvZ+mpvgrs49ufmZDkIZ+r9k TCJ2SAEw==; 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 1eWIZZ-0005j2-DF; Tue, 02 Jan 2018 09:09:25 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWIYD-0004nb-UZ for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2018 09:08:12 +0000 Received: by mail-pl0-x242.google.com with SMTP id 1so26833796plv.0 for ; Tue, 02 Jan 2018 01:07:51 -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=xoWnKToGh59t8j3gnuRYSXYvz2OJ0mBcMmsYSOlMQIY=; b=LuEJH9mNC/1u7GKISccBqQCgXCe+JdNoosByLG66efYLhiJ8FJYVdSz5DU9i/hlYKO elQDPWd5guxficWknVeU/N/DLV2gD5U97a9KyUuZ7QHTObEHuv1kONnDYBqBulAfPXLv HvlWzn1XGPw5f4n9jEB9iU5OxT96r9RhMxrbUrA9kS2swBKN+wSFt3nDMBZX2cw0kse7 yVlwXQMYOWUPO8UMExA8/yesLqtE0wYyIys0JKlAKOHuz1rFjtCN5zLzYJ3rDAopU0fN bePK3VZrp7nGdEFrKZzcxMaJ069bwktd619OwF0XHmKImcf53ExFMHa7NZh92ex5Sz5o Gvtg== 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=xoWnKToGh59t8j3gnuRYSXYvz2OJ0mBcMmsYSOlMQIY=; b=e9uFcOA9EONEkHVqO3HzPerYTDdb0FDggssotneI+N/nqnE6veqOoSFDKeIkO8hz9g 64SLewU6iZqLUFQt7t80ykZnkBl9VRdy9cEs4ZqFz2WcayOGaH1+T7ENlRVjvYYKlYk2 UtK3nf+PzOYQzRUIXQjkWzKVrfO11+cl9MlYrFWFsXNuT9Eqz5sY3BSZL46m1L3f0Y8H FTBlKn9ptv7aeuBCl0ffre1ja9Z2qROiLJZ16Hqbv18u749T29cuKji8YZK2cyDRRh61 wdcxBGU+s9NbaVYSoYflrZ/Fb9Xq/gBZcmKPBXa+kgxO0YOss86LiKxr0g+kVwlLFv72 VYoA== X-Gm-Message-State: AKGB3mLu22RWjXW+1m0b0eptjOtPZqVp9Uouq8dnaBHRuRB8UKjxvHaf ktp99kUc0w2LsvSfjTEwo70zRQ== X-Google-Smtp-Source: ACJfBosF1lpUZusG9O6szUtF1UiiE6fE/Jae9i345ljk7S+JFYpUFp5HkVp6SHnRZIxcEUBl2I8sWg== X-Received: by 10.159.196.135 with SMTP id c7mr44671684plo.197.1514884071196; Tue, 02 Jan 2018 01:07:51 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id l80sm91840884pfb.124.2018.01.02.01.07.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 01:07:50 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH 4/5] drm/panel: simple: Add support for KEO TX31D200VM0BAA Date: Tue, 2 Jan 2018 14:32:17 +0530 Message-Id: <1514883738-16297-4-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514883738-16297-1-git-send-email-jagan@amarulasolutions.com> References: <1514883738-16297-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180102_010802_785697_27E5ED26 X-CRM114-Status: GOOD ( 14.50 ) 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 --- .../bindings/display/panel/koe,tx31d200vm0baa.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 34 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..a51db2c --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/koe,tx31d200vm0baa.txt @@ -0,0 +1,7 @@ +Kaohsiung Opto-Electronics. TX31D200VM0BAA 12.3" HSXGA LVDS panel + +Required properties: +- compatible: should be "koe,tx31d200vm0baa" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. 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, }, {