Allwinner A31 Dynamic Range Controller

Schema identifier ($id): "http://devicetree.org/schemas/display/allwinner,sun6i-a31-drc.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

The DRC (Dynamic Range Controller) allows to dynamically adjust pixel brightness/contrast based on histogram measurements for LCD content adaptive backlight control.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "allwinner,sun6i-a31-drc", "allwinner,sun6i-a31s-drc", "allwinner,sun8i-a23-drc", "allwinner,sun8i-a33-drc", "allwinner,sun9i-a80-drc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

The DRC interface clock

Item 2

The DRC module clock

Item 3

The DRC DRAM clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "mod"

Item 3

Exact value (const): "ram"

resets — required here #

Maximum number of items (maxItems): 1

ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Input endpoints of the controller.

port@1 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Output endpoints of the controller.

Required in this object (required): "port@0", "port@1"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "ports"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

#include <dt-bindings/clock/sun6i-a31-ccu.h>
#include <dt-bindings/reset/sun6i-a31-ccu.h>

drc0: drc@1e70000 {
    compatible = "allwinner,sun6i-a31-drc";
    reg = <0x01e70000 0x10000>;
    interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
             <&ccu CLK_DRAM_DRC0>;
    clock-names = "ahb", "mod",
                  "ram";
    resets = <&ccu RST_AHB1_DRC0>;

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

        drc0_in: port@0 {
            reg = <0>;

            drc0_in_be0: endpoint {
                remote-endpoint = <&be0_out_drc0>;
            };
        };

        drc0_out: port@1 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <1>;

            drc0_out_tcon0: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&tcon0_in_drc0>;
            };

            drc0_out_tcon1: endpoint@1 {
                reg = <1>;
                remote-endpoint = <&tcon1_in_drc0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page