Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp911651rwl; Thu, 5 Jan 2023 06:20:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGNNO5V4zWHQsR2Odno9KiQLuicj9q3K0qvGzLc6mCKEOy/1eQ/a8GvhVnic+XyL7na7Wp X-Received: by 2002:a17:903:181:b0:189:3308:9a2b with SMTP id z1-20020a170903018100b0018933089a2bmr79749551plg.7.1672928432054; Thu, 05 Jan 2023 06:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672928432; cv=none; d=google.com; s=arc-20160816; b=ESbc9mBYSwa3/Bs8cre5qcJRtKm81+qzFeWR2JGK1vIO74HzL0iQ0FRfW2W0hzNRNh J/EgqTziWJr84NFwvdk9aJgpGA6Xqy48SsyjmRhT08q3AdR0ZO3EqphJA8L3fGj/phJU xb1aahq3mAg/+iLQoJoqcPIpEkiyFOz1GxE+n1wCtrQWsT+LwT2Y9p1FhVmvvQcufR2N qDNhyJglnVXolwCtw+l0L5G6wQcBE34vr1r3NuLDdwWdfXVfG1Q+RVX/CUVl+XHCXR5E isBMTzl/LOW+2XVPaLKExvWWZzeH9VHYPCqquprNi/IGhpRuhFx8JEiLZ+iSoHVTR+Vg Ar5w== 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=JuY+k6Nqx++Aa9VS9hXkPt0dHxh8BYOJFMxPwUOOUi4=; b=M5O5A09bp3hgZPzeKRiQWPuhZeRdjWVDXbqDQKdcXVHaDidJlxVcrl5X09DfWpiuSg 0dLjxAKhlxz4EjsfwRCR/VSDxrtxpBTe78DXAQg2CYJsfIpXjrS4RdOkEYVZJiEJVgto D+jeHdX4crSREtYKBrLTLnEXWB6++EusEvp2cVs+asyFs/LOy43o2FcMfvTPnZT5yav7 U37S7qeLm2W5TUTeAsBH/lL0TnhiXh4jn2+roRD584J1b9RX777FcS5wi2xylxzNu4YN DbhB1cmwGtmz63nRLmfpZiaUtAAL5CMgGTlNcsj+3p6YW5nHgRszVsMidoVOWg4u5XYV WRGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=DCdVz06F; 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 i22-20020a63cd16000000b0047780dc6a67si38808341pgg.370.2023.01.05.06.20.24; Thu, 05 Jan 2023 06:20:32 -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=DCdVz06F; 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 S234585AbjAEOD6 (ORCPT + 56 others); Thu, 5 Jan 2023 09:03:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234063AbjAEODa (ORCPT ); Thu, 5 Jan 2023 09:03:30 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9188F5A0; Thu, 5 Jan 2023 06:03:29 -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 D054FBC0; Thu, 5 Jan 2023 15:03:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1672927408; bh=LsJLOwzVESJOEp9yfRoOO6DX4J3gM9s2APCPmMfWxGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DCdVz06F4VNz1tHGbpyFkoP23V2OA4C6J6uweJd0cCddRqxJpP2jvoEXyorLbMsp2 YGIPqxmcjSlHgNLxjzcaKLwjpBOgxvYsrGYTuMFMvxYgkhuwaEJbxa5JRcuIWncrS0 xBSX9zsmTrj3zOOiHgJOuTHqMUdnPQDBvMZPwaHQ= 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 v6 3/8] dt-bindings: media: add TI DS90UB913 FPD-Link III Serializer Date: Thu, 5 Jan 2023 16:03:02 +0200 Message-Id: <20230105140307.272052-4-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230105140307.272052-1-tomi.valkeinen@ideasonboard.com> References: <20230105140307.272052-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 FPD-Link III Serializer. Signed-off-by: Tomi Valkeinen --- .../bindings/media/i2c/ti,ds90ub913.yaml | 133 ++++++++++++++++++ 1 file changed, 133 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..f6612bb0f667 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml @@ -0,0 +1,133 @@ +# 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 III Serializer + +maintainers: + - Tomi Valkeinen + +description: + The TI DS90UB913 is an FPD-Link III video serializer for parallel video. + +properties: + compatible: + enum: + - ti,ds90ub913a-q1 + + '#gpio-cells': + const: 2 + description: + First cell is the GPO pin number, second cell is the flags. The GPO pin + number must be in range of [0, 3]. Note that GPOs 2 and 3 are not + available in external oscillator mode. + + 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: Parallel input port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + required: + - pclk-sample + + port@1: + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + description: FPD-Link III output port + + required: + - port@0 + - port@1 + + 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>; + pclk-sample = <1>; + }; + }; + + 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