From patchwork Tue Feb 20 06:18:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13563448 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE4D7C48BC3 for ; Tue, 20 Feb 2024 06:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:MIME-Version:Message-ID:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yF4kJwdVQcvBHZkiTq0jdi7ppof2357GjggtWj5Dcj8=; b=UKhcFsPzPvhLJg VGIWCROLmnXgo2Vf3E7wMXA5GidNrTQ/jrf2JOd5HkTwetoEphd/lPZZYlGUZTgIfg/qI/cxxjWDh DsL9F6DaoHXfjFX3WgS+lXYa6QXx01BQA9sPTWn2BHPOpHnN3Y+bKWrq8UvD9oGvAyYrY+iB0sN3h qSaqbSh1J+1tw14QYKmjb+UxebPbFKLMEaV8/TvX232nASKasvol3wgRg1+YisPAzmDClJS45v3ax UjR+yivCi0obako30EbFvt0ksC6qLJPsyb+K1T0RZBxO5J8u+UylnNnx4O1AN/lEdOMblgtmxRbHp zqWHS1fS9ANt6R1pzthQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSR-0000000DLBC-1kTE; Tue, 20 Feb 2024 06:18:23 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcJSN-0000000DLAO-28Zk for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 06:18:21 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41K6ICAg113559; Tue, 20 Feb 2024 00:18:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708409892; bh=g7Dcxd60svvnzRjWgQoJnsZXePx8JG9B86EVg8kSl3Q=; h=From:Subject:Date:To:CC; b=VIQ850wdpavWpnGXS9T5nm1JZbc8Z7vppzHrhAK7nfa0v0YC/HNgOx3V5xJBqjFIu KCEstYxNqkCZZEMk593TWktaETuODFcr+VeRhkISBqyz/O7MfJS+x12/cIHsMAPxKF 51Ii8jGPHibdneeWuKP0U4yqONkOOiOTNJqDNCEM= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41K6ICOY024613 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 00:18:12 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 20 Feb 2024 00:18:11 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 20 Feb 2024 00:18:11 -0600 Received: from localhost (jluthra.dhcp.ti.com [172.24.227.217]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41K6IBST120842; Tue, 20 Feb 2024 00:18:11 -0600 From: Jai Luthra Subject: [PATCH v2 0/4] arm64: dts: ti: Enable camera for SK-AM62P Date: Tue, 20 Feb 2024 11:48:01 +0530 Message-ID: <20240220-am62p_csi-v2-0-3e71d9945571@ti.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABlE1GUC/22MQQ7CIBAAv9LsWQzQBsWT/zBNA9vV7qGlgYZoG v4u9uxxJpPZIVFkSnBrdoiUOXFYKuhTAzi55UWCx8qgpe6klkq42eh1wMTCGzuqS9UGHdR+jfT k9/F69JUnTluIn2Od1c/+u2QlpMBr670lR76z943PGGboSylfdVr4c58AAAA= To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Davis , Bryan Brattlof , Dhruva Gole CC: , , , Vaishnav Achath , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3007; i=j-luthra@ti.com; h=from:subject:message-id; bh=gUkAM6nsKOBeB/7flYRVfw0/0Og27VQ7Th+iZ9+JC4A=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBl1EQadO1sYYSqtxpuYr7Tz17PTyN8ncMS3FwYd CAxSL4GtsuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZdREGgAKCRBD3pH5JJpx Ra6wD/sFdvVqR4nPdQ8E0UpHJZO6SU2UMr8O3EUuhqF6EUe4OwI+vibOGk2L1bF5VJxfFEUrvum 3DsWh/jVcfsmKnRgIcu4UGkVXTJ+LPioltaKxvavRVlSC+BAjnobupeSC6TdhoUigdC91PN0fg5 MrIsOzYYTf2H2c+gmeJSTWw8/5n++uklIePCnutQe9obZfRBEeC+EcC+YM5xwwDWwpSvaFRzwSk 0lDWYoOYVILIU73oHHiIm1xRMAR7OZE04t9kzVS6OIwQm0FnqARYmIaUViU+syes9cm7kt5SXsB 87DRFF730xLe4IVSaHegGw7tZGCHFON68RsGq+sEdhVCtGFxJLWa1U+X59RHFNSfnVYue5mljeg K65ES5C+uKzKqpszvTF6Ljmjk2Pn/UDAD2yC6agReu3V/GwpPprY4gCxgRTozTyciyvUcSKb7ez Sma4xp4bvp+3RoHRda1hzP966CF/nHIPfWFsnnmQannkuxjLBHdiW4sqJpigPlcr4YY7/Xq692w fQ1iUxyURPeKbBr9BwsKvJSrTBo9Atrm3hshG8/S51dQXWE4INRrlNWdobwHcFRqWtkw7EGJt/Y uolwcMnOQyhxlMfD7NcBGcYqgcvxjRRZn3vE3VdgTsR6XFMTRcXPsLqwLmMuAztqR4P3gDMUfPp lTaVx7DoDDLL6uA== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_221819_735942_07ED4182 X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series enables support for camera sensors using CSI-RX ports on AM62P family of SoCs. Particularly, it enables OV5640 and IMX219 sensors via the 22-pin FFC CSI-RX connector on SK-AM62P [1] using the existing common overlays for SK-AM62* family of boards. Capture test: https://gist.github.com/jailuthra/11f3383ccc0902b9db90d806222597a3 [1]: https://www.ti.com/tool/SK-AM62P-LP Signed-off-by: Jai Luthra --- Changes in v2: - Rebase on top of ti-k3-dts-next - Fix commit description of PATCH 3/4 to specify we are keeping the nodes disabled - Link to v1: https://lore.kernel.org/r/20240201-am62p_csi-v1-0-c83bb9eaeb49@ti.com Range-diff from v1: 1: 646c0b26cee4 ! 1: 61c395edcfd3 arm64: dts: ti: k3-am62p: Fix memory ranges for DMSS @@ Commit message to enable programming the interrupts correctly. Fixes: 29075cc09f43 ("arm64: dts: ti: Introduce AM62P5 family of SoCs") + Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra ## arch/arm64/boot/dts/ti/k3-am62p.dtsi ## 2: 5d6c41db44e3 ! 2: 2720ce668bf9 arm64: dts: ti: k3-am62p: Add DMASS1 for CSI @@ Commit message On AM62P, CSI-RX uses a dedicated BCDMA instance (DMASS1) for transferring captured camera frames to DDR, so enable it. + Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra ## arch/arm64/boot/dts/ti/k3-am62p-main.dtsi ## 3: 2896237c1ad1 ! 3: 9853acf0bc6f arm64: dts: ti: k3-am62p: Add nodes for CSI-RX @@ Commit message AM62P supports image capture via the MIPI CSI-2 protocol, it uses three IPs to achieve this: Cadence DPHY, Cadence CSI-RX, and TI's pixelgrabber - wrapper on top. Enable all of these IPs in the devicetree. + wrapper on top. Add nodes for these IPs in the devicetree, and keep them + disabled here, so these may be enabled by the sensor overlays. + Reviewed-by: Vaishnav Achath Signed-off-by: Jai Luthra ## arch/arm64/boot/dts/ti/k3-am62p-main.dtsi ## 4: 7a82f73e345d < -: ------------ arm64: dts: ti: Enable overlays for SK-AM62P -: ------------ > 4: 1a5e859dec12 arm64: dts: ti: Enable overlays for SK-AM62P --- Jai Luthra (4): arm64: dts: ti: k3-am62p: Fix memory ranges for DMSS arm64: dts: ti: k3-am62p: Add DMASS1 for CSI arm64: dts: ti: k3-am62p: Add nodes for CSI-RX arm64: dts: ti: Enable overlays for SK-AM62P arch/arm64/boot/dts/ti/Makefile | 10 ++++ arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 98 +++++++++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p.dtsi | 2 +- 3 files changed, 109 insertions(+), 1 deletion(-) --- base-commit: 0f9eb43f009091501dd0c68232aa6530ba0e0185 change-id: 20240201-am62p_csi-b69d172406ca Best regards,