Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp478341rdb; Thu, 30 Nov 2023 09:32:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhYbC3ZaC5beXtlobYeI0qA/dH5U2KAlN/3nroWjF8JH/VnBcmrA/iMWFy2bNrp/STlXqf X-Received: by 2002:a05:6a00:3926:b0:68f:a92a:8509 with SMTP id fh38-20020a056a00392600b0068fa92a8509mr41130056pfb.7.1701365536553; Thu, 30 Nov 2023 09:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701365536; cv=none; d=google.com; s=arc-20160816; b=XcEimiPwsNJn1rT+Oe4xxUK2Sqb/yeJ4dUMFWTml9N8uFgMc1OhV9Id/s0o8FhTHag ZWEvxVhEN+iT7py4gz9hfvjNno6Eas8OYqk2J/watrj7A0IlTgL2Wj6Gcj3fEXHXA9Cl xZPpyYdto/RXvsTybp42cCtOznI9I1fM9TDTFIYQ1zBQjP8spAMQ1yS3xCtbfR5qBqCH Kke6aklrOSWUpbu7tJNP/O3/dY4govrve4vkbFoVkOS+Bnm2FG7Z3lgLVHPbzZrGomXX ugW8hnwMCnNzyYD5l7US2Ll7nM3AUy+s22syswltL5LgSfYThDU0Nu9d4/B5iU0M5Ht1 X4Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XSLxrMVxqm0ziB4mZr5w55OetSeMAMYektM6V59JEDg=; fh=GFwAwFxIoZKiAAhVzfpf60HVTM1Yf+NQB8UkXOeIMFs=; b=nieQQXSNRv5FTkBBxQYIcRvIzN5D2TCDVGoJuYcjdmSzWY5G30k7EpppIdbc8DHwx9 u/icC3H+bXwksm/MOPwiZxak/xFsu7mLB69/f1chLUPB9zncn0HVlPGON6BvB34TTP4c iQWOUAmLCtNJoDZrANwlHs6X19mIf2Pm0Lme0SKF0BP4oX/rzW4eb0lqhxHrT/PWCGaF fwbhPl3p4vbhDhOlTpXYdvpZqkngHAvqwv9+xqvsP6K7ti9Uvcr8DT5gE6JAOEYuKIKq wec9JzWbFLBucHaHM3MVBwNvNJigOxXgsOs/QvdaYungD1uF98rhfyNdL/5u5IwMNUaP cRQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JSjg4uu3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y12-20020a056a00190c00b006cb997a7799si1681111pfi.67.2023.11.30.09.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JSjg4uu3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A7357802788D; Thu, 30 Nov 2023 09:32:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346414AbjK3Rbs (ORCPT + 99 others); Thu, 30 Nov 2023 12:31:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346260AbjK3Rbr (ORCPT ); Thu, 30 Nov 2023 12:31:47 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8372C10F0; Thu, 30 Nov 2023 09:31:51 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4E007E000C; Thu, 30 Nov 2023 17:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701365510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XSLxrMVxqm0ziB4mZr5w55OetSeMAMYektM6V59JEDg=; b=JSjg4uu3lqiaDzoe8ywFFM1CktkTSJWnkfCCxkGewcoJDORSKcnX5+NdnCcXQJQ67DRcDF PdGrU/UingPm6De6vsuoSZTr68QpNvAgXEiAxFJW8TIvLprBawiBW30iMmVcYJ42p6Zaya LrAcWCaAJ+YxnDNQuMIDT8rdemjBdB3LzVi16+RTWYwVjGZh2U7FxYHXqRqxl0Tp2dlwcw wkkmLkEgLYQap+W0crJAbFyTO2t3IZbo3hrGRJSimz/wiXhhcxeFTqGfqWJl8kBQ054dU1 +e2kVcPz1L+D4FsWvR1LlqSo/u6qgCRF3pIXvo7yJ4U1j7zw15UK+sCGuhBEoQ== From: Mehdi Djait To: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com, michael.riesch@wolfvision.net, Mehdi Djait , Conor Dooley Subject: [PATCH V12 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Date: Thu, 30 Nov 2023 18:31:44 +0100 Message-ID: <30f115aa43786f14b8a32e046c69e7f4ddd1f524.1701364052.git.mehdi.djait@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: mehdi.djait@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:32:12 -0800 (PST) Add a documentation for the Rockchip Camera Interface binding. Reviewed-by: Conor Dooley Reviewed-by: Michael Riesch Signed-off-by: Mehdi Djait --- .../bindings/media/rockchip,px30-vip.yaml | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml new file mode 100644 index 000000000000..6af4a9b6774a --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,px30-vip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Camera Interface (CIF) + +maintainers: + - Mehdi Djait + +description: + CIF is a camera interface present on some Rockchip SoCs. It receives the data + from Camera sensor or CCIR656 encoder and transfers it into system main memory + by AXI bus. + +properties: + compatible: + const: rockchip,px30-vip + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: ACLK + - description: HCLK + - description: PCLK + + clock-names: + items: + - const: aclk + - const: hclk + - const: pclk + + resets: + items: + - description: AXI + - description: AHB + - description: PCLK IN + + reset-names: + items: + - const: axi + - const: ahb + - const: pclkin + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: input port on the parallel interface + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: [5, 6] + + required: + - bus-type + + required: + - port@0 + +required: + - compatible + - reg + - interrupts + - clocks + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + parent { + #address-cells = <2>; + #size-cells = <2>; + + video-capture@ff490000 { + compatible = "rockchip,px30-vip"; + reg = <0x0 0xff490000 0x0 0x200>; + interrupts = ; + clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>; + clock-names = "aclk", "hclk", "pclk"; + power-domains = <&power PX30_PD_VI>; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + cif_in: endpoint { + remote-endpoint = <&tw9900_out>; + bus-type = ; + }; + }; + }; + }; + }; +... -- 2.41.0