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

dt-bindings: display/bridge: ptn3460: Convert to YAML binding

Convert the NXP PTN3460 eDP to LVDS bridge documentation to YAML.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211007075822.62411-1-angelogioacchino.delregno@collabora.com

authored by

AngeloGioacchino Del Regno and committed by
Sam Ravnborg
26bc3371 6eab8224

+106 -39
+106
Documentation/devicetree/bindings/display/bridge/nxp,ptn3460.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/bridge/nxp,ptn3460.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP PTN3460 eDP to LVDS bridge 8 + 9 + maintainers: 10 + - Sean Paul <seanpaul@chromium.org> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,ptn3460 15 + 16 + reg: 17 + description: I2C address of the bridge 18 + maxItems: 1 19 + 20 + edid-emulation: 21 + $ref: "/schemas/types.yaml#/definitions/uint32" 22 + description: 23 + The EDID emulation entry to use 24 + Value Resolution Description 25 + 0 1024x768 NXP Generic 26 + 1 1920x1080 NXP Generic 27 + 2 1920x1080 NXP Generic 28 + 3 1600x900 Samsung LTM200KT 29 + 4 1920x1080 Samsung LTM230HT 30 + 5 1366x768 NXP Generic 31 + 6 1600x900 ChiMei M215HGE 32 + enum: [0, 1, 2, 3, 4, 5, 6] 33 + 34 + powerdown-gpios: 35 + description: GPIO connected to the PD_N signal. 36 + maxItems: 1 37 + 38 + reset-gpios: 39 + description: GPIO connected to the RST_N signal. 40 + maxItems: 1 41 + 42 + ports: 43 + $ref: /schemas/graph.yaml#/properties/ports 44 + 45 + properties: 46 + port@0: 47 + $ref: /schemas/graph.yaml#/properties/port 48 + description: 49 + Video port for LVDS output 50 + 51 + port@1: 52 + $ref: /schemas/graph.yaml#/properties/port 53 + description: 54 + Video port for eDP input 55 + 56 + required: 57 + - port@0 58 + - port@1 59 + 60 + required: 61 + - compatible 62 + - reg 63 + - edid-emulation 64 + - powerdown-gpios 65 + - reset-gpios 66 + - ports 67 + 68 + additionalProperties: false 69 + 70 + examples: 71 + - | 72 + #include <dt-bindings/gpio/gpio.h> 73 + 74 + i2c1 { 75 + #address-cells = <1>; 76 + #size-cells = <0>; 77 + 78 + bridge@20 { 79 + compatible = "nxp,ptn3460"; 80 + reg = <0x20>; 81 + edid-emulation = <5>; 82 + powerdown-gpios = <&gpy2 5 GPIO_ACTIVE_HIGH>; 83 + reset-gpios = <&gpx1 5 GPIO_ACTIVE_LOW>; 84 + 85 + ports { 86 + #address-cells = <1>; 87 + #size-cells = <0>; 88 + 89 + port@0 { 90 + reg = <0>; 91 + bridge_out: endpoint { 92 + remote-endpoint = <&panel_in>; 93 + }; 94 + }; 95 + 96 + port@1 { 97 + reg = <1>; 98 + bridge_in: endpoint { 99 + remote-endpoint = <&dp_out>; 100 + }; 101 + }; 102 + }; 103 + }; 104 + }; 105 + 106 + ...
-39
Documentation/devicetree/bindings/display/bridge/ptn3460.txt
··· 1 - ptn3460 bridge bindings 2 - 3 - Required properties: 4 - - compatible: "nxp,ptn3460" 5 - - reg: i2c address of the bridge 6 - - powerdown-gpio: OF device-tree gpio specification for PD_N pin. 7 - - reset-gpio: OF device-tree gpio specification for RST_N pin. 8 - - edid-emulation: The EDID emulation entry to use 9 - +-------+------------+------------------+ 10 - | Value | Resolution | Description | 11 - | 0 | 1024x768 | NXP Generic | 12 - | 1 | 1920x1080 | NXP Generic | 13 - | 2 | 1920x1080 | NXP Generic | 14 - | 3 | 1600x900 | Samsung LTM200KT | 15 - | 4 | 1920x1080 | Samsung LTM230HT | 16 - | 5 | 1366x768 | NXP Generic | 17 - | 6 | 1600x900 | ChiMei M215HGE | 18 - +-------+------------+------------------+ 19 - 20 - - video interfaces: Device node can contain video interface port 21 - nodes for panel according to [1]. 22 - 23 - [1]: Documentation/devicetree/bindings/media/video-interfaces.txt 24 - 25 - Example: 26 - lvds-bridge@20 { 27 - compatible = "nxp,ptn3460"; 28 - reg = <0x20>; 29 - powerdown-gpio = <&gpy2 5 1 0 0>; 30 - reset-gpio = <&gpx1 5 1 0 0>; 31 - edid-emulation = <5>; 32 - ports { 33 - port@0 { 34 - bridge_out: endpoint { 35 - remote-endpoint = <&panel_in>; 36 - }; 37 - }; 38 - }; 39 - };