xref: /linux/Documentation/devicetree/bindings/display/panel/anbernic,td4310.yaml (revision b2128290c29902315e632ea59e0504d6bc9e9b42)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/anbernic,td4310.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Anbernic TD4310 Based Panels
8
9maintainers:
10  - Chris Morgan <macromorgan@hotmail.com>
11
12description:
13  Anbernic TD4310 Based Panels, such as the RG-Vita-Pro panel
14  (a 1080x1920 5.5 inch panel).
15
16allOf:
17  - $ref: panel-common.yaml#
18
19properties:
20  compatible:
21    items:
22      - enum:
23          - anbernic,panel-vita-pro
24      - const: anbernic,td4310
25
26  reg:
27    maxItems: 1
28
29  vdd-supply:
30    description: Panel power supply
31
32required:
33  - compatible
34  - port
35  - reg
36  - reset-gpios
37  - vdd-supply
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/gpio/gpio.h>
44
45    dsi {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        panel@0 {
50            compatible = "anbernic,panel-vita-pro", "anbernic,td4310";
51            reg = <0>;
52            backlight = <&backlight>;
53            enable-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
54            reset-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
55            rotation = <270>;
56            vdd-supply = <&vdd_lcd>;
57
58            port {
59                endpoint {
60                    remote-endpoint = <&dsi_out>;
61                };
62            };
63        };
64    };
65
66...
67