drivers: display: Added DTS support for ili9340
Added device tree support for ili9340 display driver Part of #10894 Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
parent
e87193896a
commit
a466154dcc
2 changed files with 30 additions and 69 deletions
|
@ -14,75 +14,6 @@ menuconfig ILI9340
|
|||
|
||||
if ILI9340
|
||||
|
||||
config ILI9340_DEV_NAME
|
||||
string "ILI9340 device name"
|
||||
default "ILI9340"
|
||||
|
||||
config ILI9340_SPI_DEV_NAME
|
||||
string "SPI master where ILI9340 is connected"
|
||||
default "SPI_0"
|
||||
help
|
||||
Specify the device name of the SPI master device to which ILI9340 is
|
||||
connected.
|
||||
|
||||
config ILI9340_SPI_SLAVE_NUMBER
|
||||
int "SPI Slave number where ILI9340 is connected"
|
||||
default 0
|
||||
help
|
||||
The number of the slave on the host controller to which ILI9340 is
|
||||
connected.
|
||||
|
||||
config ILI9340_SPI_FREQ
|
||||
int "SPI Frequency"
|
||||
default 15151515
|
||||
help
|
||||
Frequency to be used to communicate with the ILI9340.
|
||||
|
||||
config ILI9340_RESET_GPIO_PORT_NAME
|
||||
string "Reset GPIO controller port name"
|
||||
default "GPIO_0"
|
||||
help
|
||||
GPIO controller where the interrupt pin is attached to.
|
||||
|
||||
config ILI9340_RESET_PIN
|
||||
int "ILI9340 Reset pin"
|
||||
default 0
|
||||
help
|
||||
ILI9340 reset pin.
|
||||
|
||||
config ILI9340_CMD_DATA_GPIO_PORT_NAME
|
||||
string "Command/Data GPIO controller port name"
|
||||
default "GPIO_0"
|
||||
help
|
||||
GPIO controller where the command/data pin is attached to.
|
||||
|
||||
config ILI9340_CMD_DATA_PIN
|
||||
int "ILI9340 command/data pin"
|
||||
default 1
|
||||
help
|
||||
ILI9340 command data pin.
|
||||
|
||||
config ILI9340_GPIO_CS
|
||||
bool "Use GPIO pin for chip select"
|
||||
help
|
||||
Use GPIO pin for chips select.
|
||||
|
||||
if ILI9340_GPIO_CS
|
||||
|
||||
config ILI9340_CS_GPIO_PORT_NAME
|
||||
string "Chip select GPIO controller port name"
|
||||
default "GPIO_0"
|
||||
help
|
||||
GPIO controller where the chip select pin is attached to.
|
||||
|
||||
config ILI9340_CS_GPIO_PIN
|
||||
int "ILI9340 GPIO chip select"
|
||||
default 1
|
||||
help
|
||||
ILI9340 GPIO chip select pin.
|
||||
|
||||
endif #ILI9340_GPIO_CS
|
||||
|
||||
choice
|
||||
prompt "LCD"
|
||||
default ILI9340_LCD_ADAFRUIT_1480
|
||||
|
|
30
dts/bindings/display/ilitek,ili9340.yaml
Normal file
30
dts/bindings/display/ilitek,ili9340.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# Copyright (c) 2018, Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: ILI9340 320x240 Display Controller
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This is a representation of the ILI9340 320x240 Display Controller
|
||||
|
||||
inherits:
|
||||
!include spi-device.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "ilitek,ili9340"
|
||||
|
||||
reset-gpios:
|
||||
type: compound
|
||||
category: required
|
||||
generation: define, use-prop-name
|
||||
|
||||
cmd-data-gpios:
|
||||
type: compound
|
||||
category: required
|
||||
generation: define, use-prop-name
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue