From patchwork Wed Jul 26 18:48:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13328447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D45C2C001E0 for ; Wed, 26 Jul 2023 18:49:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2537610E053; Wed, 26 Jul 2023 18:49:05 +0000 (UTC) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by gabe.freedesktop.org (Postfix) with ESMTPS id 165D710E053 for ; Wed, 26 Jul 2023 18:49:03 +0000 (UTC) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-99bcc0adab4so3609266b.2 for ; Wed, 26 Jul 2023 11:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690397341; x=1691002141; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/oLV7w7SIF+Bv+zH3Qb2ls3MvE0jKohS7No6ukAqg6A=; b=AbH/YwBF91CiamzcW+WTjw3r6jdIk6nPsizJ/9atOPv2rQ17BuN2k+KO2mSAgVAdQB xR8RF+BPH6J/DhSHO6pm5OtQLuh9qqVkd1LuQ/PaSamwKLMtfRe0rJqkLe7Lw3qFR8ry sIhGfUvwL80Zj0ZahuTBRSTlh9zIbH1QoQQ6vx3oWKtiTYKt8qNy3OvtBvHdWTRG8bC9 W/1e8MfHZxwnE51JMOaXoGkVu2Pu3tF3M3EU9JfB/g7ER1Mr5LKw9Ld4Fbe+m7JkaCC2 9NyYc64+I5SgeRRYM5/D4aYVvdsYlLzU6gJQwObM8wB6UUyyiTSuKD2AtTDFmdLtUQxi Ap9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690397341; x=1691002141; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/oLV7w7SIF+Bv+zH3Qb2ls3MvE0jKohS7No6ukAqg6A=; b=DVOla/o/Wz94eNz759gDnShC5g8Ppw1To6+Ap2NaLLyemeRg5EfOFcaq4B74+KCKWe PVGsfZc+GCoRXGGq1eev15yUVs3hlneHanPPMKuMhNyjmVLJIgcjt3YxqcTh9z21ar7v 6AM8+6elXuvDFhXGyrf1CFnCymrXzFzEpZExAeiFsxkPk97Erfkq8dEJ4dHQv29AC2uI T5X/I/URuin0bdCcULdtoQMvllgHDJDMSpY77unbqRdTISEB2+T4wdTtkKvE/Q9s/TQI L/J956jLr+LvpbhdHK6aLBSI73y07h5pWlsD/hbG+GhJBgWPyAkcwPkbNOXYDpP06qZQ tCGg== X-Gm-Message-State: ABy/qLaeUOk4oRKXitRlPpuA/MwbR5IpIjBpXuPOwXuFl8NdgyqsaG8J 8b56+Pu/WYN6C1dAtLrd3G8= X-Google-Smtp-Source: APBJJlGvUn5xoPOVC5T6TZHAsC/4CEhjmryknm7tSeNAaIc94kXuXSDB5odtY3hKreXXYe1hxCJnZw== X-Received: by 2002:a17:906:84:b0:994:539d:f97f with SMTP id 4-20020a170906008400b00994539df97fmr36098ejc.37.1690397341172; Wed, 26 Jul 2023 11:49:01 -0700 (PDT) Received: from localhost (p200300e41f1bd600f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1b:d600:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id m26-20020a170906849a00b00982a352f078sm9734357ejx.124.2023.07.26.11.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 11:49:00 -0700 (PDT) From: Thierry Reding To: Laurent Pinchart , Neil Armstrong , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding Subject: [PATCH 1/3] dt-bindings: display: panel: Move HannStar HSD101PWW2 to LVDS Date: Wed, 26 Jul 2023 20:48:55 +0200 Message-ID: <20230726184857.2294570-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.41.0 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: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, Svyatoslav Ryhel , dri-devel@lists.freedesktop.org, Jon Hunter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding The HannStar HSD101PWW2 is an LVDS panel, so move it to the correct bindings file. Signed-off-by: Thierry Reding Acked-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart --- Documentation/devicetree/bindings/display/panel/panel-lvds.yaml | 2 ++ .../devicetree/bindings/display/panel/panel-simple.yaml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-lvds.yaml b/Documentation/devicetree/bindings/display/panel/panel-lvds.yaml index 929fe046d1e7..344e5df40c2f 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-lvds.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-lvds.yaml @@ -40,6 +40,8 @@ properties: items: - enum: - auo,b101ew05 + # HannStar Display Corp. HSD101PWW2 10.1" WXGA (1280x800) LVDS panel + - hannstar,hsd101pww2 - tbs,a711-panel - const: panel-lvds diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index df1cec8fd21b..f4d9da4afefd 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -168,8 +168,6 @@ properties: - hannstar,hsd070pww1 # HannStar Display Corp. HSD100PXN1 10.1" XGA LVDS panel - hannstar,hsd100pxn1 - # HannStar Display Corp. HSD101PWW2 10.1" WXGA (1280x800) LVDS panel - - hannstar,hsd101pww2 # Hitachi Ltd. Corporation 9" WVGA (800x480) TFT LCD panel - hit,tx23d38vm0caa # InfoVision Optoelectronics M133NWF4 R0 13.3" FHD (1920x1080) TFT LCD panel From patchwork Wed Jul 26 18:48:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13328448 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7A9D2C0015E for ; Wed, 26 Jul 2023 18:49:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C80610E091; Wed, 26 Jul 2023 18:49:11 +0000 (UTC) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1DF1310E053 for ; Wed, 26 Jul 2023 18:49:04 +0000 (UTC) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-98e39784a85so290274766b.1 for ; Wed, 26 Jul 2023 11:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690397342; x=1691002142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gPI2zan0vB60L24M8VngPtTHJpRLNCz44Rgi3kK/geg=; b=FDEvCueTvD5/2wdPIbWP/l6cfT8RoRQD+x+FwClNM6YqipoTAWhrMoM1khODOU3Ckp sT5oiLc0ocdWxQgAWf8XMxo0SkUpf617JRAR8pHYggcRxxiKOsG3yimzwDfJylVCpBmi 7yNTY7qj4kkRIqFrA5PaCuUcWorZVXzcMjVry+NvUQXCmxhxnCS5WLj11Yon5KyeoLks 9RmV9Gg9H53yyAH7YQORsLKBvm/u1YKIxxqu/RDWSJeNQ7RHyIvcRBx+biV6/xxIvf+w aN6C5CoBbPw64D/loWnS7YudOO2rO79LMKPKE4+p92mc9XrE8WTcSMzxozRKuEoyjQAD 3Diw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690397342; x=1691002142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gPI2zan0vB60L24M8VngPtTHJpRLNCz44Rgi3kK/geg=; b=CpZJ/sqZyC3KOl8kOqSEqLvsu27P+HOjNKsz+g9w1ukQOoiU6GQ+nvALTgnaUJr6eu /RH0hvyY5wAWnnGuv49Dqn0oGRBGTYf8gxvDNcyG4szo1pbZzevx3I6JUUO39GeY6Nla /o6EwrdKtdOT4+pD6j9VX5qr9a1DxEQc1uNU9noYdSIZqbw1ZD0dck6nzC2tmDVoUGmu jpaMD7vowfCqjAepKoqQbro72x+C5BEuh19EJR6qVqrUn7OEFgE33oqOLCGuPVfGzzRt XPp6lkIGMzhb9Euwpt+pHfzb1F6VMcvxD4J8/rJgwRnDHbv5BTm4zA9gOBNFeFpf7Gxj DAlw== X-Gm-Message-State: ABy/qLZ9ahGXsv5inhnkK88jwAUinrXXryCmLTGrsiJhfnDAsqTV6lmG kt/xPSrmlWWkFkWZWbQzSGQ= X-Google-Smtp-Source: APBJJlFEz7GEIeoCEWRMaD/WV7pBFz+cf93M9VkO7Zp/n5IIKT4wJtCBN+YSvNT2o8V06RojOJ+TGQ== X-Received: by 2002:a17:906:76d2:b0:993:f611:7c97 with SMTP id q18-20020a17090676d200b00993f6117c97mr380393ejn.33.1690397342321; Wed, 26 Jul 2023 11:49:02 -0700 (PDT) Received: from localhost (p200300e41f1bd600f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1b:d600:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id cb14-20020a170906a44e00b00992eabc0ad8sm9875996ejb.42.2023.07.26.11.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 11:49:01 -0700 (PDT) From: Thierry Reding To: Laurent Pinchart , Neil Armstrong , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding Subject: [PATCH 2/3] drm/panel: Relax porches for HannStar HSD101PWW2 Date: Wed, 26 Jul 2023 20:48:56 +0200 Message-ID: <20230726184857.2294570-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230726184857.2294570-1-thierry.reding@gmail.com> References: <20230726184857.2294570-1-thierry.reding@gmail.com> 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: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, Svyatoslav Ryhel , dri-devel@lists.freedesktop.org, Jon Hunter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding The porch maximum values for the HannStar HSD101PWW2 are unusually small. Make them a bit larger to allow a more flexibility when overriding the timings in device tree. Unfortunately the datasheet doesn't list porch limits in detail, so this is a bit of guesswork. Signed-off-by: Thierry Reding --- drivers/gpu/drm/panel/panel-simple.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 4badda6570d5..4bab181e9d4b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2104,13 +2104,13 @@ static const struct panel_desc hannstar_hsd100pxn1 = { static const struct display_timing hannstar_hsd101pww2_timing = { .pixelclock = { 64300000, 71100000, 82000000 }, .hactive = { 1280, 1280, 1280 }, - .hfront_porch = { 1, 1, 10 }, - .hback_porch = { 1, 1, 10 }, - .hsync_len = { 58, 158, 661 }, + .hfront_porch = { 1, 1, 64 }, + .hback_porch = { 1, 1, 64 }, + .hsync_len = { 58, 158, 553 }, .vactive = { 800, 800, 800 }, - .vfront_porch = { 1, 1, 10 }, - .vback_porch = { 1, 1, 10 }, - .vsync_len = { 1, 21, 203 }, + .vfront_porch = { 1, 1, 32 }, + .vback_porch = { 1, 1, 32 }, + .vsync_len = { 1, 21, 159 }, .flags = DISPLAY_FLAGS_DE_HIGH, }; From patchwork Wed Jul 26 18:48:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13328449 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5FA01C001DF for ; Wed, 26 Jul 2023 18:49:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8158310E4A0; Wed, 26 Jul 2023 18:49:17 +0000 (UTC) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4767D10E091 for ; Wed, 26 Jul 2023 18:49:05 +0000 (UTC) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-98e011f45ffso3027666b.3 for ; Wed, 26 Jul 2023 11:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690397343; x=1691002143; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7hDSqhH8BkuxZPIDoURvTqML0NlrWeio/ZXYmGlF4bQ=; b=sefRUsMi4isBuj+0ycXQFXqqdPaY1M/lVY5Uk15V0j89bZKHZ68se03hxBg3ena4fS +wU4f4futLrxq3ksaEyGmIX9QDYI98OHprIH6V4rxFMGs+VCL66gQqRKhnLDoMLRobnM grIVtc7ZoNMgLwuxO0GrMx/i3nvNQftn+GGhVmb0C4cB6+NKfWJOYNjul+LqYZ+HcKog 36iveo8Ew8DKoS/gtMYn8xDPy62Ay0B0OQrIxHN0HT/VdUN6JuLjAn5WJwLWHcNQI/jt +56K3IeeJH7zCtqLoTxchY+nsxSa0KgokJTdmATU9u8HJBHK9AC1N3/cIczyOWakxvS+ mIyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690397343; x=1691002143; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7hDSqhH8BkuxZPIDoURvTqML0NlrWeio/ZXYmGlF4bQ=; b=Y4yFom5nCMQ1aVBMwvLHAK1/Vit7Jy4pOAwLGn3dxUT1JSqrTiECOJowH9vOrz4H87 afJOYR/gTjEwvjlGh+S+Mwi0IyypNCQieYoo6pAEM95j2laEZVfxVSalrt9+ZlBm9pso uWdaU7dvTz5cHI3WK+bUXQEwjhMf0n8nNfJnBd0sZMEl9j5gwQrk9tLfKt1Bpe2RJU3I iuLg5diRq5/Lh/dHM4TAlNsSKQHBIqt6HmgnT78g5WeO8oTv0M4qUKm9SR7K9r/gDYWf rItz9a2CohNiZzolyPnWjulGoSivgNNEsxnxhSIMytW3HHMoTG/OMpVA3dkfmC7n0sJw 35xA== X-Gm-Message-State: ABy/qLaNPOASb2mbxWGyye3qgy/ZWpA/IkR4+fHlbgdIwRV0WoZQLeF3 0OPXnBFYXsjUo1jN8C3fXXk= X-Google-Smtp-Source: APBJJlFGjeZg8RvubJMrZ3BDxRJelnMBSwW516T9hXbqE08dsKnYwOHQ6rSAkg+xX21G1Pre1NzkFA== X-Received: by 2002:a17:907:761b:b0:994:4e9c:30c6 with SMTP id jx27-20020a170907761b00b009944e9c30c6mr18372ejc.57.1690397343189; Wed, 26 Jul 2023 11:49:03 -0700 (PDT) Received: from localhost (p200300e41f1bd600f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1b:d600:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id b11-20020a170906150b00b009786ae9ed50sm9903461ejd.194.2023.07.26.11.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 11:49:02 -0700 (PDT) From: Thierry Reding To: Laurent Pinchart , Neil Armstrong , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding Subject: [PATCH 3/3] ARM: tegra: Use Hannstar HSD101PWW2 on Pegatron Chagall Date: Wed, 26 Jul 2023 20:48:57 +0200 Message-ID: <20230726184857.2294570-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230726184857.2294570-1-thierry.reding@gmail.com> References: <20230726184857.2294570-1-thierry.reding@gmail.com> 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: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, Svyatoslav Ryhel , dri-devel@lists.freedesktop.org, Jon Hunter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding The LVDS bindings require a specific compatible string in addition to the generic "panel-lvds". Add the HannStar HSD101PWW2 which is used on a similar device (ASUS TF201) and seems to work fine with slightly modified timings in DT. Suggested-by: Svyatoslav Ryhel Signed-off-by: Thierry Reding --- arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts b/arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts index c81d5875c31c..4012f9c799a8 100644 --- a/arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts +++ b/arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts @@ -2628,7 +2628,7 @@ cpu3: cpu@3 { }; display-panel { - compatible = "panel-lvds"; + compatible = "hannstar,hsd101pww2", "panel-lvds"; width-mm = <217>; height-mm = <136>;