Raspberry Pi VideoCore firmware driver

Schema identifier ($id): "http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.yaml#"

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

Maintainers (maintainers): "Eric Anholt <eric@anholt.net>", "Stefan Wahren <wahrenst@gmx.net>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Exact value (const): "raspberrypi,bcm2835-firmware"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "raspberrypi,bcm2835-firmware"

Item 2

Exact value (const): "simple-mfd"

mboxes — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

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) #

compatible — required here

Exact value (const): "raspberrypi,firmware-clocks"

#clock-cells — required here

Exact value (const): 1

The argument is the ID of the clocks contained by the firmware messages.

Required in this object (required): "compatible", "#clock-cells"

gpio — not listed as required here #

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) #

compatible — required here

Exact value (const): "raspberrypi,firmware-gpio"

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).

gpio-line-names — not listed as required here

Minimum number of items (minItems): 8

Properties matching a name pattern (patternProperties) #

-hog$ — name matches this regular expression

Required in this object (required): "gpio-hog"

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

reset — not listed as required here #

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) #

compatible — required here

Exact value (const): "raspberrypi,firmware-reset"

#reset-cells — required here

Exact value (const): 1

The argument is the ID of the firmware reset line to affect.

Required in this object (required): "compatible", "#reset-cells"

power — not listed as required here #

Shared schema rule ($ref): /schemas/power/raspberrypi,bcm2835-power.yaml#

pwm — not listed as required here #

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) #

compatible — required here

Exact value (const): "raspberrypi,firmware-poe-pwm"

#pwm-cells — required here

Exact value (const): 2

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

touchscreen — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/input/touchscreen/touchscreen.yaml#

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "raspberrypi,firmware-ts"

firmware — not listed as required here

Deprecated (deprecated): true

Phandle to RPi's firmware device node.

touchscreen-size-x — not listed as required here

true — No constraints added by this property rule.

touchscreen-size-y — not listed as required here

true — No constraints added by this property rule.

touchscreen-inverted-x — not listed as required here

true — No constraints added by this property rule.

touchscreen-inverted-y — not listed as required here

true — No constraints added by this property rule.

touchscreen-swapped-x-y — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "compatible"

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

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

false

Not allowed by this rule.

Examples (examples) #

firmware {
    compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
    mboxes = <&mailbox>;

    firmware_clocks: clocks {
        compatible = "raspberrypi,firmware-clocks";
        #clock-cells = <1>;
    };

    expgpio: gpio {
        compatible = "raspberrypi,firmware-gpio";
        gpio-controller;
        #gpio-cells = <2>;
    };

    reset: reset {
        compatible = "raspberrypi,firmware-reset";
        #reset-cells = <1>;
    };

    pwm: pwm {
        compatible = "raspberrypi,firmware-poe-pwm";
        #pwm-cells = <2>;
    };

    ts: touchscreen {
        compatible = "raspberrypi,firmware-ts";
        touchscreen-size-x = <800>;
        touchscreen-size-y = <480>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 107: See pwm.yaml in this directory for a description of the cells format.

Edit this page