From patchwork Fri Jun 11 16:07:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 458785 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2012DC48BE0 for ; Fri, 11 Jun 2021 16:09:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01DF1611CD for ; Fri, 11 Jun 2021 16:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbhFKQLK (ORCPT ); Fri, 11 Jun 2021 12:11:10 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:42743 "EHLO mail-wr1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhFKQLJ (ORCPT ); Fri, 11 Jun 2021 12:11:09 -0400 Received: by mail-wr1-f45.google.com with SMTP id c5so6637174wrq.9 for ; Fri, 11 Jun 2021 09:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MTRXqohXKaZzkBwBQa5ocnRQNcBifNqP3C6JaHlOkPk=; b=n7irVSsGeFZbRTRSh2CdBHGvDmgNUgu+YxHRjXSQorG84ZkPn+L/6GmSyZ8yzrHF7i I6RSHb0FmV+EF2wskL4dEfC3ENLvcvRmk2CB3TenBNWApNm/6cP3Zht6YjNzcBEh3LSP rRWiRWndb5IJPGgI1s11TloANYRMHkISGciHUHqTrLert0crqrPvJojjF8OzI5H3TrHV Okh/oOx25UuCZI9OdaPdsWw4Y1H9ribkUl3l/P0J9j4HvJ/AQhu+ge/5rNhhNpYzAyVe gjOmqjldQKZfEjnx5WsQxCmtHQl3FFe/KFEQla9cud5yJLAnCaakOtwV1wu5OhrFyO93 X2ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MTRXqohXKaZzkBwBQa5ocnRQNcBifNqP3C6JaHlOkPk=; b=pdtmQeFTUwWIk5o0WpJ7L79Il22VXYUZ+R2WPJGYaYNHrDni4b2Xt+tCoVVPzji9Ct /dYBPSSa+0BHlxv67VLcI/mNSzI/Q7QJbjzxugAP9oF29ZEtl7EyXxkg9FpZonHLYLE5 IRjnTsMlVierh7grIGyoP+fbPqCdV4M+xEgldBmR1yoS37Qv+cv1w5i250aY5u2BxMJ5 CPwbvkt68QCUUG3xp/48V4OwcXPwaWNgFBah1sm225L8CwqoxRDfUtsO0Ivf6/O+ovnb r69q+sXoaOBS44EAoOOgotbMaY+9IwA2msO9YlLUwFAy4zJymUIi+JeoU5HZjKzVz0DN TAlQ== X-Gm-Message-State: AOAM530oVbbwHtZy92iU7Eg3tr70lkDwHeUIaQ3j/T+PXA+BjJYKFPfb ZDUL+f6sOCTbMvR+arHuyA2pdWHfjPAf5A== X-Google-Smtp-Source: ABdhPJwPX5xRFhH28XL8f2/mvFZoYMdPHyEl4YaH+ntSapz2FNJj+x4yhqFMoo6BiGNoDlX9bYE3hg== X-Received: by 2002:a05:6000:1803:: with SMTP id m3mr4869464wrh.257.1623427676761; Fri, 11 Jun 2021 09:07:56 -0700 (PDT) Received: from bismarck.berto.se (p4fca2710.dip0.t-ipconnect.de. [79.202.39.16]) by smtp.googlemail.com with ESMTPSA id f12sm9003345wru.81.2021.06.11.09.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 09:07:56 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v2] rcar-csi2: Add support for Y10 and Y8 Date: Fri, 11 Jun 2021 18:07:34 +0200 Message-Id: <20210611160734.796961-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add support for two new media bus formats, Y10 and Y8. Signed-off-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-csi2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-csi2.c b/drivers/media/platform/rcar-vin/rcar-csi2.c index b87d5453e41881e0..5cb22e0e41f5ada6 100644 --- a/drivers/media/platform/rcar-vin/rcar-csi2.c +++ b/drivers/media/platform/rcar-vin/rcar-csi2.c @@ -320,10 +320,12 @@ static const struct rcar_csi2_format rcar_csi2_formats[] = { { .code = MEDIA_BUS_FMT_YUYV8_1X16, .datatype = 0x1e, .bpp = 16 }, { .code = MEDIA_BUS_FMT_UYVY8_2X8, .datatype = 0x1e, .bpp = 16 }, { .code = MEDIA_BUS_FMT_YUYV10_2X10, .datatype = 0x1e, .bpp = 20 }, + { .code = MEDIA_BUS_FMT_Y10_1X10, .datatype = 0x2b, .bpp = 10 }, { .code = MEDIA_BUS_FMT_SBGGR8_1X8, .datatype = 0x2a, .bpp = 8 }, { .code = MEDIA_BUS_FMT_SGBRG8_1X8, .datatype = 0x2a, .bpp = 8 }, { .code = MEDIA_BUS_FMT_SGRBG8_1X8, .datatype = 0x2a, .bpp = 8 }, { .code = MEDIA_BUS_FMT_SRGGB8_1X8, .datatype = 0x2a, .bpp = 8 }, + { .code = MEDIA_BUS_FMT_Y8_1X8, .datatype = 0x2a, .bpp = 8 }, }; static const struct rcar_csi2_format *rcsi2_code_to_fmt(unsigned int code)