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,rg35xx-plus-panel.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Anbernic RG35XX series (WL-355608-A8) 3.5" 640x480 24-bit IPS LCD panel
8
9maintainers:
10  - Ryan Walklin <ryan@testtoast.com>
11
12allOf:
13  - $ref: panel-common.yaml#
14  - $ref: /schemas/spi/spi-peripheral-props.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - const: anbernic,rg35xx-plus-panel
20      - items:
21          - enum:
22              - anbernic,rg35xx-2024-panel
23              - anbernic,rg35xx-h-panel
24              - anbernic,rg35xx-sp-panel
25          - const: anbernic,rg35xx-plus-panel
26
27  reg:
28    maxItems: 1
29
30  spi-3wire: true
31
32required:
33  - compatible
34  - reg
35  - port
36  - power-supply
37  - reset-gpios
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/gpio/gpio.h>
44
45    spi {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        panel@0 {
50            compatible = "anbernic,rg35xx-plus-panel";
51            reg = <0>;
52
53            spi-3wire;
54            spi-max-frequency = <3125000>;
55
56            reset-gpios = <&pio 8 14 GPIO_ACTIVE_LOW>; // PI14
57
58            backlight = <&backlight>;
59            power-supply = <&reg_lcd>;
60
61            port {
62                endpoint {
63                    remote-endpoint = <&tcon_lcd0_out_lcd>;
64                };
65            };
66        };
67    };
68