From patchwork Mon Jul 26 17:32:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12400389 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A376DC4338F for ; Mon, 26 Jul 2021 17:34:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63A6060F6B for ; Mon, 26 Jul 2021 17:34:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 63A6060F6B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E68B6E85C; Mon, 26 Jul 2021 17:34:51 +0000 (UTC) Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by gabe.freedesktop.org (Postfix) with ESMTPS id F3DDF6E85C for ; Mon, 26 Jul 2021 17:34:49 +0000 (UTC) Received: by mail-oo1-xc35.google.com with SMTP id l12-20020a4a94cc0000b02902618ad2ea55so2429787ooi.4 for ; Mon, 26 Jul 2021 10:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pOyJ8Rc1+7t0YsnzVklU5b9F37l3+jW4OcgT5rziuFU=; b=fAZlxhQdyRp5zRb1mi25f/B4kL5ZXX0mCPnFX4I0238WwihNK21ztCUO6TrexvvPiv 2Er0F4JfnIP/P/GHgqmWn6aY2p8ImlWACu77OPYMAWk8CieAem+/B/iCMMuo5ITOPjin wvRJO1ER91VkDbE7rjs4gbOdz1ZJxqor+khnQ+BjxYBHShEokP840+yIEdRXIdbKtKtl 70EXAr2LOoomFXw7miMn+qgh4/rJiukxnfFuRkVATGWGGNqXjSAc+mQrZY+DlCAsnPwL 7V2bpD0b3uLRIn4Z4QyPaMrKQly0Mdd/oGU7fmaYbyMpLHLaEEFPd+Wx2ORAqfL7vnW/ KKGw== 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:mime-version :content-transfer-encoding; bh=pOyJ8Rc1+7t0YsnzVklU5b9F37l3+jW4OcgT5rziuFU=; b=RJIYaodpaYB2VsUUSdzQcCKrigjQmK+1qi29EPVs39X+4rawRAQ1njvfG79NrZ5/QZ gtkpISq3DA/fLC2xt+xMZ30cveh6fxsHq2C/cBP/jQP920dHwi91AsIziKDWZUJWEBvj 9XNnjXo56ciRek3uOFCmWZrTV93ALtfMTo6ueNWrHfadw4C/Srlg8EohCN1fzdexxyGT C1eGCHUQ9jDQaRuGI4lzPslWF90QzHvdHKOG7fUwMQS2+mrw1nz0cTPgJ+dq7q9OUM6R erEKtVaVbH8/m3E6BCA85kWEQZAwlINu+MeBWkjp7nuET9WyRTRgl4m/nt8096/NAb5j I1oQ== X-Gm-Message-State: AOAM530VjiUL4XX/de4eyKF6R2NFMKHZ8XMBK2Me5IgB8N68pmjZAftT lPz4V3BvHc7aP9VgnKhtNYOQPA== X-Google-Smtp-Source: ABdhPJzj9GSyzOgaXvC/6u+xBmxl/5r2hXaqVyqoa7pDzveUYNhuECB19AieW7EB2CyiizlnCMCAiw== X-Received: by 2002:a4a:b98c:: with SMTP id e12mr11209038oop.67.1627320889238; Mon, 26 Jul 2021 10:34:49 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id s24sm69328ooq.37.2021.07.26.10.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 10:34:48 -0700 (PDT) From: Bjorn Andersson To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring Subject: [PATCH 1/2] dt-bindings: display: simple: Add AUO B133HAN05 & B140HAN06 Date: Mon, 26 Jul 2021 10:32:59 -0700 Message-Id: <20210726173300.432039-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add bindings for the two AUO panels B133HAN05 and B140HAN06, both 1920x1080 panels with 16.7M colors, first being 13.3" and the latter 14.0". Signed-off-by: Bjorn Andersson Acked-by: Rob Herring --- .../devicetree/bindings/display/panel/panel-simple.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index b3797ba2698b..7f624cb1199a 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -46,9 +46,13 @@ properties: # AU Optronics Corporation 11.6" HD (1366x768) color TFT-LCD panel - auo,b116xw03 # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD panel + - auo,b133han05 + # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD panel - auo,b133htn01 # AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel - auo,b133xtn01 + # AU Optronics Corporation 14.0" FHD (1920x1080) color TFT-LCD panel + - auo,b140han06 # AU Optronics Corporation 7.0" FHD (800 x 480) TFT LCD panel - auo,g070vvn01 # AU Optronics Corporation 10.1" (1280x800) color TFT LCD panel From patchwork Mon Jul 26 17:33:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12400391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F5C4C4338F for ; Mon, 26 Jul 2021 17:34:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC30C60F6C for ; Mon, 26 Jul 2021 17:34:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AC30C60F6C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EE216E8CC; Mon, 26 Jul 2021 17:34:55 +0000 (UTC) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id E82C06E85C for ; Mon, 26 Jul 2021 17:34:50 +0000 (UTC) Received: by mail-ot1-x32c.google.com with SMTP id o2-20020a9d22020000b0290462f0ab0800so6031786ota.11 for ; Mon, 26 Jul 2021 10:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6vcmdJW0PQwHX3N7q/LEirUpgpEmrk9ZWnfdjvnD6Jk=; b=nLHtI5JJvX9xtd7elYmv5mrwhLNRE1SFbDt8Hzb3bV4/IjlXMW+HUjFbztwqRDg363 gdppbsUhRFsLlctiHkM+9XscRrpYT+/xmXJO65+5z5dQi7huKXI8i1OWIAE1r4/bcIev XYw9AY5CApf+ZA9ZIYNfN/UTclla7SICAY006mFZhWEW+VTP6gET/enl5BnAP9MwW0CS J8YOa2K8dUvHygM/dlLe0v/T5TZCGqU0cT/VAhXIUR4xRlkk8ToBBBMdbNVIHnvB4SFv 2wnBmb5fUSkBJo+KnX25L+lZWUBHgjU8w9We1btPimzVKy2VnfLf023t/NlnU/eejiAF fT4A== 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:mime-version:content-transfer-encoding; bh=6vcmdJW0PQwHX3N7q/LEirUpgpEmrk9ZWnfdjvnD6Jk=; b=RrjfXRCMunwbNCGo/Bvj1LVT6yY0lJ2FOeKXGu3KRumQUGP3LcnXSV44djCoTL9sGR /99TKuYFPMUtKU3lbjI+Kx6aclxi2ON+5pjJatC3cwtyGoFPHMVpb1jcb4i4wOKa7HgN 1rftypsLja9TJeOPAx4YiYR4+VQ5Of9hiX8+uBarmkWeLS8mdOM5ckSw2cUEZWwNFF3x t15VvFHjEkO2wEupLgTicSgJ8jLaopdpKI7tvu5F+fMJRhZBOuebEwc9x5UpZW/tnL+K OQbp6QaSOX93daV52/8btWQvWZHoIKMp0UoIjjfXIXONhJN7gtqjeDfgoqhwplPVPYV5 WjXA== X-Gm-Message-State: AOAM531K9U3h5K6g1GY2W60TQmq0bo1ATiQFkfDY6Sm9xxAsTZXo1Wb+ qFg8KXKz+gdtJsV74SvenzROQw== X-Google-Smtp-Source: ABdhPJztOzkgX+7urD2V90sFSZLX88MlP0aAgAWiiwYZyalCxrrj2COGktvlJXnrIRyp4ra/dedq4Q== X-Received: by 2002:a9d:448:: with SMTP id 66mr7390470otc.345.1627320890170; Mon, 26 Jul 2021 10:34:50 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id s24sm69328ooq.37.2021.07.26.10.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 10:34:49 -0700 (PDT) From: Bjorn Andersson To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring Subject: [PATCH 2/2] drm/panel: simple: Add support for two more AUO panels Date: Mon, 26 Jul 2021 10:33:00 -0700 Message-Id: <20210726173300.432039-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210726173300.432039-1-bjorn.andersson@linaro.org> References: <20210726173300.432039-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add definition of the AUO B133HAN05.4 13.3" FHD panel and the B140HAN06.4 14.0" FHD panel. Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/panel/panel-simple.c | 66 ++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 21939d4352cf..fcf6cbbfdedb 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1080,6 +1080,36 @@ static const struct panel_desc auo_b133xtn01 = { }, }; +static const struct drm_display_mode auo_b133han05_mode = { + .clock = 142600, + .hdisplay = 1920, + .hsync_start = 1920 + 58, + .hsync_end = 1920 + 58 + 42, + .htotal = 1920 + 58 + 42 + 60, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1080 + 3 + 5 + 54, +}; + +static const struct panel_desc auo_b133han05 = { + .modes = &auo_b133han05_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 293, + .height = 165, + }, + .delay = { + .prepare = 100, + .enable = 20, + .unprepare = 50, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + static const struct drm_display_mode auo_b133htn01_mode = { .clock = 150660, .hdisplay = 1920, @@ -1107,6 +1137,36 @@ static const struct panel_desc auo_b133htn01 = { }, }; +static const struct drm_display_mode auo_b140han06_mode = { + .clock = 141000, + .hdisplay = 1920, + .hsync_start = 1920 + 16, + .hsync_end = 1920 + 16 + 16, + .htotal = 1920 + 16 + 16 + 152, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 14, + .vtotal = 1080 + 3 + 14 + 19, +}; + +static const struct panel_desc auo_b140han06 = { + .modes = &auo_b140han06_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 309, + .height = 174, + }, + .delay = { + .prepare = 100, + .enable = 20, + .unprepare = 50, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + static const struct display_timing auo_g070vvn01_timings = { .pixelclock = { 33300000, 34209000, 45000000 }, .hactive = { 800, 800, 800 }, @@ -4233,9 +4293,15 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "auo,b116xw03", .data = &auo_b116xw03, + }, { + .compatible = "auo,b133han05", + .data = &auo_b133han05, }, { .compatible = "auo,b133htn01", .data = &auo_b133htn01, + }, { + .compatible = "auo,b140han06", + .data = &auo_b140han06, }, { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01,