From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F533275B16; Mon, 17 Nov 2025 10:01:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763373687; cv=none; b=jh8q8sKvI2hIAADSy2hJb9YMOOvg+spZ2jmVoRoPfm2cgbfIfS6bE+MqYhbmmM9LKTMUUup6AJCVVnmDfMvXfR3e1QI6ojsKBfIM5dH+vMXADXJi+uJHVRjl4bTR/dzLKuQ5MwGx8xXXUuD6C4amGMQkLmv3IsoURBSXOvBTw0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763373687; c=relaxed/simple; bh=PLvWvg7IxWO82re9OnDT5NEEAt06FUsHIlBbI+FEA2M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XncZW4keUBB+VF7rX9WhcnU4xKTs+wVQbHu2ryqUfCNTYnYViZA8ULrQLsvtYa2wyQ42ZslzAKqQEt6Q6SX0C+odlCLSH5kZlG4TEoedk7N89NYUN9klDBEt+mho84J9YTSSjBikdyOvvgGMg88WYO0vHZkqs4zs30zk2TGkDlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RxEHkcjk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RxEHkcjk" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1E792C19425; Mon, 17 Nov 2025 10:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763373687; bh=PLvWvg7IxWO82re9OnDT5NEEAt06FUsHIlBbI+FEA2M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RxEHkcjkf+3Pml9WFIcAZsvh/n9og4UeAYkLSNKq95Z2kYPiHkEjcT/BJ1fRuZRgh rQTkJRhAzmjb57LX7e4J6+fogVznMDiiTkfRnRDqsoBURzATQgk8Nobp5h5DQnCuJx IrREeYKnC7hoOloIq0MmuzeUeGO/BNSyx0QVp8Oq7TN/WH6HmbEjQDJDdBv6yI0m4j G61L3t7ObH6zl8g2TV/6V/K8aqzfl2kG2YkxqGxbZr84PdqRPsF0+2ThXZcyCQ0H7F oTFLoavP7PeODIXPWvMw0idcZIaH/R+Xu3edoYdolsviV+nIIwnez/E66jKinXEvur s9nsct+De63ZA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1119FCE8D6B; Mon, 17 Nov 2025 10:01:27 +0000 (UTC) From: Michael Riesch via B4 Relay Date: Mon, 17 Nov 2025 11:01:09 +0100 Subject: [PATCH 1/3] media: dt-bindings: add rockchip mipi csi-2 receiver Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251114-rockchip-mipi-receiver-v1-1-d13086e810dd@collabora.com> References: <20251114-rockchip-mipi-receiver-v1-0-d13086e810dd@collabora.com> In-Reply-To: <20251114-rockchip-mipi-receiver-v1-0-d13086e810dd@collabora.com> To: Michael Riesch , Mehdi Djait , Bryan O'Donoghue , Laurent Pinchart , Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Philipp Zabel , Sebastian Reichel , Nicolas Dufresne , Collabora Kernel Team , Sakari Ailus 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, Bryan O'Donoghue , Michael Riesch X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763373685; l=5421; i=michael.riesch@collabora.com; s=20250410; h=from:subject:message-id; bh=TIhxnTVnbOI5KU1kKALTe14HD9gB+a7ztWwVWd0jH+o=; b=syCOCEIlbG7WwgRFBqTpgkgRJ7WWcF49Ygi7pTL6uqlB+DHDp9VfE3pofLXL+C3uIy1sZ4N4c p4Bqh6Xe1bYDiDWuZJXJGrdpINdEx96KQjLEvg46u4YJzG75gLHNwcl X-Developer-Key: i=michael.riesch@collabora.com; a=ed25519; pk=+MWX1fffLFZtTPG/I6XdYm/+OSvpRE8D9evQaWbiN04= X-Endpoint-Received: by B4 Relay for michael.riesch@collabora.com/20250410 with auth_id=371 X-Original-From: Michael Riesch Reply-To: michael.riesch@collabora.com From: Michael Riesch Add documentation for the Rockchip MIPI CSI-2 Receiver. Signed-off-by: Michael Riesch Reviewed-by: Bryan O'Donoghue Reviewed-by: Rob Herring (Arm) Reviewed-by: Bryan O'Donoghue Signed-off-by: Michael Riesch --- .../bindings/media/rockchip,rk3568-mipi-csi.yaml | 146 +++++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 152 insertions(+) diff --git a/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi.yaml b/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi.yaml new file mode 100644 index 000000000000..52fe959af8f9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi.yaml @@ -0,0 +1,146 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,rk3568-mipi-csi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip MIPI CSI-2 Receiver + +maintainers: + - Michael Riesch + +description: + The Rockchip MIPI CSI-2 Receiver is a CSI-2 bridge with one input port and + one output port. It receives the data with the help of an external MIPI PHY + (C-PHY or D-PHY) and passes it to the Rockchip RK3568 Video Capture (VICAP) + block. + +properties: + compatible: + oneOf: + - items: + - enum: + - rockchip,rk3588-mipi-csi + - const: rockchip,rk3568-mipi-csi + - const: rockchip,rk3568-mipi-csi + + reg: + maxItems: 1 + + interrupts: + items: + - description: Interrupt that signals changes in CSI2HOST_ERR1. + - description: Interrupt that signals changes in CSI2HOST_ERR2. + + interrupt-names: + items: + - const: err1 + - const: err2 + + clocks: + maxItems: 1 + + phys: + maxItems: 1 + description: MIPI C-PHY or D-PHY. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Input port node. Connect to e.g., a MIPI CSI-2 image sensor. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - bus-type + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output port connected to a RK3568 VICAP port. + + required: + - port@0 + - port@1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - phys + - ports + - power-domains + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + soc { + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + csi: csi@fdfb0000 { + compatible = "rockchip,rk3568-mipi-csi"; + reg = <0x0 0xfdfb0000 0x0 0x10000>; + interrupts = , + ; + interrupt-names = "err1", "err2"; + clocks = <&cru PCLK_CSI2HOST1>; + phys = <&csi_dphy>; + power-domains = <&power RK3568_PD_VI>; + resets = <&cru SRST_P_CSI2HOST1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi_in: port@0 { + reg = <0>; + + csi_input: endpoint { + bus-type = ; + data-lanes = <1 2 3 4>; + remote-endpoint = <&imx415_output>; + }; + }; + + csi_out: port@1 { + reg = <1>; + + csi_output: endpoint { + remote-endpoint = <&vicap_mipi_input>; + }; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 4205ca007e07..145473671a4a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22299,6 +22299,12 @@ F: Documentation/userspace-api/media/v4l/metafmt-rkisp1.rst F: drivers/media/platform/rockchip/rkisp1 F: include/uapi/linux/rkisp1-config.h +ROCKCHIP MIPI CSI-2 RECEIVER DRIVER +M: Michael Riesch +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi.yaml + ROCKCHIP RK3568 RANDOM NUMBER GENERATOR SUPPORT M: Daniel Golle M: Aurelien Jarno -- 2.39.5