From nobody Mon Feb 9 18:24:20 2026 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.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 80C711C5F07 for ; Thu, 23 Jan 2025 06:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614896; cv=none; b=hQSZK2K2v9q8cREYYcHuyBu8rnrxQsXb6+eaTAcWlweX/s1LUXW7yByWjR+jnF9TRQ3JyaxoJXwsjx4yvxv/BpGHGfHyahw0w3oAC9iEkxr6C0Nnj85S8AQAJk6fExGl7RKtd79WhCybejfRSzIcLULPRzLtE3R5oxWhK0nwBpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614896; c=relaxed/simple; bh=e4l4J6hUK66lbb+27pNmUpiv51k83qvvho2J2oXg9yI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=POzrJFdKpOegdbR5SW4bfjNq9pKM1PV+cZfkByPGuq8Zcral9gbzgVGMSmMfRPLFOk2jlhN7uyOPRq+2QI5sR1BwxC/qxquCPovAAmiUFErG8/qIiCu6MApc6tjSyeKVQOm68oz1aiMGcRYTpj2j2/7CeT5/8XwTWSVk9ooMkGU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=C+3Az0Vg; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="C+3Az0Vg" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2166f1e589cso12496325ad.3 for ; Wed, 22 Jan 2025 22:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1737614894; x=1738219694; darn=vger.kernel.org; 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=SwfobZv33V/+FGTeVO+tPqefOOlFn7XlfW7hi3srQwo=; b=C+3Az0VgiEBF/Rkk3xJj8hHtf+FLDPvDSQwrVp0hhFo6Tki4wn5YjJkPmFvzkWJI84 Lgi6iytsmKKg4EqgHsp7S/O086NybE9wE2xWiCD+GjbLj+rzKlKTlQV5pQyK3oJKxN5Y Qjas+j+uzoSVQ0XaiJw1puq2JBIoDKBBFnqDcOy/7fpxAFd9Xp7y6NY/+IeGwAL4Vfqp jfY5Mpb0N/lwtryhhrGP/54gbzyXqfNM0YAuAtxgMITrdMvNtY07p6ctnLf1pn76n03U 0pnLW1rP0g86qNy5gbNDc5Su+3ChwfXUxLtDaORP4aXfu4t/vFNFh3umcAG1KRQPQShX 1yLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737614894; x=1738219694; 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=SwfobZv33V/+FGTeVO+tPqefOOlFn7XlfW7hi3srQwo=; b=MqcK/Jf6T81dcRG7NyKEJDm8va31hKvBN45geqZLMWpSJFfjusZBICcximAets/dK5 kt1nDrA9GumR+c7PyjtUkYq6FEfpPD/UWBG2VQsJ7V75Ru+665Bchn8ogBwi8eCYICIN 2WeebgHCyyM3m+3iyXoRwOoNosqkDnjMRHc48D24qbWM/MuVaV4icJPPYWtOszvX26lV SDjm2KEDXSPr7xVVKmj4iDXE36GP34GCx/t7WLV7iFZcTJQly92A/fQc0GKBZs0p2Ju8 h4RbWqfoOYaUOgJIKOYj9K8zVuBMsIUHAJCKGC7vJgvu1BLL7jcXd2A26u6nQDjRooFR iU1A== X-Forwarded-Encrypted: i=1; AJvYcCV4Q5Z0NCmyjz2i/AWqpSk4nw1vj9tR2g09q+8l1S5zLN4s1EBKsEum+xJGc662Edgu1KGbXzmK8xUiRyo=@vger.kernel.org X-Gm-Message-State: AOJu0YyV+GuA0QT7KjZ2tk7tTxGFNJureat9ZKnfh6JLShvzhPLdbuQZ n1YDiAFtJUkaUZbn4I91B777YliMP9xxBdjYmUq7Kaaz1MXyAF9/RRg5LVaX7B0= X-Gm-Gg: ASbGncvCiUoKV5BXz0RSLDRMrkQGK9yNHCWILYUBofIuCIxEZmUXtG8JPcqDRshIMDQ LSCcrHMOXhW7p8DL8RNaEs1u19gwL6eEsE0WXcmFeKHjqJqsPl46sn0znXkzkklpNG2Y7G4Blv/ BT2H1OavK/ODmsNpV65DoknKcteM3b7bd3WINNhgENltAyV3JCKb+ZuWE2LWqwowLS4nILYsyrd Jnfc32ywaUbTamnnfiHZoYiZtlquT5UljxcQ2nPExOJXnJ9o1UG+PwobB4MFNdixcEnDrdN9/Ky fnm+1FEzo4VH7UD8M6upUX6wAJ6eBs6HaaGeLYgWxOcsbh1fNiEU X-Google-Smtp-Source: AGHT+IFPp2dMwLLh/TYt3tGZ1O1dzVlAuA9tHPAAVKT+k+MdfX9nDHobaViIokflFeDSPNaTq3oJyg== X-Received: by 2002:a17:902:ec90:b0:216:3dc0:c8ab with SMTP id d9443c01a7336-21c3553b527mr340210705ad.9.1737614893777; Wed, 22 Jan 2025 22:48:13 -0800 (PST) Received: from dgp100339560-01.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bcc323777sm11923454a12.20.2025.01.22.22.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 22:48:13 -0800 (PST) From: Langyan Ye To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, dianders@chromium.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v4 1/3] dt-bindings: display: panel: Add compatible for KD110N11-51IE and 2082109QFH040022-50E Date: Thu, 23 Jan 2025 14:47:56 +0800 Message-Id: <20250123064758.743798-2-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> References: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" KINGDISPLAY KD110N11-51IE and STARRY 2082109QFH040022-50E are 10.95-inch WUXGA TFT LCD panels, which fits in nicely with the existing panel-boe-tv101wum-nl6 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Langyan Ye --- .../devicetree/bindings/display/panel/boe,tv101wum-nl6.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/boe,tv101wum-n= l6.yaml b/Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.= yaml index 7a9f49e40e75..b740681605f8 100644 --- a/Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.yaml +++ b/Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.yaml @@ -30,8 +30,12 @@ properties: - boe,tv110c9m-ll3 # INX HJ110IZ-01A 10.95" WUXGA TFT LCD panel - innolux,hj110iz-01a + # KINGDISPLAY KD110N11-51IE 10.95" WUXGA TFT LCD panel + - kingdisplay,kd110n11-51ie # STARRY 2081101QFH032011-53G 10.1" WUXGA TFT LCD panel - starry,2081101qfh032011-53g + # STARRY 2082109QFH040022-50E 10.95" WUXGA TFT LCD panel + - starry,2082109qfh040022-50e # STARRY ili9882t 10.51" WUXGA TFT LCD panel - starry,ili9882t =20 --=20 2.34.1 From nobody Mon Feb 9 18:24:20 2026 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 4F59F1D4618 for ; Thu, 23 Jan 2025 06:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614900; cv=none; b=FBs/Hh+PZQN1HAW77lxtf1IaVuxObNcLCTQIhRbcSvF986iGr1GzOWEPLZacEL6/tjLXBcODtiOjOBtaeIO76AeSNKtJVnmA/hXICgYHe/PbCT9DTK8wAYdy0ORQmetCyUHAdAqGTRcJBBD1AWltSvuih1SUvABTDdOZuj6jUSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614900; c=relaxed/simple; bh=7qGCDCv1gLzhkyg59/ihhQmOKYs7l5gteTDuUAd/C+M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bFnmGsHo7loe2Hh47aPqphIE3A3Xl0FGc3TFMaKNy0ysEBlkQlzPwUfF7y2TQVxALtHmmHxzKCE/eUGCPNxWlC9DpOMVuBAqUQiqxZ0e7ZS7u+Cs9eOfn3rOKLOcSnSPmwIn5FKvbeLvJcOco5oCmaGKIKKBI06dqj+n4pIzJII= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=0a0zQunW; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="0a0zQunW" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2ef87d24c2dso895462a91.1 for ; Wed, 22 Jan 2025 22:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1737614897; x=1738219697; darn=vger.kernel.org; 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=VCOG5kt31moLV2eZoaA3/yFdIlV57mdvZJ7cZk6YoPg=; b=0a0zQunW+JXD+3SuNx/PEHvJPkAxdhPBtVkKRmwRz+MfrkN50ktkyKetTu/3KGFLfb zY8STaxuSwUTgkQr9+Wo7i0x6qh9n2yUmleHnjclanKn0pmS/lMKihE75Sul0znKk0Uz 1Q5IFt9d7uZq9oKt+UHO9iCoa3iS7Dshm+ZjDBnuhMmz3EATV1uwmi5sIgNZJKrnP2dK Hcm3/jteJ4UfBtILnR5Q9B0lQrT5OwxzAhVPoH7kDm/PnjX/1pb7PKfcFCJdHdoGJBUW AlXa7xmaQy5GyuV53hymLW1uLqwtSKuouW8X+1EOmD9yN1IwAd0HxflOayE2rCLlGeiL KEWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737614897; x=1738219697; 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=VCOG5kt31moLV2eZoaA3/yFdIlV57mdvZJ7cZk6YoPg=; b=I28JsfrIidXPRUMG1nRjpOoCHJBcqwa5fPv6WO5Fr3iewgDHblzEHavs7ppC8xXoTX u2Q+KL30kDUqE6lQdRSKPS6C+ne3b1rv/IRDXen9IIpOXhJ2mCuFimUHMeB68ZXI8tsV DTb8G8NnIYi398vS6PEmaoHWlTYHRZlUi25wU+WESSuU8TVDcgBaGxjmQGjYXxVbc+SG mAAIVWfD1BvrlZfKzNG7My5Xac2zqgm7y6vs86T0Jp/TXoG9BSONGDPDV1AzsVv/+4gG QdYvM+rbE6O/WVMYOpM1AXxPoqeVFEdgYIlDEu0N3+Dmil6Wnq4W2e2+YGwySpEx6bLG l3Ug== X-Forwarded-Encrypted: i=1; AJvYcCVQ/uh3bjPo/yFSXUEghMLCbktg4m1S9vntlZzbB4avmUPhbSL/0+DTWFmuMi9km31mxQ8CNJAv5fhS080=@vger.kernel.org X-Gm-Message-State: AOJu0YzEJnlEaaewKlYSN4XN8TVja8UVcWrcboaMhgqiXwM4hykCRaSm QiZotQ2nkvRrPX+yZBpc6wEXVap9nEqPhC/U17aTQSxBjZCLVbGi+Myc6l1riV8= X-Gm-Gg: ASbGncsJk2roO+JYz/gVwDN3G2grNYmDhXd60jqF8mEhXDycpaumAZEbZ+ysxH8/iTW gOj7sBsfCMYZLUtiPVe/02gJJ1rZZUrayBXNAOdXJVdmePbjSbMRKnlO3DHIg6axdf4M+Cyv9ff W89kB9P/Is/besC8qfTzrFH67xsqjy/c0ODX1FNRk1Q7y/Tchwkidv8X0MRfI7X63wshPmJ1M/p A63PmDHMu1/d/aWKjdhTECgkk67Ch7Bfu4cNr3e9A4LACHgBxZkS+7E/PY5ncOKHXmKQ3cGDk+w BZcaTzZluqNRy4A6KW53pdDaY0Xgpa6lZuYX8cq6tLbvDLvxJkgC X-Google-Smtp-Source: AGHT+IFSKRouPqtWjw8tzLodi2fOrUljW1EJSB7AMzNCQQ4bdGluCYsFI9JuIeJeA6yrQJivmxkPrQ== X-Received: by 2002:a17:90b:520d:b0:2ee:8e75:4ae1 with SMTP id 98e67ed59e1d1-2f782cbfcadmr32849393a91.21.1737614897542; Wed, 22 Jan 2025 22:48:17 -0800 (PST) Received: from dgp100339560-01.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bcc323777sm11923454a12.20.2025.01.22.22.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 22:48:17 -0800 (PST) From: Langyan Ye To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, dianders@chromium.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v4 2/3] drm/panel: boe-tv101wum-nl6: support for kingdisplay-kd110n11-51ie MIPI-DSI panel Date: Thu, 23 Jan 2025 14:47:57 +0800 Message-Id: <20250123064758.743798-3-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> References: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The kingdisplay-kd110n11-51ie is a 10.95" TFT panel. which fits in nicely with the existing panel-boe-tv101wum-nl6 driver. From the datasheet, MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high, so increase lp11_before_reset flag. Signed-off-by: Langyan Ye Reviewed-by: Neil Armstrong --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 122 ++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/d= rm/panel/panel-boe-tv101wum-nl6.c index 3e5b0d8636d0..2a84ce3a33ed 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -1205,6 +1205,97 @@ static int auo_b101uan08_3_init(struct boe_panel *bo= e) return 0; }; =20 +static int kingdisplay_kd110n11_51ie_init(struct boe_panel *boe) +{ + struct mipi_dsi_multi_context ctx =3D { .dsi =3D boe->dsi }; + + msleep(50); + + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB9, 0x83, 0x10, 0x21, 0x55, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD9, 0xD1); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB1, 0x2C, 0xB3, 0xB3, 0x31, 0xF1, 0x= 33, 0xE0, 0x54, + 0x36, 0x36, 0x3A, 0x3A, 0x32, 0x8B, 0x11, 0xE5, 0x98); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xD9); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB1, 0x8B, 0x33); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB2, 0x00, 0x47, 0xB0, 0x80, 0x00, 0x= 2C, 0x80, 0x3C, + 0x9F, 0x22, 0x20, 0x00, 0x00, 0x98, 0x51); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB4, 0x64, 0x64, 0x64, 0x64, 0x64, 0x= 64, 0x40, 0x84, + 0x64, 0x84, 0x01, 0x9D, 0x01, 0x02, 0x01, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBC, 0x1B, 0x04); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBE, 0x20); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBF, 0xFC, 0xC4, 0x80, 0x9C, 0x36, 0x= 00, 0x0D, 0x04); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC0, 0x32, 0x32, 0x22, 0x11, 0x22, 0x= A0, 0x31, 0x08, + 0xF5, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xCC); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC7, 0x80); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC6); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC8, 0x97); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC9, 0x00, 0x1E, 0x13, 0x88, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x08, 0x13, 0x07, 0x00, 0x0F, 0x= 36); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCC, 0x02, 0x03, 0x44); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD1, 0x07, 0x06, 0x00, 0x02, 0x04, 0x= 2C, 0xFF); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD3, 0x06, 0x00, 0x00, 0x00, 0x40, 0x= 04, 0x08, 0x04, + 0x08, 0x37, 0x07, 0x44, 0x37, 0x2B, 0x2B, 0x03, 0x03, 0x32, + 0x10, 0x22, 0x00, 0x25, 0x32, 0x10, 0x29, 0x00, 0x29, 0x32, + 0x10, 0x08, 0x00, 0x08, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD5, 0x18, 0x18, 0x18, 0x18, 0x18, 0x= 18, 0x18, 0x18, + 0x18, 0x18, 0x07, 0x06, 0x07, 0x06, 0x05, 0x04, 0x05, 0x04, + 0x03, 0x02, 0x03, 0x02, 0x01, 0x00, 0x01, 0x00, 0x18, 0x18, + 0x25, 0x24, 0x25, 0x24, 0x1F, 0x1F, 0x1F, 0x1F, 0x1E, 0x1E, + 0x1E, 0x1E, 0x20, 0x20, 0x20, 0x20); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x0A, 0x2A, 0xAA, 0x8A, 0xAA, 0x= A0, 0x0A, 0x2A, + 0xAA, 0x8A, 0xAA, 0xA0); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0xE0, 0x10, 0x10, 0x0D, 0x1E, 0x= 9D, 0x02, 0x52, + 0x9D, 0x14, 0x14); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB1, 0x01, 0x7F, 0x11, 0xFD); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC5); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBA, 0x4F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x86); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD2, 0x64); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC5); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD3, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x0A, 0x2A, 0xAA, 0x8A, 0xAA, 0x= A0, 0x0A, 0x2A, + 0xAA, 0x8A, 0xAA, 0xA0, 0x05, 0x15, 0x55, 0x45, 0x55, 0x50, + 0x05, 0x15, 0x55, 0x45, 0x55, 0x50); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0x02, 0x00, 0x24, 0x01, 0x7E, 0x= 0F, 0x7C, 0x10, + 0xA0, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x02); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x03, 0x07, 0x00, 0x10, 0x7B); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x0F, 0x3F, 0xFF, 0xCF, 0xFF, 0x= F0, 0x0F, 0x3F, + 0xFF, 0xCF, 0xFF, 0xF0); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0xFE, 0x01, 0xFE, 0x01, 0xFE, 0x= 01, 0x00, 0x00, + 0x00, 0x23, 0x00, 0x23, 0x81, 0x02, 0x40, 0x00, 0x20, 0x9D, + 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB2, 0x66, 0x81); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC6); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB4, 0x03, 0xFF, 0xF8); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x0A, 0x2A, 0xAA, 0x8A, 0xAA, 0x= A0, 0x0A, 0x2A, + 0xAA, 0x8A, 0xAA, 0xA0, 0x0F, 0x2A, 0xAA, 0x8A, 0xAA, 0xF0, + 0x0F, 0x2A, 0xAA, 0x8A, 0xAA, 0xF0, 0x0A, 0x2A, 0xAA, 0x8A, + 0xAA, 0xA0, 0x0A, 0x2A, 0xAA, 0x8A, 0xAA, 0xA0); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB9, 0x00, 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0x11); + + mipi_dsi_msleep(&ctx, 120); + + mipi_dsi_dcs_write_seq_multi(&ctx, 0x29); + + mipi_dsi_msleep(&ctx, 20); + + return 0; +} + static int starry_qfh032011_53g_init(struct boe_panel *boe) { struct mipi_dsi_multi_context ctx =3D { .dsi =3D boe->dsi }; @@ -1615,6 +1706,34 @@ static const struct panel_desc boe_tv105wum_nw0_desc= =3D { .lp11_before_reset =3D true, }; =20 +static const struct drm_display_mode kingdisplay_kd110n11_51ie_default_mod= e =3D { + .clock =3D 182888, + .hdisplay =3D 1200, + .hsync_start =3D 1200 + 124, + .hsync_end =3D 1200 + 124 + 80, + .htotal =3D 1200 + 124 + 80 + 80, + .vdisplay =3D 1920, + .vsync_start =3D 1920 + 88, + .vsync_end =3D 1920 + 88 + 8, + .vtotal =3D 1920 + 88 + 8 + 38, + .type =3D DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, +}; + +static const struct panel_desc kingdisplay_kd110n11_51ie_desc =3D { + .modes =3D &kingdisplay_kd110n11_51ie_default_mode, + .bpc =3D 8, + .size =3D { + .width_mm =3D 147, + .height_mm =3D 235, + }, + .lanes =3D 4, + .format =3D MIPI_DSI_FMT_RGB888, + .mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | + MIPI_DSI_MODE_LPM, + .init =3D kingdisplay_kd110n11_51ie_init, + .lp11_before_reset =3D true, +}; + static const struct drm_display_mode starry_qfh032011_53g_default_mode =3D= { .clock =3D 165731, .hdisplay =3D 1200, @@ -1804,6 +1923,9 @@ static const struct of_device_id boe_of_match[] =3D { { .compatible =3D "innolux,hj110iz-01a", .data =3D &inx_hj110iz_desc }, + { .compatible =3D "kingdisplay,kd110n11-51ie", + .data =3D &kingdisplay_kd110n11_51ie_desc + }, { .compatible =3D "starry,2081101qfh032011-53g", .data =3D &starry_qfh032011_53g_desc }, --=20 2.34.1 From nobody Mon Feb 9 18:24:20 2026 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 783E11F91CA for ; Thu, 23 Jan 2025 06:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614905; cv=none; b=NaBOl3X7IbMMp00ml/nLZkkHHKuE5Eq2gVEMzbKVzMKo5anDEq96WRXBG/4JJc1kDgIBakmrIBynFGTpLGNsRDZZBCYySeBtryVIkyDWQqGWBQCA2Km4AZJ6ebTtpPIB0LLraQg3AeEMEQEgpCOQevcNbhU3cXYjMCc6JM5xsG0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737614905; c=relaxed/simple; bh=8hMnoYpdgIPgn3Su6L2EbjCkcKEFFrbdCTDMJqHoSU8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DK3WtIL5Zply4ij6b27D0msD5seDHbwU3uoSnHd2/nvsWolXizgQvPKD9XeCzHOI9m0hVdBsApyqW9qsFYKezERPSI16j0H8jZ3+lyJ2GOfKD2XHiZ5qlTzDG7I34wVotreJDBw+N+xD3iZ+E/PyuBmwI+47tJzTNPWCcuhi2ok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=1n/IDYsm; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="1n/IDYsm" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2166651f752so10635215ad.3 for ; Wed, 22 Jan 2025 22:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1737614901; x=1738219701; darn=vger.kernel.org; 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=EDMfsirDmMuW6vuuox69beKxHRz8d3DOlRa3xovfSw0=; b=1n/IDYsmYL/5H9HGrTWgC2PmAXTRWN90ozbfrzhZqGm3xDPR3lHlbtiIvwQX1xZwBo LHgx2HQbQ1Zv/QwgaeJjYn0Krkx428SLxKA1q1UStmPv1umd29RVXRs78VxTU6pzoXg/ ZnXAfdKqW5B+TAt6VmMAXeoSBp9huyF1TJlgZk/4GyFXe/ReJMs3g9LEMfBuhkCuJt2N UvsYALhTqT647DdE/U6F+LB0doQnnHFa5BANQr5v84uUc5lF/l2EjmDGiiA04tpmol+y ISSSY/dM8sWc1M0/ZGPoKpDy/QevbcbeC/IHEADn4fyYQu3cc1aPhe8KstoT3En9lmgE Unhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737614901; x=1738219701; 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=EDMfsirDmMuW6vuuox69beKxHRz8d3DOlRa3xovfSw0=; b=Z12ovvI8JSjZ16xGexFIBNUhLgx2xKgjPZdP/VMS4JRsz4ll4BK/zJvhqem9fd3sGU IK98oJPvBIk2PKTm6GXJjOxy/4mh3+2q6Pm9L1bhxyacIGhxyNCA3Q5/LEm8o/wOY4rT ZxRUrzczVB3u/yliWlfdIqkSuP4BYiLiYxYJg28lnGpbiFc64/dFlRNkNpAZZjF7AlvL N+/Daxc4fuO98VAY5Yz9PCBJRGbnldO/K8G7YwibNmEXd+fgf2eZ7CbGy73U31NM6A+U 55ZUk+VKuILgg0hwFVwxR08AH8dmpy1jok6nwaFLTcxXZTsdAtWfvITgJe+TUW9SsRww 6CVg== X-Forwarded-Encrypted: i=1; AJvYcCX9Ctl5xPQnXeoNvKOXM/yLC9lzw2br8p+TC1NUWtTjMHemflQqLTlPzg8wEL8o9S9wkiefCXypQt50sw8=@vger.kernel.org X-Gm-Message-State: AOJu0YwlgDpDfrMt5v13EK8Vmh+E8G1AHulgrcoLA3dFleZkFPXCkBCJ ACU6peVUVZ9mfTSsBDuMEX/+EtTJTCGLhMSQxuZvPTZksLolIU0OjIWRvmky25Q= X-Gm-Gg: ASbGncu5eugG3Dzpe2M2+EBNpjqRmkoV8h16vrDoBtqym7vYcTCdb12ksPewlvyjixI nGKJRzS6QKlCTHy3Y9ylycidrqrT928Y1+qq3m9JRh4JrskD8LM9XeBO8+baecGuV4RkC7SNF4v gjAzpkk4D+Luf1OUbctyrtlsnGB35q3SViY82tDug1YsX5RmwDN8ZjxOoIrxKOP4MxD//wSDAza NVMlTp4yx/ANCGlgZ9xB7KyDa8wPy4PC2TlLLnXaWmdSbu5FvOluDk9knPB2EInYqQy8zwJm0Qs XE7P8mgeZ2sO+yiHgytwFGBjfG0RJMQ7Ax1UF8apJiHS8G1IzVsB X-Google-Smtp-Source: AGHT+IHzKNFcJ3yuzDSlsqMLC277qN3wI2xPw8XfZS9poSg4o5GiwCz4Tt++c/ivV9I7GLwpshNy6Q== X-Received: by 2002:a05:6a20:4303:b0:1e1:9fef:e975 with SMTP id adf61e73a8af0-1eb215815a0mr33685291637.26.1737614901299; Wed, 22 Jan 2025 22:48:21 -0800 (PST) Received: from dgp100339560-01.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bcc323777sm11923454a12.20.2025.01.22.22.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 22:48:20 -0800 (PST) From: Langyan Ye To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, dianders@chromium.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v4 3/3] drm/panel: boe-tv101wum-nl6: support for starry-2082109qfh040022-50e MIPI-DSI panel Date: Thu, 23 Jan 2025 14:47:58 +0800 Message-Id: <20250123064758.743798-4-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> References: <20250123064758.743798-1-yelangyan@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The starry-2082109qfh040022-50e is a 10.95" TFT panel. which fits in nicely with the existing panel-boe-tv101wum-nl6 driver. From the datasheet, MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high, so increase lp11_before_reset flag. Signed-off-by: Langyan Ye Reviewed-by: Neil Armstrong --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/d= rm/panel/panel-boe-tv101wum-nl6.c index 2a84ce3a33ed..ba8921c13942 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -1400,6 +1400,123 @@ static int starry_qfh032011_53g_init(struct boe_pan= el *boe) return 0; }; =20 +static int starry_2082109qfh040022_50e_init(struct boe_panel *boe) +{ + struct mipi_dsi_multi_context ctx =3D { .dsi =3D boe->dsi }; + + msleep(50); + + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB9, 0x83, 0x10, 0x21, 0x55, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD9, 0xD1); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB1, 0x2C, 0xB5, 0xB5, 0x31, 0xF1, 0x= 33, 0xC3, 0x57, + 0x36, 0x36, 0x36, 0x36, 0x1A, 0x8B, 0x11, 0x65, 0x00, 0x88, 0xFA, 0xFF, = 0xFF, + 0x8F, 0xFF, 0x08, 0x3C, 0x33); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB2, 0x00, 0x47, 0xB0, 0x80, 0x00, 0x= 22, 0x70, 0x3C, + 0xA1, 0x22, 0x00, 0x00, 0x00, 0x88, 0xF4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB4, 0x14, 0x16, 0x14, 0x50, 0x14, 0x= 50, 0x0D, 0x6A, + 0x0D, 0x6A, 0x01, 0x9E); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB6, 0x34, 0x34, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB8, 0x40); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xCD); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBA, 0x84); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBC, 0x1B, 0x04); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBE, 0x20); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBF, 0xFC, 0xC4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC0, 0x38, 0x38, 0x22, 0x11, 0x33, 0x= A0, 0x61, 0x08, + 0xF5, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xCC); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC7, 0x80); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC6); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC8, 0x97); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xC9, 0x00, 0x1E, 0x30, 0xD4, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x08, 0x13, 0x07, 0x00, 0x0F, 0x= 16); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCC, 0x02, 0x03, 0x44); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD0, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD1, 0x37, 0x06, 0x00, 0x02, 0x04, 0x= 2C, 0xFF); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD3, 0x06, 0x00, 0x00, 0x00, 0x00, 0x= 00, 0x00, 0x00, + 0x00, 0x3B, 0x03, 0x73, 0x3B, 0x21, 0x21, 0x03, 0x03, 0x98, 0x10, 0x1D, = 0x00, + 0x1D, 0x32, 0x17, 0xA1, 0x07, 0xA1, 0x43, 0x17, 0xA6, 0x07, 0xA6, 0x00, = 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD5, 0x18, 0x18, 0x18, 0x18, 0x18, 0x= 18, 0x40, 0x40, + 0x18, 0x18, 0x18, 0x18, 0x2A, 0x2B, 0x1F, 0x1F, 0x1E, 0x1E, 0x24, 0x25, = 0x26, + 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, = 0x07, + 0x08, 0x09, 0x0A, 0x0B, 0x20, 0x21, 0x18, 0x18, 0x18, 0x18); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x02, 0xAA, 0xEA, 0xAA, 0xAA, 0x= 00, 0x02, 0xAA, + 0xEA, 0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, = 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, = 0x00, + 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0x07, 0x10, 0x10, 0x2A, 0x32, 0x= 9F, 0x01, 0x5A, + 0x91, 0x14, 0x14, 0x00, 0x00, 0x00, 0x00, 0x12, 0x05, 0x02, 0x02, 0x10, = 0x33, + 0x02, 0x04, 0x18, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB1, 0x01, 0x7F, 0x11, 0xFD); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x86); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD2, 0x3D); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC5); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD3, 0x00, 0x00, 0x00, 0x80, 0x80, 0x= 0C, 0xA1); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0x03, 0xFF, 0xFF, 0xFF, 0xFF, 0x= 00, 0x03, 0xFF, + 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, = 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, = 0x00, + 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0x02, 0x00, 0x2D, 0x01, 0x7F, 0x= 0F, 0x7C, 0x10, + 0xA0, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x02); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBF, 0xF2); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xCB, 0x02, 0x00, 0x00, 0x10, 0x58); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD2, 0x0A, 0x0A, 0x05, 0x03, 0x0A, 0x= 0A, 0x01, 0x03, + 0x01, 0x01, 0x05, 0x0E); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xCC); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD3, 0x03, 0x1F, 0xE0, 0x11, 0x70); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0xAB, 0xFF, 0xFF, 0xFF, 0xFF, 0x= A0, 0xAB, 0xFF, + 0xFF, 0xFF, 0xFF, 0xA0); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE7, 0xFE, 0x01, 0xFE, 0x01, 0xFE, 0x= 01, 0x00, 0x00, + 0x00, 0x03, 0x00, 0x03, 0x81, 0x02, 0x40, 0x00, 0x20, 0x9E, 0x02, 0x01, = 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x03); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC6); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB4, 0x03, 0xFF, 0xF8); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xD8, 0xAA, 0xAB, 0xEA, 0xAA, 0xAA, 0x= A0, 0xAA, 0xAB, + 0xEA, 0xAA, 0xAA, 0xA0, 0xAA, 0xBF, 0xFF, 0xFF, 0xFE, 0xA0, 0xAA, 0xBF, = 0xFF, + 0xFF, 0xFE, 0xA0, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xA0, 0xAA, 0xAA, 0xAA, = 0xAA, + 0xAA, 0xA0); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE1, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC4); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBA, 0x96); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x01); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xC5); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBA, 0x4F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x02); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0xCC); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBA, 0x84); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xE9, 0x3F); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xBD, 0x00); + mipi_dsi_dcs_write_seq_multi(&ctx, 0xB9, 0x00, 0x00, 0x00, 0x00); + + msleep(110); + + mipi_dsi_dcs_write_seq_multi(&ctx, 0x11); + + mipi_dsi_msleep(&ctx, 120); + + mipi_dsi_dcs_write_seq_multi(&ctx, 0x29); + + mipi_dsi_msleep(&ctx, 20); + + return 0; +} + static inline struct boe_panel *to_boe_panel(struct drm_panel *panel) { return container_of(panel, struct boe_panel, base); @@ -1761,6 +1878,34 @@ static const struct panel_desc starry_qfh032011_53g_= desc =3D { .lp11_before_reset =3D true, }; =20 +static const struct drm_display_mode starry_2082109qfh040022_50e_default_m= ode =3D { + .clock =3D 192105, + .hdisplay =3D 1200, + .hsync_start =3D 1200 + 160, + .hsync_end =3D 1200 + 160 + 66, + .htotal =3D 1200 + 160 + 66 + 120, + .vdisplay =3D 1920, + .vsync_start =3D 1920 + 115, + .vsync_end =3D 1920 + 115 + 8, + .vtotal =3D 1920 + 115 + 8 + 28, + .type =3D DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, +}; + +static const struct panel_desc starry_2082109qfh040022_50e_desc =3D { + .modes =3D &starry_2082109qfh040022_50e_default_mode, + .bpc =3D 8, + .size =3D { + .width_mm =3D 147, + .height_mm =3D 235, + }, + .lanes =3D 4, + .format =3D MIPI_DSI_FMT_RGB888, + .mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | + MIPI_DSI_MODE_LPM, + .init =3D starry_2082109qfh040022_50e_init, + .lp11_before_reset =3D true, +}; + static int boe_panel_get_modes(struct drm_panel *panel, struct drm_connector *connector) { @@ -1929,6 +2074,9 @@ static const struct of_device_id boe_of_match[] =3D { { .compatible =3D "starry,2081101qfh032011-53g", .data =3D &starry_qfh032011_53g_desc }, + { .compatible =3D "starry,2082109qfh040022-50e", + .data =3D &starry_2082109qfh040022_50e_desc + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, boe_of_match); --=20 2.34.1