From patchwork Wed Nov 2 00:43:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 13977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3304428wru; Tue, 1 Nov 2022 17:45:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73aBWgaPCf1k6D0MQ1Bba1nQyhmormfMzl+Ce0moePQnwwfqoy6wBMEHiQ3qo7lIYNwHbl X-Received: by 2002:a17:906:4783:b0:780:5be5:c81b with SMTP id cw3-20020a170906478300b007805be5c81bmr20884538ejc.76.1667349938893; Tue, 01 Nov 2022 17:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667349938; cv=none; d=google.com; s=arc-20160816; b=nK//OQYrAIgOgdEgHXDeAYA0Zo3b0V/WuWjX/tARl/nBul05nFp9vvNdDAleNRL+0z PFJx2dYeQVySH8hS0wHpwfCbzYoPtzR6btoUf7ILAgOkdjHQdCZs9UjKd5vHOX+Vjyxe 36liVW0VftNHmOHr3CIScmrn85Q8/yxvlooSct1L6kTKtJSmQfo9VTgdSPGxa/PgRBL/ RL302w1q7eDN0ASNTwGwNMtoCncGVoGcjyumld/rk2i+1iVD3dHyO/0hYpj9xPcGLt+l StSuMtjh3IgGnycfsTBCKQzzda+f8vxrkhA6pZ7k/QeSha1E+U2EsZ4cDZaGFnA70Lj/ m2fg== 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=QphUskXB5Q4FOtuPKsXeFyRlW21b9sfIILkgdQVK38E=; b=sPD4rH3ITo3yUwzTJq3XNMBq6lVbuVAl6LYfi0sLaApfaEp89zKsPSwxCmk0nggmbL MHUjwLu1O+ksKRc2nBDvBhoozG3WKDmQvBw3OXjws0eJ9YdcAh9VL6sFXA+/fYOgm1gM R/iU4ZGNngoAPqzPKukVXu7Qk8hLPeuDkTi3+UDmf8jto5wUGpBeFEsSYG/Prw5jQZcy s3Cx7Hht6olpf48/vMyxREx3ILBEUbROlEttTEAmNk+tATi96k/kI426aER9up1s8Ebo 4weQqmcB6hgycYWWwlDgHEG583LlqS0OlrDPP7eBb967A8CSy2TC+RVv9ehUufCo/FIu 0x1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jellIiKX; 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 sg9-20020a170907a40900b0078db8bac984si13885432ejc.830.2022.11.01.17.45.15; Tue, 01 Nov 2022 17:45:38 -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=jellIiKX; 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 S229993AbiKBAoM (ORCPT + 99 others); Tue, 1 Nov 2022 20:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbiKBAnw (ORCPT ); Tue, 1 Nov 2022 20:43:52 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86627BDA; Tue, 1 Nov 2022 17:43:51 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id o4so22383163wrq.6; Tue, 01 Nov 2022 17:43:51 -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=QphUskXB5Q4FOtuPKsXeFyRlW21b9sfIILkgdQVK38E=; b=jellIiKXzPwU4pdQrit6k3tJp9St6UTu/yOtIPu8qBYzfgoyl+SDWLxqTnFNOqAv65 vQFCLqlG7od5eqEkcVAQf123t2oaM6CPoy1LayCWVR/zwXH/NSJu+LGBnCyzLjxvRvWq cRv7DIxVYWaOxA/CwpaF5NXfaroDT6YhCEFTLmx4rzLAkrZWs4ZPD7sf28QjOIidHXHo 4Hih4huJFB+eQdzbq030AQ1IzTrS3Sj61fdYC2uccTYX8hUC3xSq+1PQdfkMuqin/gN0 V/QCmR85U8HFmUGHFQgTvATfUnn8vbDXqM2I23zFEsBWcR5jTOLxV6ga4icTgBMnhow2 ZyEA== 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=QphUskXB5Q4FOtuPKsXeFyRlW21b9sfIILkgdQVK38E=; b=S8cU/ZMJ1tjCNo80sIDj112rG4dOkm+ZdIQYGuAFEt1TDfJydFDZHVW9oQlpgfs05c sfRnJkKi1POWtXjOg8OhEHq05ocM4+PJSTIJ24Bzh8ejtkRfkjgHDvUOMEa7VTMj+fLG X4siHx8l7dJ9JYvns40yo8z4CKmPd3VIqOu0SK3xjEu1/xbw+kaq0HgLiUZKv0j5+iN3 uk2WeQdrEOETxvH3w14XlCSsW6Srm9ea/UsMhEzBnJ+cxlvk45WLg+WNDlByQl4wtf0Z WrNcR6ZArbcBrW5Z7D6E0OE3ulrFAU7oWimomjCipKcw/92Y70VmxvnGbcp0LdLvNDCW y5+Q== X-Gm-Message-State: ACrzQf1YWzHZf5SRrHt0RSWxN5tezX2Yh1r/JeGeSGPdWFo/ag+V7+b4 azeMv2z37F6LhVTW65kRp44= X-Received: by 2002:a5d:66ca:0:b0:236:6d69:e1a0 with SMTP id k10-20020a5d66ca000000b002366d69e1a0mr13293510wrw.558.1667349830046; Tue, 01 Nov 2022 17:43:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 17:43:49 -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 , Rob Herring Subject: [PATCH v5 2/4] media: dt-bindings: Document Renesas RZ/G2L CRU block Date: Wed, 2 Nov 2022 00:43:27 +0000 Message-Id: <20221102004329.5410-3-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?1748343129798049225?= X-GMAIL-MSGID: =?utf-8?q?1748343129798049225?= From: Lad Prabhakar Document the CRU block found on Renesas RZ/G2L (and alike) SoCs. Signed-off-by: Lad Prabhakar Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- v4 -> v5 * No change v3 -> v4 * Included RB tag from Rob v2 -> v3 * Updated clock names v1 -> v2 * Dropped media prefix from subject * Dropped oneOf from compatible * Used 4 spaces for indentation in example node * Marked port0/1 as required * Updated example node * Included RB tag from Laurent RFC v2 -> v1 * Dropped endpoint stuff from port1 as suggested by Rob * Updated description for endpoint RFC v1 -> RFC v2 * Dropped CSI --- .../bindings/media/renesas,rzg2l-cru.yaml | 157 ++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml diff --git a/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml b/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml new file mode 100644 index 000000000000..7dde7967c886 --- /dev/null +++ b/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml @@ -0,0 +1,157 @@ +# 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-cru.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G2L (and alike SoC's) Camera Data Receiving Unit (CRU) Image processing + +maintainers: + - Lad Prabhakar + +description: + The CRU image processing module is a data conversion module equipped with pixel + color space conversion, LUT, pixel format conversion, etc. An MIPI CSI-2 input and + parallel (including ITU-R BT.656) input are provided as the image sensor interface. + +properties: + compatible: + items: + - enum: + - renesas,r9a07g044-cru # RZ/G2{L,LC} + - renesas,r9a07g054-cru # RZ/V2L + - const: renesas,rzg2l-cru + + reg: + maxItems: 1 + + interrupts: + maxItems: 3 + + interrupt-names: + items: + - const: image_conv + - const: image_conv_err + - const: axi_mst_err + + clocks: + items: + - description: CRU Main clock + - description: CRU Register access clock + - description: CRU image transfer clock + + clock-names: + items: + - const: video + - const: apb + - const: axi + + power-domains: + maxItems: 1 + + resets: + items: + - description: CRU_PRESETN reset terminal + - description: CRU_ARESETN reset terminal + + reset-names: + items: + - const: presetn + - const: aresetn + + 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 a parallel input source. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + hsync-active: true + vsync-active: true + bus-width: true + data-shift: true + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port node, describing the Image Processing module connected to the + CSI-2 receiver. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - power-domains + +additionalProperties: false + +examples: + # Device node example with CSI-2 + - | + #include + #include + + cru: video@10830000 { + compatible = "renesas,r9a07g044-cru", "renesas,rzg2l-cru"; + reg = <0x10830000 0x400>; + interrupts = , + , + ; + interrupt-names = "image_conv", "image_conv_err", "axi_mst_err"; + clocks = <&cpg CPG_MOD R9A07G044_CRU_VCLK>, + <&cpg CPG_MOD R9A07G044_CRU_PCLK>, + <&cpg CPG_MOD R9A07G044_CRU_ACLK>; + clock-names = "video", "apb", "axi"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_CRU_PRESETN>, + <&cpg R9A07G044_CRU_ARESETN>; + reset-names = "presetn", "aresetn"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + cru_parallel_in: endpoint@0 { + reg = <0>; + remote-endpoint= <&ov5642>; + hsync-active = <1>; + vsync-active = <1>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + cru_csi_in: endpoint@0 { + reg = <0>; + remote-endpoint= <&csi_cru_in>; + }; + }; + }; + };