Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp503742rdd; Tue, 9 Jan 2024 10:28:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmP8O1UrRd1MlbIIkDGKhUeMSYpldxUcaFp33TAhNyeX5Dy4qeOiXcsbwrYKKB5Yml1N+d X-Received: by 2002:a05:6a20:1044:b0:199:16e:4332 with SMTP id gt4-20020a056a20104400b00199016e4332mr5721182pzc.91.1704824891094; Tue, 09 Jan 2024 10:28:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704824891; cv=none; d=google.com; s=arc-20160816; b=Zo6wwYzKTfM9qLYGGXlOqcePi6DdhKW1yq0iSS9NPuTnWiT+w9HCqt0R8n+gzyOYSw XhklUuQ/1DL6E+7mRGP0h769fRCneL5xAQ6hY1DqUh4xOl6o2dCdNmEfN7T0I5us+wUu EsdA8BcxTEFReYO5cATKPnBZqf/SKGRFpBnNRtNt6kD8VcEaHNF2u78zbMDIjVyE7Bvb wjNCNzCtEBkS9iPoGtY8RUfkotUcY1nBMlsD+KIIDYnZ0C/WY9uHngjkiT4qYuVEHX+I BpMvwi32h/7XR2pvl1xF0FD/7giTvKSbTKcoRjvYb/McCxHYfvrkRjIaT9gR57/eA8v/ hHxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vgOh8J9LCVrnkd0W5QVID1C+VT2ZpzMfPaRIf9AeK44=; fh=cJUOVY0fctfXkmFIS3o+YEJi/676d/QS9ajhEmEF7jc=; b=t/3XdDop9r3ejhbfJ9D2smWmxhH9vOQV/8G/0SfehE6amkt4ydIc+rQBdgNDD96PNh pxgSpDfLiVDzF8dWl26PPHfU/dgcms2UEuWuxyE700HdLJGlGnTrqOR1cH/c+x5/txWr Ja48MLYvBMbMzu+VKZTXwJV3tWPMPNxOnrw+xl9yYBachBLqzZ3kXE4xtWhVjUOQ6xye CrPmjunu+58UYCNMAhkqDTkyI2gkXrxXyDSWo9XHJKy/2vUjAfgZYMbGkMHh+91KgHil jFlOWtkTjKF2J6dNjq05aXG21aQa1/huVa0t0tWHgJtSvfildBe5wggpWamnEXqGdgqN Q50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ANEewrSi; spf=pass (google.com: domain of linux-kernel+bounces-21257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cz3-20020aa79303000000b006da8b3df0desi1826568pfb.359.2024.01.09.10.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:28:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ANEewrSi; spf=pass (google.com: domain of linux-kernel+bounces-21257-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 467BD289E18 for ; Tue, 9 Jan 2024 18:26:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 272FE3C468; Tue, 9 Jan 2024 18:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ANEewrSi" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C416F3C461; Tue, 9 Jan 2024 18:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 409GdZtZ001208; Tue, 9 Jan 2024 18:26:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=vgOh8J9LCVrnkd0W5QVID1C+VT2ZpzMfPaRIf9AeK44=; b=AN EewrSiHMHHUo25DD+g8E0duZ2SgHBA160hLBgjZbKXv7kWtDuyjhesyXqR6SG9V6 KF17Uye+sPhtQj5Ksuf9yqlAhO+UMrQFjb0FrBkOT/r1s5OBcxVMiU9kVIsBpULx urw5wE+o2WTUeKSu9Pohiw4SC5uBHfZnGYXbaMNkaUi3p20Z3q1c9eEWFNfxo/Gv qzwEjY2Fx1Fqu7s1/BDrVH43YceG5Y9VvGCdxqnF80PFoWEQKOULGnxKzX3jPP1y Dr3r2FsiTANkdCSTpVHzxsyRR4+QXu4mnJB06tti9i+HOfiGhPbZ5CXWwkJh0fWV N1V9hxZnDeBFeFRppDYw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vh9u9g8c9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 18:26:18 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 409IQGG5000881 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 18:26:16 GMT Received: from [10.110.0.29] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 9 Jan 2024 10:26:14 -0800 Message-ID: <9a2b1929-bd01-4d40-89ca-6785d1b9367a@quicinc.com> Date: Tue, 9 Jan 2024 10:26:13 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] gpu: drm: panel: panel-simple: add new display mode for waveshare 7inch touchscreen panel Content-Language: en-US To: Shengyang Chen , , CC: , , , , , , , , , , , , , , , , References: <20240109070949.23957-1-shengyang.chen@starfivetech.com> <20240109070949.23957-3-shengyang.chen@starfivetech.com> From: Jessica Zhang In-Reply-To: <20240109070949.23957-3-shengyang.chen@starfivetech.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: M5iCFI5QdTntp2jPrxNmP6Hs95qU9uNm X-Proofpoint-ORIG-GUID: M5iCFI5QdTntp2jPrxNmP6Hs95qU9uNm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 clxscore=1011 lowpriorityscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090148 On 1/8/2024 11:09 PM, Shengyang Chen wrote: > The waveshare 7" 800x480 panel is a clone of Raspberry Pi 7" 800x480 panel > It also uses a Toshiba TC358762 DSI to DPI bridge chip but it needs different > timing from Raspberry Pi panel. Add new timing for it. Hi Shengyang, The patch itself LGTM, but in case you have to put out a new revision, can you please use the "drm/panel: :" prefix format that other drm/panel commits use? Reviewed-by: Jessica Zhang Thanks, Jessica Zhang > > Signed-off-by: Keith Zhao > Signed-off-by: Shengyang Chen > --- > drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index 9367a4572dcf..e0896873ea33 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -4110,6 +4110,31 @@ static const struct panel_desc vl050_8048nt_c01 = { > .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, > }; > > +static const struct drm_display_mode waveshare_7inch_mode = { > + .clock = 29700000 / 1000, > + .hdisplay = 800, > + .hsync_start = 800 + 90, > + .hsync_end = 800 + 90 + 5, > + .htotal = 800 + 90 + 5 + 5, > + .vdisplay = 480, > + .vsync_start = 480 + 60, > + .vsync_end = 480 + 60 + 5, > + .vtotal = 480 + 60 + 5 + 5, > + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, > +}; > + > +static const struct panel_desc waveshare_7inch = { > + .modes = &waveshare_7inch_mode, > + .num_modes = 1, > + .bpc = 8, > + .size = { > + .width = 154, > + .height = 86, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, > + .connector_type = DRM_MODE_CONNECTOR_DSI, > +}; > + > static const struct drm_display_mode winstar_wf35ltiacd_mode = { > .clock = 6410, > .hdisplay = 320, > @@ -4592,6 +4617,9 @@ static const struct of_device_id platform_of_match[] = { > }, { > .compatible = "vxt,vl050-8048nt-c01", > .data = &vl050_8048nt_c01, > + }, { > + .compatible = "waveshare,7inch-touchscreen", > + .data = &waveshare_7inch, > }, { > .compatible = "winstar,wf35ltiacd", > .data = &winstar_wf35ltiacd, > -- > 2.17.1 >