From patchwork Fri Apr 27 13:10:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10370563 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 1B0C160384 for ; Sun, 29 Apr 2018 13:55:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A9EF28B49 for ; Sun, 29 Apr 2018 13:55:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F35E628B4F; Sun, 29 Apr 2018 13:55:36 +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=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EAF3328B49 for ; Sun, 29 Apr 2018 13:55:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 03E6B6E1B8; Sun, 29 Apr 2018 13:55:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id D300B6E8FE for ; Fri, 27 Apr 2018 13:11:03 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id v63so1471678pfk.8 for ; Fri, 27 Apr 2018 06:11:03 -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=Vld8s7AShOqUvpy0JqlhQGNt0boosSKSyBFUWQ/lfvI=; b=ABxSzQZFNShaJG0wvfHm2BMHVHhIKljeNXJVk4k1ynzMg8WJHCYcFTdIH4Yut79Qci C3xZpPA4mnQS26oAIgefX1HyMYimijjWmR9oFN9lIvoDxj5eXG3sR/Lb1YB0h8mDIaBq rpjSSRerP7CG4madRcLbLOGiJg+/wpGEnpL/Y= 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=Vld8s7AShOqUvpy0JqlhQGNt0boosSKSyBFUWQ/lfvI=; b=P8wulW0hxNhy/gnVdEM40XF0NJf5m8vOPME1lzNADR4kh8Buo/KKmXTMNGWbQFJs0o b5aMObBRVILk/bIPl4EwiDhRK6w7OzGGuphDIClFPUtpD+MdK/auy4DZ/tOyXBJ+oI7R YAtbPcKEdqtiy1M8berGcB4xUdpur4UebZYF2Ylf6oewS07TNBOsrt067iyyca8Psbex z/573Sc/C2hBEKxJYTmBRCFPUomqQ8sCkSCfPDwkFmGBSIe495xelys///SQ/BNQocrq yCPmFBqnRqewGZEIonECsXbll3OxVUrDwJPEuJ8Rs40yd42c9PjeGClWXhTb7Xs//9SE zTyg== X-Gm-Message-State: ALQs6tA/QWTXY2D0ZpG1cXv9u9bVrM4jiZSOr3UH71QEtyeXl2Lc/dAU gX40LFH5q3VPbiogYWaVClqMsA== X-Google-Smtp-Source: AB8JxZoyxAvfrC3hAf+Bx5BsyhNdxvPliXBe7MuJ0uP/Q3jw6XvgfPTYoFFWL6m4z/gbhxcArIV07Q== X-Received: by 2002:a63:6fc8:: with SMTP id k191-v6mr2124775pgc.330.1524834662544; Fri, 27 Apr 2018 06:11:02 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.182]) by smtp.gmail.com with ESMTPSA id l3sm3311503pfg.49.2018.04.27.06.10.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Apr 2018 06:11:01 -0700 (PDT) From: Jagan Teki To: Thierry Reding Subject: [PATCH v2 1/4] drm/panel: simple: Add support for Rocktech RK070ER9427 LCD panel Date: Fri, 27 Apr 2018 18:40:40 +0530 Message-Id: <20180427131040.28775-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 X-Mailman-Approved-At: Sun, 29 Apr 2018 13:54:17 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio maggi , "davide . bonfanti" , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Shyam Saini , Rob Herring , Andrea CORTESE , lamiaposta71@gmail.com, Sascha Hauer , Fabio Estevam , Michael Trimarchi , Shawn Guo , linux-arm-kernel@lists.infradead.org, Jagan Teki MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- Changes for v2: - included drm drm panel maintainers .../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,