Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp469625rdd; Tue, 9 Jan 2024 09:29:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgURB+0cKXF+VbXYBzlvgnxlzUeJfcGw0XMDVjxS3RbM3acMlvoFdd3QmDVJvYEs0CwuRi X-Received: by 2002:a17:903:644:b0:1d4:87c8:40f9 with SMTP id kh4-20020a170903064400b001d487c840f9mr5602566plb.84.1704821353988; Tue, 09 Jan 2024 09:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704821353; cv=none; d=google.com; s=arc-20160816; b=ZecBMsItYgXDv356zSdwgdrNzBRFZYHN5a8c+2xgznsAly2UwbWM0ANjgiqbELljK4 TCRLdTEhN4N446CXLSscFFfyFn2gQcK2rumUEPsixGdIaVeUvxeOUrmXh1ClJyvGnIy5 DW8Yt0vt9CjWqhQ1/3BdIaWfYZNULHy7EEsYn0Wgbfr8kptxsFYkYFEgYqM73Doqwkn/ d02ndYu54dNNmQKi3rjLCSfPzry0EdpdfIkyphEj2aDaeXC71CPs6Byau5CfruQtvjgP UY9Ms4PfBoLOw0zTfVwIM1BCeAhaz9KT1mV24cDGoLBcr8ZDftY61SIwcsltzzf4C2t1 gPww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ES7KBLZZG8PKvoN1C5XRDxhZW5V7JmVLq/Pi/J8+3to=; fh=AhzXk8RYyr2CHKHnGIHwwvGWAzaVX7dyOsahhXxGmMs=; b=hPlZQLQUA1hjz2f0OH6hwRWt47kAIikO8n3nJu2RoJkS9M5OytwYGZuDAiMHWQHx/s LLtR8pthrJ3728nAtjwRAVWcqtHLxhV13rc/8n+f5LiUkd2Q3KqLWIVfLiGkKy1bo8VB VpTMkf0fCYfJYPMQ7KrmnWt0I9y7IhTFM/sTvW3X7DB7F+BIt2Fe3MzV6mfdi4/TrCbx fU1nf6dSt2uuZRy2ssR+n43gMai/XZtpinPOQ/fqPPyW+p36efVfay5TZ3M6FG+lfIYh kyJSNx2Be7kffY8umOxm6rdQ+1GtuzFX8fNFUDEkbKHCXRrWZ1JCOlPfZQxIMzmskzF5 rh4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="ew2/jpsm"; spf=pass (google.com: domain of linux-kernel+bounces-21173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b6-20020a170902b60600b001d0bcb88302si1739018pls.580.2024.01.09.09.29.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 09:29:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="ew2/jpsm"; spf=pass (google.com: domain of linux-kernel+bounces-21173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BE891B22803 for ; Tue, 9 Jan 2024 17:29:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44F6F3B780; Tue, 9 Jan 2024 17:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="ew2/jpsm" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 339F03B297 for ; Tue, 9 Jan 2024 17:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5e6c8b70766so29420277b3.3 for ; Tue, 09 Jan 2024 09:29:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1704821341; x=1705426141; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ES7KBLZZG8PKvoN1C5XRDxhZW5V7JmVLq/Pi/J8+3to=; b=ew2/jpsmzNm926mWDm2t9p/Ph9J2GMqSH9Y5lLifC88yswIHus2CqfbUg6JuBTall6 2qfukrpGTJ6VhRtRn7bDzLyop7+5Zt0yuuNFSm/0RfQT7x+XokXqf3330ece+c4tGZoI mow5h/FgvDgWwru1OA+b3oA5vUR7txKDdo5/yp3vceebucPfWg6rCz1fvgOezme04vos 0X2ybsk6dZdeTlsBBzleVAwxVP0neCVTPj5xx6oIxD3Gwcx5z5JXhv+D6eS4ex0DwdG4 VtTgoUJmKs5YnHDBX2ghBJYLiwYa+PPX8U4GQW9W8kd3kpXFNPHsGfPWevKgUD/AES6n griQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704821341; x=1705426141; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ES7KBLZZG8PKvoN1C5XRDxhZW5V7JmVLq/Pi/J8+3to=; b=v0N6oxemQAcdaalYvjozHeISJu5pCbp9rzcvSBqVULlK10TZfUVTS9oobdWxuLIMpQ tM9MKHvb87sWwhRhJUuOanyLSJXXifPwVTn0YtwHZjBSFnyag0ldzOdNfF8e84jb9tp9 2r5JjO/2L2fV6O0gg5ZfZEU4OwklobGlsuytrlVzNEX/yQA2I9Qsbq5y6fMIteUVFs4Z aIkb1Ii/kFWZL20af/GENZkuwknk2KSgZKNkQiH0HkMFhOmtcoRhLXD5Z+OV3yYD7OeX j1whRkirDfLUEnCfmujlTa3Aa1oEhttE/SIYPcglw/qj0M4oMdUnHp36sHnA8w4qR37S PpwQ== X-Gm-Message-State: AOJu0YzXiNb7RfkHHa2H5vsuDNUD5dW+PHLDkfZffU2HpMzBVjxO6oFn 2cLbEm4XsgkyDIgi+8uLo7fx5OlYcL21lUlJnd9pHRgT7GsMTw== X-Received: by 2002:a81:9184:0:b0:5e8:8890:8afe with SMTP id i126-20020a819184000000b005e888908afemr3645470ywg.78.1704821341152; Tue, 09 Jan 2024 09:29:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109070949.23957-1-shengyang.chen@starfivetech.com> <99d7bb85-17b0-4b5e-a6cf-f5957ad92298@linaro.org> In-Reply-To: <99d7bb85-17b0-4b5e-a6cf-f5957ad92298@linaro.org> From: Dave Stevenson Date: Tue, 9 Jan 2024 17:28:44 +0000 Message-ID: Subject: Re: [PATCH v2 0/2] Add waveshare 7inch touchscreen panel support To: neil.armstrong@linaro.org Cc: Shengyang Chen , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, wahrenst@gmx.net, thierry.reding@gmail.com, changhuang.liang@starfivetech.com, keith.zhao@starfivetech.com, jack.zhu@starfivetech.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi On Tue, 9 Jan 2024 at 11:19, wrote: > > Hi, > > On 09/01/2024 08:09, Shengyang Chen wrote: > > This patchset adds waveshare 7inch touchscreen panel support > > for the StarFive JH7110 SoC. > > Could you precise which SKU you're referring to ? is it 19885 => https://www.waveshare.com/7inch-dsi-lcd.htm ? > > Are you sure it requires different timings from the RPi one ? In the Waveshare > wiki it explicitly uses the rpi setup (vc4-kms-dsi-7inch) to drive it: https://www.waveshare.com/wiki/7inch_DSI_LCD I raise the same question. Keith Zhao earlier submitted effectively the same set of patches [1] and the response for the updated timing was: My platform dphy tx hardware has certain limitations. Only supports integer multiples of 10M bitrate: such as 160M ,170M, 180M,190M,...1G(max) as common dphy bitrate = pixclock*bpp/lanes. This value cannot match successfully in most cases. so in order to match bitrate , I choose a bitrate value around pixclock*bpp/lanes, Prevent overflow and underflow by fine-tuning the timing parameters:-( that will make the new timming value. I then suggested mode_fixup should be used in the DSI host driver, and Keith acknowledged that. Is this new timing still because of the DSI host requirement? Dave [1] https://lists.freedesktop.org/archives/dri-devel/2023-December/434150.html > Neil > > > > > > > changes since v1: > > - Rebased on tag v6.7. > > > > patch 1: > > - Gave up original changing. > > - Changed the commit message. > > - Add compatible in panel-simple.yaml > > > > patch 2: > > - Gave up original changing. > > - Changed the commit message. > > - Add new mode for the panel in panel-simple.c > > > > v1: https://patchwork.kernel.org/project/dri-devel/cover/20231124104451.44271-1-shengyang.chen@starfivetech.com/ > > > > Shengyang Chen (2): > > dt-bindings: display: panel: panel-simple: Add compatible property for > > waveshare 7inch touchscreen panel > > gpu: drm: panel: panel-simple: add new display mode for waveshare > > 7inch touchscreen panel > > > > .../bindings/display/panel/panel-simple.yaml | 2 ++ > > drivers/gpu/drm/panel/panel-simple.c | 28 +++++++++++++++++++ > > 2 files changed, 30 insertions(+) > > >