From patchwork Thu Oct 13 09:56:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp181965wrs; Thu, 13 Oct 2022 02:57:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+OyF9tXXMjEsJXgSnKHRpFQNp44CheTp0/4Ohv+xOuG6aYvRZzFhJQN02aZqRDqeaz6qd X-Received: by 2002:a17:90a:6c22:b0:20d:3147:e9b9 with SMTP id x31-20020a17090a6c2200b0020d3147e9b9mr10389504pjj.52.1665655063906; Thu, 13 Oct 2022 02:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655063; cv=none; d=google.com; s=arc-20160816; b=wVTkw1gvDovw/IpJp4SMoQMj2DzJq4ozKI3/s21ZiSQaMKA+w2+uA/IKa1FOz0XAR8 gs200sRlwMLWcj8jJTzOzd3FzyaeRyrbQROA1+ggcjMO2vBkCvWVBJbpl55/Qe1BqaDt O1kFB3pLpTPhuaf14hcJ9Z1uaMwrFjjW2qbLi1v/2mMrrz9DlrBS9AIuNQOiFiyPiBN/ 6JERVKxpG51JscdC4WnYWafPrSuXb36HiIXPT7P+Co7aQYqB4iG+Y7rKcJXQ37nIObsq 2bibUrNDk51eTeW+f/4UV7Vpsf17/F1ouJsI+gFZTFECjm//X4Ck9LROm+Obzsp8swpi EP4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=62GXbMiFTt9uaw64RKnyb4grN73sPghENIMkyLwxD+g=; b=MalFDyeH1ibCJ+CrLfvZ0LbS1msyrp/FbimE4qzZ7RAvd9KeUZ7CMDSBGVjrg7VVM7 JXIYZQfLX5ZVgyGUmATQBSiBTWot2XSBxqyNWxYLqX7x5fp2oFSGAKvwCi647BCZQ/LI /mdYJbQ7H6d1OZesLqNARltC/vGdGIeT6m5U/QiVBpjsotKeSIxQ0hAn8YVkcIMENPka vdb4LuDIDTYyYqOnCbPphCmJIoRwK1qyxHp47wsktKKw+YZTHqSdknPLYyuymFbLqm5s qoBp9RDX35fAfqb9BRZfVMSd+Ve9RP96CiE5vpBk/o2f2b94hihV1I+NvdOOGk4XBsCx R6Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=FwtIX81x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=kae4Wv4k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a17090311cd00b00176c779559esi24655923plh.83.2022.10.13.02.57.31; Thu, 13 Oct 2022 02:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=FwtIX81x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=kae4Wv4k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbiJMJ5M (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbiJMJ5I (ORCPT ); Thu, 13 Oct 2022 05:57:08 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5683A188 for ; Thu, 13 Oct 2022 02:57:07 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9130D5C0153; Thu, 13 Oct 2022 05:57:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 13 Oct 2022 05:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655026; x= 1665741426; bh=62GXbMiFTt9uaw64RKnyb4grN73sPghENIMkyLwxD+g=; b=F wtIX81xMp6WHCqpoNNFqN/eMHR3eggHU/XoJWPo/HdG8a90TbH5Z+oaAdOZ45Qpe yoX7sjThT/XrAHYJVPHWb2BCXQ9gn+8VXyInPGlQ819wxP7DrZh4FB4GuDP3n5FE mUhvHhccgwYCq+Mklas9g0750rMvMRC+ZdHbqskEGE3nw9yLbVQPO5kuaVp3slJo fEjaJPfVGVBR5vIwrbpPjsbA0E2K54bUY+mb6d6zeoNIMmITMsjD3gupjtopTkcU 2IRqe7PKcJBByBRfiBRRA4i1JvtOCsXTB0Iojwt5bl6xyU1XifTcrz2uiW9HQbQZ 4mlzPpZhy6wVqFqX708NA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655026; x= 1665741426; bh=62GXbMiFTt9uaw64RKnyb4grN73sPghENIMkyLwxD+g=; b=k ae4Wv4keAAVLuHfUSrV+HO8sMO5VVAnpbdMitqNbgM6OJSXWbxCaxGFEWp59RHhu mNCfrt9zAqYGpU+mQfAQqxwJT91lNJ8qx29/ero2kwxWwQ05bVb56/1IFTdEMgsv Ye5JqubX4+MjF8pg6f/mBdpWzCo8UnXEZOx+otoic7Qs7NG+ap5pCymy0W1bq8YY nxseS2KFDrpMY3LEJN3Z+coIA/QsBLHvDv2lYrEHFqvV/+k6Su/FGHzLLsukNT2q 8rG1SNOnYG3fDaDh08DrnZDDTkjmLqT//4iVAL6Te3CSWaAj3Aq39RPkjtQDQdKF 3Nc05Lx9+ZwGFvoYqa9vA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:06 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:45 +0200 Subject: [PATCH 1/7] media: uapi: add MEDIA_BUS_FMT_RGB565_1X24_CPADHI MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-1-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1172; i=maxime@cerno.tech; h=from:subject:message-id; bh=AXDxrrKOwTJMNRx7phkeG0zUY8vfY+S2ctdZLJRv9aM=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD95O5Xs+oWVNfcLMGSeXvZio5TD5woXsLOVlq2+3Ltvs 3H4uoaOUhUGMi0FWTJElRth8SdypWa872fjmwcxhZQIZwsDFKQATCdvHyLBx8TqxdQ9W24d8ZGz87H ryjP69delOy+/91b/mLjbb8l8Ew/+sHZ3tByRLN3SyvKw8yzDhHrvhvh9WnvtuzlCty/+nLcAMAA== X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746565924192205491?= X-GMAIL-MSGID: =?utf-8?q?1746565924192205491?= From: Chris Morgan Add the MEDIA_BUS_FMT_RGB565_1X24_CPADHI format used by the Geekworm MZP280 panel for the Raspberry Pi. Signed-off-by: Chris Morgan Signed-off-by: Maxime Ripard --- include/uapi/linux/media-bus-format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index ec3323dbb927..b0a945eb7040 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,13 +34,14 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x1022 */ +/* RGB - next is 0x1023 */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE 0x1003 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE 0x1004 #define MEDIA_BUS_FMT_RGB565_1X16 0x1017 +#define MEDIA_BUS_FMT_RGB565_1X24_CPADHI 0x1022 #define MEDIA_BUS_FMT_BGR565_2X8_BE 0x1005 #define MEDIA_BUS_FMT_BGR565_2X8_LE 0x1006 #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007 From patchwork Thu Oct 13 09:56:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182026wrs; Thu, 13 Oct 2022 02:57:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CGsrksmDnVWq1jWm+kaxU7h5rUJVS9R3oic2TIqjyGBUwDjD6/dQQQa+RS3rwY99JwtjM X-Received: by 2002:a17:90b:4b02:b0:20d:3937:7ad with SMTP id lx2-20020a17090b4b0200b0020d393707admr10240704pjb.145.1665655077223; Thu, 13 Oct 2022 02:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655077; cv=none; d=google.com; s=arc-20160816; b=XtNmP7dmi9XVDdKZxXWAeE5AYFiziiTvLy7C51VkR98hXGFCf2GMBbWpM5gq7OGybS tjvUNxnOxEkTSbDiOL2hucUiLQxLFi/wkbvd3ISrUFgMl1YYQNHVEVIcdutadRTVnV8F Rt8MCMbN79Z01WR28lpo+TmwVEEmmaIi/ApGi3vEd0Yqc5Vg4xid2gy3PTAHB0Hpmq33 XPH8Ll/IhFh9aHRn8T318dqklvYlc+dhOsAfhBU/R02ZC+HzylO2FsDEsaL1uD4qZ8EC b0J0FpkHYFZ7PexZOM6ejMs+jO6RU8reauvMHHMFEWRNDJ7cZfz59CVF9hlzoMrUk5AL MWow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=fzePJBfgekN27jwbUeNwvvkHu+S3PaZkEzmettXE8PQ=; b=I9+se888PvIZBmqbzKkskDy6b7zEjsaA6CK25GJlFnXoG0T2+6Z/SS7KIiOSZxWNvT M1vx0mY7RpHB3n1JRmjaijslJzDYDvafFxl/HdF7lOd4m7da70vc1Cri0i+aa522Pd5/ WzBItCEzXY/uGXbEZGfRkuHIe81pP1aqPk4aWRfDntGggx/yO7LbBxixEr97fHj4rAew FpTSV2fSXljfnUKI/ggR8O4BkSb5+PduLrBqnPdaInEg40yCRYw3EWJ7MEz0LrB6I4W8 BZmYEr4PWNdy9GpCchpO4/AwE3t0LDPyy2nT8Gut6fB1H4M2U7LA4BTZAdeWA5biEapj AEeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=J2Dv4Vwa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=l1gocYRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170903200c00b00176e16b0c58si17542861pla.21.2022.10.13.02.57.45; Thu, 13 Oct 2022 02:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=J2Dv4Vwa; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=l1gocYRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiJMJ5R (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiJMJ5J (ORCPT ); Thu, 13 Oct 2022 05:57:09 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16561D317 for ; Thu, 13 Oct 2022 02:57:08 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 561C75C00FD; Thu, 13 Oct 2022 05:57:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 13 Oct 2022 05:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655028; x= 1665741428; bh=fzePJBfgekN27jwbUeNwvvkHu+S3PaZkEzmettXE8PQ=; b=J 2Dv4VwaxOMaD9l8owZN6YIbOqIw6RawDF7G44tAA14XrhpISEb4M8OiWpGy0+RCx hnELAquLcAkCZBjVZvESwRYL0WEunxy8ndOt4r6JBtiULJp6F/zij4Mdo5f49R50 8uycZDqJc7UfoSGcdiGFMJkydpeqArHygm+777FI1xC58xp+QlkP6jMIbAKNigHm ueUL+w11h9MUmti7CS3Oz9Q2J+IA9qGrhjhqY2aLMpJZHFsmm1E6ZCEHnzreLLCg cMOKREBksZ2diBOLCtZIx28zasElbGC0eafTRfa2F30ez0NSvI08Vh79yb5OeKtu fLBYakZnxVsBi9nacI+0g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655028; x= 1665741428; bh=fzePJBfgekN27jwbUeNwvvkHu+S3PaZkEzmettXE8PQ=; b=l 1gocYRau031QGq8M5inb5JYkWB7UCT/5+Rq2xgwe3YPeKjWGEuH34iHkSBhVbtMH QSF6msswuKIFV1ycV7qC1xH2IgEmu5kNjL5AZswbnqivz2h86Ckam8C1jYd+G8B2 wsBXYitYHRM2JyIcrpzg8u6FEJfF39wGKH6yMzvA2vv6l6nfS1hF+vN9x7rDqaMu +uDG2kWk/u2so/I6WXHw/T5nR7G0p7Q9JwBi0WT0OqD/nkqwZw/7ylH8IOVABbUn TH+ZnXAEkg/udahPlRT1z2uHWas/LpSBFvzBA3tVeUDw/bicqdVZKAjf+Q74j49H iCcBxXDRxg3S9IrqoAtuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:07 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:46 +0200 Subject: [PATCH 2/7] media: uapi: add MEDIA_BUS_FMT_BGR666_1X18 MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-2-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1156; i=maxime@cerno.tech; h=from:subject:message-id; bh=/lJlArH50OghiguxY4jwNzQdKqp5YZ0WFt8xFs+ec9s=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD97Gx/+Y+/DXFbfwWZbXVn0oiahdEGg58YTSPNbLe2yv THN+1lHKwiDGxSArpsgSI2y+JO7UrNedbHzzYOawMoEMYeDiFICJxJ5n+B+/P++49bbq13PPXFdhTO e7aTLp5NdrIZFHM8ye1jhVCYQyMvw+Wtf+PpSxyJu7yTaX08+mhvFF0fztMt+UKs4xqqxfwQcA X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746565938173122966?= X-GMAIL-MSGID: =?utf-8?q?1746565938173122966?= From: Joerg Quinten Add the BGR666 format MEDIA_BUS_FMT_BGR666_1X18 supported by the RaspberryPi. Signed-off-by: Joerg Quinten Signed-off-by: Maxime Ripard --- include/uapi/linux/media-bus-format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index b0a945eb7040..2ee0b38c0a71 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,7 +34,7 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x1023 */ +/* RGB - next is 0x1024 */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 @@ -46,6 +46,7 @@ #define MEDIA_BUS_FMT_BGR565_2X8_LE 0x1006 #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007 #define MEDIA_BUS_FMT_RGB565_2X8_LE 0x1008 +#define MEDIA_BUS_FMT_BGR666_1X18 0x1023 #define MEDIA_BUS_FMT_RGB666_1X18 0x1009 #define MEDIA_BUS_FMT_RBG888_1X24 0x100e #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI 0x1015 From patchwork Thu Oct 13 09:56:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182178wrs; Thu, 13 Oct 2022 02:58:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zQh9j/O9gxvFAT0b/dj6zhThjLWkVOx9RHKI5VUV8OpY3SBujSV4ScSBB1OEWbMUQDdp3 X-Received: by 2002:a17:90a:66c9:b0:20a:f78a:77e4 with SMTP id z9-20020a17090a66c900b0020af78a77e4mr10127628pjl.214.1665655116323; Thu, 13 Oct 2022 02:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655116; cv=none; d=google.com; s=arc-20160816; b=WDl99ewJ7K+ZPhm5FX6ovD3//R0QHfQAh/T3tw1pSmH1wrJhDyqpt1lrb5oEiHF715 rZbv9HJkrtL30oDZ5lMRQDn9lEr9UdQy/k3Bw5mxFmMUVi09qmLdnL22F6O/Eo0LUXTP VLiHTorTd2aAg+vMHD7HdTh0qpUXC+yMlKFUgwCka0weEhvKmAKcQ995KS2lkPe3e8PC xkIaTZ1/Of8nW0u/YmcfOOVQXY55BT7fmMVhL5LA4idPgZ6MrigR4kVoRDuDNAoS+8cn LwBwYM12SGbGGwcPnF3VX+jduEdMpLnZ4H5HeYwDXSiV6JnzNPZtdA/BR7bYarkpNr7E SkIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=XGmWWgDw5WokLE0gsZ436DZNtPe1pLT1+ayIAvJ/eP0=; b=d85ErbsJ7YrE/dgJyOg2+9n9F0iDk4nYGvR7+PlPUU7AvxlkEiQ1gD2MAImoukOzG7 rcGPXLUU+TvvObXe+mWdBBN7s0kRfK78cAShaCnN0KsZYzviuhNxsrOHYp36O9WQiIKY PXMaI0F2uTCOg3zTrkuMbzmsCv88GWlHgfxoWe8zaU56cYOxYiVhSYETBOiyRGcaveEr QUCehJmyMcdMg9QwrIyTPjGH8rQEMaeCmAg75vXmVoxUwXCfLtUVogiNX/k3xPHtgP3X B+f0nEo/vdO51VicFPT9Kf4uSotxJI0E8zeDbGFI+Ge6Puj46I2KWFtWLAcUF+UVqTtS BTmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=oLWy60b+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=A9ofJhQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a170902fe8200b0016da027a727si18623601plm.116.2022.10.13.02.58.24; Thu, 13 Oct 2022 02:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=oLWy60b+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=A9ofJhQE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbiJMJ5V (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbiJMJ5L (ORCPT ); Thu, 13 Oct 2022 05:57:11 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10BF1118785 for ; Thu, 13 Oct 2022 02:57:10 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0ED9C5C0153; Thu, 13 Oct 2022 05:57:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 13 Oct 2022 05:57:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655030; x= 1665741430; bh=XGmWWgDw5WokLE0gsZ436DZNtPe1pLT1+ayIAvJ/eP0=; b=o LWy60b+YVF/i5xSdbi4PqitxsVAreY767A313vTjcPx3kfY6aeOunGRdNDY7M6O9 Bh11nEts5BTds8EjhJIDqy7TifbVukZ45KyvwiBdEW13vv4A01BvNtpWKXMqa1CP 4Ir+JynkzOnyW5XQmG+TODRwmOR0RCAPEpmVQAbjcogI76Zqe/pM88ulPNlOWNDI YBpbDR2SoNSGYKHOCl7oEJNtsDPJ1RrxMyzyCmQZPDB7wERnOm5YUDZGHYeL+oaW BoB6nUPMIveZCZ/avHYWl/Do6OcPEapOM6cIKbaH/XdINdJLMWii8krW9RxUIzrb nUg578teF9tRq2p8uJrvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655030; x= 1665741430; bh=XGmWWgDw5WokLE0gsZ436DZNtPe1pLT1+ayIAvJ/eP0=; b=A 9ofJhQE/Jk8iIf+xr23lNd7TBMLZEM8qU3Vk+pP68HsJhEQE/t0OfiydLEZFWdGO gU7sv4ETDxgxNvv27pWU9y25E9HZY83v4iA8XMPMcOFIPOxm7Zq6JTBZQ7N5HZuB KNytf/EZRzL5KuNNoabu2Qwxo5nLwdqq3mjw4UQR/eRmFf3aJux5OqDNz7iOAnfp jxWHLYJf0JmL8bjR58iQ98uZHAbf2kgB9a/w3ZpHGtZurlev2NYajyevM41Sl/RP 5icV9lBrYvs4MIi9XzuXSqvR705stbYCWmNJkPYYI4Jm3jK0Strp/i/8B/bBHstP We7Z0T8GgQlZmlaSaUNzQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:09 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:47 +0200 Subject: [PATCH 3/7] media: uapi: add MEDIA_BUS_FMT_BGR666_1X24_CPADHI MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-3-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1169; i=maxime@cerno.tech; h=from:subject:message-id; bh=0XY6F612UcTptE6B+KNZY6b+mxAKI6UoQCqYByTqpxI=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD94W//708kRG0vrHhkysSateuV96u+Xbw7o2R63uHwvv miXVd5SyMIhxMciKKbLECJsviTs163UnG988mDmsTCBDGLg4BWAi+tYM/+yOSP7X8ulZsjBHyMtNuP nKoqcbr1kk2WcctXsc1Pum6RjD/9QyDRfGs9Vq/290px/yz27udJIpLv99kqd0Y1LVE712PgA= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746565979725336091?= X-GMAIL-MSGID: =?utf-8?q?1746565979725336091?= From: Joerg Quinten Add the BGR666 format MEDIA_BUS_FMT_BGR666_1X24_CPADHI supported by the RaspberryPi. Signed-off-by: Joerg Quinten Signed-off-by: Maxime Ripard --- include/uapi/linux/media-bus-format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 2ee0b38c0a71..d4228d038b54 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,7 +34,7 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x1024 */ +/* RGB - next is 0x1025 */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 @@ -49,6 +49,7 @@ #define MEDIA_BUS_FMT_BGR666_1X18 0x1023 #define MEDIA_BUS_FMT_RGB666_1X18 0x1009 #define MEDIA_BUS_FMT_RBG888_1X24 0x100e +#define MEDIA_BUS_FMT_BGR666_1X24_CPADHI 0x1024 #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI 0x1015 #define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG 0x1010 #define MEDIA_BUS_FMT_BGR888_1X24 0x1013 From patchwork Thu Oct 13 09:56:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2004 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182384wrs; Thu, 13 Oct 2022 02:59:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7x8LBprzJvxMNN5Hf6MjtIYeO8LvoVtPVEf1b7bwE52GRjLFpc3hi7RGIzLMOq2gxCyX26 X-Received: by 2002:a65:6e8c:0:b0:435:144e:445e with SMTP id bm12-20020a656e8c000000b00435144e445emr30837778pgb.96.1665655159030; Thu, 13 Oct 2022 02:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655159; cv=none; d=google.com; s=arc-20160816; b=cPMrOvjYZcqfXijgNJi42xjthPvkijSkzfEqua0YxSFS/rEyjwOb9R+t+mRONFcXrQ crYVthObEwmESOrB3N++4eQpMfGMpRQkDpCHG96I6+LFjqB+lF7OaQRVYMEHEdza1+yC 0SvservYaxXY9ytTqaeJ7MaVJJ2Xe+ISp3JoSEyVwspJ/GfVwOLktoXky2DrpgwnD03i LVD6JR96z6KIdQ4n9RSq5kUU5VoucMx10xTrC48PifN5Zj6mPkOFnTEQPutrLrq1oGNW mb+2Rf63z4lyTLd7UOQkABhv+GUeNxG5g3tZjP4IjNs99+Fmny1GOvgOD7ua2mkfgrBW e2TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=u1MKeK43KUVSNr+zlGBU1hNNtkwDdXrF2GqPW2EMI4Y=; b=EIWVLK4m/rkA/7uPmQlhEti47bgIGwPC49anEN6mvp/0xsWhfqrW8XDpDwNvH3HVXW PtrxMcNo+pK3PKfEXf5po0S281yTo3CFdG2lqYUAvkrZR+Gk9btqz74Fh/SRJuVk6sI7 VnqX7X7tay88tcBFE74JDD7No7fz8vJtkjT1Z8EPCw+sPQo2UpczbuhMZagIvhC2164R kD0BeAZQ8+KN05l8jG5Fj4pVwRqMSj7WFo+YZy3pQyKWK2sHOxGBn2c7Skh2K1gBu510 09NAuEiYKUg0MGheCGiTfakNjnYP8RT1LRwv6nlKbEfCk2H3PVtW+h8BJBgZEtznzlDv r1WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=D+zZ1Fc4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EMKMv+y1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l69-20020a638848000000b00462b85376ecsi11637703pgd.668.2022.10.13.02.59.06; Thu, 13 Oct 2022 02:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=D+zZ1Fc4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EMKMv+y1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbiJMJ51 (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiJMJ5O (ORCPT ); Thu, 13 Oct 2022 05:57:14 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD74F11879C for ; Thu, 13 Oct 2022 02:57:12 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B4F525C00A6; Thu, 13 Oct 2022 05:57:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 13 Oct 2022 05:57:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655031; x= 1665741431; bh=u1MKeK43KUVSNr+zlGBU1hNNtkwDdXrF2GqPW2EMI4Y=; b=D +zZ1Fc4ZBFSXef7tM+bIuF1Seiv0mr6zF4Vqwd243kEn5i/QHGrMLmko0N/1O81a qKpyywvkMls4P2sbY3XEIss+fpgk7mFrpR4lQ+aiwjQA5nzcHODog5S9HXQvTzdb WYFQjxeNT0/YKGYz2rqr8ap5zhDVHdW85IQHYzDt69ZBjbDDHRNI3jSIPTS+VkQq GuhQyd0Ux0pqUFUqHZ6e2+OJZdZ/XefBKs14IJ58l/UpsSnZKueftjyV02r/Qha1 WtR3dz/EJCqFFDQVf5QFYJPchxG8fGsg85r2Xf5jGEq4hMGy8KT5lVls9LU96pph 90titF7qZeGD+4Ki1SFtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655031; x= 1665741431; bh=u1MKeK43KUVSNr+zlGBU1hNNtkwDdXrF2GqPW2EMI4Y=; b=E MKMv+y19UkgmjQjJnz0/C0PQbdYCK3C+HlPyaVhiDPs08xmsw5waorM1KwnWd/LR e9jYpEyWlv/bPFixoX1woa/C4kTr0b4ju8HnqvFY50sNCdHodmquph8rS5afI1Tv 9o6QpFY+05eoGJLzG5C7y+zJXIN4ZvdEmaOB1bkC1TV1PbI8dF5WIR/5U7nCBK3i rh53bQmXgw87eWFGPoOqgTKVXMSmLcyzAQ70HZt+Hcof45JBv+nVD9Pe3KIrZh0s mlLJuPGFERFpe8w4d5JRDoyEyTxnKCO/yePo1A6HOalLJw+vGe6S56vMk6StwdlF 681aMbZ5r2C3h4hbQA7gw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:11 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:48 +0200 Subject: [PATCH 4/7] drm/vc4: dpi: Support RGB565 format MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-4-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1126; i=maxime@cerno.tech; h=from:subject:message-id; bh=ZQPHjwQYtyeJjJI91c4T4N+E7FyRjwcxYJLQyKTsOPQ=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD976HfHdkCzeup1vaZ7V8SR1Sy/mDWblL7pW/ftcJBnx 09+0o5SFQYyLQVZMkSVG2HxJ3KlZrzvZ+ObBzGFlAhnCwMUpABMJTmH4H1lpb6z/XEcsaYrTxLrqPT t2bv3ys2/HlK5JBTJBqmz51gz/g/YYvBDJ2W93qfqS8dKFkyI7Z9eFGQc/qmJ3CuS78YORFQA= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746566024293288860?= X-GMAIL-MSGID: =?utf-8?q?1746566024293288860?= From: Chris Morgan The RGB565 format with padding over 24 bits (MEDIA_BUS_FMT_RGB565_1X24_CPADHI) is supported by the vc4 DPI controller as "mode 3". This is what the Geekworm MZP280 DPI display uses, so let's add support for it in the DPI controller driver. Reviewed-by: Dave Stevenson Signed-off-by: Chris Morgan Signed-off-by: Maxime Ripard Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/vc4/vc4_dpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c index 1f8f44b7b5a5..7da3dd1db50e 100644 --- a/drivers/gpu/drm/vc4/vc4_dpi.c +++ b/drivers/gpu/drm/vc4/vc4_dpi.c @@ -182,6 +182,10 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3, DPI_FORMAT); break; + case MEDIA_BUS_FMT_RGB565_1X24_CPADHI: + dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_2, + DPI_FORMAT); + break; default: DRM_ERROR("Unknown media bus format %d\n", bus_format); From patchwork Thu Oct 13 09:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182383wrs; Thu, 13 Oct 2022 02:59:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VvByMTUOrQgyj86Q6bfCyHm+A7+CUbhZX7ylUFr4CXVT29w85jrtUKP7QpidK3vfnCIvf X-Received: by 2002:a65:6bd3:0:b0:42b:9117:b9d1 with SMTP id e19-20020a656bd3000000b0042b9117b9d1mr29290620pgw.238.1665655158930; Thu, 13 Oct 2022 02:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655158; cv=none; d=google.com; s=arc-20160816; b=Wb2WhiCSbaU9hfXsye+TrGbxKx/rPFDAskseEQ7poZbrKTPx58tzUDduWpcvu5KnWB 0zYC7HoOzt2ZSR8rFvdgYTiT/Uv/LGLfvqr+ryWWatoUj6nfELmpZ5TF4lL+rjhSZ9km QoyY60zCfeiykc1vDImQq43XW6Ps5lyWkB5eruGjpA9Gdz6buBOFlpnGdFN/v4fuNEPF QH6H2+dNvpJlsqLswxVjcxL/HJVOHyVwSdfsZt4MpR14Bu1FqupYWSHMY525gif6Ejxl kcLHiElsUBnwT9/Nup+7w06uqeQUuXQxu2ObeTEXCy9d4GHXga2lv2yoopTmBHmsyUM5 GBQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=c9JIB0N1ry3TbulJgGhW5FL0vfJVlWv5g9q7AUZjWIo=; b=ndjvh9I1bi7s5JhSXITJoDMsvtg5Tv7MjGQoWHrTVi9w6IeV+gpfub/0gLEPQPh2dj biuN5qvcaDSMgp1KJB/04PpsPk4RtUMqrmRzp57d9Jg90/RLZF/IqdLYOjK6Vu+mpDl4 AXtiNeDilLdgQnVWPgpdG2m2DpK95m91vD6bihdU0ctAVgXrmOUSVGf+BgKrM2Xaobho 8vLKDuY+IZMlp+Xbh3It0/HC+Mi63YqyOFH7Gz6bipcwndq3wJRm0hyxuOw/m1LbXipo 0ny9qkxw19Lsg0gnLwy5UdamzTaZS0WcQmFqbl9xQ3wmVMTjIR/cM6ruTRTgTDj+8zA9 4P7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=aNN4L3Wx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="d/0OVpED"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a056a00181100b00565adc8a5f7si4834324pfa.1.2022.10.13.02.59.06; Thu, 13 Oct 2022 02:59:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=aNN4L3Wx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="d/0OVpED"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbiJMJ5a (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbiJMJ5O (ORCPT ); Thu, 13 Oct 2022 05:57:14 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA9B11C6C8 for ; Thu, 13 Oct 2022 02:57:14 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6EE865C015A; Thu, 13 Oct 2022 05:57:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 13 Oct 2022 05:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655033; x= 1665741433; bh=c9JIB0N1ry3TbulJgGhW5FL0vfJVlWv5g9q7AUZjWIo=; b=a NN4L3WxEDdGU/FywYDQ1MClme1PcOXNzlN9aC5XJvCd2iPBt52WDRnmmea/Bw4tb Pjq+CPcIfsGZqQ04GRmTtdkLgKUxSOL2fsxwLqRk69mEE7WB5cSgR1N8ifVZA1dr VfeQ4VPHQmRG3y/ep4yOt1wA3d5PwY3phY0jtfSZd9ILFgHwxB7wf4kimQm/Wx84 nTh0NW8SSrKtGc/vcoK9siOC2HTUkWA0nPWpqS6gtp77toeHOFbPIL8F4AySGQ/U n8GhbVf5DsjeAiO9u4BO8K/JiC2ds9e1ZOH/ungBoeg2oZdn3pq6nqJZLydQG/Nr rEigCVRTMOB/oJFvuts+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655033; x= 1665741433; bh=c9JIB0N1ry3TbulJgGhW5FL0vfJVlWv5g9q7AUZjWIo=; b=d /0OVpEDQ4TNzQNUgQnRMlEeaIoZztjGK5DkZLhsgRkdUrbHrQa6hwSWFiNeemjS7 DICz4nAkECI8Xk8P+PxBoi3XLftlyoCXrxSdklqfr1aQEH8j0Xyd2Oj2ZGztQtk5 wolFOxmuWig42x/+YE5L/1TeuO/zzVpiSq2UKf7ntl4JVIRAEU9cvyRL3jE0Albl VZHQU/txbAY3QuKGotCY8gQcy5LIYL18Tc1YKVfyoaa3heNPwtArFJY+IWiiocOi XaKkzZGpx0ntWjQ5MM4M17eDgArCnL4eSO/BRFa0/EXJ4Wq2MNA6Au23AN2fVEvC Txh61pU6ZsDT6q8/ggr5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:12 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:49 +0200 Subject: [PATCH 5/7] drm/vc4: dpi: Support BGR666 formats MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-5-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1228; i=maxime@cerno.tech; h=from:subject:message-id; bh=1jlV3cpohJvxfKQ50ZdTSBF7QOjvv8tfuT0cBwwSJJw=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD97e+tB6zFene/7a3+cWRQkq6T7c8kj9jwbzsdgwpf2n F7Zmd5SyMIhxMciKKbLECJsviTs163UnG988mDmsTCBDGLg4BWAiW50Z/tnk37Q7ZPRmkYSr+MFADY viU1PWSG/iUrT3Zc+yeZErLsDI8Krnr5OYmNiuKdbuU2azRi988s3q28zfZuEmmZwu3lNs2QE= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746566024296748670?= X-GMAIL-MSGID: =?utf-8?q?1746566024296748670?= From: Joerg Quinten The VC4 DPI output can support multiple BGR666 variants, but they were never added to the driver. Let's add the the support for those formats. Signed-off-by: Joerg Quinten Signed-off-by: Maxime Ripard Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/vc4/vc4_dpi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c index 7da3dd1db50e..ecbe4cd87036 100644 --- a/drivers/gpu/drm/vc4/vc4_dpi.c +++ b/drivers/gpu/drm/vc4/vc4_dpi.c @@ -170,10 +170,16 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) dpi_c |= VC4_SET_FIELD(DPI_ORDER_BGR, DPI_ORDER); break; + case MEDIA_BUS_FMT_BGR666_1X24_CPADHI: + dpi_c |= VC4_SET_FIELD(DPI_ORDER_BGR, DPI_ORDER); + fallthrough; case MEDIA_BUS_FMT_RGB666_1X24_CPADHI: dpi_c |= VC4_SET_FIELD(DPI_FORMAT_18BIT_666_RGB_2, DPI_FORMAT); break; + case MEDIA_BUS_FMT_BGR666_1X18: + dpi_c |= VC4_SET_FIELD(DPI_ORDER_BGR, DPI_ORDER); + fallthrough; case MEDIA_BUS_FMT_RGB666_1X18: dpi_c |= VC4_SET_FIELD(DPI_FORMAT_18BIT_666_RGB_1, DPI_FORMAT); From patchwork Thu Oct 13 09:56:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182387wrs; Thu, 13 Oct 2022 02:59:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CajySPeJqh7HdGwHELZtqpXqEMewX1yCMwK/ddVNHH4gxhJZauJOP/FfLkkkeESzIBLB7 X-Received: by 2002:a17:90a:354:b0:20a:6867:4a2b with SMTP id 20-20020a17090a035400b0020a68674a2bmr10332284pjf.157.1665655160245; Thu, 13 Oct 2022 02:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655160; cv=none; d=google.com; s=arc-20160816; b=s8ZDTuqb6p0xy6HEx86zmbGLemRGIOWlwiaveqmBmI6+Ll2lNl+xH3CPVSAc3cvf6y pAwrZ1ZMjQf/4JWGExNQTVbS4iAlg6TCpzspTwMjSjCyIZ31gpqMLzCgp32MtOt0nb8Q DyRxTZ9LmDtTfAPVL8tKZfP4tFHd9xMEQJE6u8eCLdzl96169XChCglNLn0tcb7r9yVp qGxMJzayHICfpIvR1/2sBiW/BAzBrgSM7d80wA/gDTYtitCkQ0v6NFyWhRQAOfmsJH7E HaUE0FgxZaKYjKPWl+EbPq0Uj5tawRPIo3ezwox7eapbpavzEDmtOpju3BT0XZi64dtj Uarw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=YJIorxZ3pr3ObxvJBlO+ZXthuYIK21XnMOr0CgbO85g=; b=IdXjHnQCqfideA1gOM2cnyqGZwLx/il70dr6F++xmmE09IVzscy3BY4rnY7GD4t5Rr aYd3o2MBE9aKvx9E1UiyYsMGLfRCTGzCwIZFH7y14qdaheArSmU4sdJZ14N5I861Rh17 fB7FGpwJywapGaVtH7NPeFLssYbHS36NkjInTzFwnyXxLRZmpedne0zdZuD2+G3BOMjZ +BVt5sFv4uUIhcgif/oSbg9Ai+JCWsmCeQeDIEfbUua42X4SqSXnmxLHOlJTVkJF7dGC lC7b90mu+qC5fRq69KHoT1gENgXVHvnIToPMeiSIaFAKNdvF4I7ihjMhlNYk2Z+dhEbR nAzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="B/K/5gJo"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=T1qUH36Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a170902820300b00174e6274906si19473017pln.236.2022.10.13.02.59.08; Thu, 13 Oct 2022 02:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="B/K/5gJo"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=T1qUH36Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiJMJ5n (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiJMJ5R (ORCPT ); Thu, 13 Oct 2022 05:57:17 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 219CD11BD82 for ; Thu, 13 Oct 2022 02:57:15 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1CCE35C00A6; Thu, 13 Oct 2022 05:57:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 13 Oct 2022 05:57:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655035; x= 1665741435; bh=YJIorxZ3pr3ObxvJBlO+ZXthuYIK21XnMOr0CgbO85g=; b=B /K/5gJoeHdYAJtm/xI3HB0HpvFmv0vVKfPkgneITXJsMni8HIo5A+w7wXosbENtH WAQJLL+fRTlZ+UhKaRloXgdtAkOu+pgJIj30A+NI+4SZaELN7jwRqx1wEIBN5mfb wBxNzy5L5DwxA0LkJh2Wn5Ff3GwXMQic2L+4xxAlcCKZK1eEYTy+wPGAUEaoQN8G YHwh05xJOWzQimRwDXshAcQ3WP6PmxC0KOqbMBy8sriNhSBWN3OS50vLTNqSioQ7 99LPs5CUyqQnSXn+BEOkSA18C3Rr4n9BxiSV4BzQMdGClT5zX+IQApqJ3ggNzAnx b2UpkEI7xBD2yzqrOMg0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655035; x= 1665741435; bh=YJIorxZ3pr3ObxvJBlO+ZXthuYIK21XnMOr0CgbO85g=; b=T 1qUH36QS6wVuprS6GW2gNoDbfQfxHVde1oSUdy9kPWVP5M0it87NVXIYFE/mDCw0 u7SuYjhXEk/wLXlEXPO0sDShocrKdX4Gcr5cZsPa/57sLqd+cit5/+iGcvul8RPz AUhAgz385uQkSI2GWYAF/bJ3teIwc1MSVVXIxEeu57nRxPgy06syxMVHUq50tnYN Q6UoTi6vLWIHggkyOdjOlQe3fIsdL5sR8GkhSjPXjYXIJOQ44qjdykWJTespPjnC WxvSAED8E6VyALcjsO+wx4lpjO7EX4QhEFuUfTcm0A3ILqRJklpb24y/6PT45R1t AoUvCLe2udomn6UqLM6MA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:14 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:50 +0200 Subject: [PATCH 6/7] drm/vc4: dpi: Change the default DPI format to being 18bpp, not 24. MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-6-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=1264; i=maxime@cerno.tech; h=from:subject:message-id; bh=Wft1tzL7nxwyTwNtu5OqGs7F+nLIDZNQX56ZSduIte0=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD9627pcUfvUmYLe7i/T0yiCHiGsTm4zta7877tj58PNp QTmJjlIWBjEuBlkxRZYYYfMlcadmve5k45sHM4eVCWQIAxenAEzkkirDf/9Yrx4+zXuFmqJZ6oG7GD lcKzcbvJ30z7K679TKtGWbDzD8r/l+dfb2a5lLkvdJ3nPQ3ury3rV2fzJ7qbGAXuOM6Zv6uQE= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746566025280591061?= X-GMAIL-MSGID: =?utf-8?q?1746566025280591061?= From: Dave Stevenson DPI hasn't really been used up until now, so the default has been meaningless. In theory we should be able to pass the desired format for the adjacent bridge chip through, but framework seems to be missing for that. As the main device to use DPI is the VGA666 or Adafruit Kippah, both of which use RGB666, change the default to being RGB666 instead of RGB888. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/vc4/vc4_dpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c index ecbe4cd87036..fdae02760b6d 100644 --- a/drivers/gpu/drm/vc4/vc4_dpi.c +++ b/drivers/gpu/drm/vc4/vc4_dpi.c @@ -150,8 +150,8 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) } drm_connector_list_iter_end(&conn_iter); - /* Default to 24bit if no connector or format found. */ - dpi_c |= VC4_SET_FIELD(DPI_FORMAT_24BIT_888_RGB, DPI_FORMAT); + /* Default to 18bit if no connector or format found. */ + dpi_c |= VC4_SET_FIELD(DPI_FORMAT_18BIT_666_RGB_1, DPI_FORMAT); if (connector) { if (connector->display_info.num_bus_formats) { From patchwork Thu Oct 13 09:56:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 2006 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp182404wrs; Thu, 13 Oct 2022 02:59:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fRJ4GsZI4Tzan4H9EFvUH5lk1ifdZYlnBiwDqBrM3L4ZecnykCHbq79Opa5LFwaThmz/M X-Received: by 2002:a63:ff1b:0:b0:43c:e4ee:e5e0 with SMTP id k27-20020a63ff1b000000b0043ce4eee5e0mr28217437pgi.540.1665655162660; Thu, 13 Oct 2022 02:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665655162; cv=none; d=google.com; s=arc-20160816; b=LfH+sdU8s3KapPrd5+plSJqPBDYCOP1LCkn6bou37BufX+XHsjQtQ8y2xBj2zm6iKY NolFcmysRZZs7FjtHZxpbbgBwCSVXgRyP0v3Nt4VjovzvW+Irmv6GCwCQKaGlwLm8gJv w0RnXT2SJHiDWUbkmg5zVGHTxFJ6Gr9pK9pILwyCFxmI+GoDRnMf9Id97dOpg12id1Fr DcVzRg3NWmgq4jeEG7ZQolZyVJFI66ptkVwAwVASbYKCtG6uwe4StbF6TIX3EAHl+U6I 3dms3YQIhkdVaWTCQ48uMIWsiyBfALDSUIFSryS5JdhFgKIQPWcMcY0WbzlsDgIwo0+V XcSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=MQ066bDfliOyaWbJBRc3Sb4MdlZldWl5D7wyoX+CGZo=; b=GCrZrDjRDZiAjcVBQ8Op5sxZiDVP7PoIfsgsOLA+QD/nrHIWwlkVExxF5BjGEh1Gvs fCzq9rBjdWgW036xdye4j2RxdRpy7H8zJ41m0EwgOmFQeuGOeStUkjVD/tLZmiArIPEw zWPf5btanrr2TSGViQZgnRJn5UltGtGEI/g+cwd8GtXFzE8PPPQoHODwgm7VlHH/r+sy xTjmjis2PeVw5oFfBdemtONVozYXGPCO45tq6ezDRamN/nak0ZNBjpcxaVrgZkPxadj6 lsOqW7pFS9Uj5F5VmaOkFyk5loipedfBv0gPAhgqexDoqePicp/cguZi/524WbxsuWQn larw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=x81AffMZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UKrmIqrH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a63170e000000b00462151e3925si15611213pgl.49.2022.10.13.02.59.10; Thu, 13 Oct 2022 02:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=x81AffMZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UKrmIqrH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbiJMJ5r (ORCPT + 99 others); Thu, 13 Oct 2022 05:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiJMJ52 (ORCPT ); Thu, 13 Oct 2022 05:57:28 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E380120072 for ; Thu, 13 Oct 2022 02:57:18 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CB8C45C00FC; Thu, 13 Oct 2022 05:57:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 13 Oct 2022 05:57:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665655036; x= 1665741436; bh=MQ066bDfliOyaWbJBRc3Sb4MdlZldWl5D7wyoX+CGZo=; b=x 81AffMZCH+CvgwcgB4t5iYYaUopenUM7qCfoFaHlEyZlWqeObBhKMrzyZtd3pi6h /LBHzx4gDs6VRP44xtKrhelGrH35CGlmCWGWXE8yXZnH+aKqMMhX56bQPcHM+jNX gE/YFKyOsNMlP9XkvvR68z4yfLu2jdibvkSLv136GOFSq5o8JGtrJ3+8d5Jo4xVu k39UsJTrTbr1cgvKbNUMjqw6nZkOJPWzUmYiFDSsZVVT/Owz0Sk/r3tTLhk4Ba9U wW3uwmXS1mFOXeiLR77Nj1S5wbPEaRYrAIJBk37mX/qhawgjVmU3JE3djbAuelvP WVoX500KXMYxswItFd7XQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665655036; x= 1665741436; bh=MQ066bDfliOyaWbJBRc3Sb4MdlZldWl5D7wyoX+CGZo=; b=U KrmIqrHP2GXOaMsc5KVl3D/YTRp190ljJV6KkiAwhn77qMs+H5hep7EK2U9sUWWn qBS94O2LkLePEGPCFPOLfQEy7TfUwTgOcIAM3CMZ7MEPTCJHcS8IXIpYX8DYr6ZK rQ6EhnHMatr30ESN2m+g3FZ4hTgJEncb3y2Rg3KobZZA+Al3pjZpijFvIyPPPSEK Oil4L62avqqrBUnoVkUnFlZRdW1brRBVqdAG/TEBRNMgBTquLIplL1DRXMHNhDhk vQvE3x5ctjWYUBL8M93ndOeCrfWMdmKN+guxr46njwzbYQrdstfOthkC6IbIe8n+ Q56JQoRzx2676gD3cebvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 05:57:16 -0400 (EDT) From: Maxime Ripard Date: Thu, 13 Oct 2022 11:56:51 +0200 Subject: [PATCH 7/7] drm/vc4: dpi: Fix format mapping for RGB565 MIME-Version: 1.0 Message-Id: <20221013-rpi-dpi-improvements-v1-7-8a7a96949cb0@cerno.tech> References: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v1-0-8a7a96949cb0@cerno.tech> To: Maxime Ripard , Eric Anholt , Daniel Vetter , David Airlie , Rob Herring , Emma Anholt Cc: dri-devel@lists.freedesktop.org, Joerg Quinten , Chris Morgan , Maxime Ripard , Dave Stevenson , linux-kernel@vger.kernel.org, Laurent Pinchart X-Mailer: b4 0.11.0-dev-7da52 X-Developer-Signature: v=1; a=openpgp-sha256; l=965; i=maxime@cerno.tech; h=from:subject:message-id; bh=Bfa8b+T0qwe2ry6WQDaIcHsRajSivGlVAl/5p4IUcxg=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMnuD96e/7H/+CrrHeVva3cZWF1YfCg5aYbU5YxDujWlSrLr mKpedZSyMIhxMciKKbLECJsviTs163UnG988mDmsTCBDGLg4BWAiXucY/lkV6ZqeCg1OO/Lk4ILN97 OmLitbkCjYk/yQo1639KGS6yZGhr65R1brnv661ffvY5Untyy//O1fMimxlJW582vQYd9VIiwA X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746566027939464021?= X-GMAIL-MSGID: =?utf-8?q?1746566027939464021?= From: Dave Stevenson The mapping is incorrect for RGB565_1X16 as it should be DPI_FORMAT_18BIT_666_RGB_1 instead of DPI_FORMAT_18BIT_666_RGB_3. Fixes: 08302c35b59d ("drm/vc4: Add DPI driver") Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/vc4/vc4_dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c index fdae02760b6d..a7bebfa5d5b0 100644 --- a/drivers/gpu/drm/vc4/vc4_dpi.c +++ b/drivers/gpu/drm/vc4/vc4_dpi.c @@ -185,7 +185,7 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) DPI_FORMAT); break; case MEDIA_BUS_FMT_RGB565_1X16: - dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3, + dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_1, DPI_FORMAT); break; case MEDIA_BUS_FMT_RGB565_1X24_CPADHI: