From patchwork Thu Jan 5 14:03:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 39600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp315315wrt; Thu, 5 Jan 2023 06:04:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXv5nrQUrtlzXHqG3BRp2k69KMcMduZ1QM8nNhG++DJBLltphjGyui7thC9Fvy1fSIqq+Tht X-Received: by 2002:a05:6a20:12d1:b0:b5:4928:3ab9 with SMTP id v17-20020a056a2012d100b000b549283ab9mr876369pzg.35.1672927480090; Thu, 05 Jan 2023 06:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672927480; cv=none; d=google.com; s=arc-20160816; b=c8Dh7evBA68Ip02hvfPPd3NTG3mESk5qnfuHfQfQSNu1t+Jr5UTCXDTlVA0KF3nipx yWlnxl7Exg/8f4KKXGBuIvK/6Rp69RHd+SKTZP/DML5OIgX0xoFjovv2TFJUSeDUzCS9 HugVLUcFWv9KjER+0sKhUsVfTaVolz89akQ0jSJOSTK/wFlSOpSvkW8esoA+co/lIQsf iKMPXtx5pDLLNuAuK0F8BxwWZ7aHW0Fz6gLAsyflQvfxswLw9SVZBsfOWTkFsEbuuNJr 5/YFqq4uuCqdW4AQwYIGQxqkWTnnNqIafkxfn7UZQgprz96FDN835adBkbEV1SnvCqRh xQCA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a32-20020a634d20000000b0046f57b135c9si36109073pgb.182.2023.01.05.06.04.26; Thu, 05 Jan 2023 06:04:40 -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 + 99 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_Ha=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754191605261970506?= X-GMAIL-MSGID: =?utf-8?q?1754191605261970506?= Add DT bindings for TI DS90UB913 FPD-Link III Serializer. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- .../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>; + }; + }; + }; + }; + }; +...