1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/allwinner,sun6i-a31-mipi-dsi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A31 MIPI-DSI Controller Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <maxime.ripard@bootlin.com>
12
13properties:
14  "#address-cells": true
15  "#size-cells": true
16
17  compatible:
18    const: allwinner,sun6i-a31-mipi-dsi
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  clocks:
27    items:
28      - description: Bus Clock
29      - description: Module Clock
30
31  clock-names:
32    items:
33      - const: bus
34      - const: mod
35
36  resets:
37    maxItems: 1
38
39  phys:
40    maxItems: 1
41
42  phy-names:
43    const: dphy
44
45  port:
46    type: object
47    description:
48      A port node with endpoint definitions as defined in
49      Documentation/devicetree/bindings/media/video-interfaces.txt. That
50      port should be the input endpoint, usually coming from the
51      associated TCON.
52
53patternProperties:
54  "^panel@[0-9]+$": true
55
56required:
57  - "#address-cells"
58  - "#size-cells"
59  - compatible
60  - reg
61  - interrupts
62  - clocks
63  - clock-names
64  - phys
65  - phy-names
66  - resets
67  - port
68
69additionalProperties: false
70
71examples:
72  - |
73    dsi0: dsi@1ca0000 {
74        compatible = "allwinner,sun6i-a31-mipi-dsi";
75        reg = <0x01ca0000 0x1000>;
76        interrupts = <0 89 4>;
77        clocks = <&ccu 23>, <&ccu 96>;
78        clock-names = "bus", "mod";
79        resets = <&ccu 4>;
80        phys = <&dphy0>;
81        phy-names = "dphy";
82        #address-cells = <1>;
83        #size-cells = <0>;
84
85        panel@0 {
86                compatible = "bananapi,lhr050h41", "ilitek,ili9881c";
87                reg = <0>;
88                power-gpios = <&pio 1 7 0>; /* PB07 */
89                reset-gpios = <&r_pio 0 5 1>; /* PL05 */
90                backlight = <&pwm_bl>;
91        };
92
93        port {
94            dsi0_in_tcon0: endpoint {
95                remote-endpoint = <&tcon0_out_dsi0>;
96            };
97        };
98    };
99
100...
101