Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1452860pxb; Fri, 22 Oct 2021 00:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9V2mEK8/aLlCgJq0NFAqG1qYedmTQVwhRw6c6p3smVL/OEaCAKarKOQtmToDxKJHZ2FIc X-Received: by 2002:a17:906:70c5:: with SMTP id g5mr13450847ejk.63.1634889354724; Fri, 22 Oct 2021 00:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634889354; cv=none; d=google.com; s=arc-20160816; b=jqC0TmOpmOu8X6vcpSrmmKzSvXiz3dJm3quvHpnt+itnWf0E0p4GoRzb8xuoD/s1DS WUVnT7SIFsAe8vKJUMkrODygLhghi2EsiRFjlCR7GmI4QambGZf3Q9jDjigP0/sZu8d2 vkPMNjxuJxWc3IyqBvv76aHALJ6sngIUqKUuYOYmF2M7QP1MSJeId1Ma7VSDJGNOPH2p gSkf3Tsfq6eMzEti1oLxXv7EWMVtSwi9cgaQGZ88ujKLuzXIFcKcD4INb4fEZbbhomws LhvOy+PdbYsrRG7+/07QhoWMA+5OPFtE1wTDF+YnRzVHFGqdh3OhYnH9YVZLBg44hdCn KOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=ZMcH5MMdN0JkHHwFYXBim7CkAYyLIy0DLANUtMonjzc=; b=R83eU5WGytCe/NCCWWsBFClGJFWp+z4Cl8bX5wkQW8ghS3Ue6R3irPGMaUeSCWL6gX Uh61QMDWtCcjU+OnmJtgZyHckWGbHxZhnIsR90kLG3r1Q+vuNiW9CMhRwkdXvLV18uTp w9iwdZAuGi/OvO2pDbvIqsGSKMiSnBZbDZhz/04xfEKpkt/PlgRWvGh2FCwWItRZWhUB B/+nlBcyxTyx2NSgRFysI+Uug07ZoqRKpOywPG0m/jxldyXfOcQS/XOrNR0ENJtYCM0M vlN659rE5uF+r77rpE/MkVqQ98eFQWc+VmXzSw8RzIDN4yzL5xUJKKRjNuUxhBJZRX9h nCEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=H4QgZT9x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cr12si671537ejc.352.2021.10.22.00.55.30; Fri, 22 Oct 2021 00:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=H4QgZT9x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232047AbhJVH4A (ORCPT + 99 others); Fri, 22 Oct 2021 03:56:00 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:55648 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbhJVH4A (ORCPT ); Fri, 22 Oct 2021 03:56:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1634889223; x=1666425223; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=y+D2FT5j/LnL8Qi8aQ+TfjOl9CoE/Lrl6PtCtaRjKGg=; b=H4QgZT9xpVpyP0p8zEZg6uuqCmCyyFmMC7tP3lWrIobmsYUDvpBLC90p oX/eeW5NuZYXcIxDajOtkqhlan6nztEY1MMReDzrQoAOqKEQla1EyJRTs idyV/DC/JuGhLw3Foz6nGIjpFZ20sz+ch1YtOLykYWROpmkBdm50QD8Ax Gk8WjGf50Uk4nOZm/vCfGU3YrLnqwfvJQexDOQiGeAdr8AcITYQgqKjXn OotNukvllbFitK0NPAZ34b9vsykZLrrNf+zr6uyWx2oP9VNBiLOvF7D3f vq4ykCS7+DF2KkQnLNPKLHatreIIegq5xyNxqXRT5gk0bvgUUPo+82zGa A==; IronPort-SDR: 9OpEuHiaqkKxHlZNKOn0MdTfU1kpWH1SRmNmjyHpOOr6EKaHUwnMz0Y83XpVwU5RzRzIYUx1Q6 WK+CXusf3hib6LAJ5wB5FpVkZGoigRwbnNlMyIG2nIeTAJdEOI/vw/jqvi/uwPe7YVnXuzR/iF 9TtivW6wG1Q8WSNyYgpC20+19eXUKJJZZ4ukqWa3b53WYuEgogrRwc8KgkrwwGbWNLotS45uBe +rQgBeRW8Ws3kLiQL/Y+L9CmVGUm8Ev2tA4hU4C4oF75BYYDNG+Cw406Nk6oNs5TTZPtk/Ma5B tlaGHQ76YvJUlXdTvwZ6evcB X-IronPort-AV: E=Sophos;i="5.87,172,1631602800"; d="scan'208";a="149141099" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Oct 2021 00:53:42 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 22 Oct 2021 00:53:41 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 22 Oct 2021 00:53:38 -0700 From: Eugen Hristev To: , , , CC: , , , , , Eugen Hristev Subject: [PATCH 00/21] media: atmel: atmel-isc: implement media controller Date: Fri, 22 Oct 2021 10:52:26 +0300 Message-ID: <20211022075247.518880-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is a first attempt to support media controller in the atmel ISC and XISC drivers. This series also includes the csi2dc driver which was previously sent in a separate series: https://www.spinics.net/lists/linux-media/msg181042.html https://www.spinics.net/lists/linux-media/msg181044.html The driver now addresses comments received in latest v5 series from last year. The series includes some minor changes and fixes that improve the isc common code base, like removing the enum frameintervals VIDIOC, fixing bytesperline for planar formats, etc. Many thanks to folks from libcamera who helped a lot with understanding how a media controller driver should behave. Feedback is welcome ! Eugen Hristev (21): MAINTAINERS: add microchip csi2dc dt-bindings: media: atmel: csi2dc: add bindings for microchip csi2dc media: atmel: introduce microchip csi2dc driver MAINTAINERS: atmel-isc: add new file atmel-isc-clk.c media: atmel: atmel-isc: split the clock code into separate source file media: atmel: atmel-isc: replace video device name with module name media: atmel: atmel-sama7g5-isc: fix ispck leftover media: atmel: atmel-isc-base: use streaming status when queueing buffers media: atmel: atmel-isc-base: remove frameintervals VIDIOC media: atmel: atmel-isc-base: report frame sizes as full supported range media: atmel: atmel-isc-base: implement mbus_code support in enumfmt media: atmel: atmel-isc-base: fix bytesperline value for planar formats MAINTAINERS: atmel-isc: add new file atmel-isc-mc.c media: atmel: atmel-isc: implement media controller ARM: dts: at91: sama7g5: add nodes for video capture ARM: configs: at91: sama7: add xisc and csi2dc ARM: multi_v7_defconfig: add atmel video pipeline modules media: atmel: atmel-sama5d2-isc: fix wrong mask in YUYV format check media: atmel: atmel-isc-base: use mutex to lock awb workqueue from streaming media: atmel: atmel-isc-base: add wb debug messages media: atmel: atmel-isc-base: clamp wb gain coefficients .../bindings/media/microchip,csi2dc.yaml | 149 ++++ MAINTAINERS | 9 + arch/arm/boot/dts/sama7g5.dtsi | 49 ++ arch/arm/configs/multi_v7_defconfig | 3 + arch/arm/configs/sama7_defconfig | 2 + drivers/media/platform/atmel/Kconfig | 15 + drivers/media/platform/atmel/Makefile | 3 +- drivers/media/platform/atmel/atmel-isc-base.c | 515 ++++--------- drivers/media/platform/atmel/atmel-isc-clk.c | 316 ++++++++ drivers/media/platform/atmel/atmel-isc-mc.c | 235 ++++++ drivers/media/platform/atmel/atmel-isc.h | 33 + .../media/platform/atmel/atmel-sama5d2-isc.c | 16 +- .../media/platform/atmel/atmel-sama7g5-isc.c | 18 +- .../media/platform/atmel/microchip-csi2dc.c | 700 ++++++++++++++++++ 14 files changed, 1686 insertions(+), 377 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/microchip,csi2dc.yaml create mode 100644 drivers/media/platform/atmel/atmel-isc-clk.c create mode 100644 drivers/media/platform/atmel/atmel-isc-mc.c create mode 100644 drivers/media/platform/atmel/microchip-csi2dc.c -- 2.25.1