Skip to content

Commit f5bbc93

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
dt-bindings: display: convert ilitek,ili9341.txt to dt-schema
A dt-schema binding for the Ilitek ili9341 was created as panel/ilitek,ili9341.yaml but the txt binding was ignored in the process. Move the remaining items in the txt binding to the yaml one & delete it. The example in the txt binding has a spi-max-frequency which disagrees with the yaml replacement (and its own documentation) so change that to conform with the binding. There are no users in tree of the Adafruit yx240qv29 to check against. Link: https://cdn-learn.adafruit.com/assets/assets/000/046/879/original/SPEC-YX240QV29-T_Rev.A__1_.pdf Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f2906aa commit f5bbc93

File tree

2 files changed

+34
-41
lines changed

2 files changed

+34
-41
lines changed

Documentation/devicetree/bindings/display/ilitek,ili9341.txt

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

Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ properties:
2121
compatible:
2222
items:
2323
- enum:
24+
- adafruit,yx240qv29
2425
# ili9341 240*320 Color on stm32f429-disco board
2526
- st,sf-tc240t-9370-t
2627
- const: ilitek,ili9341
@@ -47,31 +48,50 @@ properties:
4748
vddi-led-supply:
4849
description: Voltage supply for the LED driver (1.65 .. 3.3 V)
4950

50-
additionalProperties: false
51+
unevaluatedProperties: false
5152

5253
required:
5354
- compatible
5455
- reg
5556
- dc-gpios
56-
- port
57+
58+
if:
59+
properties:
60+
compatible:
61+
contains:
62+
enum:
63+
- st,sf-tc240t-9370-t
64+
then:
65+
required:
66+
- port
5767

5868
examples:
5969
- |+
70+
#include <dt-bindings/gpio/gpio.h>
6071
spi {
6172
#address-cells = <1>;
6273
#size-cells = <0>;
6374
panel: display@0 {
64-
compatible = "st,sf-tc240t-9370-t",
65-
"ilitek,ili9341";
66-
reg = <0>;
67-
spi-3wire;
68-
spi-max-frequency = <10000000>;
69-
dc-gpios = <&gpiod 13 0>;
70-
port {
71-
panel_in: endpoint {
72-
remote-endpoint = <&display_out>;
73-
};
74-
};
75-
};
75+
compatible = "st,sf-tc240t-9370-t",
76+
"ilitek,ili9341";
77+
reg = <0>;
78+
spi-3wire;
79+
spi-max-frequency = <10000000>;
80+
dc-gpios = <&gpiod 13 0>;
81+
port {
82+
panel_in: endpoint {
83+
remote-endpoint = <&display_out>;
84+
};
85+
};
86+
};
87+
display@1{
88+
compatible = "adafruit,yx240qv29", "ilitek,ili9341";
89+
reg = <1>;
90+
spi-max-frequency = <10000000>;
91+
dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
92+
reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
93+
rotation = <270>;
94+
backlight = <&backlight>;
7695
};
96+
};
7797
...

0 commit comments

Comments
 (0)