1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/kingdisplay,kd035g6-54nt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12allOf:
13  - $ref: panel-common.yaml#
14  - $ref: /schemas/spi/spi-peripheral-props.yaml#
15
16properties:
17  compatible:
18    const: kingdisplay,kd035g6-54nt
19
20  backlight: true
21  port: true
22  power-supply: true
23  reg: true
24  reset-gpios: true
25
26  spi-3wire: true
27
28required:
29  - compatible
30  - power-supply
31  - reset-gpios
32
33unevaluatedProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/gpio/gpio.h>
38
39    spi {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        panel@0 {
44            compatible = "kingdisplay,kd035g6-54nt";
45            reg = <0>;
46
47            spi-max-frequency = <3125000>;
48            spi-3wire;
49
50            reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
51
52            backlight = <&backlight>;
53            power-supply = <&ldo6>;
54
55            port {
56                panel_input: endpoint {
57                    remote-endpoint = <&panel_output>;
58                };
59            };
60        };
61    };
62
63...
64