From patchwork Mon Sep 9 07:24:15 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: 13796193 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 412AF1B1500; Mon, 9 Sep 2024 07:24:40 +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=1725866680; cv=none; b=qiWJVWEqqcDqRQhmMCPDEDicZI61xIb/qOXQlOOagmEoeG/cY8AVwaqjXQaH3WBO3oQEWSymfYDYdu2e07ieeS3lfXrR1AGProHp0Wc2DURZbTaMcZ4dcuBdxzFXqG0y0OTHnDEB7btsVf/QdW0W/OUrhw+Dzk1+fl0JkLPeiBs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725866680; c=relaxed/simple; bh=7z89/s10L7QPKeqM7gbWo0n48YPpaMzkq3cTu5wWLDw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NyLoqF+zX626IN3zGOGWDxKXeRp+mwz+t0mCfL9ewjQ4QGL10nGnpJrPjbbV3xg0hKLnEiCWmdnbZdwU00ixNDEtVwtMFsAZg224DKxCqu67BrkQ9BQNOtjg3Bxu4fAZ3MqARyGWmkt5rGoQ2b/AWenRBit1cS9+RqF4mVYL50E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RD4WBygs; 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="RD4WBygs" Received: by smtp.kernel.org (Postfix) with ESMTPS id B772FC4CED4; 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=7z89/s10L7QPKeqM7gbWo0n48YPpaMzkq3cTu5wWLDw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RD4WBygsNAHG4/mdoa/kFI5qWf8FDmqTQAHL1lrNuhQGeDV5e3H+E8h9TPmo8X1CI X26wVv+mJaj1mvd1WHNidAvksl5GGotezJ4MDeuQw3ye9kHhRtJSp4jMvuHOx4GFeX D14/ng+B8G1rwMNAcaTcgVAZoESgmRVfvA/k17Ztq0mw5F0t+jenHkK4zzp/efFHyq Srs3UdMUjzDRd2+zcYFt9lMU0r6qnseBYG6EcwzXjfs6uZq60MjTkY9imgJhbnczbF b1GyxYHjux3yfWdTGddyURYsbhVl6YnYKyggtkLITKjj9OH0rNb+wh+hz3BmDD2MbO qOtjXZBkOFXbQ== 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 AFB9EECE57B; Mon, 9 Sep 2024 07:24:39 +0000 (UTC) From: Keke Li via B4 Relay Date: Mon, 09 Sep 2024 15:24:15 +0800 Subject: [PATCH v2 5/9] dt-bindings: media: Add amlogic,c3-isp.yaml Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240909-c3isp-v2-5-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=2740; i=keke.li@amlogic.com; s=20240902; h=from:subject:message-id; bh=KuDqGR6pzl4w3YqVWCgulbrKk8Ta15L+IotTw52VIMY=; b=7uYyKRNu/hnWTt6gjcZ27Y7nXFzDqo3IjVoySa01zkY5ctWtlHeAT2Ufle7veIWHYZo1m6UK1 OD9UeKKqjioBv9Hdb2YS5ch9pkxYLaGCqHV7AMjbJPktleTC+2Qln5p 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-isp is used to process raw image. Signed-off-by: Keke Li --- .../devicetree/bindings/media/amlogic,c3-isp.yaml | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,c3-isp.yaml b/Documentation/devicetree/bindings/media/amlogic,c3-isp.yaml new file mode 100644 index 000000000000..dfa439cdc380 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,c3-isp.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/amlogic,c3-isp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic C3 Image Signal Processing Unit + +maintainers: + - Keke Li + +description: + Amlogic ISP is the RAW image processing module + and supports three channels image output. + +properties: + compatible: + enum: + - amlogic,c3-isp + + reg: + maxItems: 1 + + reg-names: + items: + - const: isp + + power-domains: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: vapb + - const: isp0 + + interrupts: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: input port node. + + required: + - port@0 + +required: + - compatible + - reg + - reg-names + - power-domains + - clocks + - clock-names + - interrupts + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + isp: isp@ff000000 { + compatible = "amlogic,c3-isp"; + reg = <0x0 0xff000000 0x0 0xf000>; + reg-names = "isp"; + power-domains = <&pwrc PWRC_C3_ISP_TOP_ID>; + clocks = <&clkc_periphs CLKID_VAPB>, + <&clkc_periphs CLKID_ISP0>; + clock-names = "vapb", "isp0"; + interrupts = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + c3_isp_in: endpoint { + remote-endpoint = <&c3_adap_out>; + }; + }; + }; + }; + }; +...