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: ILI9341 320x240 display controller
8
9compatible: "ilitek,ili9341"
10
11include: ilitek,ili9xxx-common.yaml
12
13properties:
14  ifmode:
15    type: uint8-array
16    default: [0x40]
17    description:
18      RGB interface signal control (IFMOD) register value.
19
20  ifctl:
21    type: uint8-array
22    default: [0x01, 0x00, 0x00]
23    description:
24      Interface control (IFCTL) register value.
25
26  pwctrla:
27    type: uint8-array
28    default: [0x39, 0x2c, 0x00, 0x34, 0x02]
29    description:
30      Power control A (PWCTRLA) register value.
31
32  pwctrlb:
33    type: uint8-array
34    default: [0x00, 0x8b, 0x30]
35    description:
36      Power control B (PWCTRLB) register value.
37
38  pwseqctrl:
39    type: uint8-array
40    default: [0x55, 0x01, 0x23, 0x01]
41    description:
42      Power on sequence control (PWSEQCTRL) register value.
43
44  timctrla:
45    type: uint8-array
46    default: [0x84, 0x11, 0x7a]
47    description:
48      Driver timing control A (TIMCTRLA) register value.
49
50  timctrlb:
51    type: uint8-array
52    default: [0x00, 0x00]
53    description:
54      Driver timing control B (TIMCTRLB) register value.
55
56  pumpratioctrl:
57    type: uint8-array
58    default: [0x10]
59    description:
60      Pump ratio control (PUMPRATIOCTRL) register value.
61
62  enable3g:
63    type: uint8-array
64    default: [0x02]
65    description:
66      Enable 3G (ENABLE3G) register value.
67
68  etmod:
69    type: uint8-array
70    default: [0x06]
71    description:
72      Entry Mode Set (ETMOD) register value.
73
74  gamset:
75    type: uint8-array
76    default: [0x01]
77    description:
78      Gamma set (GAMSET) register value.
79
80  frmctr1:
81    type: uint8-array
82    default: [0x00, 0x1b]
83    description:
84      Frame rate control (in normal mode / full colors) (FRMCTR1) register value.
85
86  disctrl:
87    type: uint8-array
88    default: [0x0a, 0x82, 0x27, 0x04]
89    description:
90      Display function control (DISCTRL) register value. Note that changing
91      default SS bit value (0) may interfere with display rotation.
92
93  pwctrl1:
94    type: uint8-array
95    default: [0x21]
96    description:
97      Power control 1 (PWCTRL1) register values.
98
99  pwctrl2:
100    type: uint8-array
101    default: [0x10]
102    description:
103      Power control 2 (PWCTRL2) register values.
104
105  vmctrl1:
106    type: uint8-array
107    default: [0x31, 0x3c]
108    description:
109      VCOM control 1 (VMCTRL1) register values.
110
111  vmctrl2:
112    type: uint8-array
113    default: [0xc0]
114    description:
115      VCOM control 2 (VMCTRL2) register values.
116
117  pgamctrl:
118    type: uint8-array
119    default: [
120      0x0f,
121      0x22,
122      0x1f,
123      0x0a,
124      0x0e,
125      0x06,
126      0x4d,
127      0x76,
128      0x3b,
129      0x03,
130      0x0e,
131      0x04,
132      0x13,
133      0x0e,
134      0x0c
135    ]
136    description:
137      Positive gamma correction (PGAMCTRL) register values.
138
139  ngamctrl:
140    type: uint8-array
141    default: [
142      0x0c,
143      0x23,
144      0x26,
145      0x04,
146      0x10,
147      0x04,
148      0x39,
149      0x24,
150      0x4b,
151      0x03,
152      0x0b,
153      0x0b,
154      0x33,
155      0x37,
156      0x0f
157    ]
158    description:
159      Negative gamma correction (NGAMCTRL) register values.
160