Add Device Tree binding documentation for the Display Control Unit (DCU) found in Nuvoton MA35D1 SoCs.
The DCU is a DPI-based display controller supporting RGB output with optional external bridges or panels. Signed-off-by: Joey Lu <[email protected]> --- .../bindings/display/nuvoton,ma35d1-dcu.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/nuvoton,ma35d1-dcu.yaml diff --git a/Documentation/devicetree/bindings/display/nuvoton,ma35d1-dcu.yaml b/Documentation/devicetree/bindings/display/nuvoton,ma35d1-dcu.yaml new file mode 100644 index 000000000000..adfc20117eb7 --- /dev/null +++ b/Documentation/devicetree/bindings/display/nuvoton,ma35d1-dcu.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/nuvoton,ma35d1-dcu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 Display Controller Unit (DCU) + +maintainers: + - Joey Lu <[email protected]> + +description: + The Nuvoton MA35D1 Display Controller Unit (DCU) supports multiple + layers of composition, blending, and output to parallel RGB (DPI) + interfaces. + +properties: + compatible: + const: nuvoton,ma35d1-dcu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: DCU Gate clock for register access + - description: DCU Pixel clock for display timing + + clock-names: + items: + - const: dcu_gate + - const: dcup_div + + resets: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: Video output port + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> + #include <dt-bindings/reset/nuvoton,ma35d1-reset.h> + + display@40260000 { + compatible = "nuvoton,ma35d1-dcu"; + reg = <0x40260000 0x2000>; + interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk DCU_GATE>, <&clk DCUP_DIV>; + clock-names = "dcu_gate", "dcup_div"; + resets = <&sys MA35D1_RESET_DISP>; + + port { + dpi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; -- 2.43.0
