TPO TPG110 Panel

Schema identifier ($id): "http://devicetree.org/schemas/display/panel/tpo,tpg110.yaml#"

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Thierry Reding <thierry.reding@gmail.com>"

This panel driver is a component that acts as an intermediary between an RGB output and a variety of panels. The panel driver is strapped up in electronics to the desired resolution and other properties, and has a control interface over 3WIRE SPI. By talking to the TPG110 over SPI, the strapped properties can be discovered and the hardware is therefore mostly self-describing.

       +--------+
SPI -> |  TPO   | -> physical display
RGB -> | TPG110 |
       +--------+

If some electrical strap or alternate resolution is desired, this can be set up by taking software control of the display over the SPI interface. The interface can also adjust for properties of the display such as gamma correction and certain electrical driving levels.

The TPG110 does not know the physical dimensions of the panel connected, so this needs to be specified in the device tree.

It requires a GPIO line for control of its reset line.

The serial protocol has line names that resemble I2C but the protocol is not I2C but 3WIRE SPI.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): panel-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ste,nomadik-nhk15-display"

Item 2

Exact value (const): "tpo,tpg110"

Rule 2

Exact value (const): "tpo,tpg110"

reg — required here #

Maximum number of items (maxItems): 1

grestb-gpios — required here #

Maximum number of items (maxItems): 1

panel reset GPIO

spi-3wire — required here #

true — No constraints added by this property rule.

spi-max-frequency — required here #

Exact value (const): 3000000

Required in this object (required): "compatible", "reg", "grestb-gpios", "width-mm", "height-mm", "spi-3wire", "spi-max-frequency", "port"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  panel: display@0 {
    compatible = "tpo,tpg110";
    reg = <0>;
    spi-3wire;
    /* 320 ns min period ~= 3 MHz */
    spi-max-frequency = <3000000>;
    /* Width and height from data sheet */
    width-mm = <116>;
    height-mm = <87>;
    grestb-gpios = <&foo_gpio 5 1>;
    backlight = <&bl>;

    port {
      nomadik_clcd_panel: endpoint {
        remote-endpoint = <&foo>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page