Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2205040imn; Mon, 1 Aug 2022 15:19:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR447WOaSqTGzlA5wbACqgl4pjx0iWawpyZU8n31vZCXGCysjMac/Vh+KqR9xrLaaqaBVGoz X-Received: by 2002:a17:90b:1d12:b0:1f1:8d48:abaa with SMTP id on18-20020a17090b1d1200b001f18d48abaamr22491314pjb.96.1659392393423; Mon, 01 Aug 2022 15:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659392393; cv=none; d=google.com; s=arc-20160816; b=y7SOMMsf1Hbl8/KRyAdXTTjLKe4oJ1kZNHSrsvXHSfcR/Avyt0K7HznmbdKAKdv0o9 afQLNS07gvMcp4gppkqt2qvdahSDfsYUPcAygPoFKwGGyd49Z5pmpFmpm8y66BRPZeot WIf7mr6AFUkeOWt42AatXEgF4t3m4zA1P+PC9yVQ5Ro5X8Kjoh9RSXkswJkCMydQVOZZ d89UsJ+FnXMsHjZnYY/6spPeSg3EM9KqCJKbGUKHy46RKp9qNFuLyLYrqSbe2RYZ+slI byJrz0222734vbKpvN/c0Dt36QUXKA0p0Aferj9npji/PSQb/SfWKKWUVBKjPeDb7Wwg d0cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=V09O+5ezEffrn8F0tbSOYoqyPADwgfisF6oucNwZfRc=; b=EPC1UAtgHBkuHIzq8q/AVnw2m2LtmUHY81d0GCjaFP68H8CvnsBCA9Jt31/9fXql6L duSya5h4CCMdFrE56ynjFoU0Fxtx/GQDvQCjeQTlIrnc6OP4C34HgYifWmiRfPCKAO91 bqESXfE998IJTrFlH+WKEshjiF9GF7+82XeznV9B+n3dguiSHcxZsRLsYP3WFFR0gWpM g24yzn4cqjG63RrsgwnkR125rSA+S6IlKWvmim3x1bHjTap1tFnzSj3mcgyXd0rPrLRI BS/5vJZKjDUvfUkTg7MwCT5jNVT9kfnF6ECK6LnG5y1KoGXwgESvgZB1KGbC7gWREiLp zt7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020aa783cd000000b0052abccd715csi12464546pfn.118.2022.08.01.15.19.38; Mon, 01 Aug 2022 15:19:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234532AbiHAVrc (ORCPT + 99 others); Mon, 1 Aug 2022 17:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbiHAVra (ORCPT ); Mon, 1 Aug 2022 17:47:30 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 006D733A1E; Mon, 1 Aug 2022 14:47:28 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.93,209,1654527600"; d="scan'208";a="129950924" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 02 Aug 2022 06:47:28 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 716E64108B8D; Tue, 2 Aug 2022 06:47:23 +0900 (JST) From: Lad Prabhakar To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Laurent Pinchart , Jacopo Mondi , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Sakari Ailus , Hans Verkuil Cc: Geert Uytterhoeven , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 0/4] Add driver for CSI2 and CRU modules found on Renesas RZ/G2L SoC Date: Mon, 1 Aug 2022 22:47:14 +0100 Message-Id: <20220801214718.16943-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Hi All, This patch series aims to add driver support to CRU module found on Renesas RZ/G2L SoC. The Camera Data Receiving Unit (CRU) consists of a MIPI CSI-2 block and an Image Processing block. The Image Processing block can receive video data received from the external Digital Parallel Interface or MIPI CSI-2 block, and perform appropriate image processing for each. More details: * https://renesas.info/wiki/File:CRU.png * https://www.renesas.com/document/mah/rzg2l-group-rzg2lc-group-users-manual-hardware-0?language=en&r=1467981 Currently the driver has been tested using yavta and Gstreamer on RZ/G2L SMARC EVK using the ov5645 sensor on CSI2 interface only. RFC v2: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20220121010543.31385-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ RFC v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20211207012351.15754-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ Cheers, Prabhakar Lad Prabhakar (4): media: dt-bindings: media: Document RZ/G2L CSI-2 block media: dt-bindings: media: Document RZ/G2L CRU media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver media: platform: Add Renesas RZ/G2L CRU driver .../bindings/media/renesas,rzg2l-cru.yaml | 142 ++++ .../bindings/media/renesas,rzg2l-csi2.yaml | 149 ++++ drivers/media/platform/renesas/Kconfig | 1 + drivers/media/platform/renesas/Makefile | 1 + .../media/platform/renesas/rzg2l-cru/Kconfig | 34 + .../media/platform/renesas/rzg2l-cru/Makefile | 6 + .../platform/renesas/rzg2l-cru/rzg2l-core.c | 371 +++++++++ .../platform/renesas/rzg2l-cru/rzg2l-cru.h | 144 ++++ .../platform/renesas/rzg2l-cru/rzg2l-csi2.c | 702 +++++++++++++++++ .../platform/renesas/rzg2l-cru/rzg2l-csi2.h | 49 ++ .../platform/renesas/rzg2l-cru/rzg2l-dma.c | 728 ++++++++++++++++++ .../platform/renesas/rzg2l-cru/rzg2l-v4l2.c | 354 +++++++++ 12 files changed, 2681 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml create mode 100644 drivers/media/platform/renesas/rzg2l-cru/Kconfig create mode 100644 drivers/media/platform/renesas/rzg2l-cru/Makefile create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-core.c create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.h create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-dma.c create mode 100644 drivers/media/platform/renesas/rzg2l-cru/rzg2l-v4l2.c -- 2.25.1