Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5559329rdb; Wed, 13 Dec 2023 12:09:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMu4iQaytDi7kqIqS3i2N7EMMemL3OD3jrsH1x7NUdQ/sPrT6CIXHOi73GkXRd9QcnXqSt X-Received: by 2002:a05:6a20:daa9:b0:18f:c47b:6d38 with SMTP id iy41-20020a056a20daa900b0018fc47b6d38mr5319252pzb.97.1702498187565; Wed, 13 Dec 2023 12:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702498186; cv=none; d=google.com; s=arc-20160816; b=Cd4qMqc/IzPsmbNzsZ0xGIiUZ9gRuxG7C7vf8Ja2P0ray0Aqqr70b+z9/yJNOGJmmV fItD/pfKOnI/NHxPMeKgQLExCL5jiYTlowOBc0PYoBfqBvKI4C7LctoHP17c5cG0ZN4A qHI/guEvY1IGBQQujBko2/xybSKOsTPoDZF/vuKSI9ES92QUCIKt8vDj8XCcn0kJtmiY IGuq4VNmdGpz2cE5MA7CTPYqkm7VCEUByK2egXoLcIZu8wnCsPZpEFveV2chelQ/Ta4B /wsTNsDbrXKneatdVpk6uB8iiL5oPa0Bd+x5SN/m9xfXzJ+vMext5TG3I36P+1E9IxWj gnrw== 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=E1E00I7csYet+h6d3hCBs5SooYMP4Ja6qAuEnzWpbHw=; fh=u9IfX3H274d1n7wSx96qaHxgEsK4yuI/7iMYtrEFZFs=; b=u3Tp5hhS04/ZK63agk9ux9JYP0cOyVBdWc65mf+qCS0Yd3pb+Ye2rzoCc6JeicHcak gtFkjB9g5z130vNKigMO29Ru4tOIUb1DYOFtV0K4w2l/Yin+t4aFJlSAQMWfvhZQ+hoa thrw9F5QgIameg2Vd57KYuzntZmr/Y+Gf1QyIPsUIdC0ZMnQbDPJBgQtveIjmm9mDzrF yPty5TDzClZvTnXss/BGn7LEqpMbV67B4qX0aJQu2EjOERbbh67UuDA0ea3JQufkoo5B Abi+qseNnsjzwNGbKdN7JtOT/30ZhvMjBoCdQ5ntfa50hldZXDGwlMXNp/hc4yN+kOQm fnmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VYUv45Ld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b1-20020a6567c1000000b005c6ac5b5fd1si9875925pgs.676.2023.12.13.12.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 12:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VYUv45Ld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 12C918031D74; Wed, 13 Dec 2023 12:09:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442230AbjLMUJa (ORCPT + 99 others); Wed, 13 Dec 2023 15:09:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbjLMUJa (ORCPT ); Wed, 13 Dec 2023 15:09:30 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442F2D0; Wed, 13 Dec 2023 12:09:36 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40c32df9174so65428445e9.3; Wed, 13 Dec 2023 12:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702498175; x=1703102975; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E1E00I7csYet+h6d3hCBs5SooYMP4Ja6qAuEnzWpbHw=; b=VYUv45Ldy9gfsQrnarg2tdD2zgLdFl/NH/GkrwAo8VsPOziIIrYMlPiIN5BqMKmyUR 17PFPJId2W313bDp4ttHgymIhV9gyJ6lBY19XhqrF8J+cA6z4FzKSyYZk+TxrTb0gDO7 JtpMLCjuId9D8EwVuL64VA7Aapk3AX0e7X2bx6UCiBWPG/7o85UNYTzvZGXAObzaxGff prmHNm/0GDaRGg39RQS0iixfWY3SgOTHSoGRydkyitUiGnZsKOtJ0b3V+RzzaOdTVBmm R215jnxcnmlsLWkcjarUYrYALc2OJPuvmG8Y8jGNsmeCmKv5EJNkClyzDKJp9KvvkehJ 0qwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702498175; x=1703102975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E1E00I7csYet+h6d3hCBs5SooYMP4Ja6qAuEnzWpbHw=; b=tYLoIr9DfmaYByYs8sXEEI45q/C2bACQwHzMqfRf0Wr3cT2WIRA5oX7UE4x3q3MrJa YcS9yj1ttr5IWVWKZ9a04orXkh9ta07N5aiCn+GlNYLSMWW4SFEIasLiRDw4tuqQp+RN JU+z/F1LZp8j1e+zg0XMQZDovvsbkQgxqF9ZpZSiVYz7Fkr5XR3bdkDKrRIuaKo18GkX xs8ndP0jPoq51aVuYZ//DYFKvP16cwSxP1LpGllEzYL+er34kl9o9/yUabE6etbW7iMM M8kaO7hWElp5WBKkFwEtWPUcaq4MVCxMzoog5STBWqGCdVHj5E/PMSaWXvK7cAgBXlko Bkxw== X-Gm-Message-State: AOJu0Yw6xsIUg3w08Scuem+ZwXvvo1XWSm0cDfkqaZIAgFRDdQ2OlpUY /ZoGqZSUT4mX1iIK1iI9MGPAjtfyzuA= X-Received: by 2002:a7b:c419:0:b0:40b:2a3e:4c9b with SMTP id k25-20020a7bc419000000b0040b2a3e4c9bmr3183581wmi.29.1702498174346; Wed, 13 Dec 2023 12:09:34 -0800 (PST) Received: from archlinux.localnet (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id p8-20020a05600c468800b0040c488e4fb5sm11794611wmo.40.2023.12.13.12.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 12:09:34 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: 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, Paul Kocialkowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Maxime Ripard , Laurent Pinchart , Michael Turquette , Stephen Boyd , Paul Kocialkowski Subject: Re: [PATCH v7 4/7] ARM: dts: sun8i: v3s: Add support for the ISP Date: Wed, 13 Dec 2023 21:09:32 +0100 Message-ID: <3267480.aeNJFYEL58@archlinux> In-Reply-To: <20231122141426.329694-5-paul.kocialkowski@bootlin.com> References: <20231122141426.329694-1-paul.kocialkowski@bootlin.com> <20231122141426.329694-5-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 12:09:44 -0800 (PST) On Wednesday, November 22, 2023 3:14:22 PM CET Paul Kocialkowski wrote: > 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 d57612023aa4..1a1dcd36cba4 100644 > --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi > +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi > @@ -645,6 +645,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>; > + }; > + }; > }; > }; > > @@ -703,5 +711,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 5>; > + interconnect-names = "dma-mem"; Same as in previous patch, interconnects properties are not described in bindings, please update. Best regards, Jernej > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + isp_in_csi0: endpoint { > + remote-endpoint = <&csi0_out_isp>; > + }; > + }; > + }; > + }; > }; > }; >