xref: /freebsd/sys/contrib/device-tree/Bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/allwinner,sun8i-a83t-de2-mixer.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner Display Engine 2.0 Mixer
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14c66ec88fSEmmanuel Vadot  compatible:
15c66ec88fSEmmanuel Vadot    enum:
16c66ec88fSEmmanuel Vadot      - allwinner,sun8i-a83t-de2-mixer-0
17c66ec88fSEmmanuel Vadot      - allwinner,sun8i-a83t-de2-mixer-1
18c66ec88fSEmmanuel Vadot      - allwinner,sun8i-h3-de2-mixer-0
19c66ec88fSEmmanuel Vadot      - allwinner,sun8i-r40-de2-mixer-0
20c66ec88fSEmmanuel Vadot      - allwinner,sun8i-r40-de2-mixer-1
21c66ec88fSEmmanuel Vadot      - allwinner,sun8i-v3s-de2-mixer
22d5b0e70fSEmmanuel Vadot      - allwinner,sun20i-d1-de2-mixer-0
23d5b0e70fSEmmanuel Vadot      - allwinner,sun20i-d1-de2-mixer-1
24c66ec88fSEmmanuel Vadot      - allwinner,sun50i-a64-de2-mixer-0
25c66ec88fSEmmanuel Vadot      - allwinner,sun50i-a64-de2-mixer-1
26c66ec88fSEmmanuel Vadot      - allwinner,sun50i-h6-de3-mixer-0
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  reg:
29c66ec88fSEmmanuel Vadot    maxItems: 1
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  clocks:
32c66ec88fSEmmanuel Vadot    items:
33c66ec88fSEmmanuel Vadot      - description: The mixer interface clock
34c66ec88fSEmmanuel Vadot      - description: The mixer module clock
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  clock-names:
37c66ec88fSEmmanuel Vadot    items:
38c66ec88fSEmmanuel Vadot      - const: bus
39c66ec88fSEmmanuel Vadot      - const: mod
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  iommus:
42c66ec88fSEmmanuel Vadot    maxItems: 1
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  resets:
45c66ec88fSEmmanuel Vadot    maxItems: 1
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  ports:
485def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot    properties:
51c66ec88fSEmmanuel Vadot      port@0:
525def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
53c66ec88fSEmmanuel Vadot        description: |
54c66ec88fSEmmanuel Vadot          Input endpoints of the controller.
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot      port@1:
575def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
58c66ec88fSEmmanuel Vadot        description: |
59c66ec88fSEmmanuel Vadot          Output endpoints of the controller.
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot    required:
62c66ec88fSEmmanuel Vadot      - port@1
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadotrequired:
65c66ec88fSEmmanuel Vadot  - compatible
66c66ec88fSEmmanuel Vadot  - reg
67c66ec88fSEmmanuel Vadot  - clocks
68c66ec88fSEmmanuel Vadot  - clock-names
69c66ec88fSEmmanuel Vadot  - resets
70c66ec88fSEmmanuel Vadot  - ports
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel VadotadditionalProperties: false
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadotexamples:
75c66ec88fSEmmanuel Vadot  - |
76c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun8i-de2.h>
77c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun8i-de2.h>
78c66ec88fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadot    mixer0: mixer@1100000 {
80c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun8i-a83t-de2-mixer-0";
81c66ec88fSEmmanuel Vadot        reg = <0x01100000 0x100000>;
82c66ec88fSEmmanuel Vadot        clocks = <&display_clocks CLK_BUS_MIXER0>,
83c66ec88fSEmmanuel Vadot                 <&display_clocks CLK_MIXER0>;
84c66ec88fSEmmanuel Vadot        clock-names = "bus",
85c66ec88fSEmmanuel Vadot                      "mod";
86c66ec88fSEmmanuel Vadot        resets = <&display_clocks RST_MIXER0>;
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot        ports {
89c66ec88fSEmmanuel Vadot            #address-cells = <1>;
90c66ec88fSEmmanuel Vadot            #size-cells = <0>;
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot            mixer0_out: port@1 {
93c66ec88fSEmmanuel Vadot                #address-cells = <1>;
94c66ec88fSEmmanuel Vadot                #size-cells = <0>;
95c66ec88fSEmmanuel Vadot                reg = <1>;
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot                mixer0_out_tcon0: endpoint@0 {
98c66ec88fSEmmanuel Vadot                    reg = <0>;
99c66ec88fSEmmanuel Vadot                    remote-endpoint = <&tcon0_in_mixer0>;
100c66ec88fSEmmanuel Vadot                };
101c66ec88fSEmmanuel Vadot
102c66ec88fSEmmanuel Vadot                mixer0_out_tcon1: endpoint@1 {
103c66ec88fSEmmanuel Vadot                    reg = <1>;
104c66ec88fSEmmanuel Vadot                    remote-endpoint = <&tcon1_in_mixer0>;
105c66ec88fSEmmanuel Vadot                };
106c66ec88fSEmmanuel Vadot            };
107c66ec88fSEmmanuel Vadot        };
108c66ec88fSEmmanuel Vadot    };
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot...
111