Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2700571rdh; Mon, 30 Oct 2023 05:26:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9Mgv2TJvj4D835hdu7zh1Qlmh2HBOrYDHUEiccVWvhmbFNYyfh/41gkfqL+NSRZODF+qN X-Received: by 2002:a17:902:ec8c:b0:1ca:7879:b59e with SMTP id x12-20020a170902ec8c00b001ca7879b59emr8373165plg.32.1698668764141; Mon, 30 Oct 2023 05:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698668764; cv=none; d=google.com; s=arc-20160816; b=T5T6eagqTDB0XGTcZgbp1CfuU+02eP1Kx2GWj0aJBvn30c30Gcfys36umhnzSS3Ye7 NAmvN6dPveleG6dvYeD8ZvPDMePcoEnX4oOwhSoy2p9ixImxF9qfHP2pjZv0/3206ust Wv71SahLtTZeWQxpq8JsPnDgKc4Og8kK6AquhnT92MhzoS/XSv0lr5AzHTdR16/Um1Rz s3WkGNglCCU5Puk4cjwdtZUvWRKchzA/YjW++JXK4k7xH0Zjxpc8+Rs0oYvD3x3Ph4wy RiD/yxTsnqNts0ktx5nPvrZmzixno1TkQeY322dyqHPm5XmOEb3Nn8d2jqM7HtFyKf1V xasg== 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=11p8GVTZYwN7sl4t6Y54rV8mWEh6v6UHata8/icFUYY=; fh=/sUFM3LIRLscnjlLfpf1Icbv7aS2VHkc5345TYI64Ck=; b=fRZcX+kNmdIIdIoMPR0a5EpNpdh58FjoO7dQRjz9YNp1sLZAaBZo2EsMQOoYYdQwyq YOeMNvYmKSpi9YZYcQWL/GJRWwsCA6HleX6ibTDkGEr3mGY9liWpOMoqEWdxamdKT3WF wVQo66L6dq2Yr+/08RWu71HafYxACX2+I0flJ7bSPZsKsDubIpXjTlUZOBg1YJ26Bzuf i0bi4BBHv+UHn7c87unmdYPbnasCrYN/2x0Tj9csxlM88/sJlL45OxcHvKc3M7DKovaA fn/LhytZ6TPPvQblUjkXECNJgTuW1BpNteio2s+lP5yeZGgQksig3bDB90oyJBbFIRka T5mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dDCYFJjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i2-20020a17090332c200b001c0cb378f04si234657plr.335.2023.10.30.05.26.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:26:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dDCYFJjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 077F58030B5B; Mon, 30 Oct 2023 05:25:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233316AbjJ3MZ1 (ORCPT + 99 others); Mon, 30 Oct 2023 08:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233182AbjJ3MZZ (ORCPT ); Mon, 30 Oct 2023 08:25:25 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC01A2; Mon, 30 Oct 2023 05:25:21 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id C8E07C000F; Mon, 30 Oct 2023 12:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698668720; 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=11p8GVTZYwN7sl4t6Y54rV8mWEh6v6UHata8/icFUYY=; b=dDCYFJjhM8hyWeR0+6alishjc7ficrxT36zoB21D3aDFdk+AOA5wlV7HMCEfGdmTTpJ3aA +HK2Iia8zUFQGX5wkHRvYaUshpl6kZkRO9i39l+t5s/mm6XBqcG65p1+vHiKrCQ30HoyLQ CQdecK69DavHsCN3OEAusxgNlLQg7chnZmfFQlD+7AvoIokyPEXQ3CKTlD3kt9CAM39gz1 Ad+FHuxyEYA0RmmZNV1tCSWaMb072Psg3X9E5BafGLGquCQ1Y7XCGuIQOER45ReRw5jW06 gLhZieAeiBaKcQrYZhKnfGESoz3OI+jff5qMNCH8RpILIzV/gpyaI4KuqE7odQ== 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 Subject: [PATCH v9 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Date: Mon, 30 Oct 2023 13:25:12 +0100 Message-ID: <5f83d60031320c4c7b0f0727604903f50ee49058.1698666612.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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:25:32 -0700 (PDT) Add a documentation for the Rockchip Camera Interface binding. Signed-off-by: Mehdi Djait --- v8=>v9: dropped the "Reviewed-by: Rob Herring " because of the following changes: - changed the compatible to rk3066-cif: rk3066 is the earliest Rockchip SoC that uses cif and it is the first model starting the RK30 lineup. - adjusted the description - changed the node name to video-capture .../bindings/media/rockchip,rk3066-cif.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml b/Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml new file mode 100644 index 000000000000..be69e474ed26 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,rk3066-cif.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,rk3066-cif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip CIF Camera Interface + +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: + enum: + - rockchip,rk3066-cif + - 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 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: A connection to a sensor or decoder + +required: + - compatible + - reg + - interrupts + - clocks + - port + +additionalProperties: false + +examples: + - | + #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"; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + power-domains = <&power PX30_PD_VI>; + + port { + endpoint { + remote-endpoint = <&tw9900_out>; + }; + }; + }; + }; +... -- 2.41.0