Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2544839lqo; Mon, 20 May 2024 08:57:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRx9zfZg91Cm2avOr81hEZfHqV4KnQOgZ0KkDtq+0Rxj8fxjmlOtqnIh3niE6KukscnzYtsZR7gzeQPs9VEE3FE8ZaWV2b4Gdcd4ZUrg== X-Google-Smtp-Source: AGHT+IF1oNYJxY90RT0EG7p3Coa2X4io3zX0OcTFBy7rSmwHYjadwTrYCfQELm03VAxCI3DYmzG3 X-Received: by 2002:a05:6214:3389:b0:6ab:2008:4545 with SMTP id 6a1803df08f44-6ab20178a48mr27361036d6.31.1716220675010; Mon, 20 May 2024 08:57:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716220674; cv=pass; d=google.com; s=arc-20160816; b=e+hhuTuVIR4z8es2GKYKq82CbIpG4tugBtN7qY9UGTIPa8jOxbRMTxDlgEqqoUSroG 848es3lbACxbm8qYozhYT3nRYF75AqcnTQCXSl3iB+fPj0uhVdUdEBOPJV2lkbSPHkcf TlinTcIplxX56q6K71L+59Q0j5JP/uIf4Syr9J7tXAJZjZQ/6W9czQ2od1TfQiBlSIAw VgN5Ji9tGuowzZmdXQQ6LQkZHDNIWwCCXxueds96Z30IgJtg2KA6mIv/4+gJrYxXcLpG FPwi9mrCBq7Oi8EwTlSPf6R1P3XOJPC8esLPyI5alnhCHx/nAeX+LWeIM6mWmEn1mwYq m2cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M7Y7/7gS6Dc2HXEZbtOy3LpM85xyFrVzzkvL5yrCa90=; fh=98dzbeBS8TWU/3eJFWRp7gy9iLs8HSCsTPpFEsI6/YQ=; b=poFz41GMQ9SqWi3PFEvwOMLTtfb+kvAW3JSSCgr5SIFzU38+qN84s8p5e0iyyLWxZy CSV4iL7Zy1/ZLtTJiuDdT9pz/9eF/WFvfBo/Aej3CDPMNQH49eWHhSpW47EXdchUegyK wHbIvtLL133RA/4BwsXRy21sba01dDnD8Vcwgrmk0YPJYnJljZMJRX19NB7bne7GkR3E BGpasyO3y3TAE3ehgHdpcezFwpQJOvLERNK1mahkhGxISzFQvBnkAC1vwEMlQ6az4q6C QauFMxL6nfa4E4/T7yVuAjsA097KaKQqjdlshHbXBMxe5xrCo7k3BjtnNNHp9OcSJEQt YGhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NSCuewc6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f302239si103450826d6.545.2024.05.20.08.57.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 08:57:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NSCuewc6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B6B001C20E18 for ; Mon, 20 May 2024 15:57:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3EC2137771; Mon, 20 May 2024 15:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NSCuewc6" 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 259354C66; Mon, 20 May 2024 15:57:46 +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=1716220667; cv=none; b=PbWVvz9uErzBryvIE2FsaRKmoO2fU+px0sKF1NBOPmMY43Ut5PRQasReMEHX7gh1MXdn2SLjR7AjO6UzIOqecwPw+nJRpmHSndg42ZGVuw518gQ0Zs2IxPyQgjQQ1VLkPTMjPPuEz6sT/cx7OV98ZZO7HNRHWktCEicUHGFROEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716220667; c=relaxed/simple; bh=dgi6/+GHc+2bDbv40ImoR2hfMHO0yKR3AM+UeaGAIVs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Hgmwks3/NEGn+Yps019Pko270fHtXXea7Hsy3UJ3F6czgA7U5GTYOe7Or6LW8/P1FrDBrgAGLFDFLGlY86fgQgjEZ2jj4egNS8Rh+g7n2jAC/+WFb5CS+6x5Pw71CRwe2Dy9SQpNoeX4ItYf67NqtYjMwV34ts/b/bi4zYL9Y0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NSCuewc6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B15EC2BD10; Mon, 20 May 2024 15:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716220666; bh=dgi6/+GHc+2bDbv40ImoR2hfMHO0yKR3AM+UeaGAIVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NSCuewc6ybxi/KY4sHRJnx4zOXUWf8WNft00cf6zgJ8RdUqhMXalqvGVcMySGWzG5 zlavp9or63s5Ub98qY4S/Xs/JvBVeVYaApH+4ju5y9xKNP6XtcE6fe4BzEpOvgA9tV ITKAzV02QjLJir2h6IYB2fbFcRCDLMQ/GpF2j4rZRz4Ej/WOfMYEd63LfQl9fujdbm x+C55OMbar6VkCb/zdwLj/rHiKOtXsOsTrqzCwMPbYMNwHybtwWV1gzGmLwuMH+8j/ tyUBfxFwOcNvki0mM/yyXDpI58iQWhUv0mU7wS7IkCcRw8jPmgF5GgSqoSQjuG0Wke Aj9k1t5nelv+w== Date: Mon, 20 May 2024 10:57:45 -0500 From: "Rob Herring (Arm)" To: Noralf =?iso-8859-1?Q?Tr=F8nnes?= Cc: Maarten Lankhorst , Daniel Vetter , Maxime Ripard , David Airlie , Jessica Zhang , Sam Ravnborg , linux-kernel@vger.kernel.org, Thomas Zimmermann , Neil Armstrong , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Tommaso Merciai , Kamlesh Gurudasani Subject: Re: [PATCH v2 1/5] dt-bindings: display: panel: mipi-dbi-spi: Add a pixel format property Message-ID: <171622065959.617153.198991768265226176.robh@kernel.org> References: <20240512-panel-mipi-dbi-rgb666-v2-0-49dd266328a0@tronnes.org> <20240512-panel-mipi-dbi-rgb666-v2-1-49dd266328a0@tronnes.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240512-panel-mipi-dbi-rgb666-v2-1-49dd266328a0@tronnes.org> On Sun, 12 May 2024 17:25:38 +0200, Noralf Trønnes wrote: > The MIPI DBI 2.0 specification (2005) lists only two pixel formats for > the Type C Interface (SPI) and that is 3-bits/pixel RGB111 with > 2 options for bit layout. > > For Type A and B (parallel) the following formats are listed: RGB332, > RGB444, RGB565, RGB666 and RGB888 (some have 2 options for the bit layout). > > Many MIPI DBI compatible controllers support all interface types on the > same chip and often the manufacturers have chosen to provide support for > the Type A/B interface pixel formats also on the Type C interface. > > Some chips provide many pixel formats with optional bit layouts over SPI, > but the most common by far are RGB565 and RGB666. So even if the > specification doesn't list these formats for the Type C interface, the > industry has chosen to include them. > > The MIPI DCS specification lists the standard commands that can be sent > over the MIPI DBI interface. The set_address_mode (36h) command has one > bit in the parameter that controls RGB/BGR order: > This bit controls the RGB data latching order transferred from the > peripheral’s frame memory to the display device. > This means that each supported RGB format also has a BGR variant. > > Based on this rationale document the following pixel formats describing > the bit layout going over the wire: > - RGB111 (option 1): x2r1g1b1r1g1b1 (2 pixels per byte) > - BGR111 (option 1): x2b1g1r1b1g1r1 (2 pixels per byte) > - RGB111 (option 2): x1r1g1b1x1r1g1b1 (2 pixels per byte) > - BGR111 (option 2): x1b1g1r1x1b1g1r1 (2 pixels per byte) > - RGB565: r5g6b5 (2 bytes) > - BGR565: b5g6r5 (2 bytes) > - RGB666: r6x2g6x2b6x2 (3 bytes) > - BGR666: b6x2g6x2r6x2 (3 bytes) > (x: don't care) > > v2: > - Use 'default: r5g6b5' (Rob) > > Signed-off-by: Noralf Trønnes > --- > .../bindings/display/panel/panel-mipi-dbi-spi.yaml | 30 ++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > Reviewed-by: Rob Herring (Arm)