Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2319137rwi; Tue, 1 Nov 2022 06:30:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZYUNqzuam48C3K0vJkRtoIWWTeVx1+2Rnpl9iPtc/CSTrzu8RlO/hVZp9LVtBFmdOBF10 X-Received: by 2002:a17:907:a087:b0:7ad:a4c4:873b with SMTP id hu7-20020a170907a08700b007ada4c4873bmr17704886ejc.58.1667309420830; Tue, 01 Nov 2022 06:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667309420; cv=none; d=google.com; s=arc-20160816; b=QcmdgKTL3/qyUR8PFqZAQwGwVB9GKoYrnAqwROmkwQTpmj7D+62hbnOEMJP9/mphTy c3V867IPEqz2yIVyn23GAFoSKIYZjJxOsqSMWaXjShikNAaITP/s4XPfpcW2XsSTR5GG 2xz9MXaMYw/fBRP5Lh8N8NXsC6b/RGFpJJD/opGH8Wpgiy+gqjqoAZwo/SeGb9P59X2i wpY/TRcxBFKCn82DcNTJQlaC9bLBt2fSpI35oXBXHV14Re66PyppSobdr2e3Klsh9zV4 7uGcDM0O7V+0jaiaFFoe5ygijpdTjMK7D49zm+++HERomm4Ar429chB5U3I0NQIFg64w 7eDQ== 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=qndZIzpUU4QIGa+UURgeKX4Hb0T3gfjw3wia9uACo/I=; b=Q6INkV5j4dGc93X1JHQqjN05D0Ae7Y0vm3Dv+2v6YvsNUZS/qx7x5qa2e4ODWh0OaT yaTvCm6uxkZt9McAbGUFIzpTyjFmzh9HegdppgokD0uuXN2NpLHnyItmDikAxnJaEW+N kJUp4L7E5ygGtUM+FXT/wRto1ZuUE5k20MBhNtcgkAWIACR1OUUO0B75aCUMvHp0Avnu d81H9BoMLYMy+HRRVr0k5Tfhsmc6gTBxKHRr6Cqply+dHcvkIJ1JxIysdwnbvV2ssyOf ICNEwFMm1ArROhIHpI8EWwaMHkmKekOWiptl8rndcNC6+7wAdaizhZAFKQGZayTY1xzw 7SSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=S2lbDvmX; 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 hc15-20020a170907168f00b007982c5e6ec8si14062713ejc.89.2022.11.01.06.29.56; Tue, 01 Nov 2022 06:30:20 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=S2lbDvmX; 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 S230221AbiKANV3 (ORCPT + 96 others); Tue, 1 Nov 2022 09:21:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbiKANVH (ORCPT ); Tue, 1 Nov 2022 09:21:07 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872841182D; Tue, 1 Nov 2022 06:21:04 -0700 (PDT) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DA8D33307; Tue, 1 Nov 2022 14:20:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1667308859; bh=WHz0ZfQ7Bf+utOyail1PxyTVN4OPrlob7z8JQ6wr28Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S2lbDvmXu5Q/ByfvaKDS+y6KcHgFg6twnFBLEEzFRzOFIAJsMBvFsMjL/jVbxCxgh qxvuMbUCpQQXEpkXraI1er5S+z28D4k7NAPmmaYubA8/McowRunpr27E2XtDmrXk7k YubE/qkUS2CDRKOAr5dLEAaXoTIgTXRoFeoCITMI= From: Tomi Valkeinen To: devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Hans Verkuil , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Luca Ceresoli , Mark Rutland , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Rob Herring , Sakari Ailus , Vladimir Zapolskiy , Wolfram Sang , satish.nagireddy@getcruise.com, Tomi Valkeinen Subject: [PATCH v4 5/8] dt-bindings: media: add bindings for TI DS90UB953 Date: Tue, 1 Nov 2022 15:20:29 +0200 Message-Id: <20221101132032.1542416-6-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221101132032.1542416-1-tomi.valkeinen@ideasonboard.com> References: <20221101132032.1542416-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 DS90UB953 FPDLink-3 Serializer. Signed-off-by: Tomi Valkeinen --- .../bindings/media/i2c/ti,ds90ub953.yaml | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml new file mode 100644 index 000000000000..355f7d6a19fe --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ti,ds90ub953.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DS90UB953 FPD-Link 3 Serializer + +maintainers: + - Tomi Valkeinen + +description: | + The TI DS90UB953 is an FPD-Link 3 video serializer for MIPI CSI-2. + +properties: + compatible: + enum: + - ti,ds90ub953-q1 + - ti,ds90ub971-q1 + + '#gpio-cells': + const: 2 + + gpio-controller: true + + '#clock-cells': + const: 0 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + description: CSI-2 input port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + description: FPD-Link 3 output port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + + 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,ds90ub953-q1"; + + gpio-controller; + #gpio-cells = <2>; + + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ub953_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&sensor_out>; + }; + }; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&deser_fpd_in>; + }; + }; + }; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@21 { + compatible = "sony,imx390"; + reg = <0x21>; + + clocks = <&clk_cam_27M>; + clock-names = "inck"; + + xclr-gpios = <&serializer 0 GPIO_ACTIVE_LOW>; + error0-gpios = <&serializer 1 GPIO_ACTIVE_HIGH>; + error1-gpios = <&serializer 2 GPIO_ACTIVE_HIGH>; + comready-gpios = <&serializer 3 GPIO_ACTIVE_HIGH>; + + port { + sensor_out: endpoint { + remote-endpoint = <&ub953_in>; + }; + }; + }; + }; + }; +... -- 2.34.1