From patchwork Thu May 13 14:09:14 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: 439172 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=-16.8 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, URIBL_BLOCKED, 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 9C1A6C43460 for ; Thu, 13 May 2021 14:09:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C4946142C for ; Thu, 13 May 2021 14:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbhEMOKy (ORCPT ); Thu, 13 May 2021 10:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbhEMOKs (ORCPT ); Thu, 13 May 2021 10:10:48 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98941C06174A for ; Thu, 13 May 2021 07:09:35 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id l4so40058813ejc.10 for ; Thu, 13 May 2021 07:09:35 -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=os0gwvcIB8jQ2W2z4OsvUDzmQJYsbFc6OFygRene42k=; b=WpOIvvANYadLOGuUN6UbRaMyFbTIsocQE3yAnIwTfBy4ijhgbZ7N2hKAjJjdMxNXid H8KgrKlpqqDKK63KQ98q9rly556NTTINFIRfE4ZHSI3132WvAVZaQp5QqA++/yuanqFo cshuiSNxGlqxnPBpthgFAVEwTMX/XXnClgiz8Y7lzpp3dZ48lMsBH54YnPOEhc1ggXmD br1+hHruA1HSemmcx/jCuvwGi9ueExJA5FoHEE8pWNhax/Wdc5PpsVq6QSZI/lyvOt2a 4F2IbpfRwCXhJQbuWmRxKjXyAKZI9bAL/HOYHE2F6Cj107Z2W8yQ5gYuGJsON62614Mi qW7g== 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=os0gwvcIB8jQ2W2z4OsvUDzmQJYsbFc6OFygRene42k=; b=HLwFq6CYrRJMVVnvZDTST+/opiy/8GjTsiuloZonSGgaTUyTj4zsUdem3dCqUtTFF5 tg4kdd+odsl77bqFNMD6/hLBjfCsPVq/DMCr4hKjLZlhE22wbwRXnIKTV6vKFZnPlZqU MFp7QUH6FCnnh4ePp3nGy7z77HqA4hwkFgkw9kFJEdtKssOgUmqFM5nCLBIxqoJ9XO6X g/2LNFxUHF06gww1mf4jZIsx3Ou9CK2LXWqo96knFtCNhsTdbDaiPpXSkDNtUMRuWfJX djORY8fnP8h74qCF0wR1bOHrwbOMF2/xu+TfiYTbnC+zqP+9IpS2VxNGpFQuxPFZ9clk sp4Q== X-Gm-Message-State: AOAM533k+dXK+XIqTmAk27DdWrYVKReJZOCJck4ErDDQXHKL8oqGkCqf 0zHPrLdUJO1YQJuqHpVtelN3kg== X-Google-Smtp-Source: ABdhPJyitAYYxib/EakSz8xW3ABcwFb5+NtzOwyup2wyQ44aUwAxpw+BVUh0+c2cRXGgCG2kwsL2BA== X-Received: by 2002:a17:906:fcd6:: with SMTP id qx22mr44080281ejb.529.1620914974261; Thu, 13 May 2021 07:09:34 -0700 (PDT) Received: from bismarck.berto.se (p54ac5521.dip0.t-ipconnect.de. [84.172.85.33]) by smtp.googlemail.com with ESMTPSA id r17sm2402632edt.33.2021.05.13.07.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 07:09:33 -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?= , LUU HOAI Subject: [PATCH v2] media: rcar-csi2: Enable support for r8a77961 Date: Thu, 13 May 2021 16:09:14 +0200 Message-Id: <20210513140914.742677-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 Enable support for M3-W+ (r8a77961). Signed-off-by: Niklas Söderlund Tested-by: LUU HOAI Reviewed-by: Geert Uytterhoeven --- * Changes since v1 - Do not piggy back on the M3-W (r8a7796) quirks as they are different. --- drivers/media/platform/rcar-vin/rcar-csi2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-csi2.c b/drivers/media/platform/rcar-vin/rcar-csi2.c index e06cd512aba207a4..a59113cd46db0380 100644 --- a/drivers/media/platform/rcar-vin/rcar-csi2.c +++ b/drivers/media/platform/rcar-vin/rcar-csi2.c @@ -1112,6 +1112,11 @@ static const struct rcar_csi2_info rcar_csi2_info_r8a7796 = { .num_channels = 4, }; +static const struct rcar_csi2_info rcar_csi2_info_r8a77961 = { + .hsfreqrange = hsfreqrange_m3w_h3es1, + .num_channels = 4, +}; + static const struct rcar_csi2_info rcar_csi2_info_r8a77965 = { .init_phtw = rcsi2_init_phtw_h3_v3h_m3n, .hsfreqrange = hsfreqrange_h3_v3h_m3n, @@ -1164,6 +1169,10 @@ static const struct of_device_id rcar_csi2_of_table[] = { .compatible = "renesas,r8a7796-csi2", .data = &rcar_csi2_info_r8a7796, }, + { + .compatible = "renesas,r8a77961-csi2", + .data = &rcar_csi2_info_r8a77961, + }, { .compatible = "renesas,r8a77965-csi2", .data = &rcar_csi2_info_r8a77965,