Support second Image Signal Processor on rk3399
Subsystems (7)
Heiko Stuebner
maintainerPATCH 1/6 drm/rockchip: dsi: add own additional pclk handling
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
In a followup patch, we'll need to access the pclk ourself to enable some functionality, so get and store it in the rockchip dw-dsi variant as well.
Clocks are refcounted, so possible cascading enablements are no problem.
--- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +8 -0
@@ -223,6 +223,7 @@ struct dw_mipi_dsi_rockchip {void __iomem *base;struct regmap *grf_regmap; +struct clk *pclk;struct clk *pllref_clk;struct clk *grf_clk;struct clk *phy_cfg_clk;
@@ -1051,6 +1052,13 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev)return ret; } + dsi->pclk =devm_clk_get (dev,"pclk" ); +if (IS_ERR (dsi->pclk)) { + ret =PTR_ERR (dsi->pclk); +DRM_DEV_ERROR (dev,"Unable to get pclk: %d\n" , ret); +return ret; + } + dsi->pllref_clk =devm_clk_get (dev,"ref" );if (IS_ERR (dsi->pllref_clk)) {if (dsi->phy) {
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stuebner
maintainerPATCH 4/6 arm64: dts: rockchip: add #phy-cells to mipi-dsi1
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
The dsi controller includes access to the dphy which might be used not only for dsi output but also for csi input on dsi1, so add the necessary #phy-cells to allow it to be used as phy.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +1 -0
@@ -1865,6 +1865,7 @@ mipi_dsi1: mipi@ff968000 { rockchip,grf = <&grf>; #address-cells = <1>; #size-cells = <0>; + #phy-cells = <0>; status = "disabled"; ports {
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stuebner
maintainerPATCH 3/6 drm/rockchip: dsi: add ability to work as a phy instead of full dsi
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
SoCs like the rk3288 and rk3399 have 3 mipi dphys on them. One is TX- only, one is RX-only and one can be configured to do either TX or RX.
The RX phy is statically connected to the first Image Signal Processor, the TX phy is statically connected to the first DSI controller and the TXRX phy is connected to both the second DSI controller as well as the second ISP.
The RX dphy is controlled externally through registers in the "General Register Files", while the other two are controlled through the "Configuration and Test Interface" inside their DSI controller's io-memory area.
The Rockchip dw-dsi controller already controls these dphys for the TX case in the driver, but when we want to also allow configuration for RX to the ISP from the media subsystem we need to expose phy- functionality instead.
So add a bit of infrastructure to allow the dsi driver to work as a phy and make sure it can be only one or the other at a time.
Similarly as the dsi-controller will be part of the drm-graph when active, add an empty component to the drm-graph when in phy-mode to make the rest of the drm-graph not wait for it.
--- drivers/gpu/drm/rockchip/Kconfig | 2 + .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 334 ++++++++++++++++++ 2 files changed, 336 insertions(+)
drivers/gpu/drm/rockchip/Kconfig +2 -0
@@ -9,6 +9,8 @@ config DRM_ROCKCHIP select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP select DRM_DW_HDMI if ROCKCHIP_DW_HDMI select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI + select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI + select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI select DRM_RGB if ROCKCHIP_RGB select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC help
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +334 -0
417 lines not on this page · raw message
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stuebner
maintainerPATCH 6/6 arm64: dts: rockchip: add isp1 node on rk3399
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
ISP1 is supplied by the tx1rx1 dphy, that is controlled from inside the dsi1 controller, so include the necessary phy-link for it.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +26 -0
@@ -1756,6 +1756,32 @@ isp0_mmu: iommu@ff914000 { rockchip,disable-mmu-reset; }; + isp1: isp1@ff920000 { + compatible = "rockchip,rk3399-cif-isp"; + reg = <0x0 0xff920000 0x0 0x4000>; + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&cru SCLK_ISP1>, + <&cru ACLK_ISP1_WRAPPER>, + <&cru HCLK_ISP1_WRAPPER>; + clock-names = "isp", "aclk", "hclk"; + iommus = <&isp1_mmu>; + phys = <&mipi_dsi1>; + phy-names = "dphy"; + power-domains = <&power RK3399_PD_ISP1>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + }; + isp1_mmu: iommu@ff924000 { compatible = "rockchip,iommu"; reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>;
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stuebner
maintainerPATCH 2/6 dt-bindings: display: rockchip-dsi: add optional #phy-cells property
In reply to Heiko StuebnerFrom: Heiko Stuebner <[email protected]>
The Rockchip DSI controller on some SoCs also controls a bidrectional dphy, which would be connected to an Image Signal Processor as a phy in the rx configuration.
So allow a #phy-cells property for the dsi controller.
--- .../bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt +1 -0
@@ -23,6 +23,7 @@ Required properties: Optional properties: - phys: from general PHY binding: the phandle for the PHY device. - phy-names: Should be "dphy" if phys references an external phy. +- #phy-cells: Defined when used as ISP phy, should be 0. - power-domains: a phandle to mipi dsi power domain node. - resets: list of phandle + reset specifier pairs, as described in [3]. - reset-names: string reset name, must be "apb".
Signature · 7 lines
2.29.2 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stuebner
maintainercover Support second Image Signal Processor on rk3399
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(+)
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stuebner
maintainerPATCH 5/6 arm64: dts: rockchip: add cif clk-control pinctrl for rk3399
From: Heiko Stuebner <[email protected]>
This enables variant a of the clkout signal for camera applications and also the cifclkin pinctrl setting.
--- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +12 -0
@@ -2102,6 +2102,18 @@ clk_32k: clk-32k { }; }; + cif { + cif_clkin: cif-clkin { + rockchip,pins = + <2 RK_PB2 3 &pcfg_pull_none>; + }; + + cif_clkouta: cif-clkouta { + rockchip,pins = + <2 RK_PB3 3 &pcfg_pull_none>; + }; + }; + edp { edp_hpd: edp-hpd { rockchip,pins =
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hey Heiko,
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.
If you like to you can add:
Quoted 20 lines · Heiko Stuebner
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
Quoted 9 lines
.../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(+)Signature · 1 line
2.29.2
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerHi Sebastian,
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 14 lines
Hey Heiko,
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 informationhttps://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
Quoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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?
Thanks
Heiko
Quoted 31 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hey Heiko,
Quoted 25 lines · Heiko Stübner
Hi Sebastian,
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 14 lines
Hey Heiko,
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.
Quoted 5 lines
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?
Quoted 3 lines
Thanks
Heiko
Greetings,
Sebastian
Quoted 26 lines
Quoted 26 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 20 lines · Heiko Stuebner
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
Quoted 11 lines
Quoted 7 lines
Quoted 6 lines
.../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(+)
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerHi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
Quoted 46 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 37 lines
Quoted 33 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stübner
maintainerHi Sebastian,
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
(1)
- boot
- camera
--> works
(2)
- boot
- camera
- hdmi plugged in
- hdmi works
- camera
--> works
(3)
- hdmi plugged in
- boot
- hdmi works
- camera
--> camera doesn't work
(4)
- boot
- hdmi plugged in
- hdmi works
- camera
-> camera works
With a bit of brute-force [0] it seems the camera also works again even with hdmi connected on boot. So conclusion would be that some clock is misbehaving.
Now we'll "only" need to find out which one that is.
Heiko
[0]
Don't disable any clock gates
drivers/clk/clk-gate.c +3 -0
@@ -61,6 +61,9 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable) set ^= enable; +if (!enable) +return ; +if (gate->lock)spin_lock_irqsave (gate->lock, flags);else
Am Freitag, 5. Februar 2021, 09:15:47 CET schrieb Heiko Stübner:
Quoted 54 lines
Hi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
_intheory_shouldn't matter at all.
Quoted 54 lines
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
Quoted 46 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 37 lines
Quoted 33 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/6] dt-bindings: display: rockchip-dsi: add optional #phy-cells property
In reply to Heiko StuebnerQuoted 6 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
The Rockchip DSI controller on some SoCs also controls a bidrectional dphy, which would be connected to an Image Signal Processor as a phy in the rx configuration.
Quoted 7 lines
So allow a #phy-cells property for the dsi controller.
Signed-off-by Heiko Stuebner <[email protected]>--- .../bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 1 + 1 file changed, 1 insertion(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Heiko Stübner
maintainerHi Sebastian,
Am Freitag, 5. Februar 2021, 15:55:56 CET schrieb Heiko Stübner:
Quoted 7 lines
Hi Sebastian,
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
as you can see in v2, it should work now even with hdmi connected on boot. My patch ignored the grf-clock when doing the grf-based init.
All clocks are on during boot and I guess the hdmi-driver did disable it after its probe. The phy_power_on functions did handle it correctly already, so it was only happening with hdmi connected on boot.
Btw. do you plan on submitting your ov13850 driver soonish?
Heiko
Quoted 59 lines
(1)
- boot
- camera
--> works(2)
- boot
- camera
- hdmi plugged in
- hdmi works
- camera
--> works(3)
- hdmi plugged in
- boot
- hdmi works
- camera
--> camera doesn't work(4)
- boot
- hdmi plugged in
- hdmi works
- camera
-> camera worksWith a bit of brute-force [0] it seems the camera also works again even with hdmi connected on boot. So conclusion would be that some clock is misbehaving.
Now we'll "only" need to find out which one that is.
Heiko
[0]
Don't disable any clock gatesdrivers/clk/clk-gate.c +3
-0@@ -61,6 +61,9 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable) set ^= enable; +if (!enable) +return ; +if (gate->lock)spin_lock_irqsave (gate->lock, flags);else
Quoted 111 lines
Am Freitag, 5. Februar 2021, 09:15:47 CET schrieb Heiko Stübner:
Quoted 108 lines
Hi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
_intheory_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
Quoted 46 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 37 lines
Quoted 33 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hey Heiko,
Quoted 11 lines · Heiko Stübner
Hi Sebastian,
Am Freitag, 5. Februar 2021, 15:55:56 CET schrieb Heiko Stübner:
Quoted 7 lines
Hi Sebastian,
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
Quoted 8 lines
as you can see in v2, it should work now even with hdmi connected on boot. My patch ignored the grf-clock when doing the grf-based init.
All clocks are on during boot and I guess the hdmi-driver did disable it after its probe. The
phy_power_onfunctions did handle it correctly already, so it was only happening with hdmi connected on boot.
Thank you very much for solving that problem, I've tested the scenarios described below and it works like a charm. (With your V2)
Quoted 4 lines
Btw. do you plan on submitting your ov13850 driver soonish?
Actually, I have posted the patch already see here:
https://patchwork.kernel.org/project/linux-media/patch/[email protected]/
I currently review the requested changes and questions and will soon post a second version, but I expect quite some time until it is actually merged.
Quoted 3 lines
Heiko
Greetings,
Sebastian
Quoted 156 lines
Quoted 156 lines
(1)
- boot
- camera
--> works(2)
- boot
- camera
- hdmi plugged in
- hdmi works
- camera
--> works(3)
- hdmi plugged in
- boot
- hdmi works
- camera
--> camera doesn't work(4)
- boot
- hdmi plugged in
- hdmi works
- camera
-> camera worksWith a bit of brute-force [0] it seems the camera also works again even with hdmi connected on boot. So conclusion would be that some clock is misbehaving.
Now we'll "only" need to find out which one that is.
Heiko
[0]
Don't disable any clock gatesdrivers/clk/clk-gate.c +3
-0@@ -61,6 +61,9 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable) set ^= enable; +if (!enable) +return ; +if (gate->lock)spin_lock_irqsave (gate->lock, flags);else Am Freitag, 5. Februar 2021, 09:15:47 CET schrieb Heiko Stübner:
Quoted 94 lines
Hi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
_intheory_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
Quoted 34 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 26 lines
Quoted 26 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 20 lines · Heiko Stuebner
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
Quoted 20 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
.../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(+)Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerHi Sebastian,
Am Donnerstag, 11. Februar 2021, 06:25:15 CET schrieb Sebastian Fricke:
Quoted 27 lines
Hey Heiko,
Quoted 11 lines · Heiko Stübner
Hi Sebastian,
Am Freitag, 5. Februar 2021, 15:55:56 CET schrieb Heiko Stübner:
Quoted 7 lines
Hi Sebastian,
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
Quoted 8 lines
as you can see in v2, it should work now even with hdmi connected on boot. My patch ignored the grf-clock when doing the grf-based init.
All clocks are on during boot and I guess the hdmi-driver did disable it after its probe. The
phy_power_onfunctions did handle it correctly already, so it was only happening with hdmi connected on boot.Thank you very much for solving that problem, I've tested the scenarios described below and it works like a charm. (With your V2)
Quoted 2 lines
Quoted 5 lines
Quoted 2 lines
Btw. do you plan on submitting your ov13850 driver soonish?
Actually, I have posted the patch already see here:
https://patchwork.kernel.org/project/linux-media/patch/[email protected]/
very cool to see
Quoted 3 lines
I currently review the requested changes and questions and will soon post a second version, but I expect quite some time until it is actually merged.
could you Cc me on future versions?
Thanks
Heiko
Quoted 181 lines
Greetings,
SebastianQuoted 176 lines
Quoted 172 lines
(1)
- boot
- camera
--> works(2)
- boot
- camera
- hdmi plugged in
- hdmi works
- camera
--> works(3)
- hdmi plugged in
- boot
- hdmi works
- camera
--> camera doesn't work(4)
- boot
- hdmi plugged in
- hdmi works
- camera
-> camera worksWith a bit of brute-force [0] it seems the camera also works again even with hdmi connected on boot. So conclusion would be that some clock is misbehaving.
Now we'll "only" need to find out which one that is.
Heiko
[0]
Don't disable any clock gatesdrivers/clk/clk-gate.c +3
-0@@ -61,6 +61,9 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable) set ^= enable; +if (!enable) +return ; +if (gate->lock)spin_lock_irqsave (gate->lock, flags);else Am Freitag, 5. Februar 2021, 09:15:47 CET schrieb Heiko Stübner:
Quoted 108 lines
Hi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
_intheory_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
Quoted 46 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 37 lines
Quoted 33 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hey Heiko,
Quoted 36 lines · Heiko Stübner
Hi Sebastian,
Am Donnerstag, 11. Februar 2021, 06:25:15 CET schrieb Sebastian Fricke:
Quoted 27 lines
Hey Heiko,
Quoted 11 lines · Heiko Stübner
Hi Sebastian,
Am Freitag, 5. Februar 2021, 15:55:56 CET schrieb Heiko Stübner:
Quoted 7 lines
Hi Sebastian,
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
Quoted 8 lines
as you can see in v2, it should work now even with hdmi connected on boot. My patch ignored the grf-clock when doing the grf-based init.
All clocks are on during boot and I guess the hdmi-driver did disable it after its probe. The
phy_power_onfunctions did handle it correctly already, so it was only happening with hdmi connected on boot.Thank you very much for solving that problem, I've tested the scenarios described below and it works like a charm. (With your V2)
Quoted 2 lines
Quoted 5 lines
Quoted 2 lines
Btw. do you plan on submitting your ov13850 driver soonish?
Actually, I have posted the patch already see here:
https://patchwork.kernel.org/project/linux-media/patch/[email protected]/
Quoted 7 lines
very cool to see
Quoted 3 lines
I currently review the requested changes and questions and will soon post a second version, but I expect quite some time until it is actually merged.
could you Cc me on future versions?
Sure will do :)
Quoted 4 lines
Thanks
Heiko
Sebastian
Quoted 173 lines
Quoted 173 lines
Greetings,
SebastianQuoted 169 lines
Quoted 169 lines
(1)
- boot
- camera
--> works(2)
- boot
- camera
- hdmi plugged in
- hdmi works
- camera
--> works(3)
- hdmi plugged in
- boot
- hdmi works
- camera
--> camera doesn't work(4)
- boot
- hdmi plugged in
- hdmi works
- camera
-> camera worksWith a bit of brute-force [0] it seems the camera also works again even with hdmi connected on boot. So conclusion would be that some clock is misbehaving.
Now we'll "only" need to find out which one that is.
Heiko
[0]
Don't disable any clock gatesdrivers/clk/clk-gate.c +3
-0@@ -61,6 +61,9 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable) set ^= enable; +if (!enable) +return ; +if (gate->lock)spin_lock_irqsave (gate->lock, flags);else Am Freitag, 5. Februar 2021, 09:15:47 CET schrieb Heiko Stübner:
Quoted 107 lines
Hi Sebastian,
Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke:
Quoted 35 lines · Heiko Stübner
Quoted 21 lines
Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke:
Quoted 12 lines
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 informationhttps://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_setupQuoted 7 lines
And just to not cause confusion the
media_deventries come from this unmerged series:
https://patchwork.kernel.org/project/linux-media/list/?series=426269I 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.Quoted 5 lines
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.
Quoted 9 lines
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
_intheory_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
Quoted 46 lines
Quoted 4 lines
Thanks
HeikoGreetings,
SebastianQuoted 37 lines
Quoted 33 lines
If you like to you can add:
Tested-by Sebastian Fricke <[email protected]>Quoted 26 lines · Heiko Stuebner
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(+)
Quoted 12 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Hi Sebastian,
Am Samstag, 13. Februar 2021, 12:19:57 CET schrieb Sebastian Fricke:
Quoted 31 lines · Heiko Stübner
Quoted 30 lines
Am Donnerstag, 11. Februar 2021, 06:25:15 CET schrieb Sebastian Fricke:
Quoted 21 lines · Heiko Stübner
Quoted 7 lines
Am Freitag, 5. Februar 2021, 15:55:56 CET schrieb Heiko Stübner:
Quoted 5 lines
I did some tests myself today as well and can confirm your hdmi related finding - at least when plugged in on boot.
I tried some combinations of camera vs. hdmi and it seems really only when hdmi is plugged in on boot
Quoted 8 lines
as you can see in v2, it should work now even with hdmi connected on boot. My patch ignored the grf-clock when doing the grf-based init.
All clocks are on during boot and I guess the hdmi-driver did disable it after its probe. The
phy_power_onfunctions did handle it correctly already, so it was only happening with hdmi connected on boot.Thank you very much for solving that problem, I've tested the scenarios described below and it works like a charm. (With your V2)
Quoted 2 lines
Quoted 5 lines
Quoted 2 lines
Btw. do you plan on submitting your ov13850 driver soonish?
Actually, I have posted the patch already see here:
https://patchwork.kernel.org/project/linux-media/patch/[email protected]/very cool to see
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
I currently review the requested changes and questions and will soon post a second version, but I expect quite some time until it is actually merged.
could you Cc me on future versions?
Sure will do :)
by the way, you could also answer the v2 series with a
so we get some coverage :-)
Thanks
Heiko
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel