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: 10368521 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 EBF29602DC for ; Fri, 27 Apr 2018 13:11:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAC2F293F9 for ; Fri, 27 Apr 2018 13:11:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D91EC29404; Fri, 27 Apr 2018 13:11:25 +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 DD8B6293F9 for ; Fri, 27 Apr 2018 13:11:24 +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=t/KzDVKWSW6Y9R3aAZz41K5WUrnpqsP+wlPK7K3pXu8=; b=e2Y 6n+VorkxkobgLN0FcML1BTLTF1Vq5fd83cWOPtEZxIwRv69zieJAf+4kHUn6kug9I+fSR9kZG7IEz 6J6ZLSoKMgMzWs9aHHmNDetOwnIu2LWeTkCwPUASA9J49Umvbb8G8+coWzKK/dglhp04vM6Havk0F Kv1SscxPwI7UBjtbQB2Xej0DhMM8YbT3/cr+9ZGgiCf6KZXpuiWuHBfKqlJ7NN1oOzGIGSUHcAO7G 4B1rum8UR/kHmqzh+78g0KPiHtZpj1HuLDJ8OVBzYz1JlMZCtSedxBSU/p04ERQIikYB4mpvaNO44 tlSatT0WEWu/AruWOL0XHa4t00JyETQ==; 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 1fC39i-0005bp-JL; Fri, 27 Apr 2018 13:11:18 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fC39e-0005aW-2d for linux-arm-kernel@lists.infradead.org; Fri, 27 Apr 2018 13:11:16 +0000 Received: by mail-pf0-x241.google.com with SMTP id j5so1481524pfh.2 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=G/iNTWy9Lxs4zMk+VpbmX6zA9KcuzVVmEHgLaj3EyKU1gB7ujbyHANnfWTy8cMP9Zy jx60YJAr73RpjSf+cXRHjXx7zI7/uK0s6Q13TbzxxzxraxjpS5OzcMgfnLd2NTr42g0f XkWJCYOkTCfW1HPZH565jhpWa8VfJH3iDzccEk7eN4jcAYHMv+sy2wFYmqOinYdBGcSV K0805oXquOHqmjMYD++Nm3UWSrlEFxpaVjrMDt66qSJLqoAoEYl3jm5ComAbcBnHSEKO sW9fLJwlbC/AlgGXxuxGuH+7Yl6ReTU/2ZDdJNk987PIdHitsGmBRMoZDm7knqwGdbgc +bRA== X-Gm-Message-State: ALQs6tAB9gkf0oYvWRxClGopJWuD63w/YQ/yTHdQ1nuqsJ5JHaJuJJMg GokTc9Uw6WWWbn6O0C6Pb/HPNg== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180427_061114_774517_B8EAFD1A X-CRM114-Status: GOOD ( 15.81 ) 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 , "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 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 Reviewed-by: Rob Herring --- 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,