Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp346707pxb; Mon, 7 Feb 2022 12:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRwBsSL57/PKxagQhiciDAb15CJPx4iWQ8JiuHpDVvHEjyIiQu8bFcXxKp88mLtyW1sm4E X-Received: by 2002:a05:6a00:1a89:: with SMTP id e9mr1234267pfv.23.1644266951164; Mon, 07 Feb 2022 12:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644266951; cv=none; d=google.com; s=arc-20160816; b=eXvLiZDG9yfcAPUJJ4wLJsQW/CfTqQ+RowD5UVvDk1r7A5f+H0fuebgrHZXVNwSqI4 AY+Tr1cfZuNN5Y14SfCaORjdk37grx1PfTMTQusSC5iZyWUeInP0zWBzqy4YcpsVpVF5 Apr0LvV4xC3eSaLuRETvT5AlPq34FackcwibtpnKB22cbUEZ/ZAKZPo6sclYxAh9kKBr i/jGYsUejc58CPiMsR6ySbGM/ZpJftcKjWyL2CzwTVkUjCvF4m0kwu6zyWmMqx5zytxR CpL7cYNvNtidRdb6SKFWy2CmTEjwOnUd5wYjrUa3XBxNoW3pUuGVIOVGmIFdlt6dpoof Zjjg== 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 :dkim-signature; bh=BGPb89WOSddQ2LNPo4TT2bb8qg/CXX1YR3gv+jnfrGQ=; b=U2l0tOIsBb8iFKxsM5KBvNf2qJhCeuAuUONcNSckjyr4azYlj9s8JlJwZ97dTdlMrQ kfACI0GP5z0KBsY2qaMmWlWUC4JZlR/hoFz4ymuY+ybydurQ7m0Hy4s5pTTyaCyDodlm /WAXjHM+oHhHDMmoW3rueDtKlIZS8scfMVP3APT55qGR6j6Bf+6m1+KPZluiAymu3rmx b+YoL9En+2KiLPFKmQlhTJsYg3vd/27yxnyU+w2OeHV5LhSwbHVCZffI5PbOjzOD2amG DY3dtiW7u0CgVtwrqn/OfDILnAIhS9LWETIJn+3HDs0FylaaWOQ8ymHB37n5sa6tTh1E Ncfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SkjnM26h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g191si10849080pgc.494.2022.02.07.12.48.59; Mon, 07 Feb 2022 12:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SkjnM26h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382216AbiBETAE (ORCPT + 99 others); Sat, 5 Feb 2022 14:00:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381536AbiBES6J (ORCPT ); Sat, 5 Feb 2022 13:58:09 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B89C061348; Sat, 5 Feb 2022 10:56:31 -0800 (PST) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 81D90240016; Sat, 5 Feb 2022 18:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1644087390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BGPb89WOSddQ2LNPo4TT2bb8qg/CXX1YR3gv+jnfrGQ=; b=SkjnM26hqnVzLVfhNi73bxyNlhycmm1+DwP6m6acmwmnS9Z4hHbV2ViEQtm9SigrCRv7Hj CPUro0Ymu2WVuAtN3vp/g2qGqaPyx73L8PAVrMriwMA/kNMA/w6LUuH+l5NOQ0sbaweko1 ExHNJ3nB0qjiZS4LxiGFtc6bqrtY9FlVUCYysIqE5rvIgwOkNugY8crIllZ+ocOMwNa0fR Kfs5QWbEv9NR+YwBI7jU83/GHrtfJ2DJWYCU1UaRknq62SJSU7I9j2+cUxtiGFVtw1EOy+ GZ7F/tzI5bjcCRzywdYMtBMRSTK3gC4oG7xjQUmsyK9XE0teiyEEwK/MMT35SQ== 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 v2 65/66] ARM: dts: sun8i: v3s: Add support for the ISP Date: Sat, 5 Feb 2022 19:54:28 +0100 Message-Id: <20220205185429.2278860-66-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205185429.2278860-1-paul.kocialkowski@bootlin.com> References: <20220205185429.2278860-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-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. While the interconnects property is used to inherit the proper dma ranges, the associated index for the cell is set to 0 since no particular meaning is attached to it. This might need to be changed later on (when identifying a proper mbus channel becomes relevant, e.g. for things like QoS). Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-v3s.dtsi | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index f5f7dfec49f9..c2e65679b9ed 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -638,6 +638,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>; + }; + }; }; }; @@ -696,5 +704,32 @@ csi1: camera@1cb4000 { resets = <&ccu RST_BUS_CSI>; status = "disabled"; }; + + 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>; + interconnects = <&mbus 0>; + interconnect-names = "dma-mem"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + isp_in_csi0: endpoint { + remote-endpoint = <&csi0_out_isp>; + }; + }; + }; + }; }; }; -- 2.34.1