| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/display/sitronix,st7920.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Sitronix ST7920 LCD Display Controllers |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Iker Pedrosa <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The Sitronix ST7920 is a controller for monochrome dot-matrix graphical LCDs, |
| 14 |
most commonly used for 128x64 pixel displays. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
const: sitronix,st7920 |
| 19 |
|
| 20 |
reg: |
| 21 |
maxItems: 1 |
| 22 |
|
| 23 |
vdd-supply: |
| 24 |
description: Regulator that provides 5V Vdd power supply |
| 25 |
|
| 26 |
reset-gpios: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
spi-max-frequency: |
| 30 |
maximum: 600000 |
| 31 |
|
| 32 |
required: |
| 33 |
- compatible |
| 34 |
- reg |
| 35 |
- spi-max-frequency |
| 36 |
|
| 37 |
allOf: |
| 38 |
- $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 39 |
|
| 40 |
unevaluatedProperties: false |
| 41 |
|
| 42 |
examples: |
| 43 |
- | |
| 44 |
#include <dt-bindings/gpio/gpio.h> |
| 45 |
|
| 46 |
spi { |
| 47 |
#address-cells = <1>; |
| 48 |
#size-cells = <0>; |
| 49 |
|
| 50 |
display@0 { |
| 51 |
compatible = "sitronix,st7920"; |
| 52 |
reg = <0>; |
| 53 |
vdd-supply = <®_5v>; |
| 54 |
reset-gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
| 55 |
spi-max-frequency = <600000>; |
| 56 |
spi-cs-high; |
| 57 |
}; |
| 58 |
}; |