Texas Instruments DS90UB9XX Family FPD-Link Deserializer Hubs

Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/ti,ds90ub960.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>"

The TI DS90UB9XX devices are FPD-Link video deserializers with I2C and GPIO forwarding.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-atr.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,ds90ub960-q1", "ti,ds90ub9702-q1"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Reference clock connected to the REFCLK pin.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "refclk"

powerdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Specifier for the GPIO connected to the PDB pin.

i2c-alias-pool — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

ti,manual-strobe — not listed as required here

Value type (type): "boolean"

Enable manual strobe position and EQ level

Properties matching a name pattern (patternProperties) #

^link@[0-3]$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

The link number

Maximum number of items (maxItems): 1

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

i2c-alias — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The I2C address used for the serializer. Transactions to this address on the I2C bus where the deserializer resides are forwarded to the serializer.

ti,rx-mode — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

FPD-Link Input Mode. This should reflect the hardware and the default mode of the connected device.

ti,cdr-mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

FPD-Link CDR Mode. This should reflect the hardware and the default mode of the connected device.

ti,strobe-pos — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32

Minimum value (minimum): -13

Maximum value (maximum): 13

Manual strobe position

ti,eq-level — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 14

Manual EQ level

Properties matching a name pattern (patternProperties)

^serializer(@[0-9a-f]+)*$ — name matches this regular expression

Value type (type): "object"

FPD-Link Serializer node

Required in this object (required): "reg", "i2c-alias", "ti,rx-mode"

ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

FPD-Link input 0

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Endpoint for FPD-Link port. If the RX mode for this port is RAW, hsync-active and vsync-active must be defined.

port@1 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

FPD-Link input 1

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Endpoint for FPD-Link port. If the RX mode for this port is RAW, hsync-active and vsync-active must be defined.

port@2 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

FPD-Link input 2

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Endpoint for FPD-Link port. If the RX mode for this port is RAW, hsync-active and vsync-active must be defined.

port@3 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

FPD-Link input 3

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Endpoint for FPD-Link port. If the RX mode for this port is RAW, hsync-active and vsync-active must be defined.

port@4 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

CSI-2 Output 0

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

link-frequencies — required here

Maximum number of items (maxItems): 1

Required in this object (required): "data-lanes", "link-frequencies"

port@5 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

CSI-2 Output 1

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

link-frequencies — required here

Maximum number of items (maxItems): 1

Required in this object (required): "data-lanes", "link-frequencies"

Required in this object (required): "port@0", "port@1", "port@2", "port@3", "port@4", "port@5"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "ports"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

i2c {
  clock-frequency = <400000>;
  #address-cells = <1>;
  #size-cells = <0>;

  deser@3d {
    compatible = "ti,ds90ub960-q1";
    reg = <0x3d>;

    clock-names = "refclk";
    clocks = <&fixed_clock>;

    powerdown-gpios = <&pca9555 7 GPIO_ACTIVE_LOW>;

    i2c-alias-pool = <0x4a 0x4b 0x4c 0x4d 0x4e 0x4f>;

    ports {
      #address-cells = <1>;
      #size-cells = <0>;

      /* Port 0, Camera 0 */
      port@0 {
        reg = <0>;

        ub960_fpd3_1_in: endpoint {
          remote-endpoint = <&ub953_1_out>;
        };
      };

      /* Port 1, Camera 1 */
      port@1 {
        reg = <1>;

        ub960_fpd3_2_in: endpoint {
          remote-endpoint = <&ub913_2_out>;
          hsync-active = <0>;
          vsync-active = <1>;
        };
      };

      /* Port 2, unconnected */
      port@2 {
        reg = <2>;
      };

      /* Port 3, unconnected */
      port@3 {
        reg = <3>;
      };

      /* Port 4, CSI-2 TX */
      port@4 {
        reg = <4>;
        ds90ub960_0_csi_out: endpoint {
          data-lanes = <1 2 3 4>;
          link-frequencies = /bits/ 64 <800000000>;
          remote-endpoint = <&csi2_phy0>;
        };
      };

      /* Port 5, unconnected */
      port@5 {
        reg = <5>;
      };
    };

    links {
      #address-cells = <1>;
      #size-cells = <0>;

      /* Link 0 has DS90UB953 serializer and IMX274 sensor */

      link@0 {
        #address-cells = <1>;
        #size-cells = <0>;

        reg = <0>;
        i2c-alias = <0x44>;

        ti,rx-mode = <3>;

        serializer1: serializer@30 {
          compatible = "ti,ds90ub953-q1";
          reg = <0x30>;

          gpio-controller;
          #gpio-cells = <2>;

          #clock-cells = <0>;

          ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
              reg = <0>;
              ub953_1_in: endpoint {
                data-lanes = <1 2 3 4>;
                remote-endpoint = <&sensor_1_out>;
              };
            };

            port@1 {
              reg = <1>;

              ub953_1_out: endpoint {
                remote-endpoint = <&ub960_fpd3_1_in>;
              };
            };
          };

          i2c {
            #address-cells = <1>;
            #size-cells = <0>;

            sensor@1a {
              compatible = "sony,imx274";
              reg = <0x1a>;

              clocks = <&serializer>;
              clock-names = "inck";

              reset-gpios = <&serializer1 0 GPIO_ACTIVE_LOW>;

              port {
                sensor_1_out: endpoint {
                  remote-endpoint = <&ub953_1_in>;
                };
              };
            };
          };
        };
      };  /* End of link@0 */

      /* Link 1 has DS90UB913 serializer and MT9V111 sensor */

      link@1 {
        reg = <1>;
        i2c-alias = <0x45>;

        ti,rx-mode = <0>;

        serializer2: 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_2_in: endpoint {
                remote-endpoint = <&sensor_2_out>;
                pclk-sample = <1>;
              };
            };

            port@1 {
              reg = <1>;

              ub913_2_out: endpoint {
                remote-endpoint = <&ub960_fpd3_2_in>;
              };
            };
          };

          i2c {
            #address-cells = <1>;
            #size-cells = <0>;

            sensor@48 {
              compatible = "aptina,mt9v111";
              reg = <0x48>;

              clocks = <&serializer2>;

              port {
                sensor_2_out: endpoint {
                  remote-endpoint = <&ub913_2_in>;
                };
              };
            };
          };
        };
      }; /* End of link@1 */
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 87: RAW10

Line 88: RAW12 HF

Line 89: RAW12 LF

Line 90: CSI2 SYNC

Line 91: CSI2 NON-SYNC

Line 99: FPD-Link III

Line 100: FPD-Link IV

Edit this page