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

dt-bindings: display: convert boe,himax8279d to DT Schema

v2:
- Fix entry in MAINTAINERS

v3:
- Fix panel@0 in example (Rob)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Jerry Han <hanxu5@huaqin.corp-partner.google.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408195109.32692-7-sam@ravnborg.org

+60 -25
-24
Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt
··· 1 - Boe Himax8279d 1200x1920 TFT LCD panel 2 - 3 - Required properties: 4 - - compatible: should be "boe,himax8279d8p" and one of: "boe,himax8279d10p" 5 - - reg: DSI virtual channel of the peripheral 6 - - enable-gpios: panel enable gpio 7 - - pp33-gpios: a GPIO phandle for the 3.3v pin that provides the supply voltage 8 - - pp18-gpios: a GPIO phandle for the 1.8v pin that provides the supply voltage 9 - 10 - Optional properties: 11 - - backlight: phandle of the backlight device attached to the panel 12 - 13 - Example: 14 - 15 - &mipi_dsi { 16 - panel { 17 - compatible = "boe,himax8279d8p", "boe,himax8279d10p"; 18 - reg = <0>; 19 - backlight = <&backlight>; 20 - enable-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; 21 - pp33-gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; 22 - pp18-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>; 23 - }; 24 - };
+59
Documentation/devicetree/bindings/display/panel/boe,himax8279d.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/boe,himax8279d.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Boe Himax8279d 1200x1920 TFT LCD panel 8 + 9 + maintainers: 10 + - Jerry Han <jerry.han.hq@gmail.com> 11 + 12 + allOf: 13 + - $ref: panel-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + items: 18 + - const: boe,himax8279d8p 19 + - const: boe,himax8279d10p 20 + 21 + backlight: true 22 + enable-gpios: true 23 + reg: true 24 + 25 + pp33-gpios: 26 + maxItems: 1 27 + description: GPIO for the 3.3v pin that provides the supply voltage 28 + 29 + pp18-gpios: 30 + maxItems: 1 31 + description: GPIO for the 1.8v pin that provides the supply voltage 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - enable-gpios 37 + - pp33-gpios 38 + - pp18-gpios 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + #include <dt-bindings/gpio/gpio.h> 45 + 46 + dsi { 47 + #address-cells = <1>; 48 + #size-cells = <0>; 49 + panel@0 { 50 + compatible = "boe,himax8279d8p", "boe,himax8279d10p"; 51 + reg = <0>; 52 + backlight = <&backlight>; 53 + enable-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; 54 + pp33-gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; 55 + pp18-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>; 56 + }; 57 + }; 58 + 59 + ...
+1 -1
MAINTAINERS
··· 5255 5255 M: Jerry Han <hanxu5@huaqin.corp-partner.google.com> 5256 5256 S: Maintained 5257 5257 F: drivers/gpu/drm/panel/panel-boe-himax8279d.c 5258 - F: Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt 5258 + F: Documentation/devicetree/bindings/display/panel/boe,himax8279d.yaml 5259 5259 5260 5260 DRM DRIVER FOR FARADAY TVE200 TV ENCODER 5261 5261 M: Linus Walleij <linus.walleij@linaro.org>