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

dt-bindings: display: convert sharp,lq150x1lg11 to DT Schema

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Peter Rosin <peda@axentia.se>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408195109.32692-33-sam@ravnborg.org

+58 -36
-36
Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt
··· 1 - Sharp 15" LQ150X1LG11 XGA TFT LCD panel 2 - 3 - Required properties: 4 - - compatible: should be "sharp,lq150x1lg11" 5 - - power-supply: regulator to provide the VCC supply voltage (3.3 volts) 6 - 7 - Optional properties: 8 - - backlight: phandle of the backlight device 9 - - rlud-gpios: a single GPIO for the RL/UD (rotate 180 degrees) pin. 10 - - sellvds-gpios: a single GPIO for the SELLVDS pin. 11 - 12 - If rlud-gpios and/or sellvds-gpios are not specified, the RL/UD and/or SELLVDS 13 - pins are assumed to be handled appropriately by the hardware. 14 - 15 - Example: 16 - 17 - backlight: backlight { 18 - compatible = "pwm-backlight"; 19 - pwms = <&pwm 0 100000>; /* VBR */ 20 - 21 - brightness-levels = <0 20 40 60 80 100>; 22 - default-brightness-level = <2>; 23 - 24 - power-supply = <&vdd_12v_reg>; /* VDD */ 25 - enable-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; /* XSTABY */ 26 - }; 27 - 28 - panel { 29 - compatible = "sharp,lq150x1lg11"; 30 - 31 - power-supply = <&vcc_3v3_reg>; /* VCC */ 32 - 33 - backlight = <&backlight>; 34 - rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; /* RL/UD */ 35 - sellvds-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; /* SELLVDS */ 36 - };
+58
Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/sharp,lq150x1lg11.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Sharp 15" LQ150X1LG11 XGA TFT LCD panel 8 + 9 + maintainers: 10 + - Peter Rosin <peda@axentia.se> 11 + 12 + allOf: 13 + - $ref: panel-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: sharp,lq150x1lg11 18 + 19 + power-supply: true 20 + backlight: true 21 + 22 + rlud-gpios: 23 + maxItems: 1 24 + description: | 25 + GPIO for the RL/UD (rotate 180 degrees) pin. 26 + If rlud-gpios and/or sellvds-gpios are not specified, 27 + the RL/UD and/or SELLVDS pins are assumed to be handled 28 + appropriately by the hardware. 29 + 30 + sellvds-gpios: 31 + maxItems: 1 32 + description: | 33 + GPIO for the SELLVDS pin. 34 + If rlud-gpios and/or sellvds-gpios are not specified, 35 + the RL/UD and/or SELLVDS pins are assumed to be handled 36 + appropriately by the hardware. 37 + 38 + required: 39 + - compatible 40 + - power-supply 41 + 42 + additionalProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/gpio/gpio.h> 47 + 48 + panel { 49 + compatible = "sharp,lq150x1lg11"; 50 + 51 + power-supply = <&vcc_3v3_reg>; /* VCC */ 52 + 53 + backlight = <&backlight>; 54 + rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; /* RL/UD */ 55 + sellvds-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; /* SELLVDS */ 56 + }; 57 + 58 + ...