adi,adv7535 (on i2c bus)

Description

Analog Devices ADV7535 MIPI DSI to HDMI bridge

The ADV7535 is an I2C-controlled bridge that converts MIPI DSI video to HDMI.
The MIPI DSI endpoint is represented separately as a child of the MIPI DSI host.

Examples

#include <zephyr/dt-bindings/mipi_dsi/mipi_dsi.h>

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

  display-bridge@39 {
    compatible = "adi,adv7535";
    reg = <0x39>;
    pd-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
    int-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
    dsi-device = <&adv7535_dsi>;

    /* Optional I2C addresses, if omitted defaults are used */
    adi,edid-addr = <0x3f>;
    adi,packet-addr = <0x38>;
    adi,cec-addr = <0x3c>;
    adi,fixed-addr = <0x00>;
  };
};

mipi_dsi: mipi-dsi@40000000 {
  compatible = "vnd,mipi-dsi-host";
  reg = <0x40000000 0x1000>;
  #address-cells = <1>;
  #size-cells = <0>;

  adv7535_dsi: display-bridge@0 {
    compatible = "adi,adv7535-dsi";
    reg = <0>;
    data-lanes = <4>;
    pixel-format = <MIPI_DSI_PIXFMT_RGB888>;
    display-timing = <&hdmi_timing>;
    /* test-pattern = <0>; */
  };
};

display-controller {
  width = <1920>;
  height = <1080>;

  hdmi_timing: display-timings {
    compatible = "zephyr,panel-timing";
    clock-frequency = <148500000>;
    hsync-len = <44>;
    hfront-porch = <88>;
    hback-porch = <148>;
    vsync-len = <5>;
    vfront-porch = <4>;
    vback-porch = <36>;
    hsync-active = <1>;
    vsync-active = <1>;
    de-active = <1>;
    pixelclk-active = <1>;
  };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

adi,edid-addr

int

Optional EDID I2C address. Default is the power-on reset value of the register.

Default value: 0x3f

adi,packet-addr

int

Optional packet I2C address. Default is the power-on reset value of the register.

Default value: 0x38

adi,cec-addr

int

Optional CEC I2C address. Default is the power-on reset value of the register.

Default value: 0x3c

adi,fixed-addr

int

This should be set to a non-conflicting I2C address.
Default is the power-on reset value of the register.

Default value: 0x0

dsi-device

phandle

Auxiliary adi,adv7535-dsi node describing the DSI link of this
bridge. It is a child of the MIPI DSI host the bridge is wired to.

This property is required.

pd-gpios

phandle-array

GPIO connected to the PD/AD power-down pin. The pin level when the
ADV7535 power supplies are applied selects both the main I2C address and
the power-down polarity. A low level selects address 0x39 and active-high
power-down, while a high level selects address 0x3d and active-low
power-down. The GPIO flags must match the selected power-down polarity.
Although this GPIO is optional, connecting it is strongly recommended
because toggling the PD/AD pin resets more registers than a
register-based reset. The I2C address and power-down polarity are sampled
when power is applied. To change either setting, set the pin to the
desired level and power-cycle the board.

int-gpios

phandle-array

Interrupt pin of ADV7535. Must be configured as active-low and pulled up.

This property is required.

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.