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

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

The txt binding specified the property "power-supply".
But the example and the actual implementation in the linux-kernel
uses "avdd-supply".
So the binding is adjusted to use avdd-supply as this seems
to be the correct choice.
There are no DT files in the linux kernel to check.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Werner Johansson <werner.johansson@sonymobile.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408195109.32692-30-sam@ravnborg.org

+51 -22
-22
Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt
··· 1 - Sharp Microelectronics 4.3" qHD TFT LCD panel 2 - 3 - Required properties: 4 - - compatible: should be "sharp,ls043t1le01-qhd" 5 - - reg: DSI virtual channel of the peripheral 6 - - power-supply: phandle of the regulator that provides the supply voltage 7 - 8 - Optional properties: 9 - - backlight: phandle of the backlight device attached to the panel 10 - - reset-gpios: a GPIO spec for the reset pin 11 - 12 - Example: 13 - 14 - mdss_dsi@fd922800 { 15 - panel@0 { 16 - compatible = "sharp,ls043t1le01-qhd"; 17 - reg = <0>; 18 - avdd-supply = <&pm8941_l22>; 19 - backlight = <&pm8941_wled>; 20 - reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>; 21 - }; 22 - };
+51
Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/sharp,ls043t1le01.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Sharp Microelectronics 4.3" qHD TFT LCD panel 8 + 9 + maintainers: 10 + - Werner Johansson <werner.johansson@sonymobile.com> 11 + 12 + allOf: 13 + - $ref: panel-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: sharp,ls043t1le01-qhd 18 + 19 + reg: true 20 + backlight: true 21 + reset-gpios: true 22 + port: true 23 + 24 + avdd-supply: 25 + description: handle of the regulator that provides the supply voltage 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - avdd-supply 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + #include <dt-bindings/gpio/gpio.h> 37 + 38 + dsi { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + panel@0 { 43 + compatible = "sharp,ls043t1le01-qhd"; 44 + reg = <0>; 45 + avdd-supply = <&pm8941_l22>; 46 + backlight = <&pm8941_wled>; 47 + reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>; 48 + }; 49 + }; 50 + 51 + ...