Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1704559pxb; Fri, 10 Sep 2021 11:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgaQw+Q07I0lTgMv36tEZGXDkK+Wf1TvTa012OKy98xfzV/js5xli9rxXpOXgIIqRhjjAi X-Received: by 2002:a05:6638:cd:: with SMTP id w13mr5768516jao.42.1631299507424; Fri, 10 Sep 2021 11:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631299507; cv=none; d=google.com; s=arc-20160816; b=bk/AZLLdpbma0eq/m8fTeotkeOaHrtETZRuDsAfhPqAsUazBPtn2SE+MwS9f2xFbAc X0p4DGDLdIdcZwrvVAyjrcjeBclPHqKAQP3XgyneR7q3GyU4ZsnkaQOvtuqYowPwaCTB YdyPLjVBVTojQv+h5+1twaCnqLU9QqmpXC0sqxOOLy/1HJa1h7gH13cxAp0hb16Pc9+F xpSA5e7SJ/j4tDLlOlXAv3VRu9149B0+MuAosgvTHi2qgJHbtc+hahQq8IMaSbWHfVdA mSISKv+xe8q+jbu6ahsgoGHTDOYyaN04DGGr9itVvAgJ7pqMMgICwbeImD9k1pr3NiWA k4/A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xDjflynFa2CL9oTdMKuVDrVaeRxRjkx941vsjm5vIN0=; b=YDzGh59R9l+irn3cm6v2QQDqOpLr/vnpHuUMGPle3aCfqS4DTU3HuDR+wZyhJxGD0z RsCelxwwG88IdN3/0nJotTu6jlxmF4Aa01rQ7obXeTOirOwX2qQKqw2t0Uw+60p+pCRB 1E9a8o74oqINjzbVgnkN7oBx+7t3DIhiBx+QUWtXdprDUb1aO5GPaurYQ7P+N9ERhDEL 6spMlW0gkhtY0e9rfs3HcHrLtw8+nWrKQbUI53frE2p4ZM3Zt75ZL2mDIDQp6ObOOaJk RPk4+lbGio7Dr4+AFYWyfhLMqDR9fY290NkoRGxb1tlulM2ffVn7kiJcvyV3fq4AN49V K3xw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si5690331ile.140.2021.09.10.11.44.56; Fri, 10 Sep 2021 11:45:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233046AbhIJSpR (ORCPT + 99 others); Fri, 10 Sep 2021 14:45:17 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:49367 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhIJSoD (ORCPT ); Fri, 10 Sep 2021 14:44:03 -0400 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 35C4D240006; Fri, 10 Sep 2021 18:42:49 +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-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-staging@lists.linux.dev Cc: Yong Deng , Mauro Carvalho Chehab , Rob Herring , Maxime Ripard , Sakari Ailus , Hans Verkuil , Chen-Yu Tsai , Jernej Skrabec , Paul Kocialkowski , Greg Kroah-Hartman , Helen Koike , Laurent Pinchart , Thomas Petazzoni Subject: [PATCH 22/22] ARM: dts: sun8i: v3s: Add support for the ISP Date: Fri, 10 Sep 2021 20:41:47 +0200 Message-Id: <20210910184147.336618-23-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210910184147.336618-1-paul.kocialkowski@bootlin.com> References: <20210910184147.336618-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-v3s.dtsi | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index ec7fa6459547..139fc03806f6 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -637,6 +637,14 @@ csi0_in_mipi_csi2: endpoint { remote-endpoint = <&mipi_csi2_out_csi0>; }; }; + + port@2 { + reg = <2>; + + csi0_out_isp: endpoint { + remote-endpoint = <&isp_in_csi0>; + }; + }; }; }; @@ -709,5 +717,30 @@ dphy: d-phy@1cb2000 { status = "disabled"; #phy-cells = <0>; }; + + isp: isp@1cb8000 { + compatible = "allwinner,sun8i-v3s-isp"; + reg = <0x01cb8000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI1_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + isp_in_csi0: endpoint { + remote-endpoint = <&csi0_out_isp>; + }; + }; + }; + }; }; }; -- 2.32.0