From nobody Tue Dec 16 21:02:20 2025 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 17623259CAE; Mon, 14 Apr 2025 07:35: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=1744616125; cv=none; b=PySoqG5e5rKl1GnWpmiqlDCL24ANbcvoLAvAqGc46m/IaIAk3m2JXeqVxu6Px9ppC/1OJqv4xSBwwmBUkq+efEqIZtRlqraIRaWp7LtvTxZrbnjfVO2+XjY92hoFBYEXaWfdMJ+XmZn7E88CmzyllAoqJNcWcBU0waAruYzdElI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744616125; c=relaxed/simple; bh=1cIaLPHNQB/5+LqCUunNZPIQeykPELnJ9hylsosHn44=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m5XvuJu7RwiFUKMpEx0t8LYdFtP+Z0/xKZ1h088WDS+Uvxj+jGdeJOQsH2mTUQzq5YYKkiSYAmDX7mSY4JqDDVBSZ0fOvt80iuhQN77sQZR8wfy0Hnx+IrvwisbFcJYLU+F21aWxZq6BtFh4QSTSm3p94hqOmqzJ2cDeBJKElZw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LIlM0Zzl; 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="LIlM0Zzl" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8D5B1C4CEF1; Mon, 14 Apr 2025 07:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744616124; bh=1cIaLPHNQB/5+LqCUunNZPIQeykPELnJ9hylsosHn44=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LIlM0ZzlWUb0NBiWvmhg+4+SRs01SF73LVmJv37EyRcP42+GtzTnooLtAmtnTyXWN Kt/MBj9LErCEA993/S8MIBnhP3x22WANqCtWqbylbbN0Z3dkdzf3dylKSIK3u2NSPh KGc2JjxOk/OuOvv3CHwBM+l31rFaHm9F6dPESe0/8bIjZEqUJGqyTrovFHLE4GqIP1 TBgre6t9DVbE1CmHqfRzjwpf10ZUGBA7FcbnL5asL+j85CocnsvVzRBWZl8UB3VDZn olpkf/kbOaSf2oJxW0bMBbEd8PrEiWV9VYkiRzMkeoc8sWTc2NfYd9VVvcqxNzTuVp Cc6F3h0rcAu5g== 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 813B3C369B5; Mon, 14 Apr 2025 07:35:24 +0000 (UTC) From: Keke Li via B4 Relay Date: Mon, 14 Apr 2025 15:35:16 +0800 Subject: [PATCH v8 03/10] dt-bindings: media: Add amlogic,c3-mipi-adapter.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: <20250414-c3isp-v8-3-9f89e537494e@amlogic.com> References: <20250414-c3isp-v8-0-9f89e537494e@amlogic.com> In-Reply-To: <20250414-c3isp-v8-0-9f89e537494e@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=1744616122; l=4007; i=keke.li@amlogic.com; s=20240902; h=from:subject:message-id; bh=VZgmTk/2LMskTiPGwxTiC/AlIhPdjiMlAQOFd8twkZ8=; b=ttIR816BLzOLrvvZ8iY0XeMWGRWHQCn4jLpsWu5ddG2tljQTS1fAMoHBCYl9Eu/JxZfs9h4qQ Ln+yuNrfTTYCD4FFzafCUXPKB240jKnGR6oEE3Pw1yzajrG0Hqk4NOv 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-adapter is used to organize mipi data and send raw data to ISP module. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Keke Li --- .../bindings/media/amlogic,c3-mipi-adapter.yaml | 111 +++++++++++++++++= ++++ MAINTAINERS | 6 ++ 2 files changed, 117 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,c3-mipi-adapte= r.yaml b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-adapter.ya= ml new file mode 100644 index 000000000000..ba43bc6709a0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,c3-mipi-adapter.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/amlogic,c3-mipi-adapter.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic C3 MIPI adapter receiver + +maintainers: + - Keke Li + +description: + MIPI adapter is used to convert the MIPI CSI-2 data + into an ISP supported data format. + +properties: + compatible: + enum: + - amlogic,c3-mipi-adapter + + reg: + maxItems: 3 + + reg-names: + items: + - const: top + - const: fd + - const: rd + + power-domains: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: vapb + - const: isp0 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: input port node. + + 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>; + + adap: adap@ff010000 { + compatible =3D "amlogic,c3-mipi-adapter"; + reg =3D <0x0 0xff010000 0x0 0x100>, + <0x0 0xff01b000 0x0 0x100>, + <0x0 0xff01d000 0x0 0x200>; + reg-names =3D "top", "fd", "rd"; + power-domains =3D <&pwrc PWRC_C3_ISP_TOP_ID>; + clocks =3D <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_ISP0>; + clock-names =3D "vapb", "isp0"; + assigned-clocks =3D <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_ISP0>; + assigned-clock-rates =3D <0>, <400000000>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + c3_adap_in: endpoint { + remote-endpoint =3D <&c3_mipi_csi_out>; + }; + }; + + port@1 { + reg =3D <1>; + c3_adap_out: endpoint { + remote-endpoint =3D <&c3_isp_in>; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 311847a6d69d..239bce65db41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1255,6 +1255,12 @@ F: Documentation/devicetree/bindings/perf/amlogic,g1= 2-ddr-pmu.yaml F: drivers/perf/amlogic/ F: include/soc/amlogic/ =20 +AMLOGIC MIPI ADAPTER DRIVER +M: Keke Li +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/amlogic,c3-mipi-adapter.yaml + AMLOGIC MIPI CSI2 DRIVER M: Keke Li L: linux-media@vger.kernel.org --=20 2.49.0