From: Michael Riesch <michael.riesch@collabora.com>
To: Amin Gattout <amin.gattout@gmail.com>,
Mehdi Djait <mehdi.djait@linux.intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: add vicap node to rk3576
Date: Fri, 18 Sep 2026 23:20:36 +0200 [thread overview]
Message-ID: <7a419924-01ea-4de7-b662-18b0ca62082a@collabora.com> (raw)
In-Reply-To: <20260915-vicap-rk3576-v1-3-d3f5eb58a0b5@gmail.com>
Hi Amin,
Thanks for the patch, LGTM!
On 9/15/26 14:27, Amin Gattout wrote:
> Add the device tree node for the Video Capture (VICAP) unit of the
> RK3576 and its IOMMU, and connect the VICAP to the two MIPI CSI-2
> receivers that are usable with the MIPI D-PHYs in full mode.
>
> Signed-off-by: Amin Gattout <amin.gattout@gmail.com>
Reviewed-by: Michael Riesch <michael.riesch@collabora.com>
Best regards,
Michael
> ---
> arch/arm64/boot/dts/rockchip/rk3576.dtsi | 83 ++++++++++++++++++++++++++++++++
> 1 file changed, 83 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> index cbf8b70cc15a..0c46accf5657 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
> @@ -1323,6 +1323,81 @@ vdec_mmu: iommu@27b00800 {
> rockchip,disable-mmu-reset;
> #iommu-cells = <0>;
> };
> + vicap: video-capture@27c10000 {
> + compatible = "rockchip,rk3576-vicap";
> + reg = <0x0 0x27c10000 0x0 0x800>;
> + interrupts = <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru ACLK_VICAP>, <&cru HCLK_VICAP>,
> + <&cru DCLK_VICAP>,
> + <&cru CLK_VICAP_I0CLK>, <&cru CLK_VICAP_I1CLK>,
> + <&cru CLK_VICAP_I2CLK>, <&cru CLK_VICAP_I3CLK>,
> + <&cru CLK_VICAP_I4CLK>;
> + clock-names = "aclk", "hclk", "dclk",
> + "iclk", "iclk1", "iclk2", "iclk3", "iclk4";
> + iommus = <&vicap_mmu>;
> + power-domains = <&power RK3576_PD_VI>;
> + resets = <&cru SRST_A_VICAP>, <&cru SRST_H_VICAP>,
> + <&cru SRST_D_VICAP>,
> + <&cru SRST_VICAP_I0CLK>, <&cru SRST_VICAP_I1CLK>,
> + <&cru SRST_VICAP_I2CLK>, <&cru SRST_VICAP_I3CLK>,
> + <&cru SRST_VICAP_I4CLK>;
> + reset-names = "arst", "hrst", "drst",
> + "irst0", "irst1", "irst2", "irst3", "irst4";
> + status = "disabled";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + vicap_dvp: port@0 {
> + reg = <0x0>;
> + };
> +
> + vicap_mipi0: port@1 {
> + reg = <0x1>;
> + };
> +
> + vicap_mipi1: port@2 {
> + reg = <0x2>;
> +
> + vicap_mipi1_input: endpoint {
> + remote-endpoint = <&csi1_output>;
> + };
> + };
> +
> + vicap_mipi2: port@3 {
> + reg = <0x3>;
> + };
> +
> + vicap_mipi3: port@4 {
> + reg = <0x4>;
> +
> + vicap_mipi3_input: endpoint {
> + remote-endpoint = <&csi3_output>;
> + };
> + };
> +
> + vicap_mipi4: port@5 {
> + reg = <0x5>;
> + };
> +
> + vicap_toisp0: port@10 {
> + reg = <0x10>;
> + };
> + };
> + };
> +
> + vicap_mmu: iommu@27c10800 {
> + compatible = "rockchip,rk3576-iommu", "rockchip,rk3568-iommu";
> + reg = <0x0 0x27c10800 0x0 0x100>;
> + interrupts = <GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru ACLK_VICAP>, <&cru HCLK_VICAP>;
> + clock-names = "aclk", "iface";
> + power-domains = <&power RK3576_PD_VI>;
> + rockchip,disable-mmu-reset;
> + #iommu-cells = <0>;
> + status = "disabled";
> + };
>
> csi1: csi@27c90000 {
> compatible = "rockchip,rk3576-mipi-csi2", "rockchip,rk3568-mipi-csi2";
> @@ -1346,6 +1421,10 @@ csi1_in: port@0 {
>
> csi1_out: port@1 {
> reg = <1>;
> +
> + csi1_output: endpoint {
> + remote-endpoint = <&vicap_mipi1_input>;
> + };
> };
> };
> };
> @@ -1372,6 +1451,10 @@ csi3_in: port@0 {
>
> csi3_out: port@1 {
> reg = <1>;
> +
> + csi3_output: endpoint {
> + remote-endpoint = <&vicap_mipi3_input>;
> + };
> };
> };
> };
>
prev parent reply other threads:[~2026-09-18 21:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 12:27 [PATCH 0/3] media: rockchip: add support for the RK3576 Video Capture unit Amin Gattout
2026-09-15 12:27 ` [PATCH 1/3] media: dt-bindings: add rockchip rk3576 vicap Amin Gattout
2026-09-15 16:31 ` Conor Dooley
2026-09-18 21:21 ` Michael Riesch
2026-09-15 12:27 ` [PATCH 2/3] media: rockchip: rkcif: add support for rk3576 vicap mipi capture Amin Gattout
2026-09-18 21:10 ` Michael Riesch
2026-09-15 12:27 ` [PATCH 3/3] arm64: dts: rockchip: add vicap node to rk3576 Amin Gattout
2026-09-18 21:20 ` Michael Riesch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a419924-01ea-4de7-b662-18b0ca62082a@collabora.com \
--to=michael.riesch@collabora.com \
--cc=amin.gattout@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mchehab@kernel.org \
--cc=mehdi.djait@linux.intel.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®