Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8741704rwl; Tue, 10 Jan 2023 18:44:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXtnSUZvVn2Vc2vgFobCY/lI7kPeY0Mkpg+yRJxI34JI8TaopshgT10/TvqgiJs4NOlThmCd X-Received: by 2002:a17:902:7089:b0:193:10b9:8fc8 with SMTP id z9-20020a170902708900b0019310b98fc8mr639730plk.47.1673405068081; Tue, 10 Jan 2023 18:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673405068; cv=none; d=google.com; s=arc-20160816; b=0O64yPHg0IAgaxboOxACyqTHj74mKIS921NcCiYWyH0EVESEpGlt70RbxIpkxrSgGq RQuUmvLSXYa5EzUBU8GKSqhjv3vZYDPXoPH583fYsusJXpT4mE1JMV+SW8z5rx259BYu Mmwz8iq9EWVYaoeDcBBDQ2cvWcuqqtvnA0Pg6f7jnLtCLJ8fiEigcKAQ/be5iACt008R /o5CSUOS5Xru0mA2ebQYdOph6j1q4dDqm6AaPdGQXu88K1bUia3fwFXHdO4As3eF/fet ftAC551oudZ3Qx85lI+sV2VO21sJLEJ5lbCjYj2cocsStgeZHd2O5XjxBv24xiNEplqp ncSg== 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=S6Jfx/PvJpQ2/sqhIathXgR0K3+DZaZO50uKg+T2zso=; b=cxVYZwu+ijec6xBbDpviCn8Ze7EDpFLYDFNYCOdrPs4k6FQmAZX2BQXqvnTh4LRUwO cK6F+PfzSlqiOmFjKK9rGE6Dv3cNqI5CAguVnB/QgTsU7mUxKP0Jqj7H+nISsSUPCZnO /YMHSnVd5YOPacuwTDei/bNQ/L1MwxZIhpgycm1UC3Sa/FGZf9/MJ0UXPrOPQKGE19RZ Qy8yMDAbBYY07vLF4rVjikHI+vxOW3tfCb0Ehh/Kbp3wQccoUXAExk6ZMUAik2vkAaxU ZaYZDa+86h8zjfUNOKLHReUoNocVZK44+WQLtaVvgYSrWK4qI+eDgDEwfX5Xv4ORXDK8 UyRg== 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 h6-20020a170902f70600b001929d758436si12791291plo.609.2023.01.10.18.44.21; Tue, 10 Jan 2023 18:44:28 -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 S235715AbjAKCag (ORCPT + 53 others); Tue, 10 Jan 2023 21:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235643AbjAKCa2 (ORCPT ); Tue, 10 Jan 2023 21:30:28 -0500 Received: from mo-csw.securemx.jp (mo-csw1515.securemx.jp [210.130.202.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DECC6596; Tue, 10 Jan 2023 18:30:25 -0800 (PST) Received: by mo-csw.securemx.jp (mx-mo-csw1515) id 30B2Tw0G000645; Wed, 11 Jan 2023 11:29:58 +0900 X-Iguazu-Qid: 34tKVCYlZZdku8V1hD X-Iguazu-QSIG: v=2; s=0; t=1673404198; q=34tKVCYlZZdku8V1hD; m=B5fzQ9Qoac+bKKCbqwr8E/kpIgqZS5yabbLVWNpPzow= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1512) id 30B2TuWb025030 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 11 Jan 2023 11:29:56 +0900 X-SA-MID: 52825670 From: Yuji Ishikawa To: Hans Verkuil , Laurent Pinchart , Mauro Carvalho Chehab , Nobuhiro Iwamatsu , Rob Herring , Krzysztof Kozlowski , "Rafael J . Wysocki" , Mark Brown 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 v5 1/6] dt-bindings: media: platform: visconti: Add Toshiba Visconti Video Input Interface bindings Date: Wed, 11 Jan 2023 11:24:28 +0900 X-TSB-HOP2: ON Message-Id: <20230111022433.25950-2-yuji2.ishikawa@toshiba.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230111022433.25950-1-yuji2.ishikawa@toshiba.co.jp> References: <20230111022433.25950-1-yuji2.ishikawa@toshiba.co.jp> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 Changelog v5: - no change --- .../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