1# Copyright (c) 2018, Jan Van Winkel <jan.van_winkel@dxplore.eu>
2# Copyright (c) 2020, Teslabs Engineering S.L.
3# Copyright (c) 2021, Krivorot Oleg <krivorot.oleg@gmail.com>
4# Copyright (c) 2022, Konstantinos Papadopulos <kostas.papadopulos@gmail.com>
5# SPDX-License-Identifier: Apache-2.0
6
7description: ILI9342C 320x240 display controller
8
9compatible: "ilitek,ili9342c"
10
11include: ilitek,ili9xxx-common.yaml
12
13properties:
14  gamset:
15    type: uint8-array
16    default: [0x01]
17    description:
18      select the desired Gamma curve for the current display.
19      A maximum of 4 fixed gamma curves can be selected.
20
21  ifmode:
22    type: uint8-array
23    default: [0x40]
24    description:
25      RGB interface signal control (IFMOD) register value.
26
27  invtr:
28    type: uint8-array
29    default: [0x00]
30    description:
31      Display Inversion Control (INVTR) register value.
32
33  frmctr1:
34    type: uint8-array
35    default: [0x00, 0x1c]
36    description:
37      Frame rate control (in normal mode / full colors) (FRMCTR1) register value.
38
39  disctrl:
40    type: uint8-array
41    default: [0x0a, 0x80, 0x1d, 0x04]
42    description:
43      Display function control (DISCTRL) register value. Note that changing
44      default SS bit value (0) may interfere with display rotation.
45
46  etmod:
47    type: uint8-array
48    default: [0x07]
49    description:
50      Entry Mode set (ETMOD)
51
52  pwctrl1:
53    type: uint8-array
54    default: [0x9, 0x9]
55    description:
56      Power control 1 (PWCTRL1) register values.
57
58  pwctrl2:
59    type: uint8-array
60    default: [0x00]
61    description:
62      Power control 2 (PWCTRL2) register values.
63
64  pwctrl3:
65    type: uint8-array
66    default: [0xB2]
67    description:
68      Power control 3 (PWCTRL3) register values.
69
70  vmctrl1:
71    type: uint8-array
72    default: [0xf2]
73    description:
74      VCOM control 1 (VMCTRL1) register values.
75
76  pgamctrl:
77    type: uint8-array
78    default: [
79      0x00,
80      0x05,
81      0x08,
82      0x04,
83      0x13,
84      0x0A,
85      0x34,
86      0x8A,
87      0x46,
88      0x07,
89      0x0E,
90      0x0A,
91      0x1B,
92      0x1D,
93      0x0F
94    ]
95    description:
96      Positive gamma correction (PGAMCTRL) register values.
97
98  ngamctrl:
99    type: uint8-array
100    default: [
101      0x00,
102      0x22,
103      0x25,
104      0x04,
105      0x0F,
106      0x06,
107      0x38,
108      0x56,
109      0x4B,
110      0x05,
111      0x0C,
112      0x0A,
113      0x37,
114      0x3A,
115      0x0F
116    ]
117    description:
118      Negative gamma correction (NGAMCTRL) register values.
119
120  ifctl:
121    type: uint8-array
122    default: [0x01, 0x00, 0x00]
123    description:
124      Interface control (IFCTL) register value.
125