gpio-backlight

Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml#"

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

Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-backlight"

gpios — required here #

The gpio that is used for enabling/disabling the backlight.

Maximum number of items (maxItems): 1

default-on — not listed as required here #

enable the backlight at boot.

Value type (type): "boolean"

Required in this object (required): "compatible", "gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
backlight {
    compatible = "gpio-backlight";
    gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
    default-on;
};

Source notes #

Annotations retained from the schema source

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

Edit this page