{"id":2222721,"url":"http://patchwork.ozlabs.org/api/patches/2222721/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-gpio/patch/20260413-waveshare-dsi-touch-v3-10-3aeb53022c32@oss.qualcomm.com/","project":{"id":42,"url":"http://patchwork.ozlabs.org/api/projects/42/?format=json","name":"Linux GPIO development","link_name":"linux-gpio","list_id":"linux-gpio.vger.kernel.org","list_email":"linux-gpio@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260413-waveshare-dsi-touch-v3-10-3aeb53022c32@oss.qualcomm.com>","list_archive_url":null,"date":"2026-04-13T14:05:33","name":"[v3,10/21] drm/panel: himax-hx8394: support Waveshare DSI panels","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"61802618ca0b7fd55513a930ffa354bd96893419","submitter":{"id":90483,"url":"http://patchwork.ozlabs.org/api/people/90483/?format=json","name":"Dmitry Baryshkov","email":"dmitry.baryshkov@oss.qualcomm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-gpio/patch/20260413-waveshare-dsi-touch-v3-10-3aeb53022c32@oss.qualcomm.com/mbox/","series":[{"id":499710,"url":"http://patchwork.ozlabs.org/api/series/499710/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-gpio/list/?series=499710","date":"2026-04-13T14:05:24","name":"drm/panel: support Waveshare DSI TOUCH kits","version":3,"mbox":"http://patchwork.ozlabs.org/series/499710/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222721/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222721/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-gpio+bounces-35105-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=OXvyZOxW;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=hMohaaa/;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35105-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"OXvyZOxW\";\n\tdkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"hMohaaa/\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=205.220.168.131","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvTny28zzz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 00:10:30 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id AB3EB30457FF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 14:06:51 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F40433D9DD9;\n\tMon, 13 Apr 2026 14:06:04 +0000 (UTC)","from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id CCC3B3D565F\n\tfor <linux-gpio@vger.kernel.org>; Mon, 13 Apr 2026 14:05:58 +0000 (UTC)","from pps.filterd (m0279862.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63DDwPTr3567914\n\tfor <linux-gpio@vger.kernel.org>; Mon, 13 Apr 2026 14:05:57 GMT","from mail-oi1-f197.google.com (mail-oi1-f197.google.com\n [209.85.167.197])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dh1uf0193-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <linux-gpio@vger.kernel.org>; Mon, 13 Apr 2026 14:05:57 +0000 (GMT)","by mail-oi1-f197.google.com with SMTP id\n 5614622812f47-467dc3431cbso2545489b6e.0\n        for <linux-gpio@vger.kernel.org>;\n Mon, 13 Apr 2026 07:05:57 -0700 (PDT)","from umbar.lan\n (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi.\n [2001:14ba:a073:af00:264b:feff:fe8b:be8a])\n        by smtp.gmail.com with ESMTPSA id\n 2adb3069b0e04-5a3eee8c91csm2687521e87.19.2026.04.13.07.05.52\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 13 Apr 2026 07:05:53 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776089162; cv=none;\n b=RVVjsnUtGYtRP52/BDYpLFKFm2Y+nmY3VOu7L2poAiFt7AfjlP+BntzYd8Ev7+FLrjRcIvcnHbV30kVLL8e/79tq+BxE+GZitdoF7vZMGeLO1d6BX9RlhfgmfHiJN0ZHBbV5tkczp7tx7RQhUfu6QRU3jx6DWqL50BI/ov5k84M=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776089162; c=relaxed/simple;\n\tbh=I07ADQdGhA6Qq6Cx74/dBgFSnA/ZPawbvmK6jOC9m5A=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=uV0zxjJEP5Plyp8KXnEANIwoy9h5kgWzlYNjuObVZTXAuL9loGxcnnTuWT8gBXJMv36TOBJ3L1xjL4DvLPFHP5r/6ve2xGaN9LYEI8JTGZfZnXOpgU6rzFbWqGIZesX9an+slLckOMOLuChwJw1iM5nmAWgCjk5vM7wFBSA62Ok=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;\n spf=pass smtp.mailfrom=oss.qualcomm.com;\n dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=OXvyZOxW;\n dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=hMohaaa/; arc=none smtp.client-ip=205.220.168.131","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n\tOE9S4otYnPCURYdf3I6lpBBdzkvE6LfA12oEggiwvlg=; b=OXvyZOxW22Smgqx4\n\tZuaHH/KAeXzGWX9A1evvt+fxYfYF/Fga7Eo+gq3XgiTUsg3FiGdWxXP0JX3PGAsC\n\tLf9jqcQunWuNhyCBt+B1rUhigUcwpOctI7GL0hjVpRd00upwq/vFWUUn/v4dOUIz\n\tzlnmZKhaAxin4r11qz4HIhV+REQ6XDRN8AP1k/p0uQ6qDu8kKAyI6BIAc7ZrQp2I\n\tV6IGoL3WVV3P5MZqptK6XZTVX+20w95BO45DxKWD9siAUVT7hM0cY38s5UrchNCz\n\tW0JKJ+8d9XlX42Roaqx779knEyZPpSs7kLF2o/u9DK+rSXL1HzlX5ydeafDiAFCN\n\tGQWNsA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1776089157; x=1776693957;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=OE9S4otYnPCURYdf3I6lpBBdzkvE6LfA12oEggiwvlg=;\n        b=hMohaaa/pY9FNcuoVDV6Ou0nywEIbc+lxCsVSRTsrWwKZWnZs79g405tCvMQoKZdjQ\n         MBOb1YqWUjsHS1dT+k8/bFUNxhZ2kYj/7COJ5LX8XX9ywwNMlIgfqTvZLlspc1WJrVv4\n         2ZSfeTT1HOGCx0nEHD6nnKeP6fDfo+H4kOHwswvCdvgGrDw4tLK/hSPWsrRhNwh0RrvJ\n         6NZjPrl8bPd2eUHtYNdtj+BFoQxqm+08hs0qilVCTcR2H9TxcG1S7db/I4inZGw6E1Xq\n         OfTZPlaeYaRdKwdvnzivY6yZCotSPsXIA6E9b38TTE/R+82AZnjKDaUGRPFPpGMpLBW/\n         bW+Q=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776089157; x=1776693957;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=OE9S4otYnPCURYdf3I6lpBBdzkvE6LfA12oEggiwvlg=;\n        b=XGyM26qPIEJtWXoDvaT64gu2d9f71GbYwJyRTDJHlcL9iPn0cTTwh24vpGm1rxFulN\n         Wcav/W8AKq0iaCSG1Qs4kCyni/RjZxYTXnmHmWg7jbxIA4rlCj1ytVu8NMVDV2IXvkJ5\n         Z3+qkCD0HXsqE9t9NPHkE6/YjguHxSJBQ+Wwzd+GweQFRt16bb/dZ3zJKPEYbGfqMyzA\n         C4epH5Ia9aKJrzOcj0vaHfwmEc0Mf0lqGpoaCKNK8+f7gTqzo3sv8izHYtuGV+zA7Wfj\n         hYx4ZqrL9dEq/Wx0eWo6ipxOYji3FPrlo6d0yU1n5mKUr0ySzoGVrwhF1UzU6qx8QNUl\n         z7Pg==","X-Forwarded-Encrypted":"i=1;\n AFNElJ/TDHhofabdTrg441Zeaefaa5KxXyjWXfkFGnpmMH7vo6zm5nuHi9W3l/XHG8MeF/0NxaR5wJ/WBxhM@vger.kernel.org","X-Gm-Message-State":"AOJu0Yyq6/9aBsspIfGPl69ymPwsEKU3Vi8LVYOQ/Q8avUMZKLq3gp9T\n\tPCKPvl2N0LRQjBXi9/EdXL/+51BwS7Char/837ruY1cmwpawdZbJFFeG7Xuiwu7qXQH53tBZNtm\n\tp0feysDN3FOT52x2YD22J/OL59kHFu6S5IVyM702wOlMtX/3E8iqhDXGe+8kSP8sb","X-Gm-Gg":"AeBDietV5jtK/DRz2lcPadpoknRu2V/X/8yv+XC9uADCyc3uke0QEIEej0Ho6WpDzU0\n\tgIVH2k7Dj/lSZQHnItADThYdGpPrsmtf77nOQZtswf8i2Omwgc789BrND4b1KBBN15JvX2oi/C7\n\tEoh7o32VWeJQDRshbspP+F7F+lUAO2lOCoW/c+eZK7KW6AJTPk4J0FbDvuqiPTxk1j+4WDHOkKM\n\tvi4jL+zRlOVt8MZ8kJJph0xx4I9Bv6vVp3GAccID6FjQz4I0kYKL05GCk9UtJBn0l1mByncvutd\n\tAsMsmWCVrjFhVepxQAqo3gcDC4qpixrSKVlaAtU8hSVxHwUqw9zLwmHzw3ZpBeeJ9qQFn4SgGZe\n\tTL7ovDNvGfGjMVPxlG9jAxIfEOZYaXoCEDAKJAkzXb7wAgUcVwnWKNDaQ3cwP44IfWFXXUdyIse\n\tgQ+gT/J2HpubdUUseTuGuLHodPwDKRa7fVBnQ=","X-Received":["by 2002:a05:6808:4f0e:b0:46e:bd63:716d with SMTP id\n 5614622812f47-478a050544fmr6333822b6e.40.1776089156563;\n        Mon, 13 Apr 2026 07:05:56 -0700 (PDT)","by 2002:a05:6808:4f0e:b0:46e:bd63:716d with SMTP id\n 5614622812f47-478a050544fmr6333746b6e.40.1776089155831;\n        Mon, 13 Apr 2026 07:05:55 -0700 (PDT)"],"From":"Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>","Date":"Mon, 13 Apr 2026 17:05:33 +0300","Subject":"[PATCH v3 10/21] drm/panel: himax-hx8394: support Waveshare DSI\n panels","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260413-waveshare-dsi-touch-v3-10-3aeb53022c32@oss.qualcomm.com>","References":"<20260413-waveshare-dsi-touch-v3-0-3aeb53022c32@oss.qualcomm.com>","In-Reply-To":"<20260413-waveshare-dsi-touch-v3-0-3aeb53022c32@oss.qualcomm.com>","To":"Neil Armstrong <neil.armstrong@linaro.org>,\n        Jessica Zhang <jesszhan0024@gmail.com>,\n        David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,\n        Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,\n        Maxime Ripard <mripard@kernel.org>,\n        Thomas Zimmermann <tzimmermann@suse.de>,\n Rob Herring <robh@kernel.org>,\n        Krzysztof Kozlowski <krzk+dt@kernel.org>,\n        Conor Dooley <conor+dt@kernel.org>,\n        Cong Yang <yangcong5@huaqin.corp-partner.google.com>,\n        Ondrej Jirman <megi@xff.cz>,\n        Javier Martinez Canillas <javierm@redhat.com>,\n        Jagan Teki <jagan@edgeble.ai>, Liam Girdwood <lgirdwood@gmail.com>,\n        Mark Brown <broonie@kernel.org>, Linus Walleij <linusw@kernel.org>,\n        Bartosz Golaszewski <brgl@kernel.org>,\n        Jie Gan <jie.gan@oss.qualcomm.com>","Cc":"dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,\n        linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org","X-Mailer":"b4 0.15.1","X-Developer-Signature":"v=1; a=openpgp-sha256; l=11490;\n i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id;\n bh=I07ADQdGhA6Qq6Cx74/dBgFSnA/ZPawbvmK6jOC9m5A=;\n b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBp3Pgn0ktOsN3lYk3onhc6d2vt/kaLqOOW/m/f9\n 4bNVrZ62ryJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCadz4JwAKCRCLPIo+Aiko\n 1VjQCACgk8k2Tw1AzVZ0mNgCaAm2wd6gCiO8zFYtlH6PKjClW0NM9IMyYzg6ROc1/20FhMCPIek\n FKa3Opo28Jn1PucjAroDZXpVN2aNCl7MsCsKEH82pch9TjOjmmYHKf56NXnmexZwD4RRdGIoLOH\n /jFWX9FQmydrmL/X/ZAeuDCI4YdiupVc9imgiaNZfkAWWxkEZdsJ9IaLJ7pe1oHjPE6qpwQme5S\n XLQg7LoY6TMSOL3SXgKZM0XGzcGBhDgyC/nAdDf3SsrEgHvHamRHZOIlTNNWwFdl2abX9OmeW+I\n fJ+98y91/+2cEjvF9f58Ay450Q6+BVVvL1pDiS1t8pEsN1Fb","X-Developer-Key":"i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp;\n fpr=8F88381DD5C873E4AE487DA5199BF1243632046A","X-Authority-Analysis":"v=2.4 cv=Dc4nbPtW c=1 sm=1 tr=0 ts=69dcf845 cx=c_pps\n a=WJcna6AvsNCxL/DJwPP1KA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8\n a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=8LC8iulc4pHAooHhkrkA:9 a=QEXdDO2ut3YA:10\n a=_Y9Zt4tPzoBS9L09Snn2:22","X-Proofpoint-ORIG-GUID":"htvtegDDGeb3Tj8lSl4-LPPke28Gp_Hb","X-Proofpoint-GUID":"htvtegDDGeb3Tj8lSl4-LPPke28Gp_Hb","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDEzMDEzNyBTYWx0ZWRfX15f9yNadTsQ3\n wqi66Ofh6HAVrIIV1zXkNkvDLebbw+Ke39lV7n+o3rWXgqLrbBRqog1ev/sPZIhUv7BXVz81Idf\n vflwEaMiIXUsOBytmM259/U8/geH6jxHey7bYyiCHURUq/sbiPefo1Yndwv4JQbyEfbOnVfW8tt\n TiHy+8ov0Dc+N5Z/sopVw0IMjCe6Phbi1Suwd8LH/45etGcLkfMZ0cvw+dxxrOonc69Fb/CYp6z\n 8R+TKBya0oaHQTufI+N+cEmZeU3v3FMQclQsd5dBdnl88rMqFycAV1o0ow/jjpsWREWc8eQ9IcH\n Gh1Z9RUVnWzGSEheEXuE4/PK79LqzChRg1U0OGckVsc+BfA7dQBvLpvAWireJqi29xNk9hnV0mN\n 10YqEGcLziLbpuotJrj3McKD2fc8QSfZuLLV5B5oeH+pdypWhCV7p5HsttNiqB4N2HxJuSL8kzf\n fAEjRxoK6Pp/FnxD0QA==","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-13_03,2026-04-13_03,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n bulkscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015\n impostorscore=0 priorityscore=1501 spamscore=0 malwarescore=0 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604130137"},"content":"Enable support for Waveshare 5.0\" and 5.5\" DSI TOUCH-A panels.\n\nReviewed-by: Linus Walleij <linusw@kernel.org>\nReviewed-by: Javier Martinez Canillas <javierm@redhat.com>\nSigned-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>\n---\n drivers/gpu/drm/panel/panel-himax-hx8394.c | 244 +++++++++++++++++++++++++++++\n 1 file changed, 244 insertions(+)","diff":"diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/panel/panel-himax-hx8394.c\nindex 1f23c50b6661..bf80354567df 100644\n--- a/drivers/gpu/drm/panel/panel-himax-hx8394.c\n+++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c\n@@ -44,6 +44,7 @@\n #define HX8394_CMD_SETID\t  0xc3\n #define HX8394_CMD_SETDDB\t  0xc4\n #define HX8394_CMD_UNKNOWN2\t  0xc6\n+#define HX8394_CMD_UNKNOWN6\t  0xc7\n #define HX8394_CMD_SETCABC\t  0xc9\n #define HX8394_CMD_SETCABCGAIN\t  0xca\n #define HX8394_CMD_SETPANEL\t  0xcc\n@@ -618,6 +619,247 @@ static const struct hx8394_panel_desc hl055fhav028c_desc = {\n \t.init_sequence = hl055fhav028c_init_sequence,\n };\n \n+static void waveshare_5_0_inch_a_init_sequence(struct mipi_dsi_multi_context *dsi_ctx)\n+{\n+\t/* 5.19.8 SETEXTC: Set extension command (B9h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETEXTC,\n+\t\t\t\t     0xff, 0x83, 0x94);\n+\n+\t/* 5.19.2 SETPOWER: Set power (B1h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPOWER,\n+\t\t\t\t     0x48, 0x0a, 0x6a, 0x09, 0x33, 0x54, 0x71, 0x71, 0x2e, 0x45);\n+\n+\t/* 5.19.9 SETMIPI: Set MIPI control (BAh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETMIPI,\n+\t\t\t\t     0x61, 0x03, 0x68, 0x6b, 0xb2, 0xc0);\n+\n+\t/* 5.19.3 SETDISP: Set display related register (B2h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETDISP,\n+\t\t\t\t     0x00, 0x80, 0x64, 0x0c, 0x06, 0x2f);\n+\n+\t/* 5.19.4 SETCYC: Set display waveform cycles (B4h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETCYC,\n+\t\t\t\t     0x1c, 0x78, 0x1c, 0x78, 0x1c, 0x78, 0x01, 0x0c, 0x86, 0x75,\n+\t\t\t\t     0x00, 0x3f, 0x1c, 0x78, 0x1c, 0x78, 0x1c, 0x78, 0x01, 0x0c,\n+\t\t\t\t     0x86);\n+\n+\t/* 5.19.19 SETGIP0: Set GIP Option0 (D3h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP0,\n+\t\t\t\t     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x32, 0x10,\n+\t\t\t\t     0x05, 0x00, 0x05, 0x32, 0x13, 0xc1, 0x00, 0x01, 0x32, 0x10,\n+\t\t\t\t     0x08, 0x00, 0x00, 0x37, 0x03, 0x07, 0x07, 0x37, 0x05, 0x05,\n+\t\t\t\t     0x37, 0x0c, 0x40);\n+\n+\t/* 5.19.20 Set GIP Option1 (D5h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP1,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x22, 0x23, 0x20, 0x21, 0x04, 0x05,\n+\t\t\t\t     0x06, 0x07, 0x00, 0x01, 0x02, 0x03, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x19, 0x19, 0x19, 0x19);\n+\n+\t/* 5.19.21 Set GIP Option2 (D6h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP2,\n+\t\t\t\t     0x18, 0x18, 0x19, 0x19, 0x21, 0x20, 0x23, 0x22, 0x03, 0x02,\n+\t\t\t\t     0x01, 0x00, 0x07, 0x06, 0x05, 0x04, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x19, 0x19, 0x18, 0x18);\n+\n+\t/* 5.19.25 SETGAMMA: Set gamma curve related setting (E0h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGAMMA,\n+\t\t\t\t     0x07, 0x08, 0x09, 0x0d, 0x10, 0x14, 0x16, 0x13, 0x24, 0x36,\n+\t\t\t\t     0x48, 0x4a, 0x58, 0x6f, 0x76, 0x80, 0x97, 0xa5, 0xa8, 0xb5,\n+\t\t\t\t     0xc6, 0x62, 0x63, 0x68, 0x6f, 0x72, 0x78, 0x7f, 0x7f, 0x00,\n+\t\t\t\t     0x02, 0x08, 0x0d, 0x0c, 0x0e, 0x0f, 0x10, 0x24, 0x36, 0x48,\n+\t\t\t\t     0x4a, 0x58, 0x6f, 0x78, 0x82, 0x99, 0xa4, 0xa0, 0xb1, 0xc0,\n+\t\t\t\t     0x5e, 0x5e, 0x64, 0x6b, 0x6c, 0x73, 0x7f, 0x7f);\n+\n+\t/* 5.19.17 SETPANEL (CCh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPANEL,\n+\t\t\t\t     0x0b);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN1,\n+\t\t\t\t     0x1f, 0x73);\n+\n+\t/* 5.19.5 SETVCOM: Set VCOM voltage (B6h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETVCOM,\n+\t\t\t\t     0x6b, 0x6b);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN3,\n+\t\t\t\t     0x02);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x01);\n+\n+\t/* 5.19.2 SETPOWER: Set power (B1h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPOWER,\n+\t\t\t\t     0x00);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x00);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN5,\n+\t\t\t\t     0x40, 0x81, 0x50, 0x00, 0x1a, 0xfc, 0x01);\n+};\n+\n+static const struct drm_display_mode waveshare_5_0_inch_a_mode = {\n+\t.clock = 70000,\n+\t.hdisplay = 720,\n+\t.hsync_start = 720 + 40,\n+\t.hsync_end = 720 + 40 + 20,\n+\t.htotal = 720 + 40 + 20 + 20,\n+\t.vdisplay = 1280,\n+\t.vsync_start = 1280 + 30,\n+\t.vsync_end = 1280 + 30 + 10,\n+\t.vtotal = 1280 + 30 + 10 + 4,\n+\t.width_mm = 62,\n+\t.height_mm = 110,\n+};\n+\n+static const struct hx8394_panel_desc waveshare_5_0_inch_a_desc = {\n+\t.mode = &waveshare_5_0_inch_a_mode,\n+\t.lanes = 2,\n+\t.mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO |\n+\t\t      MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS,\n+\t.format = MIPI_DSI_FMT_RGB888,\n+\t.init_sequence = waveshare_5_0_inch_a_init_sequence,\n+};\n+\n+static const struct drm_display_mode waveshare_5_5_inch_a_mode = {\n+\t.clock = 65000,\n+\t.hdisplay = 720,\n+\t.hsync_start = 720 + 50,\n+\t.hsync_end = 720 + 50 + 50,\n+\t.htotal = 720 + 50 + 50 + 10,\n+\t.vdisplay = 1280,\n+\t.vsync_start = 1280 + 15,\n+\t.vsync_end = 1280 + 15 + 12,\n+\t.vtotal = 1280 + 15 + 12 + 4,\n+\t.width_mm = 62,\n+\t.height_mm = 110,\n+};\n+\n+static void waveshare_5_5_inch_a_init_sequence(struct mipi_dsi_multi_context *dsi_ctx)\n+{\n+\t/* 5.19.8 SETEXTC: Set extension command (B9h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETEXTC,\n+\t\t\t\t     0xff, 0x83, 0x94);\n+\n+\t/* 5.19.9 SETMIPI: Set MIPI control (BAh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETMIPI,\n+\t\t\t\t     0x61, 0x03, 0x68, 0x6b, 0xb2, 0xc0);\n+\n+\t/* 5.19.2 SETPOWER: Set power (B1h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPOWER,\n+\t\t\t\t     0x48, 0x12, 0x72, 0x09, 0x32, 0x54, 0x71, 0x71, 0x57, 0x47);\n+\n+\t/* 5.19.3 SETDISP: Set display related register (B2h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETDISP,\n+\t\t\t\t     0x00, 0x80, 0x64, 0x0c, 0x0d, 0x2f);\n+\n+\t/* 5.19.4 SETCYC: Set display waveform cycles (B4h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETCYC,\n+\t\t\t\t     0x73, 0x74, 0x73, 0x74, 0x73, 0x74, 0x01, 0x0c, 0x86, 0x75,\n+\t\t\t\t     0x00, 0x3f, 0x73, 0x74, 0x73, 0x74, 0x73, 0x74, 0x01, 0x0c,\n+\t\t\t\t     0x86);\n+\n+\t/* 5.19.5 SETVCOM: Set VCOM voltage (B6h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETVCOM,\n+\t\t\t\t     0x86, 0x86);\n+\n+\t/* 5.19.19 SETGIP0: Set GIP Option0 (D3h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP0,\n+\t\t\t\t     0x00, 0x00, 0x07, 0x07, 0x40, 0x07, 0x0c, 0x00, 0x08, 0x10,\n+\t\t\t\t     0x08, 0x00, 0x08, 0x54, 0x15, 0x0a, 0x05, 0x0a, 0x02, 0x15,\n+\t\t\t\t     0x06, 0x05, 0x06, 0x47, 0x44, 0x0a, 0x0a, 0x4b, 0x10, 0x07,\n+\t\t\t\t     0x07, 0x0c, 0x40);\n+\n+\t/* 5.19.20 Set GIP Option1 (D5h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP1,\n+\t\t\t\t     0x1c, 0x1c, 0x1d, 0x1d, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,\n+\t\t\t\t     0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x24, 0x25, 0x18, 0x18,\n+\t\t\t\t     0x26, 0x27, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x20, 0x21,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18);\n+\n+\t/* 5.19.21 Set GIP Option2 (D6h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGIP2,\n+\t\t\t\t     0x1c, 0x1c, 0x1d, 0x1d, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02,\n+\t\t\t\t     0x01, 0x00, 0x0b, 0x0a, 0x09, 0x08, 0x21, 0x20, 0x18, 0x18,\n+\t\t\t\t     0x27, 0x26, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x25, 0x24,\n+\t\t\t\t     0x18, 0x18, 0x18, 0x18);\n+\n+\t/* 5.19.25 SETGAMMA: Set gamma curve related setting (E0h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETGAMMA,\n+\t\t\t\t     0x00, 0x13, 0x21, 0x28, 0x2b, 0x2e, 0x32, 0x2f, 0x61, 0x6e,\n+\t\t\t\t     0x7e, 0x7b, 0x80, 0x8f, 0x91, 0x93, 0x9d, 0x9d, 0x97, 0xa4,\n+\t\t\t\t     0xb1, 0x57, 0x55, 0x58, 0x5d, 0x60, 0x67, 0x74, 0x7f, 0x00,\n+\t\t\t\t     0x13, 0x21, 0x28, 0x2b, 0x2e, 0x32, 0x2f, 0x61, 0x6e, 0x7d,\n+\t\t\t\t     0x7b, 0x7f, 0x8e, 0x90, 0x93, 0x9c, 0x9d, 0x98, 0xa4, 0xb1,\n+\t\t\t\t     0x58, 0x55, 0x59, 0x5e, 0x61, 0x68, 0x76, 0x7f);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN1,\n+\t\t\t\t     0x1f, 0x31);\n+\n+\t/* 5.19.17 SETPANEL (CCh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPANEL,\n+\t\t\t\t     0x07);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN3,\n+\t\t\t\t     0x02);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x02);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN4,\n+\t\t\t\t     0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,\n+\t\t\t\t     0xff, 0xff);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x00);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x01);\n+\n+\t/* 5.19.2 SETPOWER: Set power (B1h) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETPOWER,\n+\t\t\t\t     0x00);\n+\n+\t/* 5.19.11 Set register bank (BDh) */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_SETREGBANK,\n+\t\t\t\t     0x00);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN2,\n+\t\t\t\t     0xed);\n+\n+\t/* Unknown command, not listed in the HX8394-F datasheet */\n+\tmipi_dsi_dcs_write_seq_multi(dsi_ctx, HX8394_CMD_UNKNOWN6,\n+\t\t\t\t     0x00, 0xc0);\n+};\n+\n+static const struct hx8394_panel_desc waveshare_5_5_inch_a_desc = {\n+\t.mode = &waveshare_5_5_inch_a_mode,\n+\t.lanes = 2,\n+\t.mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO |\n+\t\t      MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS,\n+\t.format = MIPI_DSI_FMT_RGB888,\n+\t.init_sequence = waveshare_5_5_inch_a_init_sequence,\n+};\n+\n static int hx8394_disable(struct drm_panel *panel)\n {\n \tstruct hx8394 *ctx = panel_to_hx8394(panel);\n@@ -815,6 +1057,8 @@ static const struct of_device_id hx8394_of_match[] = {\n \t{ .compatible = \"huiling,hl055fhav028c\", .data = &hl055fhav028c_desc },\n \t{ .compatible = \"powkiddy,x55-panel\", .data = &powkiddy_x55_desc },\n \t{ .compatible = \"microchip,ac40t08a-mipi-panel\", .data = &mchp_ac40t08a_desc },\n+\t{ .compatible = \"waveshare,5.0-dsi-touch-a\", .data = &waveshare_5_0_inch_a_desc },\n+\t{ .compatible = \"waveshare,5.5-dsi-touch-a\", .data = &waveshare_5_5_inch_a_desc },\n \t{ /* sentinel */ }\n };\n MODULE_DEVICE_TABLE(of, hx8394_of_match);\n","prefixes":["v3","10/21"]}