From patchwork Wed Dec 13 08:29:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 13490538 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="kIBuSOxJ" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAAC493 for ; Wed, 13 Dec 2023 00:29:37 -0800 (PST) Received: from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 07EFC6CF; Wed, 13 Dec 2023 09:28:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1702456130; bh=VcegMsAd9mlCp7PrEpWBobroHhkVFdL/UkztD8NWlYo=; h=From:To:Cc:Subject:Date:From; b=kIBuSOxJisCyI2P8JvhG/yDItnj8j4HrrGqEPZmWGiD+HWSJoU2v2U+BQLiF0X3bE E/0MOHG2nGyzh/YOS65cXak1NlTs3pye3xTqs7miod2cpJYeDR8m2b7OqkUcp4UwIb O7GdWpoa5EOdsoJwiR7F8NO8ft/kWloGaOuDTdvU= From: Jacopo Mondi To: Sakari Ailus , Laurent Pinchart , Dave Stevenson Cc: Jacopo Mondi , linux-media@vger.kernel.org, Kieran Bingham Subject: [PATCH v8 0/2] media: i2c: Add driver for OmniVision OV64A40 Date: Wed, 13 Dec 2023 09:29:17 +0100 Message-ID: <20231213082919.206413-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 v7->v8: - Rebase on media staging tree - s/init_cfg/init_state - Remove 'depends on I2C && VIDEO_DEV' from Kconfig menu, as top level on already depends on those symbols v6->v7: - Make also bus-type and data-lanes mandatory in bindings - Add Lee's signoff v5->v6: - Defined analogue_crop width and height as proper width/heights and subtract 1 when writing X_END/Y_END to registers - Make the DTS property link-frequencies required in bindings v4->v5: * Fix review comments received on RPi pull request (thanks Dave for review) https://github.com/raspberrypi/linux/pull/5708 * Handle runtime_pm in s_ctrl like it's done in CCS * Add support for test patterns * Add 8000x6000 mode * Use decimal numbers in modes definitions v3->v4: * Fix a few additional warnings reported by kernel test robot (which arrived a few minutes after sending v3 out :( v2->v3: * Restore max size of 9248x6944 * Select V4L2_CCI_I2C in Kconfig * Fix unused variable warning * Fix a few minor checkpatch warnings v1->v2: * rebased on sailus master * Use new subdev state helpers * link frequency support (456MHz, 360MHz) * invert vflip bit setting * remove 1280x720 mode as it was broken * expanded VTS range to 24 bits * Reduce max resolution output to 9152x6944. Using full output resolution causes green frames to be produced by the ISP (the raw frames are however correct) * reduce max analogue gain to 16x Add a v4l2 sensor driver for OmniVision OV64A40 ----------------- V4L2 Compliance --------------------------------------------- ./utils/v4l2-compliance/v4l2-compliance -d /dev/v4l-subdev0 v4l2-compliance 1.25.0-5100, 32 bits, 32-bit time_t v4l2-compliance SHA: 8bf6cba8c0ef 2023-10-10 12:50:46 Total for device /dev/v4l-subdev0: 44, Succeeded: 44, Failed: 0, Warnings: 0 ----------------- Build scripts ----------------------------------------------- date: Wed Dec 6 14:52:17 CET 2023 media-tree git repo: git://git.kernel.org/pub/scm/linux/kernel/git/jmondi/linux.git media-tree git branch: jmondi/ov64a40/mainline-v5 media-tree git hash: e7196a51fae1cbf69ca9891711019ddc20ed0a8a v4l-utils git hash: 4a6a3725dd192759c2998311b00440b84c60df57 edid-decode git hash: 5f723267e04deb3aa9610483514a02bcee10d9c2 gcc version: i686-linux-gcc (GCC) 13.1.0 ccache version: ccache version 4.7.5 smatch/sparse repo: git://repo.or.cz/smatch.git smatch version: v0.5.0-8526-gd4827317 sparse version: v0.5.0-8526-gd4827317 build-scripts repo: https://git.linuxtv.org/hverkuil/build-scripts.git build-scripts git hash: 745fc7cf5ba1a1a841374c61e8470852232584c1 host hardware: x86_64 host os: 6.1.0-10-amd64 linux-git-powerpc64: OK linux-git-arm: OK linux-git-arm64: OK linux-git-i686: OK linux-git-x86_64: OK no-acpi.config: OK no-of.config: OK no-pm.config: OK no-pm-sleep.config: OK no-debug-fs.config: OK sparse: WARNINGS: drivers/media/usb/siano/smsusb.c:53:38: warning: array of flexible structures smatch: WARNINGS: drivers/media/i2c/adv7180.c:1514 adv7180_probe() warn: 'client->irq' from request_threaded_irq() not released on lines: 1514. drivers/media/usb/siano/smsusb.c:53:38: warning: array of flexible structures drivers/media/i2c/ov64a40.c:3562 ov64a40_probe() warn: passing zero to 'PTR_ERR' drivers/media/platform/st/sti/hva/hva-hw.c:412 hva_hw_probe() warn: 'hva->clk' from clk_prepare() not released on lines: 412. COMPILE_TEST: OK strcpy/strncpy/strlcpy: OK abi-compliance: ABI OK pahole: ABI OK spec-git: OK kerneldoc: OK ------------------------------------------------------------------------------- The smatch() warning reported here above: drivers/media/i2c/ov64a40.c:3562 ov64a40_probe() warn: passing zero to 'PTR_ERR' has been fixed. Jacopo Mondi (2): media: dt-bindings: Add OmniVision OV64A40 media: i2c: Add driver for OmniVision OV64A40 .../bindings/media/i2c/ovti,ov64a40.yaml | 103 + MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/ov64a40.c | 3690 +++++++++++++++++ 5 files changed, 3812 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov64a40.yaml create mode 100644 drivers/media/i2c/ov64a40.c --- 2.41.0