Path: blob/master/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-drc.yaml
26308 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/display/allwinner,sun6i-a31-drc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Allwinner A31 Dynamic Range Controller78maintainers:9- Chen-Yu Tsai <wens@csie.org>10- Maxime Ripard <mripard@kernel.org>1112description: |13The DRC (Dynamic Range Controller) allows to dynamically adjust14pixel brightness/contrast based on histogram measurements for LCD15content adaptive backlight control.1617properties:18compatible:19enum:20- allwinner,sun6i-a31-drc21- allwinner,sun6i-a31s-drc22- allwinner,sun8i-a23-drc23- allwinner,sun8i-a33-drc24- allwinner,sun9i-a80-drc2526reg:27maxItems: 12829interrupts:30maxItems: 13132clocks:33items:34- description: The DRC interface clock35- description: The DRC module clock36- description: The DRC DRAM clock3738clock-names:39items:40- const: ahb41- const: mod42- const: ram4344resets:45maxItems: 14647ports:48$ref: /schemas/graph.yaml#/properties/ports4950properties:51port@0:52$ref: /schemas/graph.yaml#/properties/port53description: |54Input endpoints of the controller.5556port@1:57$ref: /schemas/graph.yaml#/properties/port58description: |59Output endpoints of the controller.6061required:62- port@063- port@16465required:66- compatible67- reg68- interrupts69- clocks70- clock-names71- resets72- ports7374additionalProperties: false7576examples:77- |78#include <dt-bindings/interrupt-controller/arm-gic.h>7980#include <dt-bindings/clock/sun6i-a31-ccu.h>81#include <dt-bindings/reset/sun6i-a31-ccu.h>8283drc0: drc@1e70000 {84compatible = "allwinner,sun6i-a31-drc";85reg = <0x01e70000 0x10000>;86interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;87clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,88<&ccu CLK_DRAM_DRC0>;89clock-names = "ahb", "mod",90"ram";91resets = <&ccu RST_AHB1_DRC0>;9293ports {94#address-cells = <1>;95#size-cells = <0>;9697drc0_in: port@0 {98reg = <0>;99100drc0_in_be0: endpoint {101remote-endpoint = <&be0_out_drc0>;102};103};104105drc0_out: port@1 {106#address-cells = <1>;107#size-cells = <0>;108reg = <1>;109110drc0_out_tcon0: endpoint@0 {111reg = <0>;112remote-endpoint = <&tcon0_in_drc0>;113};114115drc0_out_tcon1: endpoint@1 {116reg = <1>;117remote-endpoint = <&tcon1_in_drc0>;118};119};120};121};122123124...125126127