Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp773619rwb; Thu, 8 Dec 2022 02:49:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bm66y7lrB64rfSSE4pjsFXYI/6yvKdRRL6/0xuG5a//Ei/eb/ziu8bo23MEQ+gx0jHThU X-Received: by 2002:a17:90a:5b09:b0:218:a0cd:5a99 with SMTP id o9-20020a17090a5b0900b00218a0cd5a99mr92077428pji.76.1670496575887; Thu, 08 Dec 2022 02:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670496575; cv=none; d=google.com; s=arc-20160816; b=lmndzsdIWOtnaPNq4Zn5s8h5QxbvKzbFRR6rDnUW1u0M/UGubEZ2QGLf92/ofOMtvT ZLXdVnKKyWSkrd4rhe+NxiD7TDK0riyAPbGlU/14eZzR8eGYs4bwx5VABD6wZIeOhGq0 Pp4jQfAzhNro4IZ0eNBe02gFHVxqyvHXADFOh8sOa+cKdZ/X6f1FguhE+1deRLI5g25K Tz/Wk317MFggOarrbSuXrrHh/iMcTVcS2fowOSYFyJKGvaKEej2KyYHXEZSeMIUXo0F1 srdbGXnRoBXPEkZalKyGqwQ3ldHHyY9wwnqbzmld9mQCVkj2dN85Hc1C7SyTevgz14zN 0n3Q== 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=SOJ1o8cij6GLn1C0EAzd8Aq0/sZT2TL6PTyTivt15UA=; b=d0nsk6/Im2/Ru4aoXee9h9HBH7GXYn5D0zmfg7Tkz352Mq4VFs2d8bVZpGM8CU0urX 9yMmjZo9E8TlF4H9Oiz5N3+sSQmPUuH7ViRCXLpp5C0mMy3EkpIXg9eNVwtSJkx1oElz LenO2g1e/Rhg6B7dlr06xHr/5nwGhJPUkkBEZw9Et+0IINOJMbGRFmn7/wW/FXw2v9QO j1K9jU/0BWUs12/E5sthmVSPRF3JkMOZusaVXEZSakMqiBKo8eF1U/JDwULkB22bdzUo Bj4fSeY1PIXLX1a6IoPwdGP6PIhK2JRyfwto4BUZ3pHbRkTDEaueudVtWXaS7bTYNiHs pFBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=CI5rZ3bk; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j197-20020a636ece000000b00477a18e51e2si22388266pgc.141.2022.12.08.02.49.27; Thu, 08 Dec 2022 02:49:35 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=CI5rZ3bk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbiLHKoC (ORCPT + 72 others); Thu, 8 Dec 2022 05:44:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbiLHKnW (ORCPT ); Thu, 8 Dec 2022 05:43:22 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36436DEE; Thu, 8 Dec 2022 02:40:30 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D7AA5A39; Thu, 8 Dec 2022 11:40:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670496028; bh=9p9S7paQq4eRGHKfzZHvkOA0duFpHL18ejIVpU4zXkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CI5rZ3bkC21Msx+bVRzSTGCRC6fx5qLtr1U8yudERF8h9qb9XiQ7XKmK/IjqPKDIi bBMdVMa43BMUCFLadhIVEte+4CqbQoos+cb9qsnRjAkGyYluu3aszx6zwVfqR+Z/VN /SY/UGnymDGX6UIgW5Cw7vrzf9tt/Ko7vD3MUJw0= From: Tomi Valkeinen To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Andy Shevchenko , Matti Vaittinen Cc: Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Laurent Pinchart , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Marek Vasut , Tomi Valkeinen Subject: [PATCH v5 3/8] dt-bindings: media: add bindings for TI DS90UB913 Date: Thu, 8 Dec 2022 12:40:01 +0200 Message-Id: <20221208104006.316606-4-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> References: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Add DT bindings for TI DS90UB913 FPDLink-3 Serializer. Signed-off-by: Tomi Valkeinen --- .../bindings/media/i2c/ti,ds90ub913.yaml | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml new file mode 100644 index 000000000000..3a5b34c6bb64 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml @@ -0,0 +1,121 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ti,ds90ub913.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DS90UB913 FPD-Link 3 Serializer + +maintainers: + - Tomi Valkeinen + +description: + The TI DS90UB913 is an FPD-Link 3 video serializer for parallel video. + +properties: + compatible: + enum: + - ti,ds90ub913a-q1 + + '#gpio-cells': + const: 2 + + gpio-controller: true + + clocks: + maxItems: 1 + description: + Reference clock connected to the CLKIN pin. + + clock-names: + items: + - const: clkin + + '#clock-cells': + const: 0 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 input port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + port@1: + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + description: FPD-Link 3 output port + + i2c: + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + +required: + - compatible + - '#gpio-cells' + - gpio-controller + - '#clock-cells' + - ports + +additionalProperties: false + +examples: + - | + #include + + serializer { + compatible = "ti,ds90ub913a-q1"; + + gpio-controller; + #gpio-cells = <2>; + + clocks = <&clk_cam_48M>; + clock-names = "clkin"; + + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ub913_in: endpoint { + remote-endpoint = <&sensor_out>; + }; + }; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&deser_fpd_in>; + }; + }; + }; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@48 { + compatible = "aptina,mt9v111"; + reg = <0x48>; + + clocks = <&fixed_clock>; + + port { + sensor_out: endpoint { + remote-endpoint = <&ub913_in>; + }; + }; + }; + }; + }; +... -- 2.34.1