| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: SHARP LS037V7DW01 TFT-LCD panel |
| 8 |
|
| 9 |
description: | |
| 10 |
This panel can have zero to five GPIOs to configure to change configuration |
| 11 |
between QVGA and VGA mode and the scan direction. As these pins can be also |
| 12 |
configured with external pulls, all the GPIOs are considered optional with holes |
| 13 |
in the array. |
| 14 |
|
| 15 |
maintainers: |
| 16 |
- Tony Lindgren <[email protected]> |
| 17 |
|
| 18 |
allOf: |
| 19 |
- $ref: panel-common.yaml# |
| 20 |
|
| 21 |
properties: |
| 22 |
compatible: |
| 23 |
const: sharp,ls037v7dw01 |
| 24 |
|
| 25 |
label: true |
| 26 |
enable-gpios: true |
| 27 |
reset-gpios: true |
| 28 |
port: true |
| 29 |
power-supply: true |
| 30 |
|
| 31 |
mode-gpios: |
| 32 |
minItems: 1 |
| 33 |
maxItems: 3 |
| 34 |
description: | |
| 35 |
GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf |
| 36 |
This panel can have zero to three GPIOs to configure to |
| 37 |
change configuration between QVGA and VGA mode and the |
| 38 |
scan direction. As these pins can be also configured |
| 39 |
with external pulls, all the GPIOs are considered |
| 40 |
optional with holes in the array. |
| 41 |
|
| 42 |
required: |
| 43 |
- compatible |
| 44 |
- port |
| 45 |
|
| 46 |
additionalProperties: false |
| 47 |
|
| 48 |
examples: |
| 49 |
- | |
| 50 |
#include <dt-bindings/gpio/gpio.h> |
| 51 |
|
| 52 |
lcd0: display { |
| 53 |
compatible = "sharp,ls037v7dw01"; |
| 54 |
power-supply = <&lcd_3v3>; |
| 55 |
enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>; /* gpio152, lcd INI */ |
| 56 |
reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd RESB */ |
| 57 |
mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH /* gpio154, lcd MO */ |
| 58 |
&gpio1 2 GPIO_ACTIVE_HIGH /* gpio2, lcd LR */ |
| 59 |
&gpio1 3 GPIO_ACTIVE_HIGH>; /* gpio3, lcd UD */ |
| 60 |
|
| 61 |
port { |
| 62 |
lcd_in: endpoint { |
| 63 |
remote-endpoint = <&dpi_out>; |
| 64 |
}; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
... |