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

dt-bindings: display: bridge: convert megachips-stdpxxxx-ge-b850v3-fw.txt to yaml

Convert megachips-stdpxxxx-ge-b850v3-fw.txt to yaml format.

Additional changes:
- Only keep one example.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
74459b0d 77e46093

+111 -91
+111
Documentation/devicetree/bindings/display/bridge/megachips,stdp2690-ge-b850v3-fw.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/megachips,stdp2690-ge-b850v3-fw.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: GE B850v3 video bridge 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + description: | 13 + STDP4028-ge-b850v3-fw bridges (LVDS-DP) 14 + STDP2690-ge-b850v3-fw bridges (DP-DP++) 15 + 16 + The video processing pipeline on the second output on the GE B850v3: 17 + 18 + Host -> LVDS|--(STDP4028)--|DP -> DP|--(STDP2690)--|DP++ -> Video output 19 + 20 + Each bridge has a dedicated flash containing firmware for supporting the custom 21 + design. The result is that, in this design, neither the STDP4028 nor the 22 + STDP2690 behave as the stock bridges would. The compatible strings include the 23 + suffix "-ge-b850v3-fw" to make it clear that the driver is for the bridges with 24 + the firmware specific for the GE B850v3. 25 + 26 + The hardware do not provide control over the video processing pipeline, as the 27 + two bridges behaves as a single one. The only interfaces exposed by the 28 + hardware are EDID, HPD, and interrupts. 29 + 30 + properties: 31 + compatible: 32 + enum: 33 + - megachips,stdp4028-ge-b850v3-fw 34 + - megachips,stdp2690-ge-b850v3-fw 35 + 36 + reg: 37 + maxItems: 1 38 + 39 + interrupts: 40 + maxItems: 1 41 + 42 + ports: 43 + $ref: /schemas/graph.yaml#/properties/ports 44 + properties: 45 + port@0: 46 + description: sink port 47 + $ref: /schemas/graph.yaml#/properties/port 48 + 49 + port@1: 50 + description: source port 51 + $ref: /schemas/graph.yaml#/properties/port 52 + 53 + required: 54 + - port@0 55 + - port@1 56 + 57 + required: 58 + - compatible 59 + - reg 60 + - ports 61 + 62 + allOf: 63 + - if: 64 + properties: 65 + compatible: 66 + contains: 67 + const: megachips,stdp4028-ge-b850v3-fw 68 + then: 69 + required: 70 + - interrupts 71 + 72 + additionalProperties: false 73 + 74 + examples: 75 + - | 76 + #include <dt-bindings/interrupt-controller/irq.h> 77 + 78 + i2c { 79 + #address-cells = <1>; 80 + #size-cells = <0>; 81 + 82 + bridge@73 { 83 + compatible = "megachips,stdp4028-ge-b850v3-fw"; 84 + reg = <0x73>; 85 + interrupt-parent = <&gpio2>; 86 + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 87 + 88 + ports { 89 + #address-cells = <1>; 90 + #size-cells = <0>; 91 + 92 + port@0 { 93 + reg = <0>; 94 + 95 + endpoint { 96 + remote-endpoint = <&lvds0_out>; 97 + }; 98 + 99 + }; 100 + 101 + port@1 { 102 + reg = <1>; 103 + 104 + endpoint { 105 + remote-endpoint = <&stdp2690_in>; 106 + }; 107 + }; 108 + }; 109 + }; 110 + }; 111 +
-91
Documentation/devicetree/bindings/display/bridge/megachips-stdpxxxx-ge-b850v3-fw.txt
··· 1 - Drivers for the second video output of the GE B850v3: 2 - STDP4028-ge-b850v3-fw bridges (LVDS-DP) 3 - STDP2690-ge-b850v3-fw bridges (DP-DP++) 4 - 5 - The video processing pipeline on the second output on the GE B850v3: 6 - 7 - Host -> LVDS|--(STDP4028)--|DP -> DP|--(STDP2690)--|DP++ -> Video output 8 - 9 - Each bridge has a dedicated flash containing firmware for supporting the custom 10 - design. The result is that, in this design, neither the STDP4028 nor the 11 - STDP2690 behave as the stock bridges would. The compatible strings include the 12 - suffix "-ge-b850v3-fw" to make it clear that the driver is for the bridges with 13 - the firmware specific for the GE B850v3. 14 - 15 - The hardware do not provide control over the video processing pipeline, as the 16 - two bridges behaves as a single one. The only interfaces exposed by the 17 - hardware are EDID, HPD, and interrupts. 18 - 19 - stdp4028-ge-b850v3-fw required properties: 20 - - compatible : "megachips,stdp4028-ge-b850v3-fw" 21 - - reg : I2C bus address 22 - - interrupts : one interrupt should be described here, as in 23 - <0 IRQ_TYPE_LEVEL_HIGH> 24 - - ports : One input port(reg = <0>) and one output port(reg = <1>) 25 - 26 - stdp2690-ge-b850v3-fw required properties: 27 - compatible : "megachips,stdp2690-ge-b850v3-fw" 28 - - reg : I2C bus address 29 - - ports : One input port(reg = <0>) and one output port(reg = <1>) 30 - 31 - Example: 32 - 33 - &mux2_i2c2 { 34 - clock-frequency = <100000>; 35 - 36 - stdp4028@73 { 37 - compatible = "megachips,stdp4028-ge-b850v3-fw"; 38 - #address-cells = <1>; 39 - #size-cells = <0>; 40 - 41 - reg = <0x73>; 42 - 43 - interrupt-parent = <&gpio2>; 44 - interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 45 - 46 - ports { 47 - #address-cells = <1>; 48 - #size-cells = <0>; 49 - 50 - port@0 { 51 - reg = <0>; 52 - stdp4028_in: endpoint { 53 - remote-endpoint = <&lvds0_out>; 54 - }; 55 - }; 56 - port@1 { 57 - reg = <1>; 58 - stdp4028_out: endpoint { 59 - remote-endpoint = <&stdp2690_in>; 60 - }; 61 - }; 62 - }; 63 - }; 64 - 65 - stdp2690@72 { 66 - compatible = "megachips,stdp2690-ge-b850v3-fw"; 67 - #address-cells = <1>; 68 - #size-cells = <0>; 69 - 70 - reg = <0x72>; 71 - 72 - ports { 73 - #address-cells = <1>; 74 - #size-cells = <0>; 75 - 76 - port@0 { 77 - reg = <0>; 78 - stdp2690_in: endpoint { 79 - remote-endpoint = <&stdp4028_out>; 80 - }; 81 - }; 82 - 83 - port@1 { 84 - reg = <1>; 85 - stdp2690_out: endpoint { 86 - /* Connector for external display */ 87 - }; 88 - }; 89 - }; 90 - }; 91 - };