* [PATCH 1/2] media: dt-bindings: rockchip,rk3568-mipi-csi2: add rk3576 compatible
2026-08-26 12:33 [PATCH 0/2] Add MIPI CSI-2 receiver support for RK3576 Amin Gattout
@ 2026-08-26 12:33 ` Amin Gattout
2026-08-26 16:02 ` Conor Dooley
2026-08-26 12:33 ` [PATCH 2/2] arm64: dts: rockchip: add mipi csi-2 receiver nodes to rk3576 Amin Gattout
1 sibling, 1 reply; 4+ messages in thread
From: Amin Gattout @ 2026-08-26 12:33 UTC (permalink / raw)
To: Michael Riesch, Mauro Carvalho Chehab, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
Cc: linux-media, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Amin Gattout
The RK3576 MIPI CSI-2 receivers are compatible to the ones found in the
RK3568: the register map is identical. Add the RK3576 variant to the list
of compatible variants falling back to the RK3568 one.
Signed-off-by: Amin Gattout <amin.gattout@gmail.com>
---
Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi2.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi2.yaml b/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi2.yaml
index 8bfad0fca3b7..1898f3787a98 100644
--- a/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi2.yaml
+++ b/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi2.yaml
@@ -23,6 +23,7 @@ properties:
- rockchip,rk3568-mipi-csi2
- items:
- enum:
+ - rockchip,rk3576-mipi-csi2
- rockchip,rk3588-mipi-csi2
- const: rockchip,rk3568-mipi-csi2
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] arm64: dts: rockchip: add mipi csi-2 receiver nodes to rk3576
2026-08-26 12:33 [PATCH 0/2] Add MIPI CSI-2 receiver support for RK3576 Amin Gattout
2026-08-26 12:33 ` [PATCH 1/2] media: dt-bindings: rockchip,rk3568-mipi-csi2: add rk3576 compatible Amin Gattout
@ 2026-08-26 12:33 ` Amin Gattout
1 sibling, 0 replies; 4+ messages in thread
From: Amin Gattout @ 2026-08-26 12:33 UTC (permalink / raw)
To: Michael Riesch, Mauro Carvalho Chehab, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
Cc: linux-media, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Amin Gattout
The Rockchip RK3576 features five MIPI CSI-2 receiver units:
- MIPI0: connected to MIPI DCPHY0 (not supported)
- MIPI1: connected to MIPI DPHY0
- MIPI2: connected to MIPI DPHY0 lanes 2-3 in split mode (not supported)
- MIPI3: connected to MIPI DPHY1
- MIPI4: connected to MIPI DPHY1 lanes 2-3 in split mode (not supported)
The PHY to receiver routing is fixed. Only the full/split mode of each
DPHY is selectable, via SYS_GRF_SOC_CON5 bits 1 and 2, whose reset value
selects full mode, so no software configuration is required.
As the MIPI DCPHY as well as the split DPHY mode are not yet supported,
add only the device tree nodes for the MIPI1 and MIPI3 units.
Signed-off-by: Amin Gattout <amin.gattout@gmail.com>
---
arch/arm64/boot/dts/rockchip/rk3576.dtsi | 52 ++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index b7a527614243..cbf8b70cc15a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -1324,6 +1324,58 @@ vdec_mmu: iommu@27b00800 {
#iommu-cells = <0>;
};
+ csi1: csi@27c90000 {
+ compatible = "rockchip,rk3576-mipi-csi2", "rockchip,rk3568-mipi-csi2";
+ reg = <0x0 0x27c90000 0x0 0x10000>;
+ interrupts = <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "err1", "err2";
+ clocks = <&cru PCLK_CSI_HOST_1>;
+ phys = <&csi_dphy0>;
+ power-domains = <&power RK3576_PD_VI>;
+ resets = <&cru SRST_P_CSI_HOST_1>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ csi1_in: port@0 {
+ reg = <0>;
+ };
+
+ csi1_out: port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
+ csi3: csi@27cb0000 {
+ compatible = "rockchip,rk3576-mipi-csi2", "rockchip,rk3568-mipi-csi2";
+ reg = <0x0 0x27cb0000 0x0 0x10000>;
+ interrupts = <GIC_SPI 383 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 384 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "err1", "err2";
+ clocks = <&cru PCLK_CSI_HOST_3>;
+ phys = <&csi_dphy1>;
+ power-domains = <&power RK3576_PD_VI>;
+ resets = <&cru SRST_P_CSI_HOST_3>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ csi3_in: port@0 {
+ reg = <0>;
+ };
+
+ csi3_out: port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
vop: vop@27d00000 {
compatible = "rockchip,rk3576-vop";
reg = <0x0 0x27d00000 0x0 0x3000>, <0x0 0x27d05000 0x0 0x1000>;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread