RaspberryPi 5" and 7" display V2 MCU-based regulator/backlight controller

Schema identifier ($id): "http://devicetree.org/schemas/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml#"

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

Maintainers (maintainers): "Marek Vasut <marek.vasut+renesas@mailbox.org>"

The RaspberryPi 5" and 7" display 2 has an MCU-based regulator, PWM backlight and GPIO controller on the PCB, which is used to turn the display unit on/off and control the backlight.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): regulator.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "raspberrypi,touchscreen-panel-regulator-v2"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

The first cell is the pin number, and the second cell is used to specify the gpio polarity (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW).

#pwm-cells — required here #

Exact value (const): 3

See ../../pwm/pwm.yaml for description of the cell formats.

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "#pwm-cells"

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  regulator@45 {
    compatible = "raspberrypi,touchscreen-panel-regulator-v2";
    reg = <0x45>;
    gpio-controller;
    #gpio-cells = <2>;
    #pwm-cells = <3>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page