From nobody Fri Jul 24 21:53:02 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9C0AE46D56F; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784805989; cv=none; b=Kz0UmXrx8Xht6WU4fExc1ffN9mMbnlrYM5CEDUxRZc9tnnL9izwkr88BhCd2c4aBFYW6+wj79GxQguCv8ENmMGzxq7UrFRK9yYgdgTZSwapJbhyjo7oYAZbQA4Kxdb5lgt8kIlhLisUAdUfs4Qglfva/RUtua+JiD0nFNucxjWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784805989; c=relaxed/simple; bh=5sewrzOdRWac/F/uqBnoM/NQOOWvpDIJMYAeTLUEGQc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i5eOz7ZO+0us2e20vKc2Jn42TinBltBY1aaxkyT86PDV+mFn4OnPuJlQQu1SLD+fXd1+RZKeVtLRPu4z1JZI3TEJbXp2+uPP2cj32e+SslFDQdQ8tg1XYSTfk+DAV/HKXL94m5aLzD7LKGJg1VJ6LPpPcttSQZ0WEKuwrhWATAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tEOQg8ay; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tEOQg8ay" Received: by smtp.kernel.org (Postfix) with ESMTPS id 36634C2BCC7; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784805989; bh=5sewrzOdRWac/F/uqBnoM/NQOOWvpDIJMYAeTLUEGQc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tEOQg8ayE7enccXBYGNPNj057szmAsVQ88KnqKJjUxhqRpApf4FJ46wm3HnLi/hDe JpOGxf4WWbmUiskjzOehrnrqjux4Fb/FvGrAjUaw+olxa/t7uStKZ5D/qxNkYMLD8W EfhHMa80oAtCtjTqkez1/gg1ZxkncvMvKukBiHGGeQtthb6DlpKpKZ6rnJ538ktkRY Sl5Aph70E5OQwYMEowUrFyWCsXugGQBiIylJJjlhD7eRHW+ZLVEIWwn/vfztdp7RW3 D6eDs5tPWzKLGBPsZEIIzp4KexMPEH35AvYUzN1rOG6I44YC1svXQczYsRYzk676+n q4Vu6rd3LC6Yw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14F9AC531CF; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) From: Alexandre Hamamdjian via B4 Relay Date: Thu, 23 Jul 2026 18:26:28 +0700 Subject: [PATCH 1/2] dt-bindings: display: Add AYANEO Pocket DS lower panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260723-b4-st7703-pocketds-lower-v1-1-e3db246589f4@gmail.com> References: <20260723-b4-st7703-pocketds-lower-v1-0-e3db246589f4@gmail.com> In-Reply-To: <20260723-b4-st7703-pocketds-lower-v1-0-e3db246589f4@gmail.com> To: =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Ondrej Jirman , Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Hamamdjian X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784805987; l=1241; i=azkali.limited@gmail.com; s=20260510; h=from:subject:message-id; bh=K1fR2kK/+LjIqWnZb42cj5ThTI+3DMxTN3z6sB3tVds=; b=cy2lnulZ67N5haOXuifPXUKDuZEmPIv/sPmoyjDawfnUEeURuOCsXpWoa4wsxGb0KgbavAbvw I1ebApNgX4lCGJ/xj4T0zvuNdCCglSO8GNxIz8K+kqHq0WgiC2j0Kud X-Developer-Key: i=azkali.limited@gmail.com; a=ed25519; pk=I0Z0IdCdQJqNGX+FQUnXhrHg950u3cM6Xzz3YT6JOyQ= X-Endpoint-Received: by B4 Relay for azkali.limited@gmail.com/20260510 with auth_id=774 X-Original-From: Alexandre Hamamdjian Reply-To: azkali.limited@gmail.com From: Alexandre Hamamdjian The lower (secondary) 5.0" 1024x768 IPS LCD panel of the AYANEO Pocket DS dual-screen handheld is driven by a Sitronix ST7703 DDIC, as identified by its ST7703 manufacturer command set (SETEXTC 0xB9, SETMIPI 0xBA, SETGIP1/2 0xE9/0xEA). Document its compatible alongside the other ST7703 panels. Signed-off-by: Alexandre Hamamdjian Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml | = 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057= n00900.yaml b/Documentation/devicetree/bindings/display/panel/rocktech,jh05= 7n00900.yaml index ebfc825b8346..91e06d6a6819 100644 --- a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.= yaml +++ b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.= yaml @@ -22,6 +22,8 @@ properties: enum: # Anberic RG353V-V2 5.0" 640x480 TFT LCD panel - anbernic,rg353v-panel-v2 + # AYANEO Pocket DS lower 5.0" 1024x768 IPS LCD panel + - ayaneo,pocket-ds-lower-panel # GameForce Chi 3.5" 640x480 TFT LCD panel - gameforce,chi-panel # Powkiddy RGB10MAX3 5.0" 720x1280 TFT LCD panel --=20 2.55.0 From nobody Fri Jul 24 21:53:02 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9BED237B00C; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784805989; cv=none; b=uqr63bjkt/2nWd4ZN64fNJqx2go90WQAHgfwCmS2VS0JzEcgx6PkUcY9vI4OCliU4t4sH0GHSXlmB3Zt5Bg+qjQ/NBRPVW9qR6TR+4KNgQ4woUl7X4idsFwTTzAbhWD7WbGLuqrJaGxRM0xkDwCPKd+A4/VKMSIOznpPLeXAA5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784805989; c=relaxed/simple; bh=lm66ELHuq2z8z7uHiWA98yfZJFwNUcU87PBnkcdpGlM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pZKsTHiGFg8esz8THK0xE6dISilpKe1oyeVRavqHIRNXEXMuNENeNLEKpbeNmXmwdZ2NvHmATsGykQSlNNjJ1UHfXCZwryTNByCaQvAvC//4SVsjIZDyKAslkV2vG9kRlmzzV95l9lhuc8sbwp+AKx64CpTIfaQh562ZDrAWJJQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vv2Xmxpo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vv2Xmxpo" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4D231C2BCF7; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784805989; bh=lm66ELHuq2z8z7uHiWA98yfZJFwNUcU87PBnkcdpGlM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Vv2XmxpoSptRlFtN6kFlK2xEdz5gwfwXjixo73oOnDTAfWrYei6Xy5m9ayV3/xNEs 3+o/ciPaG67bJQtqCpl8d1mdopKMnsaDR9DUEil7c3bMZkkL53YFbKsdO/qwoh3koW 7CLQPwBp5KJRyiu/R0uV9GFEF+AwOG4iIeRrBfR/nJG1Vm9nx05n55t5LMZn/R99Jw Lzn2uUI1bjopyjTVYow7s9/R7yRSiBoV3aY2c4pbipurkwa4VrrtaE0fxx1Egafzyr C9aGMq6he+6cAdjOJJq2ENLSdFvAJrErVaRyG9Y5gY7p/QSwdyPgoUyiwo2HeNrT4T 08JgPPaVPN1xg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C47AC531D1; Thu, 23 Jul 2026 11:26:29 +0000 (UTC) From: Alexandre Hamamdjian via B4 Relay Date: Thu, 23 Jul 2026 18:26:29 +0700 Subject: [PATCH 2/2] drm/panel: st7703: Add AYANEO Pocket DS Lower Panel Support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260723-b4-st7703-pocketds-lower-v1-2-e3db246589f4@gmail.com> References: <20260723-b4-st7703-pocketds-lower-v1-0-e3db246589f4@gmail.com> In-Reply-To: <20260723-b4-st7703-pocketds-lower-v1-0-e3db246589f4@gmail.com> To: =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Ondrej Jirman , Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Hamamdjian X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784805987; l=6713; i=azkali.limited@gmail.com; s=20260510; h=from:subject:message-id; bh=D6WH87uV9HAlDohMFqrAFrLhQOOjQ9TG9czzjYKkajg=; b=QF6QCbzPLOgtAviXc7QzyfuWqUmwbol4V1Cu1W2dVzeCpbIuvkEamY75qJ//WYX/WWlkPIuDn 54VdjRI6KtACZfmQ6BKCk/gtMIVxeaf6DsYVUU20jNFuuaDmVE9JrXv X-Developer-Key: i=azkali.limited@gmail.com; a=ed25519; pk=I0Z0IdCdQJqNGX+FQUnXhrHg950u3cM6Xzz3YT6JOyQ= X-Endpoint-Received: by B4 Relay for azkali.limited@gmail.com/20260510 with auth_id=774 X-Original-From: Alexandre Hamamdjian Reply-To: azkali.limited@gmail.com From: Alexandre Hamamdjian Add support for the lower (secondary) panel of the AYANEO Pocket DS, a dual-screen QCS8550 (Snapdragon 8 Gen 2) handheld. It is a 5.0" 1024x768 4:3 IPS LCD driven by a Sitronix ST7703 DDIC: every command in the vendor init sequence maps to an ST7703 manufacturer command (SETEXTC, SETMIPI, SETRGBIF, SETSCR, SETPOWER, SETGAMMA, SETGIP1/2), and the SETMIPI and SETRGBIF payloads are near-identical to the already-supported Powkiddy RGB10MAX3. The panel is mounted in portrait (768x1024) and rotated 270 degrees in the device, expressed through the panel rotation property. The SETEXTC unlock password ends in 0x87 rather than the canonical 0x83; this is the value shipped by the vendor firmware and is kept verbatim. Init sequence extracted from the AYANEO Pocket DS BSP kernel, via the ROCKNIX SM8550 port. Signed-off-by: Alexandre Hamamdjian --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 96 +++++++++++++++++++++++= ++++ 1 file changed, 96 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/dr= m/panel/panel-sitronix-st7703.c index 6c348fe28955..bfc03bdf3816 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -47,6 +47,7 @@ #define ST7703_CMD_SETCABC 0xC8 #define ST7703_CMD_SETPANEL 0xCC #define ST7703_CMD_SETGAMMA 0xE0 +#define ST7703_CMD_UNKNOWN_E1 0xE1 #define ST7703_CMD_SETEQ 0xE3 #define ST7703_CMD_SETGIP1 0xE9 #define ST7703_CMD_SETGIP2 0xEA @@ -673,6 +674,100 @@ static const struct st7703_panel_desc gameforcechi_de= sc =3D { .init_sequence =3D gameforcechi_init_sequence, }; =20 +static void ayaneo_pocket_ds_lower_init_sequence(struct mipi_dsi_multi_con= text *dsi_ctx) +{ + /* Init sequence extracted from the AYANEO Pocket DS BSP kernel. */ + + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETEXTC, 0xf1, 0x12, + 0x87); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETDISP, 0x00, 0x01, + 0x78); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETRGBIF, 0x10, 0x10, + 0x28, 0x28, 0x03, 0xff, 0x00, 0x00, 0x00, + 0x00); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETCYC, 0x80); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETBGP, 0x0a, 0x0a); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETVCOM, 0x90, 0x90); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETPOWER_EXT, 0x76, + 0x22, 0xf0, 0x13); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETMIPI, 0x33, 0x81, + 0x05, 0xf9, 0x0e, 0x0e, 0x20, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x25, + 0x00, 0x91, 0x0a, 0x00, 0x00, 0x01, 0x4f, + 0x01, 0x00, 0x00, 0x37); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETVDC, 0x47); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_UNKNOWN_BF, 0x02, 0x10, + 0x00, 0x80, 0x04); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETSCR, 0x73, 0x73, + 0x50, 0x50, 0x00, 0x00, 0x12, 0x73, 0x00); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETPOWER, 0x55, 0x00, + 0x32, 0x32, 0x77, 0xf1, 0xf7, 0xf7, 0xcc, + 0xcc, 0x7f, 0x7f, 0x11, 0x11, 0x00, 0x00, + 0x32); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETIO, 0xb8, 0x00, + 0x0a, 0x10, 0x01, 0x09, 0x00, 0x00, 0xed, + 0xc5, 0x00, 0xa5); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETCABC, 0x10, 0x40, + 0x1e, 0x03); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETPANEL, 0x0b); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETGAMMA, 0x00, 0x00, + 0x00, 0x25, 0x31, 0x3f, 0x26, 0x29, 0x04, + 0x08, 0x0d, 0x0e, 0x12, 0x0f, 0x11, 0x12, + 0x18, 0x00, 0x00, 0x00, 0x25, 0x31, 0x3f, + 0x26, 0x29, 0x04, 0x08, 0x0d, 0x0e, 0x12, + 0x0f, 0x11, 0x12, 0x18); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_UNKNOWN_E1, 0x11, 0x11, + 0x91, 0x00, 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETEQ, 0x07, 0x07, + 0x0b, 0x0b, 0x0b, 0x0b, 0x00, 0x00, 0x00, + 0x00, 0xff, 0x84, 0xc0, 0x10); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETGIP1, 0xc8, 0x10, + 0x04, 0x04, 0x02, 0x80, 0x81, 0x12, 0x31, + 0x23, 0x2f, 0x80, 0x80, 0x81, 0x27, 0x20, + 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x0f, 0x00, 0x00, 0x00, 0x44, 0x00, + 0x88, 0xff, 0x00, 0x22, 0x44, 0x66, 0x88, + 0x88, 0x88, 0x55, 0x11, 0x88, 0xff, 0x11, + 0x33, 0x55, 0x77, 0x88, 0x88, 0x88, 0x00, + 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_SETGIP2, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x11, 0x55, 0xff, 0x88, + 0x77, 0x55, 0x33, 0x11, 0x88, 0x88, 0x88, + 0x00, 0x44, 0xff, 0x88, 0x66, 0x44, 0x22, + 0x00, 0x88, 0x88, 0x88, 0x23, 0x00, 0x00, + 0x00, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x20, 0x80, 0x81, 0x00, + 0x00, 0x00, 0x00); + mipi_dsi_dcs_write_seq_multi(dsi_ctx, ST7703_CMD_UNKNOWN_EF, 0xff, 0xff, + 0x01); +} + +static const struct drm_display_mode ayaneo_pocket_ds_lower_mode =3D { + .hdisplay =3D 768, + .hsync_start =3D 768 + 110, + .hsync_end =3D 768 + 110 + 45, + .htotal =3D 768 + 110 + 45 + 110, + .vdisplay =3D 1024, + .vsync_start =3D 1024 + 18, + .vsync_end =3D 1024 + 18 + 6, + .vtotal =3D 1024 + 18 + 6 + 16, + .clock =3D 65946, + .width_mm =3D 76, + .height_mm =3D 102, +}; + +static const struct st7703_panel_desc ayaneo_pocket_ds_lower_desc =3D { + .mode =3D &ayaneo_pocket_ds_lower_mode, + .lanes =3D 4, + .mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | + MIPI_DSI_CLOCK_NON_CONTINUOUS | MIPI_DSI_MODE_LPM, + .format =3D MIPI_DSI_FMT_RGB888, + .init_sequence =3D ayaneo_pocket_ds_lower_init_sequence, +}; + static int st7703_enable(struct drm_panel *panel) { struct st7703 *ctx =3D panel_to_st7703(panel); @@ -916,6 +1011,7 @@ static void st7703_remove(struct mipi_dsi_device *dsi) =20 static const struct of_device_id st7703_of_match[] =3D { { .compatible =3D "anbernic,rg353v-panel-v2", .data =3D &rg353v2_desc }, + { .compatible =3D "ayaneo,pocket-ds-lower-panel", .data =3D &ayaneo_pocke= t_ds_lower_desc }, { .compatible =3D "gameforce,chi-panel", .data =3D &gameforcechi_desc }, { .compatible =3D "powkiddy,rgb10max3-panel", .data =3D &rgb10max3_panel_= desc }, { .compatible =3D "powkiddy,rgb30-panel", .data =3D &rgb30panel_desc }, --=20 2.55.0