From nobody Wed Dec 17 17:30:36 2025 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 66D4414E2FB; Tue, 7 May 2024 09:57:48 +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=1715075868; cv=none; b=Wj4LX0KQqb+ny/iL4HzdURHjPN0n7wmSNIbxl//8yU2lvNt88Ca0wE/4ofDNV9O8JkZzS6jRd1gwhZ5NMx5Xqn32a76PuFQj9LbVh1k27ppFZ6DzyecwYGEhVGJgVkkKIS614ltth3S96oXlmG80hzZiONuIyfm6eIZZB4bSy8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075868; c=relaxed/simple; bh=VxXd1pVTHgFPYpuyHPxoomX3P5xw2HYOOi9eD32Pv50=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OP05LV9x2bC2jc25aQDqSDYuLjRDkgSfX3KpEPiJOV2rYWj2Jhfumugmsi05TBWFGff1IZLrLi3OIl6I8Zbc/838KxCGbpQCfGrO759f7PfW8Jmk56i6POxA+LYjt1CXPaTBjLHprrsVoghL/HUTFkrQPouU4QrY7LG8AupEQj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R/rD0RZp; 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="R/rD0RZp" Received: by smtp.kernel.org (Postfix) with ESMTPS id F2A1FC4DDE1; Tue, 7 May 2024 09:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715075868; bh=VxXd1pVTHgFPYpuyHPxoomX3P5xw2HYOOi9eD32Pv50=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=R/rD0RZpzX60V6mKu6LHwlotXtVKIc0qG5leuoiKU8hHsS4eNft4MnkCIm7mvacgq XsLYauJ+Ajg4W9+Ajm7IGE2f5v8wQpY9WF2vCDGTLa+kE9ZbYiIzI1A8fRo6jyC6xq kzXvRwJ/NfhgnaX7vtOUMgy8eGV5IdUpELduEEzxkN+bZOIuP+iY760uFe5HnHVscI ry2xlKgv4EuxQmfvnSiKwJy1OrtuyNu9vIHimEgqe2QNRLv75UwF45cC3n4HD2K9+S O9urKOHWVrA+GlkQwcye/DKyXc3o2xkgGx99Ion3Z7JD2dXzo5yhi8j6JkpB0DbTSl Bi+d9VKDxHubA== 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 E6C3EC25B78; Tue, 7 May 2024 09:57:47 +0000 (UTC) From: =?utf-8?q?Noralf_Tr=C3=B8nnes_via_B4_Relay?= Date: Tue, 07 May 2024 11:57:30 +0200 Subject: [PATCH 5/5] drm/tiny: panel-mipi-dbi: Support the pixel format property 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: <20240507-panel-mipi-dbi-rgb666-v1-5-6799234afa3e@tronnes.org> References: <20240507-panel-mipi-dbi-rgb666-v1-0-6799234afa3e@tronnes.org> In-Reply-To: <20240507-panel-mipi-dbi-rgb666-v1-0-6799234afa3e@tronnes.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel 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, Kamlesh Gurudasani , Tommaso Merciai , =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715075866; l=2926; i=noralf@tronnes.org; s=20221122; h=from:subject:message-id; bh=VkhLn8bg4+tzwHP3nVSjku8IqF1KyX0WKDV/6VouitQ=; b=bFYvp+sDnQMW8JJzoM3HGr82mP1zBTTSlRLZyXFf66wZVKC4zboe/8gY/RmUDjx662lLgoh5A NqkP6in6eQxCj0jVHXhcQLFjg9uTxVfRuq5AgQHbKTIm7arpKb5w/D2 X-Developer-Key: i=noralf@tronnes.org; a=ed25519; pk=0o9is4iddvvlrY3yON5SVtAbgPnVs0LfQsjfqR2Hvz8= X-Endpoint-Received: by B4 Relay for noralf@tronnes.org/20221122 with auth_id=8 X-Original-From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= Reply-To: noralf@tronnes.org From: Noralf Tr=C3=B8nnes Add support for these pixel format property values: - r5g6b5, RGB565 - b6x2g6x2r6x2, BGR666 BGR666 is presented to userspace as RGB888. The 2 LSB in each color are discarded by the controller. The pixel is sent on the wire using 8 bits per word (little endian) so the controller sees it as BGR. RGB565 is the default if the property is not present. Signed-off-by: Noralf Tr=C3=B8nnes --- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 55 +++++++++++++++++++++++++++++++= +++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/p= anel-mipi-dbi.c index f80a141fcf36..f3aa2abce314 100644 --- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c +++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c @@ -26,6 +26,49 @@ =20 #include