Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2034318rwr; Fri, 21 Apr 2023 03:21:04 -0700 (PDT) X-Google-Smtp-Source: AKy350bDxJ6diad5HwuXbY0WaZah44FfAnSgOWrqx/U5G27SGo3g33C86D+GxdFMkg0XlJoB70Ki X-Received: by 2002:a17:902:e285:b0:1a2:626b:ba1d with SMTP id o5-20020a170902e28500b001a2626bba1dmr3813371plc.39.1682072464277; Fri, 21 Apr 2023 03:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682072464; cv=none; d=google.com; s=arc-20160816; b=vNs2RfOwSRSdBjgRl94Y9GnH2N85Gn//P1VDtK2321svr14iU5usuXNuFpKtw2cctQ 7Mav4q6PkkScWh2dsJqAOGYShWxYWHKZGiR4dhWcLDtJG0s8wwBWzpKUc4iCt0z8R40B FAJw/EkLXllQimodOQvKTT9iDO3JcGfeK88EckuaggsIeLtIIWZCDv87pQ8ub+Qu3CQd jFaOT5LPTy8GD1GpskBCmdcN+XQbvujcd7HYrqmMrp+dEyUOzORQaimLC7RFhF9lLyJ6 JdPj+U3HHQkJROrAMC6BHQ+WY/b7Wphkb0pJTe29Lh5bt2YQFiPXWl8UVxcZKLVi2x2b txNg== 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=b+QuV8hZE1RPwtR+4sJefTuSgBlJVAUANKmt4/sAJcy+MWRjhdWNyjU7e8pDOrm82T NlBJ5PtqlwvQzKICENJ1GbpoHY55S5/Ph08sNpbVCQA/hBhstIm7wcz4+o4fXsJN4OBi O2Kh7IBM89/K9aSrl1Q2fbqY+jtKDKvuMiMa7yOGa2SeWTJpqoJWjEFj45LtepBrU9N6 Uey62rGXdmFnLjYum+UJeNEcNeA8pnQ0I7MEadPswgDWr5oZJG5V4xqU+UVoLWYMIefZ CKSuuWCdF/L2vBFvltfNbYXlLmwNftph4iPqDMUYpUo+Vtau5PAPkz9OBJOimC+EQO0b Pxsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=EW564LZ0; 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 u16-20020a170903125000b0019ca54b0f0fsi4356953plh.638.2023.04.21.03.20.52; Fri, 21 Apr 2023 03:21:04 -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=EW564LZ0; 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 S231837AbjDUKTN (ORCPT + 99 others); Fri, 21 Apr 2023 06:19:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231667AbjDUKTI (ORCPT ); Fri, 21 Apr 2023 06:19:08 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF20710D7; Fri, 21 Apr 2023 03:19:06 -0700 (PDT) Received: from desky.lan (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A965AC87; Fri, 21 Apr 2023 12:18:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1682072335; bh=TyApQ6qpr4eiku+THwel+cmwld8/fczSmL0rhfymuCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EW564LZ016EKVe80+9vuJCcPStpKehmXiks4O3l3qoSZo+1sb+Q3YMm1I/h1xA+ub SDURWsGkON3KQN1e4K8PIu9BD+MA2lOsEKw1xshJioufqd0c/9IrKXRWbyqjMKAhK1 gmPPed7k716YbNLamxasWpXsndzmqGlBSRJi+aa8= 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 , Hans Verkuil , Mike Pagano , =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Marek Vasut , Satish Nagireddy , Tomi Valkeinen , Laurent Pinchart , Rob Herring Subject: [PATCH v11 2/7] dt-bindings: media: add TI DS90UB913 FPD-Link III Serializer Date: Fri, 21 Apr 2023 13:18:28 +0300 Message-Id: <20230421101833.345984-3-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230421101833.345984-1-tomi.valkeinen@ideasonboard.com> References: <20230421101833.345984-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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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>; + }; + }; + }; + }; + }; +... -- 2.34.1