From nobody Sat Feb 7 18:07:48 2026 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 B6F8C23E35F; Sun, 27 Apr 2025 06:27:24 +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=1745735244; cv=none; b=PPEa5CDKIj6a0sIze5N1z7PfgTNhPyck0Av28iaS29kzit5xjDZc/rckuRfkyfhRXW1tTZnsCDwqdQHbrKqZC6X6FX4POqSE+RQ1N+fCwoeGuLp0He6cHwGVlxTeuS49D1y/KEYg90cnEuUSojaIayl2LQ8QlBJdwqddXnPiEgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745735244; c=relaxed/simple; bh=pt7KXPtFx/dXvsiAS+P9iQYQ+HvVGcKYCg0MlZt1ySI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aDLsZvvVMWK65dhdEZSRU/S3YURixC8XocXLz+S/Y2NHm6dwBHgDOQ48LpEpf92k7tXrYOix0Y4j8Gp2hRKimfpQcLliTb96eD9OWZ4gIEz4vZXaLMADT7hZkaF12605wnZ03r8/XIGTXvlQQDDRPFshyOs37EzTFZ/tH7jLl1A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vMD/y0Tf; 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="vMD/y0Tf" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3632EC4CEED; Sun, 27 Apr 2025 06:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745735244; bh=pt7KXPtFx/dXvsiAS+P9iQYQ+HvVGcKYCg0MlZt1ySI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=vMD/y0TfO4tawn5dlrl8t1k0g6baaPQ6/KnU0THqy0ES4GL5M2E8kiRoHXMUvo0jp For/rrY9WoFb3YLktGyV9Wf/mDoedv5RFyj+kkPlqfO4WbyObgtywBrj890Wun2/Jd 7S5ppdp8HnCrL+pp0H4NF3Y5q4jG7HXgOWZLX5hhx9E1sfPnjpNRM0q7BmsV4Ad1zf waJW/eO4Ryh65YtAfme83EFwrfbGxe1NXfeN2zXslKTFDweH+KcfdckCB2lkBYgMEd sja/feGiYPRMdvDKavgNLGX3Pgk3mMB+5ROqCcWMBtVwICe7jP6mKMlyVlKqwtpuzH tgeLUpexNzMJg== 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 27E55C369D9; Sun, 27 Apr 2025 06:27:24 +0000 (UTC) From: Keke Li via B4 Relay Date: Sun, 27 Apr 2025 14:27:09 +0800 Subject: [PATCH v9 01/10] dt-bindings: media: Add amlogic,c3-mipi-csi2.yaml 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: quoted-printable Message-Id: <20250427-c3isp-v9-1-e0fe09433d94@amlogic.com> References: <20250427-c3isp-v9-0-e0fe09433d94@amlogic.com> In-Reply-To: <20250427-c3isp-v9-0-e0fe09433d94@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, jacopo.mondi@ideasonboard.com, Keke Li , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745735242; l=4483; i=keke.li@amlogic.com; s=20240902; h=from:subject:message-id; bh=PzgXBgvoNQWnZwHNEGavi7DipCFIvTerOtlDq1EREco=; b=ViGZ5HzuokI10v9MMRXbRA5y7b/7EUxg85sFA6MnUW3I9oVFtuqZUGnA4exlhjD4AN3LC1yCb RgVHskGfjwKCgK8sKKnZy0RILiGdLo2ztcKZOtwOHOqH6yi9TdWpBlV 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Keke Li --- .../bindings/media/amlogic,c3-mipi-csi2.yaml | 127 +++++++++++++++++= ++++ MAINTAINERS | 6 + 2 files changed, 133 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.y= aml b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml new file mode 100644 index 000000000000..b0129beab0c3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml @@ -0,0 +1,127 @@ +# 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 =3D <2>; + #size-cells =3D <2>; + + csi: csi@ff018000 { + compatible =3D "amlogic,c3-mipi-csi2"; + reg =3D <0x0 0xff018000 0x0 0x400>, + <0x0 0xff019000 0x0 0x300>, + <0x0 0xff01a000 0x0 0x100>; + reg-names =3D "aphy", "dphy", "host"; + power-domains =3D <&pwrc PWRC_C3_MIPI_ISP_WRAP_ID>; + clocks =3D <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_CSI_PHY0>; + clock-names =3D "vapb", "phy0"; + assigned-clocks =3D <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_CSI_PHY0>; + assigned-clock-rates =3D <0>, <200000000>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + c3_mipi_csi_in: endpoint { + remote-endpoint =3D <&imx290_out>; + data-lanes =3D <1 2 3 4>; + }; + }; + + port@1 { + reg =3D <1>; + c3_mipi_csi_out: endpoint { + remote-endpoint =3D <&c3_adap_in>; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index b2c3be5f6131..e22fd14595b4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1258,6 +1258,12 @@ F: Documentation/devicetree/bindings/perf/amlogic,g1= 2-ddr-pmu.yaml F: drivers/perf/amlogic/ F: include/soc/amlogic/ =20 +AMLOGIC MIPI CSI2 DRIVER +M: Keke Li +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/amlogic,c3-mipi-csi2.yaml + AMLOGIC PINCTRL DRIVER M: Xianwei Zhao L: linux-amlogic@lists.infradead.org --=20 2.49.0