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: 485850 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4038478jao; Mon, 26 Jul 2021 10:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFyw1dSBcGkdiIarjWt6wLi2s5ZY6iTKVMJlftl0k8JIfp9ea0qdsZRY5RX6oD7/U0uffA X-Received: by 2002:a92:dcc5:: with SMTP id b5mr14165485ilr.234.1627320894345; Mon, 26 Jul 2021 10:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627320894; cv=none; d=google.com; s=arc-20160816; b=hiN3OYl5Hjch2gptyssnf8rjkj8ZPDBF2knXx0xLARZRq29EqoUvNrvrsAukaq3Ubn 494S8/pmziBvuwvB17hutY06j9U9xAXffQkS8/t4Nx6nSwHpUxOP8uGgNiuXybSd7OMd 9cXUZSbwL/C0Koe7SED4ZMdviJZc/bJz9ompkLxmZY8AB0JePppjWYUii5OzNtzV0Kd1 oJKuU98ErcGqHLNN8LsnlCiU6jgo/K8lAYRsQVtfqyY2Kw5Vprb2D3ywCxl3CtaFSUOk cQATIXQ1Fd4sn7qHoXIk9E68NZNvJlBY3+oWaVhtyXKbGTeWAbnSlOq56Hrr0x+GUzg9 cJNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pOyJ8Rc1+7t0YsnzVklU5b9F37l3+jW4OcgT5rziuFU=; b=pwcvyiEDLHQdpZFjuvI1gNmdNuXarNKQXJqn3UCf02+miw//PokVEOr8OuK9N1nKRb eGLzoRIWb2tMPOYH4aZl2ASbDbAfz6cNySb5WAZG3dlt7t0+/T21rlz1mvE+nxe8oHeS uwkQufTFiGIG5CLcF69nqZbvkZhd8jTfDG/5rVgFotzwpM4kKEocLz2Qb8ci6fCkbfmL ZFvqIVxQImCwyE1uc2HXXM69LA7BX4Ao4axahDNBD3BJYESAOBnKZQZJRy/nyan8JyTc IbGvegeAKm9VmtUwwNTpnUyDLG5rmcLwFoBv4/6Z1iEs5fUqAnPjRataYGTLGoCBwCw0 hTDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fAZlxhQd; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si460938jan.106.2021.07.26.10.34.54; Mon, 26 Jul 2021 10:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fAZlxhQd; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233813AbhGZQyX (ORCPT + 7 others); Mon, 26 Jul 2021 12:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbhGZQyW (ORCPT ); Mon, 26 Jul 2021 12:54:22 -0400 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8D49C061757 for ; Mon, 26 Jul 2021 10:34:49 -0700 (PDT) Received: by mail-oo1-xc33.google.com with SMTP id b25-20020a4ac2990000b0290263aab95660so1242066ooq.13 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=KT5oNWm5qmZGeGLDypyz5WSMpsifX7GGfWhSZPMWHq52gFgMmwVXS98Wq20uENHu+e Uj8+euU2bfQtsZTkZ3gLBWU1JtaLipYEQQu63DTbGbw6SJxoHkc1wcYTYF9SWxVAWnR1 XVrIfizKjwSrzoZ+76E4ZME9cOR5kemhybETqPhM33gUtFqHNnkQVjH6SYRD+dO1So/y 9vsw4y1I+VS8Ugrrk/+o9r+xWckteXQRgxUfiZ6tX6sgRWd05Lo02rvNQCsuVn3OA+i2 3XKfuMPQRBBouhOLCTFFSASEGiP1yVQwbaLETCP2+2ZNgi5t6q48xjeGMr83pyEp4A6o ELdg== X-Gm-Message-State: AOAM532SOnWsgIZ2sQvBOF6srti5M47eLUo21Z6ApQ6nZxKqR2k0ygW9 JbxqaGsgqD+TavY06BSTo4QI7Q== 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 Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../devicetree/bindings/display/panel/panel-simple.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.29.2 Acked-by: Rob Herring 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: 485851 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4038489jao; Mon, 26 Jul 2021 10:34:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4sFYyrK5rtYU7apYIrXcHDVFNjUGEG9aWS5i/BagrkRxTpfSeN0F88nlx4a6zAQ8HVOuR X-Received: by 2002:a02:7348:: with SMTP id a8mr17429696jae.116.1627320895010; Mon, 26 Jul 2021 10:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627320895; cv=none; d=google.com; s=arc-20160816; b=jU9sy0thCxLRwfNDYVKZN3RUY40PiguEhmXbwEge9EcblFnCIJE8N30kVOBzO97BSq JY3hlEmRfFwkfznSPZ+1uQOG01LkRPd0RBuIAFMaRzxLf5DAgPm1Kx1sOgg7SQtYiQjm 1wR/DiG7ZQ/Qa3DnxBGI8/n85p7Wv+OfGPswk6kJ1H2MBYclJbYm3eW8sliRFvOLyQMh LEPeHStBgmIMDN1G5lF5nZaJrkF5pp6NfcqTsi8JOXmojOuASA0k6+2rAP2Wzz6rVC5W 1grINdjs8Z8+19+jpWxpK9Hh1d9K3i/Onk5Yg4o5hAYjql3b+MUnKSFrX//Nq2aLVyqj Bstg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6vcmdJW0PQwHX3N7q/LEirUpgpEmrk9ZWnfdjvnD6Jk=; b=DeVy/5/mZZroBQjWJLV4Hkf47qxY1ksy8sMiqvMyl3jmTb21NfwiBt3ELNY74+UHp8 mZ5uR6kD3FvlriVwrljYG7HEN4e/Mums+PN7pdRP/ZQcEF+A3fda9wbUtrKjaXSieogW 5EAsoMvv/vHwUw00bQQRe/YGXq97sDELy4xB+KmoPfm0+aZEa/LCM3PCT/OFRKpzOJB+ vLrJS5oHn1qd87Ke4/KbSCbgLZ7phdx1dhAGZLtC/j8IbMPXoRdxiujoSsh43KMQAHFo be54FnnTf8O8yZnhuvy/y+X9ZB0Yyx5tSn5LcFqds42erF46AOLBjddFmWyyQWbcZlQ/ LfcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nLHtI5JJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si460938jan.106.2021.07.26.10.34.54; Mon, 26 Jul 2021 10:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nLHtI5JJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234592AbhGZQyZ (ORCPT + 7 others); Mon, 26 Jul 2021 12:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233704AbhGZQyW (ORCPT ); Mon, 26 Jul 2021 12:54:22 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE23CC061765 for ; Mon, 26 Jul 2021 10:34:50 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id a5-20020a05683012c5b029036edcf8f9a6so10762224otq.3 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=pIkE04g4LQqNS3I5UOhpe0Xe+ZC/gL9znFOpJZ7Jnm5UdDwRUTzy63bOo455mldLPj 4+oZLctxrOLyMm7YSvyxRwLT5e69SgDqG737hbrZz6oZTakipzOP8RdcGTKXoDc8dCkR TnBspJfN1GvgPacPEtkFZTa1lGy1EJBJH3e1A5E+ruZHB8PhEMk9inJGjKqUVuYY+8Gj q0mFyBt93Vz/T0b0OgMVF5/BR33nSEfJ7+JhGuVBrml/MDExDaJTPxuKtyghBWSs6rxZ LcK6uw1MRR6Eh86A/+s9x8bvZWk5yC0KnGWPHo+ol0PiXnNt76tgHc6MWNqX1FODRzde c40g== X-Gm-Message-State: AOAM531WVeJRtdJUsCxKXYUlhVqcIhR1p7U8ILecb6LRYGRfiEg/+Fw7 rred9Y/Cz1ipOTo5/rhEDOaQVw== 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 Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.29.2 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,