From patchwork Wed Nov 2 00:43:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3304036wru; Tue, 1 Nov 2022 17:44:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Nw4i5OTA4pHm5cV9kCVR+0d/KWrsUeTzTa+vC3TiSbJTlxQC4J0EpJeCo3vsAhy3Oc8Wv X-Received: by 2002:a17:906:fc6:b0:72f:d080:416 with SMTP id c6-20020a1709060fc600b0072fd0800416mr20699167ejk.1.1667349885742; Tue, 01 Nov 2022 17:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667349885; cv=none; d=google.com; s=arc-20160816; b=KacleUCGErz+f1Ax52WWAJY+zmwiuiz1jvWRJT0Az5l/2b6KY5M3OmLaFOY9WsaJ1x yEeNSIoJnpJJGc/O1px5TpBuNgioOX9CUN3cfznyo9oWpmw2ZpF0cfq1FKMRn6QvYuve KBEbPg0i/LbhfoBrKozSPjwmjP3EJS3d+vOvz+QmSYiVLQvLMElKNs7YJD44mrTPn0it +kDiRv/PzV3JtJOz6WUIbXG7wGDvvO5PxC1mKQBNODUE7bqHUEthumPdCqiJ/u1NbGq8 ArS4FpAeO4HAgFJMY5g7LfDo6a1D/zV8mXN3T7SRq76vxI8rEQx3q6IPYlwwyKTfgR8z kxjA== 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=+odqHPe23AieEhtlM9KN42tU79rwNayUlJ37zH7MIrY=; b=vvKc1M07REpfa/eLFBNoarRBuQ6IfDYBvIGSkVyZb5kUqilAKA2Vuj6twBTx9vvZ8l 01J2bh1sojKo7177o8YR6wyYb+T3pNFzkg0vMwEVQUJRTZF2obIY4/YpGkDp8R/lb3y/ orepInjzBGNtwWbpoXuuBFT2C3U6Mf07IprUbMMbW1geiHlwio17+0/8/6TgY8K9k967 7Iq9gq/5n+aO+zx9PLAHilnW5AFo0OTMOtfdb1MQTO7BCPfjIqpFi4hl8R758iz7wt9y UW4gfSrTLAeuZhLoLydkjJSwFSnZ1SVipdmj7WfO4+2qgqsFWvZudq4dcOrSDpOl18DS SSaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="g/UH4AQL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc30-20020a170907169e00b0078d027ceb41si16095661ejc.857.2022.11.01.17.44.21; Tue, 01 Nov 2022 17:44:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="g/UH4AQL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbiKBAnz (ORCPT + 99 others); Tue, 1 Nov 2022 20:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbiKBAnv (ORCPT ); Tue, 1 Nov 2022 20:43:51 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EFB0F23; Tue, 1 Nov 2022 17:43:50 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id h9so22417142wrt.0; Tue, 01 Nov 2022 17:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+odqHPe23AieEhtlM9KN42tU79rwNayUlJ37zH7MIrY=; b=g/UH4AQLOzg9XBNdCLiL4yf4FJsAd3VrVCtlNrPDWQcTwgVmnOp1dBuxZShoQnMyDV vHKv+qBk6z+pHLKGSPeozZdBwL786lKdEVWJiBuA1QXPyCYkEuYo7kQkFop5Gfjb2Frd siOdDkOi6YUJESuJA8UnL1b6JWJswIXrTxiXUOm3wMcSXYpszKqdX6cKNQA6g4J3cluT OBLrm6/MYNy8YOBw5l41aB9HTzflauvFFb5frZOOX02HPP4zSUSDqUvoN83mHpqo+fWo 7mTRvGDZWRKRjJyLXBpkoRojd1emN5Anos/BYZoHZzYdI/B5Qezu9C1r1SPBmSN+hQAN WDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+odqHPe23AieEhtlM9KN42tU79rwNayUlJ37zH7MIrY=; b=eeCtoz2L8JwgUD3/Y1BNATE9RloL1Ce3P4qWJXtzAwDUwksPHa47yQmmzr2OsxyGnz 4kdXvzLqxfCHz1SkshThddiYdfv421Uk6yD9q4t6/wGkWGlOOHUukLQKEhshyJ4KLluX dl/k1DuNDVudJTWmJq8OQwiDHTzDy5QUupbbpABcuLPajfN0G/yBxcpcSPAG1IBZP+66 Nw3krpn6AZypKVPQzDQLtxyh/FwfWeY2eC444MD5d+MemIl4yipwNIkNM+SpmzhMfV+0 yovvs1Z2tXnRU0zZQ2BBs7R2Aj0WIpSiT6urfDEETujFh6KkPEIYuoLvYUaJJvYbAmz/ VZ0A== X-Gm-Message-State: ACrzQf1oN6VWilqftgzzibGANqxxhVgLh+lJRwVeXhdVQ3mygWsLViUN FJJeO5WkDjHPlRu5WBsjNFs= X-Received: by 2002:a5d:4cd2:0:b0:236:ca9e:79d8 with SMTP id c18-20020a5d4cd2000000b00236ca9e79d8mr8652108wrt.234.1667349828834; Tue, 01 Nov 2022 17:43:48 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2501:c701:edc5:36d1:26b:8ee9]) by smtp.gmail.com with ESMTPSA id u8-20020a05600c19c800b003c6f8d30e40sm250737wmq.31.2022.11.01.17.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 17:43:48 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Jacopo Mondi , =?utf-8?q?Niklas_S=C3=B6derlund?= , Hans Verkuil Cc: Geert Uytterhoeven , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar , Laurent Pinchart , Krzysztof Kozlowski Subject: [PATCH v5 1/4] media: dt-bindings: Document Renesas RZ/G2L CSI-2 block Date: Wed, 2 Nov 2022 00:43:26 +0000 Message-Id: <20221102004329.5410-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221102004329.5410-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20221102004329.5410-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748343073610318077?= X-GMAIL-MSGID: =?utf-8?q?1748343073610318077?= From: Lad Prabhakar Document the CSI-2 block which is part of CRU found in Renesas RZ/G2L (and alike) SoCs. Signed-off-by: Lad Prabhakar Reviewed-by: Laurent Pinchart Reviewed-by: Krzysztof Kozlowski --- v4 -> v5 * No change v3 -> v4 * No change v2 -> v3 * Updated clock names * Included presetn reset signal and added reset-names in CSI binding * Renamed csi20 -> csi for example node * Included RB tag from Krzysztof for patch#1 v1 -> v2 * Dropped media prefix from subject * Renamed node name csi20 -> csi * Used 4 spaces for indentation in example node * Dropped reset-names and interrupt-names properties * Dropped oneOf from compatible * Included RB tag from Laurent RFC v2 -> v1 * Fixed review comments pointed by Rob and Jacopo. RFC v1 -> RFC v2 * New patch --- .../bindings/media/renesas,rzg2l-csi2.yaml | 149 ++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml diff --git a/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml b/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml new file mode 100644 index 000000000000..67eea2ac1d22 --- /dev/null +++ b/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml @@ -0,0 +1,149 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2022 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/renesas,rzg2l-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G2L (and alike SoC's) MIPI CSI-2 receiver + +maintainers: + - Lad Prabhakar + +description: + The CSI-2 receiver device provides MIPI CSI-2 capabilities for the Renesas RZ/G2L + (and alike SoCs). MIPI CSI-2 is part of the CRU block which is used in conjunction + with the Image Processing module, which provides the video capture capabilities. + +properties: + compatible: + items: + - enum: + - renesas,r9a07g044-csi2 # RZ/G2{L,LC} + - renesas,r9a07g054-csi2 # RZ/V2L + - const: renesas,rzg2l-csi2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Internal clock for connecting CRU and MIPI + - description: CRU Main clock + - description: CRU Register access clock + + clock-names: + items: + - const: system + - const: video + - const: apb + + power-domains: + maxItems: 1 + + resets: + items: + - description: CRU_PRESETN reset terminal + - description: CRU_CMN_RSTB reset terminal + + reset-names: + items: + - const: presetn + - const: cmn-rstb + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port node, single endpoint describing the CSI-2 transmitter. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + items: + maximum: 4 + + required: + - clock-lanes + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Output port node, Image Processing block connected to the CSI-2 receiver. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - resets + - reset-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + csi: csi@10830400 { + compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; + reg = <0x10830400 0xfc00>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A07G044_CRU_SYSCLK>, + <&cpg CPG_MOD R9A07G044_CRU_VCLK>, + <&cpg CPG_MOD R9A07G044_CRU_PCLK>; + clock-names = "system", "video", "apb"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_CRU_PRESETN>, + <&cpg R9A07G044_CRU_CMN_RSTB>; + reset-names = "presetn", "cmn-rstb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + csi2_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&ov5645_ep>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <1>; + + csi2cru: endpoint@0 { + reg = <0>; + remote-endpoint = <&crucsi2>; + }; + }; + }; + };