From patchwork Wed Jan 18 12:40:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 45269 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2332968wrn; Wed, 18 Jan 2023 05:21:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtpRtG62f+PDqXw2w4SyMged++pw+pqkV/FAWwu+ycY0BMAlvEjQG+AAcLMGDO/m/nhX8t0 X-Received: by 2002:a17:906:b299:b0:86e:a013:c26f with SMTP id q25-20020a170906b29900b0086ea013c26fmr7120908ejz.19.1674048068233; Wed, 18 Jan 2023 05:21:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674048068; cv=none; d=google.com; s=arc-20160816; b=RB9kMvzk5jhnF2YXfu0sD+q1nVqv3WnOq1DpbKuJWflIdiDjhF8Mpznqo0jPA2yC4Y /iKK+Dx4gt6WhuzSG2gMsD8cHb8cUztsssILycHA24rc6KKMf06KMsGbgeTrFfUNwMkJ DHo7AJFe9YCEiIohB1+IdNn+mGoWMQxniDGQ3RcNpjGarWZE+xFsO5jG6WJ5K8Btycoj kcSIrr4t94CTmA3LMhgpZo1a/72lTKzYz8YCy4W7UAJ0ZwOn5iDwDsLlS3NjeHk6S0lc UmY7CVpISxlNnIhAjjqIeob/fSk2NsNdcB4HzcN4iHjXxjIaIxhiyagCVnARXhDA3Q2j jrpg== 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=Etj4jteyOTUDd/0f+nZiE3cWsTcEqhDUavvGZZNUAl0=; b=u/i8rWZ+ptd8939ageQlu3+C+SySaem+J0HEfIOMPOv9aH+AU1u9y+fb/6OG34KC6x BwSU1fRMBYobfkh3LkgG7h0IP/A/bc5pKig2k8AVMEcuHJt5WMkl/Nptml/GvanVPMOP A+ab7kRM+iaaIYwhGJUswHDRq4trGFAYETmhUCnnN6IdOhDtV3NVsVp4bIyoGL4c54Ii cP/4BueULiWE6JkqZ9jM6pJ5acxPoNhWRofJamMampdKB6qgrrANYd0WNkYoqLAPOIDY 3a0AK92hQQC0CGvGcNeskaPFEZNOo8X3m0n/4dJCaoJZ9AhZ9/nPHL/Myv1xNWmUGjAm 7vUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HQW2+uJG; 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 xg10-20020a170907320a00b00781f51771b6si37731414ejb.900.2023.01.18.05.20.44; Wed, 18 Jan 2023 05:21:08 -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=HQW2+uJG; 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 S229665AbjARNRb (ORCPT + 99 others); Wed, 18 Jan 2023 08:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbjARNQY (ORCPT ); Wed, 18 Jan 2023 08:16:24 -0500 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 8B56994C82; Wed, 18 Jan 2023 04:41:07 -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 82D1D1B5C; Wed, 18 Jan 2023 13:40:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1674045659; bh=TyApQ6qpr4eiku+THwel+cmwld8/fczSmL0rhfymuCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HQW2+uJGZ5R3dDguBZtT/+9bIqyI85nEGlu7wOCa21cp3tYiIv6bMtVugo6zr08Co fbPdM4AbYZGFX9Wj1Zzp+MLOvEmhN+c8DpkgLajRIJhwD2SYki3GvkvGKY6kcDTa6k SPsBrveZNL0nUiDEUtHAcjxR1IXe9WFx/jL2COTM= 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 , Laurent Pinchart Cc: Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Marek Vasut , Tomi Valkeinen , Laurent Pinchart , Rob Herring Subject: [PATCH v7 2/7] dt-bindings: media: add TI DS90UB913 FPD-Link III Serializer Date: Wed, 18 Jan 2023 14:40:26 +0200 Message-Id: <20230118124031.788940-3-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118124031.788940-1-tomi.valkeinen@ideasonboard.com> References: <20230118124031.788940-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?1755366627231690524?= X-GMAIL-MSGID: =?utf-8?q?1755366627231690524?= 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>; + }; + }; + }; + }; + }; +...