xref: /freebsd/sys/contrib/device-tree/Bindings/display/himax,hx8357.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/himax,hx8357.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Himax HX8357D display panel
8
9description:
10  Display panels using a Himax HX8357D controller in SPI
11  mode, such as the Adafruit 3.5" TFT for Raspberry Pi.
12
13maintainers:
14  - Frank Li <Frank.Li@nxp.com>
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - enum:
21              - adafruit,yx350hv15
22              - himax,hx8357b
23          - const: himax,hx8357
24      - items:
25          - enum:
26              - himax,hx8369a
27          - const: himax,hx8369
28
29  reg:
30    maxItems: 1
31
32  dc-gpios:
33    maxItems: 1
34    description: D/C pin
35
36  rotation:
37    enum: [0, 90, 180, 270]
38
39  backlight:
40    description:
41      phandle of the backlight device attached to the panel
42
43  im-gpios:
44    maxItems: 3
45
46  reset-gpios:
47    maxItems: 1
48
49  spi-cpha: true
50
51  spi-cpol: true
52
53required:
54  - compatible
55  - reg
56
57allOf:
58  - $ref: /schemas/spi/spi-peripheral-props.yaml#
59
60unevaluatedProperties: false
61
62examples:
63  - |
64    #include <dt-bindings/gpio/gpio.h>
65
66    spi {
67        #address-cells = <1>;
68        #size-cells = <0>;
69
70        display@0 {
71            compatible = "adafruit,yx350hv15", "himax,hx8357";
72            reg = <0>;
73            spi-max-frequency = <32000000>;
74            dc-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
75            rotation = <90>;
76            backlight = <&backlight>;
77       };
78    };
79