From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9BFFBCCA476 for ; Tue, 7 Oct 2025 20:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KLtIH8OFwp/ninN7yNBY86LB7MvJBPpKpHJlN0lkuEw=; b=qfdLhq2B4OtiI6 2V14UGkR5+YJgDAmWgc0UgMqPFwzpDfwr6JMO6LJ4uEA94gzB4rroQUxrmIhmk5rZj6D7mkHgtSPv vdnbn2V2KyF9EFfu9lI8U2O3BiuKTPN/MjO3lxGWTG1j+ye5JyxkPJnKC6IDhgN+pbm/+OwvnIARx eHUCCkqx8uRaWeQfkQ/fPKX0cwMz8bYJG3oA37uDRD8CO8+OGh5SL6RRpGfRYG65Gg0ESnfGFaRRF vK9vmp1gZ3FRFKJhxZdtEO9bQQmwAzLwOh8BcBt6sTqd80dSXu09lZPAuk7KS2Z0SW8l9kFNirgLV KnUKav3ZEopf4kxynKJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v6Drq-00000002iHx-1WRB; Tue, 07 Oct 2025 20:01:02 +0000 Received: from mgamail.intel.com ([198.175.65.12]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v6Drn-00000002iH3-3vn8; Tue, 07 Oct 2025 20:01:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1759867260; x=1791403260; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NK24BaQ9xWl+tVnNXQiE60htjjVsEiyaZFyhIAwv8Lk=; b=lLmGfuz4A52UYH/0apuAExXWg4lMTMRpNZBl/HiqXojKxbBrOctyi7Gs K7VXxtd4U/37r3s+UYlYn7nAUT6Np3SnsRoGoa6axd2spUUi//E3HBzYr +5yBJw1D8vZv1WnJFA1QAvPBrwB4anuNw9Ruc8Agc6/dzM9CfdIScAxMi ji974XgR78f4bdzbQ7neya0qUUryMXGOJvznA69MPlcZmnPGwBNxn/RAc oePMPe3npaUsPhsmMtY7MTl4RPGczz2YgRFEdKbL5keG15YRuXRnyJKxn TOFzjR3Bg2oIcYiTEg9+OHjvD4hMHwnxjFm1+C2dGFPFLCfNtqPkRGxd6 Q==; X-CSE-ConnectionGUID: uH/0+cK5TaWgKECyX2h9Mw== X-CSE-MsgGUID: kgOZzisNStq5Y8vzHstw5w== X-IronPort-AV: E=McAfee;i="6800,10657,11575"; a="73482584" X-IronPort-AV: E=Sophos;i="6.18,321,1751266800"; d="scan'208";a="73482584" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2025 13:00:59 -0700 X-CSE-ConnectionGUID: 9ETq42g/Trm9vsdAgEjDMg== X-CSE-MsgGUID: j6SYt8suQBCKkEB45Z0qlw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,321,1751266800"; d="scan'208";a="179917379" Received: from fdefranc-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.53]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2025 13:00:52 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id DA85011F8B0; Tue, 07 Oct 2025 23:00:49 +0300 (EEST) Date: Tue, 7 Oct 2025 23:00:49 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: michael.riesch@collabora.com Cc: Mehdi Djait , Maxime Chevallier , =?iso-8859-1?Q?Th=E9o?= Lebrun , Thomas Petazzoni , Gerald Loacker , Bryan O'Donoghue , Markus Elfring , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Kever Yang , Nicolas Dufresne , Sebastian Reichel , Collabora Kernel Team , Paul Kocialkowski , Alexander Shiyan , Val Packett , Rob Herring , Philipp Zabel , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Bryan O'Donoghue Subject: Re: [PATCH v11 05/17] media: dt-bindings: add rockchip rk3568 mipi csi-2 receiver Message-ID: References: <20240220-rk3568-vicap-v11-0-af0eada54e5d@collabora.com> <20240220-rk3568-vicap-v11-5-af0eada54e5d@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240220-rk3568-vicap-v11-5-af0eada54e5d@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251007_130100_017910_9192F01B X-CRM114-Status: GOOD ( 20.53 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hi Michael, On Wed, Sep 17, 2025 at 05:38:45PM +0200, Michael Riesch via B4 Relay wrote: > From: Michael Riesch > > Add documentation for the Rockchip RK3568 MIPI CSI-2 Receiver. > > Signed-off-by: Michael Riesch > Reviewed-by: Bryan O'Donoghue > Signed-off-by: Michael Riesch > --- > .../bindings/media/rockchip,rk3568-mipi-csi.yaml | 144 +++++++++++++++++++++ > MAINTAINERS | 6 + > 2 files changed, 150 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..8cbab93b4b85 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/rockchip,rk3568-mipi-csi.yaml > @@ -0,0 +1,144 @@ > +# 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 RK3568 MIPI CSI-2 Receiver > + > +maintainers: > + - Michael Riesch > + > +description: > + The Rockchip RK3568 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: irq1 > + - const: irq2 > + > + 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, 4] > + > + 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. As the VICAP port appears to be a DVP/Bt.565 receiver, also this output can presumably be connected elsewhere, too. Either way, aren't signal polarity or sampling related properties relevant here, too, and perhaps more so for the VICAP bindings? See e.g. Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml . > + > + 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 = "irq1", "irq2"; > + 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 4c39b9fd80bb..2ac4b7a5b255 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -21797,6 +21797,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 > -- Kind regards, Sakari Ailus _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip