Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp537873rwi; Thu, 20 Oct 2022 01:56:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4bPuzL7mkia341aqRElKc6Kcocwbp7umTyErYWtNCG5q0Uzx+tZdYpNWpvE+3h6v5IVefZ X-Received: by 2002:a05:6402:50d4:b0:45d:fe2:45 with SMTP id h20-20020a05640250d400b0045d0fe20045mr11499121edb.221.1666256205515; Thu, 20 Oct 2022 01:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666256205; cv=none; d=google.com; s=arc-20160816; b=T875ENfq910lQ/3nJyhvwTNOpt5yUvsmBaV6gAHv72bW9fzYrxOgwIjirbU2TGXIFa aY/MkR5XBY8OUwnLg6AN8HCOwx9fI0k0R2NgBJPLL9zFLWm4fGKJYiAgy+7ceukHRNh0 x/X82znfMlb1Omls8ePoYUZ23B44K3WAt+XtIxCIS8px0iTzYue+eR6KE4BgoIebg6V3 OsFXPBs7NkucjeNgURjAxwDfAk0UsKPCgc5UVx736ws39OcgEkTV8kLNF5L3lGzi2G/o xyqg3VBO726M+DdcrNE758Nh0a5MBeNOk2C4JyAvChwss4abO+GQlzoBUqwLNB6PXThq CsWA== 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=6BmxZWAyjtGIjNyaQNkRjZBqzpz5NoPfZAD21+NUfLw=; b=suYsRWB5hHKUuErPNoxLtEEQfMYWREzqQws45HmbD+yv+vVqH6tJY43XwPIfPC6dqa F3sQ+DeNv40WEks/KvokAo8oh0XjFi7t45KYkJY+riXShcqDI3VoRZYdbzN58a87mzTV YkCCHrtO+uB9iDWZkXKEnoZqCfbVEXHO5nm4WxNYhoqO6LAO85WNP46cXkzGh+N1/E1m QLj7WeqJKkQkW1OJ5jzjUgWRSLqREhSEitLgjtDY1AFhPoAtPYz4le9KxGUQWfOHDVYl Xr/F1ahvxrm4MqHro02qH9Gs3lYmi0QLPMga3HhGIPVLFqgXL8pV4sXQMSjIWlegd5Hi ebqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=MD89TI7U; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OfhjH82+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wv2-20020a170907080200b0078dc3cb8b48si18397369ejb.625.2022.10.20.01.56.19; Thu, 20 Oct 2022 01:56:45 -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=MD89TI7U; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OfhjH82+; 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 S231129AbiJTIvK (ORCPT + 99 others); Thu, 20 Oct 2022 04:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiJTIvC (ORCPT ); Thu, 20 Oct 2022 04:51:02 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D1E176B9E for ; Thu, 20 Oct 2022 01:51:00 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8DFB7320091A; Thu, 20 Oct 2022 04:50:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 20 Oct 2022 04:50:59 -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=1666255857; x= 1666342257; bh=6BmxZWAyjtGIjNyaQNkRjZBqzpz5NoPfZAD21+NUfLw=; b=M D89TI7Ups78H9gI7Mv+rcE1wiLyWwo9n0oTn7mS7pyanBRF17tZiVvVqnUHRnEVY SpePLxMuH2X9HNccggAWQvkGfv5LTaSwyMe7zw+W11abhxj8L7wNBfcdGKxiTMZ6 /96oYhTzV4moq1srWhDrey4jl6BMD3rDm0HspRtWAGZRffsFfWSGHUDl/G1RQzrN sCblUhydwlvK7MiZ6BaaVWOocTXpm4n/3NBzGZ71LervA/tyyslVJq6bv0CZI4Ye 19ktdZbaWL4glE0dmNohA7GvVIS0Ut9xyA+3LmVfa35IEgc6v7Nl/xH+V63BQMc0 vVh0PRWNAPnlAGzjjHWIg== 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=1666255857; x= 1666342257; bh=6BmxZWAyjtGIjNyaQNkRjZBqzpz5NoPfZAD21+NUfLw=; b=O fhjH82+kiE0rqZzxg6qRwhz8U7hpIn3nz5FPpjwl9dqdSxBlIGN9WiM7rf1K1TWw Kk3wlYKeAR4V4C/ZyeqqqcW3jDPui0kixy0GXz+6ZPHqAjekgH1T7fL6MfpYe92E jzQIK6aAEBo8w0swutlkzonYRaBSEcDg5S/QFBue6OwDzGbZJdbxZVV6Gd9NhnV1 FqJnZLbvc96+Db7UvXWOJnpBxLcd8v/XYCoWTbDkkLQaDXgJZENfixgZfcgcnJlv nx4jUudTrxPLse5rHoVgj/FyF63jYN+kGuYMeDiuvGaJT31FJguCATYhyf6Q4sWJ PZ2LTMEeSDZSWcBNLm+eg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeliedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepudduudfhveejteefgedvffdvvedvjedugedukeejhedtlefhffevtefh jeeltdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Oct 2022 04:50:56 -0400 (EDT) From: Maxime Ripard Date: Thu, 20 Oct 2022 10:30:46 +0200 Subject: [PATCH v2 2/7] media: uapi: add MEDIA_BUS_FMT_BGR666_1X18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221013-rpi-dpi-improvements-v2-2-7691903fb9c8@cerno.tech> References: <20221013-rpi-dpi-improvements-v2-0-7691903fb9c8@cerno.tech> In-Reply-To: <20221013-rpi-dpi-improvements-v2-0-7691903fb9c8@cerno.tech> To: Emma Anholt , Maxime Ripard , Rob Herring , Daniel Vetter , Eric Anholt , David Airlie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Joerg Quinten , Chris Morgan , Dave Stevenson , Laurent Pinchart , Maxime Ripard X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2403; i=maxime@cerno.tech; h=from:subject:message-id; bh=szjBqRq1RvNKILPE+9E7yhnpqEgZLZ5Nn5mxleAdPwg=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMmB7BaflXmDGda4h/+r2b1Yvd1e8KfIDgW3p882zVjs/7K8 nG1xRykLgxgXg6yYIkuMsPmSuFOzXney8c2DmcPKBDKEgYtTACZiHMTw301Rfe/SZ2dbO43erlH0Pt KROEv/eXYh+/OTbUJbvm1SPcjIsPv3zgtrtPk2xP6z6bKtarBW4hKbcuvTtIt9YSb6WgePcgEA 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,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 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 --- .../userspace-api/media/v4l/subdev-formats.rst | 37 ++++++++++++++++++++++ include/uapi/linux/media-bus-format.h | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst index 1e61c02aa788..68f8d7d37984 100644 --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst @@ -912,6 +912,43 @@ The following tables list existing packed RGB formats. - g\ :sub:`5` - g\ :sub:`4` - g\ :sub:`3` + * .. _MEDIA-BUS-FMT-BGR666-1X18: + + - MEDIA_BUS_FMT_BGR666_1X18 + - 0x1023 + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - b\ :sub:`5` + - b\ :sub:`4` + - b\ :sub:`3` + - b\ :sub:`2` + - b\ :sub:`1` + - b\ :sub:`0` + - g\ :sub:`5` + - g\ :sub:`4` + - g\ :sub:`3` + - g\ :sub:`2` + - g\ :sub:`1` + - g\ :sub:`0` + - r\ :sub:`5` + - r\ :sub:`4` + - r\ :sub:`3` + - r\ :sub:`2` + - r\ :sub:`1` + - r\ :sub:`0` * .. _MEDIA-BUS-FMT-RGB666-1X18: - MEDIA_BUS_FMT_RGB666_1X18 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 -- b4 0.10.1