From nobody Wed Oct 8 00:04:35 2025 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A540E3271B6; Fri, 4 Jul 2025 15:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751644741; cv=none; b=S8rIvbH40cAJ2Q05SWGLwxQCjBdMcJWKFTGifvPORfbv/qt3GL7yX0X9dGhe6G/DPjkxgdIbrO5mBaN1t4xT2gfxXHM70HJ7c8MOn1bI59tS3fRHppiuuTX+3ggVRHIyQx4PgVxwVeYNl/Nx8KkbhZ7heooDZbFYFCsRUmcjaQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751644741; c=relaxed/simple; bh=0LgRCoQI7qyxCqauFlfqpaKjx6CVpwBGKfu0sdnj6Z4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JBX7T0FsIWeouX5GTQkJdTdD+R5p/3SOoHpFy0Ar2F5WmNEydzSqwnKSj+LC4f81p9mylbaTaa2NVQPUEzGtSDnNdYBsm6L7GNmyouQBOIQrPUy8qGQWT7oIerwtxX8WERVMziQHcT/2UxxS1VEkdDGWAsHHZBaQrqMCOHc3LCI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id D740B1F00050; Fri, 4 Jul 2025 15:58:54 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 58CE2ACA6AC; Fri, 4 Jul 2025 15:51:19 +0000 (UTC) X-Spam-Level: * Received: from localhost.localdomain (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 682FEACA658; Fri, 4 Jul 2025 15:46:40 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Maxime Ripard , Paul Kocialkowski Subject: [PATCH v8 6/9] ARM: dts: sun8i: v3s: Add support for the ISP Date: Fri, 4 Jul 2025 17:46:23 +0200 Message-ID: <20250704154628.3468793-7-paulk@sys-base.io> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250704154628.3468793-1-paulk@sys-base.io> References: <20250704154628.3468793-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Paul Kocialkowski The V3s (and related platforms) come with an instance of the A31 ISP. Even though it is very close to the A31 ISP, it is not exactly register-compatible and a dedicated compatible only is used as a result. Just like most other blocks of the camera pipeline, the ISP uses the common CSI bus, module and ram clock as well as reset. A port connection to the ISP is added to CSI0 for convenience since CSI0 serves for MIPI CSI-2 interface support, which is likely to receive raw data that will need to be processed by the ISP to produce a final image. The interconnects property is used to inherit the proper DMA offset. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts= /allwinner/sun8i-v3s.dtsi index bfe02295f45d..f63534a02706 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi @@ -695,6 +695,14 @@ csi0_in_mipi_csi2: endpoint { remote-endpoint =3D <&mipi_csi2_out_csi0>; }; }; + + port@2 { + reg =3D <2>; + + csi0_out_isp: endpoint { + remote-endpoint =3D <&isp_in_csi0>; + }; + }; }; }; =20 @@ -753,5 +761,32 @@ csi1: camera@1cb4000 { resets =3D <&ccu RST_BUS_CSI>; status =3D "disabled"; }; + + isp: isp@1cb8000 { + compatible =3D "allwinner,sun8i-v3s-isp"; + reg =3D <0x01cb8000 0x1000>; + interrupts =3D ; + clocks =3D <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names =3D "bus", "mod", "ram"; + resets =3D <&ccu RST_BUS_CSI>; + interconnects =3D <&mbus 5>; + interconnect-names =3D "dma-mem"; + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + isp_in_csi0: endpoint { + remote-endpoint =3D <&csi0_out_isp>; + }; + }; + }; + }; }; }; --=20 2.49.0