Skip to content

Commit d205b07

Browse files
nxpfranklirobherring
authored andcommitted
dt-bindings: display: convert himax,hx8357d.txt to yaml format
Convert himax,hx8357d.txt to yaml format. Additional changes: - add spi parent node in examples. - ref to spi-peripheral-props.yaml. - change himax,hx8357a to himax,hx8357 to align driver and existed dts. - add himax,hx8369a and fallback to himax,hx8369. - allow spi-cpha and spi-cpol to align existed dts. - add im-gpios for interface selections. - add reset-gpios. Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20250602152814.949671-1-Frank.Li@nxp.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent f2d2696 commit d205b07

3 files changed

Lines changed: 79 additions & 27 deletions

File tree

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
7+
title: Himax HX8357D display panel
8+
9+
description:
10+
Display panels using a Himax HX8357D controller in SPI
11+
mode, such as the Adafruit 3.5" TFT for Raspberry Pi.
12+
13+
maintainers:
14+
- Frank Li <Frank.Li@nxp.com>
15+
16+
properties:
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+
53+
required:
54+
- compatible
55+
- reg
56+
57+
allOf:
58+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
59+
60+
unevaluatedProperties: false
61+
62+
examples:
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+
};

Documentation/devicetree/bindings/display/himax,hx8357d.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7532,7 +7532,7 @@ F: drivers/gpu/drm/panel/panel-himax-hx8394.c
75327532
DRM DRIVER FOR HX8357D PANELS
75337533
S: Orphan
75347534
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
7535-
F: Documentation/devicetree/bindings/display/himax,hx8357d.txt
7535+
F: Documentation/devicetree/bindings/display/himax,hx8357.yaml
75367536
F: drivers/gpu/drm/tiny/hx8357d.c
75377537

75387538
DRM DRIVER FOR HYPERV SYNTHETIC VIDEO DEVICE

0 commit comments

Comments
 (0)