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

dt-bindings: display: Add ABT Y030XX067A panel bindings

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480
24-bit IPS LCD panel. Its particularity is that it has non-square pixels
(as it is 4:3 for a resolution of 320x480), and that it requires odd
lines to be sent as RGB and even lines to be sent as GRB on its 8-bit
bus.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201101093150.8071-3-paul@crapouillou.net

+62
+62
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD panel 8 + 9 + description: | 10 + The panel must obey the rules for a SPI slave device as specified in 11 + spi/spi-controller.yaml 12 + 13 + maintainers: 14 + - Paul Cercueil <paul@crapouillou.net> 15 + 16 + allOf: 17 + - $ref: panel-common.yaml# 18 + 19 + properties: 20 + compatible: 21 + const: abt,y030xx067a 22 + 23 + backlight: true 24 + port: true 25 + power-supply: true 26 + reg: true 27 + reset-gpios: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - power-supply 33 + - reset-gpios 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/gpio/gpio.h> 40 + 41 + spi { 42 + #address-cells = <1>; 43 + #size-cells = <0>; 44 + 45 + panel@0 { 46 + compatible = "abt,y030xx067a"; 47 + reg = <0>; 48 + 49 + spi-max-frequency = <3125000>; 50 + 51 + reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>; 52 + 53 + backlight = <&backlight>; 54 + power-supply = <&vcc>; 55 + 56 + port { 57 + panel_input: endpoint { 58 + remote-endpoint = <&panel_output>; 59 + }; 60 + }; 61 + }; 62 + };