Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1762662pxb; Fri, 5 Feb 2021 00:19:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6hc9Y9qTRXzzhzUZCKRG1SXUokOrTRT7vTkZRau4RPdsJsGLv4ikceuSTGj4ibJIVoOY/ X-Received: by 2002:a50:b765:: with SMTP id g92mr2450253ede.317.1612513179393; Fri, 05 Feb 2021 00:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612513179; cv=none; d=google.com; s=arc-20160816; b=KYh0gEzBfTKbLdl3eaCaPJ7z7eZzRh9C3qRLEDVNJfdbMwdRteSyErv2FOtClAkjPF VwbgSSfzQhNvczdhQvcaO7j/6Pd1R+yalsz+Bg9I5p0Q8RFZKyjDVCwfe6TnA76AbmLC EkJnPSqIyD8Yuz81w6MBlW8hQwDW06Wm7Dy4sNI4xeZ4Ta8PFdjgz1aED5N5qrKnzqF5 gAtEnfJ7dlXgZCpQ34xyEV1ABKB+dcfD6DZP2/OVhxGWETwGdEgc0iKpDXKRWHb7Fsr4 LGHdm8h1F5rCh5mVDqPCNgMXyHr0SARSk9lLI6om1k//Fpe2FH/0bnxBwO82t0TK3exL RVWw== 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=WBTNr34pp9tpTJW826bs/t3nhBEpWejBpkb+0JsdFmI=; b=DMiMRWxIIjho7HByBFO117XLWq/ag1aUGoedq1TAXTYGyvQdbLcVnZhoxrWGowibMA gW1xBWpOBYbzLFemHftOuVdDp+qnLHFEXMtJk7OkkWri5hriNafzi2UjYPaC4KtO8sZ5 12w/j0GSUtFuCZe1pviDsMn/RIozBWmuqwLdR8J1Ah115y0q2CfJNvnKhep7sFt80Srs uXJcwObOHxzxFlO69WfsUSXEb8aAn331+xalV1MU+Gn339+uQbMw9dN20qRR5T2PtYIh yBL8pUJsj+QAd3vkwA/bzmZw3soVyHBwu9+4uF3SOp1X+8MXKbI/yIyofv63jpWqql/1 NRFA== 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 z88si4859383ede.280.2021.02.05.00.19.14; Fri, 05 Feb 2021 00:19:39 -0800 (PST) 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 S231596AbhBEIQv convert rfc822-to-8bit (ORCPT + 99 others); Fri, 5 Feb 2021 03:16:51 -0500 Received: from gloria.sntech.de ([185.11.138.130]:41336 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbhBEIQq (ORCPT ); Fri, 5 Feb 2021 03:16:46 -0500 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7wHL-0000bu-I7; Fri, 05 Feb 2021 09:15:47 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Sebastian Fricke Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, hjc@rock-chips.com, robh+dt@kernel.org, linux-media@vger.kernel.org, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, cmuellner@linux.com Subject: Re: [PATCH 0/6] Support second Image Signal Processor on rk3399 Date: Fri, 05 Feb 2021 09:15:47 +0100 Message-ID: <5271305.e9J7NaK4W3@diego> In-Reply-To: <20210205064335.6c3gs3h3pgvhceku@basti-TUXEDO-Book-XA1510> References: <20210202145632.1263136-1-heiko@sntech.de> <16624224.lhrHg4fidi@diego> <20210205064335.6c3gs3h3pgvhceku@basti-TUXEDO-Book-XA1510> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke: > On 03.02.2021 20:54, Heiko St?bner wrote: > >Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke: > >> I have tested your patch set on my nanoPC-T4, here is a complete log > >> with: > >> - relevant kernel log entries > >> - system information > >> - media ctl output > >> - sysfs entry information > >> > >> https://paste.debian.net/1183874/ > >> > >> Additionally, to your patchset I have applied the following patches: > >> https://github.com/initBasti/Linux_kernel_media_tree_fork/commits/dual_cam_setup > >> > >> And just to not cause confusion the `media_dev` entries come from this > >> unmerged series: > >> https://patchwork.kernel.org/project/linux-media/list/?series=426269 > >> > >> I have actually been able to stream with both of my cameras at the same > >> time using the libcamera cam command. > >> I would like to thank you a lot for making this possible. > > > >Thanks for testing a dual camera setup. On my board I could only test > >the second ISP. And really glad it works for you tool :-) . > > > >Out of curiosity, do you also see that green tint in the images the cameras > >produce? > > Yes, I do. Actually, I currently have two forms of a green tint, on my > OV13850 everything is quite dark and greenish, which is caused by the > missing 3A algorithms. On my OV4689, I have big patches of the image > with bright green color and flickering, I investigated if this is > connected to the 2nd ISP instance, but that doesn't seem to be the case > as I have the same results when I switch the CSI ports of the cameras. > > I have found another issue, while testing I discovered following > issue: > When I start the system with an HDMI monitor connected, then the camera > on the 2nd port doesn't work. This is probably because the RX/TX is > reserved as a TX. > But it made me wonder because if the system has an RX, a TX, and > an RX/TX, why isn't the pure TX used by the monitor and the > cameras take RX and RX/TX? > Or do you think that this is maybe a malfunction of this patch? I don't think it is an issue with this specific series, but still puzzling. I.e. the DPHYs are actually only relevant to the DSI controllers, with TX0 being connected to DSI0 and TX1RX1 being connected to DSI1. So having an hdmi display _in theory_ shouldn't matter at all. Out of curiosity what happens, when you boot without hdmi connected turn on the cameras, connect the hdmi after this, try the cameras again? Heiko > > > > >Thanks > >Heiko > > Greetings, > Sebastian > > > > > > >> If you like to you can add: > >> Tested-by: Sebastian Fricke > >> > >> On 02.02.2021 15:56, Heiko Stuebner wrote: > >> >The rk3399 has two ISPs and right now only the first one is usable. > >> >The second ISP is connected to the TXRX dphy on the soc. > >> > > >> >The phy of ISP1 is only accessible through the DSI controller's > >> >io-memory, so this series adds support for simply using the dsi > >> >controller is a phy if needed. > >> > > >> >That solution is needed at least on rk3399 and rk3288 but no-one > >> >has looked at camera support on rk3288 at all, so right now > >> >only implement the rk3399 specifics. > >> > > >> > > >> >Heiko Stuebner (6): > >> > drm/rockchip: dsi: add own additional pclk handling > >> > dt-bindings: display: rockchip-dsi: add optional #phy-cells property > >> > drm/rockchip: dsi: add ability to work as a phy instead of full dsi > >> > arm64: dts: rockchip: add #phy-cells to mipi-dsi1 > >> > arm64: dts: rockchip: add cif clk-control pinctrl for rk3399 > >> > arm64: dts: rockchip: add isp1 node on rk3399 > >> > > >> > .../display/rockchip/dw_mipi_dsi_rockchip.txt | 1 + > >> > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 39 ++ > >> > drivers/gpu/drm/rockchip/Kconfig | 2 + > >> > .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 342 ++++++++++++++++++ > >> > 4 files changed, 384 insertions(+) > >> > > >> > > > > > > > > >