From patchwork Mon Sep 9 07:24:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keke Li via B4 Relay X-Patchwork-Id: 1982390 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Oq/JIbP1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-101203-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X2JMH50z5z1y1D for ; Mon, 9 Sep 2024 17:27:39 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 577162830C8 for ; Mon, 9 Sep 2024 07:27:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29DF31B14F6; Mon, 9 Sep 2024 07:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Oq/JIbP1" X-Original-To: devicetree@vger.kernel.org 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 D4DE61AED5D; Mon, 9 Sep 2024 07:24:39 +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=1725866679; cv=none; b=PwvE49wxQoP9HOk1sL58D7Bw1VOVMyRT0fPMI/zSkZGKqrrGpi4XqfNkAEY+CKpjBU1JoFfvBjmuLCd8JVdoXw10267ql0ziInKjhCjG/AjToqOGV2rizUJg8Rh3hmrB7jPU6DO9ccD3fItmgZhuVATBDt+upraqkSfdpgs4mYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725866679; c=relaxed/simple; bh=VwdSx+5TN7jkNts+t5hw0+q+rGumOpnMd4C0DTssp9E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=am+3PbgM6MhEd3+GUeKp9otLS2xRWJWE7JMZ6EaoupcjauWW+5d1H+c9e7DKcI1XzOiZUDd9BXPEkd9Zw52YK6Qcb5LXl4/Xhfr+QJUcD1pK13WXAeTPnspXOdu/1jfcW2rs/Sdifa7vvE3nfbBWww4ISJSmYt/vHOJyXxNPvK0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Oq/JIbP1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 78D34C4CECA; Mon, 9 Sep 2024 07:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725866679; bh=VwdSx+5TN7jkNts+t5hw0+q+rGumOpnMd4C0DTssp9E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Oq/JIbP1WgHonAkdHtBnPBIEx0mmBv5wS2Qa7PtGSHF2y8SUPZeGYUA3tzuBLnYsW s2yS8g10ceT41shFHSpLg/9z5stu3HcmR84dlhQbbRvrXhiZvx1COWrnCSWjB2qdM+ QI16fbsY1Lbstfs0kcSJdBFsPCUUD0DTf7jVBNWOjdsNHlz7VgL19J5elSSiZJOdCk tRRoVqgYcF89fM++Uu7DEL6hKC8XPoQrJN1c2UC8AglNWd72EhNss+dBoiWGu+OyMm aJpnCfaQ8tYkLEq9cppUcgmUY+cOQYY0Cv0/th2Gg2zyXAD1at56RyxpZJ+UENuh3R y7WNsETJ7mMSQ== 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 670A2CE7AB0; Mon, 9 Sep 2024 07:24:39 +0000 (UTC) From: Keke Li via B4 Relay Date: Mon, 09 Sep 2024 15:24:11 +0800 Subject: [PATCH v2 1/9] dt-bindings: media: Add amlogic,c3-mipi-csi2.yaml Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240909-c3isp-v2-1-3c866a1cea56@amlogic.com> References: <20240909-c3isp-v2-0-3c866a1cea56@amlogic.com> In-Reply-To: <20240909-c3isp-v2-0-3c866a1cea56@amlogic.com> To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, dan.scally@ideasonboard.com, Keke Li X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725866660; l=3615; i=keke.li@amlogic.com; s=20240902; h=from:subject:message-id; bh=uonDpUuENKMvvPR8TlFC/qzJCjmFRIkjBuDItRjYTbg=; b=DDciZROUQqVDGKcb+1UFDQ5U8mVQNLxuisJ4y7c3KA0hL7XYCKmRqPI1eBaVDe4eiX6Rqko/t je6dw5sM8tOCjlNtjTmnp4+2LMQXtdTDea9qaUIx/BFVt6Ah3PSaXVf X-Developer-Key: i=keke.li@amlogic.com; a=ed25519; pk=XxNPTsQ0YqMJLLekV456eoKV5gbSlxnViB1k1DhfRmU= X-Endpoint-Received: by B4 Relay for keke.li@amlogic.com/20240902 with auth_id=204 X-Original-From: Keke Li Reply-To: keke.li@amlogic.com From: Keke Li c3-mipi-csi2 is used to receive mipi data from image sensor. Signed-off-by: Keke Li Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/amlogic,c3-mipi-csi2.yaml | 124 +++++++++++++++++++++ 1 file changed, 124 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml new file mode 100644 index 000000000000..5cea06595205 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml @@ -0,0 +1,124 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/amlogic,c3-mipi-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic C3 MIPI CSI-2 receiver + +maintainers: + - Keke Li + +description: + MIPI CSI-2 receiver contains CSI-2 RX PHY and host controller. + It receives the MIPI data from the image sensor and sends MIPI data + to MIPI adapter. + +properties: + compatible: + enum: + - amlogic,c3-mipi-csi2 + + reg: + maxItems: 3 + + reg-names: + items: + - const: aphy + - const: dphy + - const: host + + power-domains: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: vapb + - const: phy0 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: input port node, connected to sensor. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: output port node + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reg-names + - power-domains + - clocks + - clock-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + csi: csi@ff018000 { + compatible = "amlogic,c3-mipi-csi2"; + reg = <0x0 0xff018000 0x0 0x400>, + <0x0 0xff019000 0x0 0x300>, + <0x0 0xff01a000 0x0 0x100>; + reg-names = "aphy", "dphy", "host"; + power-domains = <&pwrc PWRC_C3_MIPI_ISP_WRAP_ID>; + clocks = <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_CSI_PHY0>; + clock-names = "vapb", "phy0"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + c3_mipi_csi_in: endpoint { + remote-endpoint = <&imx290_out>; + data-lanes = <1 2 3 4>; + }; + }; + + port@1 { + reg = <1>; + c3_mipi_csi_out: endpoint { + remote-endpoint = <&c3_adap_in>; + }; + }; + }; + }; + }; +...