From patchwork Tue Sep 5 23:31:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 94422 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qdfWJ-00EY1w-TT; Tue, 05 Sep 2023 23:31:44 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240509AbjIEXbo (ORCPT + 1 other); Tue, 5 Sep 2023 19:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbjIEXbo (ORCPT ); Tue, 5 Sep 2023 19:31:44 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F288133; Tue, 5 Sep 2023 16:31:40 -0700 (PDT) Received: from pyrite.hamster-moth.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CBBF3B1; Wed, 6 Sep 2023 01:30:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1693956612; bh=y7wV/evml2IbKlgjDtIjPjWJ7o0VRAvqJGG6hYnSTuE=; h=From:To:Cc:Subject:Date:From; b=uTFvU6VawmuPqKS40ZjlxF6JA9+2QwNdkClz0M/ZlT3VN9gOf24WGNGtA3JZHLwGd NJBq2mOtRd72agvwYP91yi2PtN1pwWt0b+GfrtmspIYHjGpyp5Z2v4lHZfrJxCaDqG bPohtprZE337nA7QHGhOYPV8Dh9C8q5vazLoOg7s= From: Paul Elder To: linux-media@vger.kernel.org Cc: Paul Elder , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , Hans Verkuil , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/3] media: i2c: Add driver for THine THP7312 ISP Date: Wed, 6 Sep 2023 08:31:15 +0900 Message-Id: <20230905233118.183140-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no This patch series adds support for a new driver for the THine THP7312 ISP. It has been tested on an OLogic Pumpkin i350, which has a Mediatek mt8365 SoC, with the THine THSCG101 camera module. Technically the driver itself (and its bindings) have no dependencies, but to run/test this on the i350, a bunch of patches from Baylibre are required. I have these organized in a branch [1], and I have another branch on top which includes the patches from this series [2]. Patch 3 depends on the device tree for the Pumpkin board, which as far as I know will be handled by Baylibre. I expect this patch to go in alone, separately, and at a later date. [1] https://git.uk.ideasonboard.com/THine/linux/src/branch/epaul/v6.5-rc1/base/thine/thp7312 [2] https://git.uk.ideasonboard.com/THine/linux/src/branch/epaul/v6.5-rc1/rc/thine/thp7312 Paul Elder (3): dt-bindings: media: Add THine THP7312 ISP media: i2c: Add driver for THine THP7312 arm64: dts: mediatek: mt8365-pumpkin: Add overlays for thp7312 cameras .../bindings/media/thine,thp7312.yaml | 170 ++ arch/arm64/boot/dts/mediatek/Makefile | 4 + .../mt8365-pumpkin-common-thp7312.dtsi | 23 + .../mt8365-pumpkin-csi0-thp7312-imx258.dtso | 73 + .../mt8365-pumpkin-csi1-thp7312-imx258.dtso | 73 + drivers/media/i2c/Kconfig | 9 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/thp7312.c | 1674 +++++++++++++++++ 8 files changed, 2027 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/thine,thp7312.yaml create mode 100644 arch/arm64/boot/dts/mediatek/mt8365-pumpkin-common-thp7312.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8365-pumpkin-csi0-thp7312-imx258.dtso create mode 100644 arch/arm64/boot/dts/mediatek/mt8365-pumpkin-csi1-thp7312-imx258.dtso create mode 100644 drivers/media/i2c/thp7312.c