2018-10-30 02:01:50 +08:00
|
|
|
# Copyright (c) 2018, Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
2020-10-27 02:20:16 +08:00
|
|
|
# Copyright (c) 2020, Teslabs Engineering S.L.
|
2018-10-30 02:01:50 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-06-19 06:03:49 +08:00
|
|
|
|
2019-11-19 15:39:11 +08:00
|
|
|
description: ILI9340 320x240 display controller
|
2018-10-30 02:01:50 +08:00
|
|
|
|
2019-08-20 02:32:25 +08:00
|
|
|
compatible: "ilitek,ili9340"
|
|
|
|
|
2020-10-27 02:20:16 +08:00
|
|
|
include: ilitek,ili9xxx-common.yaml
|
2018-10-30 02:01:50 +08:00
|
|
|
|
|
|
|
properties:
|
2020-09-15 20:44:46 +08:00
|
|
|
gamset:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x01]
|
|
|
|
description:
|
|
|
|
Gamma set (GAMSET) register value.
|
|
|
|
|
2020-09-15 21:29:12 +08:00
|
|
|
frmctr1:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x00, 0x1b]
|
|
|
|
description:
|
|
|
|
Frame rate control (in normal mode / full colors) (FRMCTR1) register value.
|
|
|
|
|
2020-09-15 21:40:36 +08:00
|
|
|
disctrl:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x0a, 0x82, 0x27]
|
|
|
|
description:
|
|
|
|
Display function control (DISCTRL) register value. Note that changing
|
|
|
|
default SS bit value (0) may interfere with display rotation.
|
|
|
|
|
2020-09-15 18:23:07 +08:00
|
|
|
pwctrl1:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x26, 0x00]
|
|
|
|
description:
|
|
|
|
Power control 1 (PWCTRL1) register values.
|
|
|
|
|
|
|
|
pwctrl2:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x00]
|
|
|
|
description:
|
|
|
|
Power control 2 (PWCTRL2) register values.
|
2020-09-15 20:44:46 +08:00
|
|
|
|
2020-09-15 21:18:20 +08:00
|
|
|
vmctrl1:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0x31, 0x3c]
|
|
|
|
description:
|
|
|
|
VCOM control 1 (VMCTRL1) register values.
|
|
|
|
|
|
|
|
vmctrl2:
|
|
|
|
type: uint8-array
|
|
|
|
default: [0xc0]
|
|
|
|
description:
|
|
|
|
VCOM control 2 (VMCTRL2) register values.
|
|
|
|
|
2020-09-15 20:44:46 +08:00
|
|
|
pgamctrl:
|
|
|
|
type: uint8-array
|
|
|
|
default: [
|
|
|
|
0x0f,
|
|
|
|
0x22,
|
|
|
|
0x1f,
|
|
|
|
0x0a,
|
|
|
|
0x0e,
|
|
|
|
0x06,
|
|
|
|
0x4d,
|
|
|
|
0x76,
|
|
|
|
0x3b,
|
|
|
|
0x03,
|
|
|
|
0x0e,
|
|
|
|
0x04,
|
|
|
|
0x13,
|
|
|
|
0x0e,
|
|
|
|
0x0c
|
|
|
|
]
|
|
|
|
description:
|
|
|
|
Positive gamma correction (PGAMCTRL) register values.
|
|
|
|
|
|
|
|
ngamctrl:
|
|
|
|
type: uint8-array
|
|
|
|
default: [
|
|
|
|
0x0c,
|
|
|
|
0x23,
|
|
|
|
0x26,
|
|
|
|
0x04,
|
|
|
|
0x10,
|
|
|
|
0x04,
|
|
|
|
0x39,
|
|
|
|
0x24,
|
|
|
|
0x4b,
|
|
|
|
0x03,
|
|
|
|
0x0b,
|
|
|
|
0x0b,
|
|
|
|
0x33,
|
|
|
|
0x37,
|
|
|
|
0x0f
|
|
|
|
]
|
|
|
|
description:
|
|
|
|
Negative gamma correction (NGAMCTRL) register values.
|