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: 12316101 X-Patchwork-Delegate: kieran@bingham.xyz 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=ham 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 D9C28C48BD1 for ; Fri, 11 Jun 2021 16:08:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7941611CD for ; Fri, 11 Jun 2021 16:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbhFKQKA (ORCPT ); Fri, 11 Jun 2021 12:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbhFKQJ4 (ORCPT ); Fri, 11 Jun 2021 12:09:56 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FBF9C061574 for ; Fri, 11 Jun 2021 09:07:58 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id z8so6643230wrp.12 for ; Fri, 11 Jun 2021 09:07:58 -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=OFZVaZs2OwFrH0DDu0/BuZltVsUftwo1xiTFgl+jworDDCXAQADjS54IuyK0jovg0H wCvDJlFoooO5QxZpnYOpLAiOOQNe6ZsD+W0nrHPhfRbkdpVpQQCzXMMWiL2Ehlucy5BR d7DP+3l35uWVqi6/5gB8RqVokjFqRVNrTOUfGDTQaswXQRqM0K5fdemRZ2gqed5v5PKk bMpXl/dV35XViH8CTVufLLNj8nQxoh4IOfMZ3Hm1/QOjQGjWOQntLllT56YW7bKnZkkx OjCEGL5Q6lHdFramZBOuEuI0zaWQV0mCw8/PBTepEkCf/+g1QCjUDgoHsTVk4poO36Rh WHBw== X-Gm-Message-State: AOAM532EQSTJPGiJCrDpp88bhC5UAGFquowujjnLnV/jnmQTa+vKtDEn RTZ06lR7Jjaq6BHUk6DkLkAjJA== 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-renesas-soc@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)