Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7102700rwl; Mon, 9 Jan 2023 18:08:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXshe796IUgqCCEC60sTrxzkmuh65IGmua9O4TdRfD760R09xdXD8sF6CtoOeFf17W6/QGQF X-Received: by 2002:a17:902:8ec7:b0:192:52d6:7fc7 with SMTP id x7-20020a1709028ec700b0019252d67fc7mr67025904plo.63.1673316501237; Mon, 09 Jan 2023 18:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673316501; cv=none; d=google.com; s=arc-20160816; b=ur4QkAGpf4e+zLwQ0Eprck06lDKQaoDOZ9gf6xZR6iCRlKCbaY4WqtkfiV0xuaksc2 EUCU2jED4gd63qqrUxHtetoBC5A8XDjLe6mWe5iuLiwGRSLbsqxf5lZkhl00GOahcC8o 7wq/H95xfeQy6R1oJo2YvHt9vNDVitKPHg9LY5lkFJ1z1MpMGtpLuiVdH+b5qdgA1McB SW9Arkv2pCS4Vnsb+q4yFloY1Opc1wZvneqficsMk+fBd9o47xt7pWkinLj8YOY7zhOT kGjTvSXWk6ilx2kovlyXjNn7lRY8zI9+0UvrkZye+4/Fp/zx88Im3rejCIMQ7u9ImL/L M+Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=DEtoUfMG9cI371Cl6T2xj7CwygJDguw3U4iq3KxIoA0=; b=H12fLJnhZMFnkRIFJcg2Boi9BymZLfN0Q6k7sSEyfZuzFWRmxwv6R8Tt/UMAMyYg1W xeHOLiXlNhsDIPjMfS+7uRrJzhFrr4IAgfg0ahNkDks7rjTb2qXkmMgE+NHp88Ip99e+ wjAhAd0pFirgOkZ5+zZK+fxpuWoyqXDluOs+py4Ww81SyveOo7fTBSrq6CXXZa+2XKYw YX9AmjBX5v74cRVzHPoM/DhU3lcjF6S+Cm6BgkPd2Dhy43ZzWSp58jqPZ+DWHUCxiPwV XSTZK2fWv6T3+rd2RrHCQ7x44P4R4Tjqv19P0bBK1s1oNjiUfhqe3bu58fStojwmJyuY UgtA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170903124900b0017a0f71990dsi11043209plh.141.2023.01.09.18.08.14; Mon, 09 Jan 2023 18:08:21 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbjAJBzp (ORCPT + 55 others); Mon, 9 Jan 2023 20:55:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjAJBzn (ORCPT ); Mon, 9 Jan 2023 20:55:43 -0500 X-Greylist: delayed 73 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 09 Jan 2023 17:55:38 PST Received: from mo-csw-fb.securemx.jp (mo-csw-fb1515.securemx.jp [210.130.202.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EACF21BA; Mon, 9 Jan 2023 17:55:38 -0800 (PST) Received: by mo-csw-fb.securemx.jp (mx-mo-csw-fb1515) id 30A1laeu018291; Tue, 10 Jan 2023 10:47:36 +0900 Received: by mo-csw.securemx.jp (mx-mo-csw1515) id 30A1l2Sr031107; Tue, 10 Jan 2023 10:47:02 +0900 X-Iguazu-Qid: 34tMMX4C9tR1mgr8Pn X-Iguazu-QSIG: v=2; s=0; t=1673315221; q=34tMMX4C9tR1mgr8Pn; m=CreVXJU1T1DlvwlDircNacW2NIOEHXti7FvoGNGcbKs= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1511) id 30A1l0sP001836 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 10 Jan 2023 10:47:00 +0900 X-SA-MID: 48793543 From: Yuji Ishikawa To: Hans Verkuil , Laurent Pinchart , Mauro Carvalho Chehab , Nobuhiro Iwamatsu Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, yuji2.ishikawa@toshiba.co.jp Subject: [PATCH v4 1/6] dt-bindings: media: platform: visconti: Add Toshiba Visconti Video Input Interface bindings Date: Tue, 10 Jan 2023 10:41:38 +0900 X-TSB-HOP2: ON Message-Id: <20230110014143.18684-2-yuji2.ishikawa@toshiba.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230110014143.18684-1-yuji2.ishikawa@toshiba.co.jp> References: <20230110014143.18684-1-yuji2.ishikawa@toshiba.co.jp> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 Adds the Device Tree binding documentation that allows to describe the Video Input Interface found in Toshiba Visconti SoCs. Signed-off-by: Yuji Ishikawa Reviewed-by: Nobuhiro Iwamatsu --- Changelog v2: - no change Changelog v3: - no change Changelog v4: - fix style problems at the v3 patch - remove "index" member - update example --- .../bindings/media/toshiba,visconti-viif.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml diff --git a/Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml b/Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml new file mode 100644 index 00000000000..71442724d1a --- /dev/null +++ b/Documentation/devicetree/bindings/media/toshiba,visconti-viif.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/toshiba,visconti-viif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Toshiba Visconti5 SoC Video Input Interface Device Tree Bindings + +maintainers: + - Nobuhiro Iwamatsu + +description: + Toshiba Visconti5 SoC Video Input Interface (VIIF) + receives MIPI CSI2 video stream, + processes the stream with embedded image signal processor (L1ISP, L2ISP), + then stores pictures to main memory. + +properties: + compatible: + const: toshiba,visconti-viif + + reg: + items: + - description: registers for capture control + - description: registers for CSI2 receiver control + + interrupts: + items: + - description: Sync Interrupt + - description: Status (Error) Interrupt + - description: CSI2 Receiver Interrupt + - description: L1ISP Interrupt + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Input port, single endpoint describing the CSI-2 transmitter. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: VIIF supports 2 or 4 data lines + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + minimum: 1 + maximum: 4 + + clock-lanes: + description: VIIF supports 1 clock line + const: 0 + +required: + - compatible + - reg + - interrupts + - port + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + viif@1c000000 { + compatible = "toshiba,visconti-viif"; + reg = <0 0x1c000000 0 0x6000>, + <0 0x1c008000 0 0x400>; + interrupts = , + , + , + ; + + port { + #address-cells = <1>; + #size-cells = <0>; + + csi_in0: endpoint { + remote-endpoint = <&imx219_out0>; + bus-type = <4>; + data-lanes = <1 2>; + clock-lanes = <0>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; + }; + }; + }; + }; -- 2.25.1