From patchwork Sat Feb 11 14:55:19 2023 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: 13137128 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29A18C636CC for ; Sat, 11 Feb 2023 14:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbjBKOz2 (ORCPT ); Sat, 11 Feb 2023 09:55:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjBKOz1 (ORCPT ); Sat, 11 Feb 2023 09:55:27 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC791ADDC for ; Sat, 11 Feb 2023 06:55:26 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id k8-20020a05600c1c8800b003dc57ea0dfeso8266568wms.0 for ; Sat, 11 Feb 2023 06:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ooAfMA3EkaTFtYOvUMxb6RDyeWxLI4qGALSciN+MamQ=; b=vw9jNPYWFubfnUngtPwYKanvmmE05dtgbuysNjrzncmjeNMAJYTwz18NTULjDRJR+P /Ah/EhdLKqiPrzj4a0ydPpPbuYoRu2NTpuMiRkygqtd01r5/u5lTCqIFf9kyOApsqXR/ CAlblYQITezOjgu80+TigbFQEYPqo0ilNFwWS0vNNdFOo+OKk9RUpnedQy3ZUiWD3B7t CKsS1pYm8BZ01hittj4zlIOdeJ6wCl1obdEYfEVTFITZFLg+bW+I1h3U3KNkOfsQdqnz j4QHFZ7wYuG3nRVdDFGzHCyzZOAsLMApzZjODMAt3UWj+GoqOa05deqxdOjipffnuxYw oX0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ooAfMA3EkaTFtYOvUMxb6RDyeWxLI4qGALSciN+MamQ=; b=21L4hTaH09BWcZYUHItOT3cH9DnKsldT14wU183w5ozfVgs5iDdsNxKHbh01tacUMq n/WAc40ZaFcyL1SVh+H6Nf9oErF8+aDQwsowordXn8cfRpt964/duh9AwNcGHbg6dAV8 49VCyr6F/3X15+7ZM56A2m2bDZtEtXVFtrd/sC1g6/Dzf9m691pBXR43AvQvGtOeMX+A gUcuWXPd3UxwpISuRXgBDEkxqxU4DOyuR792rYKfWVqaxcQqAEMZ5m3Pqnv7aVYwgl8H VX8qp0x1jEJKfIHGNTVs1XL+QkdB+EFT/e7v43UHnImEGCIdlK7ymAY7wClPgigIQZWc /o/g== X-Gm-Message-State: AO0yUKW1RbUJ/1c9fTWj4LvTal/tx0R+4f5GIrXGkwIPllPt4fSBnY2u iRjPvSdZkiM9t/HdOyuk1u4T9g== X-Google-Smtp-Source: AK7set+XWmFcuT97C0frvUf2Erf6nPlcwlBT9VNBVkcA0NU/+T2bcxCU17P86qmbPrHr1k3D1pJByg== X-Received: by 2002:a05:600c:1817:b0:3df:e54a:4ac5 with SMTP id n23-20020a05600c181700b003dfe54a4ac5mr15257898wmp.27.1676127325100; Sat, 11 Feb 2023 06:55:25 -0800 (PST) Received: from sleipner.berto.se (p54ac5802.dip0.t-ipconnect.de. [84.172.88.2]) by smtp.googlemail.com with ESMTPSA id y15-20020adfee0f000000b002c3efca57e1sm6394275wrn.110.2023.02.11.06.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 06:55:24 -0800 (PST) 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] media: rcar-vin: Add support for R-Car V4H Date: Sat, 11 Feb 2023 15:55:19 +0100 Message-Id: <20230211145519.3821526-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add support for R-Car V4H. The V4H uses the ISP Channel Selector as its only possible video input source. Even tho V4H is a Gen3 board the VIN interface is very close to the one found on the V3U, for this reason mark it as a Gen3 model internally. Signed-off-by: Niklas Söderlund --- drivers/media/platform/renesas/rcar-vin/rcar-core.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/media/platform/renesas/rcar-vin/rcar-core.c b/drivers/media/platform/renesas/rcar-vin/rcar-core.c index 5e53d6b7036c..059795c889ad 100644 --- a/drivers/media/platform/renesas/rcar-vin/rcar-core.c +++ b/drivers/media/platform/renesas/rcar-vin/rcar-core.c @@ -1303,6 +1303,15 @@ static const struct rvin_info rcar_info_r8a779a0 = { .max_height = 4096, }; +static const struct rvin_info rcar_info_r8a779g0 = { + .model = RCAR_GEN3, + .use_mc = true, + .use_isp = true, + .nv12 = true, + .max_width = 4096, + .max_height = 4096, +}; + static const struct of_device_id rvin_of_id_table[] = { { .compatible = "renesas,vin-r8a774a1", @@ -1368,6 +1377,10 @@ static const struct of_device_id rvin_of_id_table[] = { .compatible = "renesas,vin-r8a779a0", .data = &rcar_info_r8a779a0, }, + { + .compatible = "renesas,vin-r8a779g0", + .data = &rcar_info_r8a779g0, + }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, rvin_of_id_table);