From patchwork Wed Apr 25 17:39:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10363969 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 C91DA6038F for ; Wed, 25 Apr 2018 17:40:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B87CD28FEC for ; Wed, 25 Apr 2018 17:40:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6AE229009; Wed, 25 Apr 2018 17:40:10 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 8E84F2901D for ; Wed, 25 Apr 2018 17:40:09 +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: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:In-Reply-To: References:List-Owner; bh=xe2vQJwnibySi2Re/yO3OJ7Yo4pfZPPNAqWr7rqkWRQ=; b=V94 2UXzFVM5MizyPaERcu4nL0H4oGNnVu71V5P6+6aUnnv1iVd89WFtIfHvE5M9uVJzOIuQ4DsreM/Iu g6YFgjaIWKOVx6GzlziLpjx1LcbMNpTlXZkICc5zhlM0dSYxh06icH8ulmfgtkvbBu07SLok5K6Tk cnGSqIDnE1LrQdObCE9II76LySxGf8FAhfW8yJ2Hw1fRGFV/HjRel5+HpUJmt1d2kUIsxr3sdLvg3 Rd+dDF6KAmu8pg+9oL5v5i1ekbzwGkAbZFDizhCW2hW6WFGkvM40luj2YxM8WLnX0X2QYbqfcMlmJ CD9smg2IzuZCsm5K698uUhSKe5khtDQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBOOf-0007lc-27; Wed, 25 Apr 2018 17:40:01 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBOOa-0007kd-UP for linux-arm-kernel@lists.infradead.org; Wed, 25 Apr 2018 17:39:58 +0000 Received: by mail-pg0-x241.google.com with SMTP id n9so1046114pgq.5 for ; Wed, 25 Apr 2018 10:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=M/LJiu38peWNDkvY815uUI7lnCROHN21HB7QAXMOUJw=; b=h1weciLNnRtp7ugkOkeSr2ghJiNhMK55dw03TL3QW6AirhglWAy/bRjyR0dnDYXqQd CbWVv4QopoGxxMwXE1klbcbSyPmXKsUbhGe1HRAjZZatmPLQ/P7mCLHwDaTmxCPx1E3m wZbOOTlJZwaC/wtalSutpkk/okcWoTKegHZno= 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; bh=M/LJiu38peWNDkvY815uUI7lnCROHN21HB7QAXMOUJw=; b=ntWOzI8IExSb3LGehLB+zmgVj+B/Vk/NIfQdBuZ4bdci4Ompz9npPLxREtANk68ZCb dJMGYc025X5Dv65j8wWxixiWV2zyqFAVQb3diywVA4N08cC+ZqUXdVYpXfRLEugc7YDD tTtQV2OpfsO84xtwaZn5UDwjFmeS5BOZHeLdORyN7Gg/SniVPMWcIEcBFimrodgNBz5J z3rPMGT/m1x9XExycgS1vI44mkIWuIkclphY1zDdadiCHUsYXG3Rt9wA+u73boXD4GeX fHX2rA0ikghc20ld/EDVEfyptAR/eG6bOZOAZxEfonqFd+iQjDvc0GfH4afDTUVzTMHA lMhg== X-Gm-Message-State: ALQs6tB2a630ZljU45oD+Cs7zW8wcVAie736veAuknp7FXc/5D5hG5KI RoJjRYNT0ttpmQ1YcXFWIftDFg== X-Google-Smtp-Source: AIpwx49DVm9vtk9LRzEJN53YmFzXDxGXwU6tm9HBNYS+/nwMatPSceSebEoiUbnlUBBcW8p+QWsl4A== X-Received: by 10.99.157.12 with SMTP id i12mr23627708pgd.87.1524677985511; Wed, 25 Apr 2018 10:39:45 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.182]) by smtp.gmail.com with ESMTPSA id v187sm33228854pfv.21.2018.04.25.10.39.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 10:39:44 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 1/4] drm/panel: simple: Add support for Rocktech RK070ER9427 LCD panel Date: Wed, 25 Apr 2018 23:09:29 +0530 Message-Id: <20180425173932.7213-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180425_103957_004654_BEFD3A6E X-CRM114-Status: GOOD ( 14.62 ) 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: Mark Rutland , devicetree@vger.kernel.org, Fabio maggi , linux-kernel@vger.kernel.org, "davide . bonfanti" , Shyam Saini , Rob Herring , Andrea CORTESE , lamiaposta71@gmail.com, Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, Jagan Teki 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 Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel, which can be supported by the simple panel driver. Signed-off-by: Jagan Teki --- .../display/panel/rocktech,rk070er9427.txt | 25 ++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,rk070er9427.txt diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,rk070er9427.txt b/Documentation/devicetree/bindings/display/panel/rocktech,rk070er9427.txt new file mode 100644 index 000000000000..eb1fb9f8d1f4 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/rocktech,rk070er9427.txt @@ -0,0 +1,25 @@ +Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD 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 "rocktech,rk070er9427" + +Optional properties: +- backlight: phandle of the backlight device attached to the panel + +Optional nodes: +- Video port for LCD panel input. + +Example: + panel { + compatible = "rocktech,rk070er9427"; + backlight = <&backlight_lcd>; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcd_display_out>; + }; + }; + }; diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index cbf1ab404ee7..a6c633fd0559 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -745,6 +745,36 @@ static const struct panel_desc avic_tm070ddh03 = { }, }; +static const struct display_timing rocktech_rk070er9427_timing = { + .pixelclock = { 26400000, 33300000, 46800000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 16, 210, 354 }, + .hback_porch = { 46, 46, 46 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 7, 22, 147 }, + .vback_porch = { 23, 23, 23 }, + .vsync_len = { 1, 1, 1 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc rocktech_rk070er9427 = { + .timings = &rocktech_rk070er9427_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 154, + .height = 86, + }, + .delay = { + .prepare = 41, + .enable = 50, + .unprepare = 41, + .disable = 50, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, +}; + static const struct drm_display_mode boe_nv101wxmn51_modes[] = { { .clock = 71900, @@ -2226,6 +2256,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, + }, { + .compatible = "rocktech,rk070er9427", + .data = &rocktech_rk070er9427, }, { .compatible = "samsung,lsn122dl01-c01", .data = &samsung_lsn122dl01_c01,