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

dt-bindings: display: convert innolux,p120zdg-bf1 to DT Schema

v3:
- Fix stray spaces

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Sandeep Panda <spanda@codeaurora.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408195109.32692-12-sam@ravnborg.org

+43 -22
-22
Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.txt
··· 1 - Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel 2 - 3 - This binding is compatible with the simple-panel binding, which is specified 4 - in simple-panel.txt in this directory. 5 - 6 - Required properties: 7 - - compatible: should be "innolux,p120zdg-bf1" 8 - - power-supply: regulator to provide the supply voltage 9 - 10 - Optional properties: 11 - - enable-gpios: GPIO pin to enable or disable the panel 12 - - backlight: phandle of the backlight device attached to the panel 13 - - no-hpd: If HPD isn't hooked up; add this property. 14 - 15 - Example: 16 - panel_edp: panel-edp { 17 - compatible = "innolux,p120zdg-bf1"; 18 - enable-gpios = <&msmgpio 31 GPIO_ACTIVE_LOW>; 19 - power-supply = <&pm8916_l2>; 20 - backlight = <&backlight>; 21 - no-hpd; 22 - };
+43
Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/innolux,p120zdg-bf1.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel 8 + 9 + maintainers: 10 + - Sandeep Panda <spanda@codeaurora.org> 11 + - Douglas Anderson <dianders@chromium.org> 12 + 13 + allOf: 14 + - $ref: panel-common.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: innolux,p120zdg-bf1 19 + 20 + enable-gpios: true 21 + power-supply: true 22 + backlight: true 23 + no-hpd: true 24 + 25 + required: 26 + - compatible 27 + - power-supply 28 + 29 + additionalProperties: false 30 + 31 + examples: 32 + - | 33 + #include <dt-bindings/gpio/gpio.h> 34 + 35 + panel_edp: panel-edp { 36 + compatible = "innolux,p120zdg-bf1"; 37 + enable-gpios = <&msmgpio 31 GPIO_ACTIVE_LOW>; 38 + power-supply = <&pm8916_l2>; 39 + backlight = <&backlight>; 40 + no-hpd; 41 + }; 42 + 43 + ...