Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: display: sitronix,st7920: Add DT schema

Add binding for Sitronix ST7920 display.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20251215-st7920-v7-1-36771009ec01@gmail.com

authored by

Iker Pedrosa and committed by
Javier Martinez Canillas
549cf05a e7a943f0

+58
+58
Documentation/devicetree/bindings/display/sitronix,st7920.yaml
··· 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 <ikerpedrosam@gmail.com> 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 = <&reg_5v>; 54 + reset-gpios = <&gpio 25 GPIO_ACTIVE_LOW>; 55 + spi-max-frequency = <600000>; 56 + spi-cs-high; 57 + }; 58 + };