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

dt-bindings: display: convert faraday,tve200

Converts display/faraday,tve200.txt to yaml.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210519203547.837237-1-clabbe@baylibre.com

authored by

Corentin Labbe and committed by
Linus Walleij
91cdb2b0 6d0a12c7

+68 -54
-54
Documentation/devicetree/bindings/display/faraday,tve200.txt
··· 1 - * Faraday TV Encoder TVE200 2 - 3 - Required properties: 4 - 5 - - compatible: must be one of: 6 - "faraday,tve200" 7 - "cortina,gemini-tvc", "faraday,tve200" 8 - 9 - - reg: base address and size of the control registers block 10 - 11 - - interrupts: contains an interrupt specifier for the interrupt 12 - line from the TVE200 13 - 14 - - clock-names: should contain "PCLK" for the clock line clocking the 15 - silicon and "TVE" for the 27MHz clock to the video driver 16 - 17 - - clocks: contains phandle and clock specifier pairs for the entries 18 - in the clock-names property. See 19 - Documentation/devicetree/bindings/clock/clock-bindings.txt 20 - 21 - Optional properties: 22 - 23 - - resets: contains the reset line phandle for the block 24 - 25 - Required sub-nodes: 26 - 27 - - port: describes LCD panel signals, following the common binding 28 - for video transmitter interfaces; see 29 - Documentation/devicetree/bindings/media/video-interfaces.txt 30 - This port should have the properties: 31 - reg = <0>; 32 - It should have one endpoint connected to a remote endpoint where 33 - the display is connected. 34 - 35 - Example: 36 - 37 - display-controller@6a000000 { 38 - #address-cells = <1>; 39 - #size-cells = <0>; 40 - compatible = "faraday,tve200"; 41 - reg = <0x6a000000 0x1000>; 42 - interrupts = <13 IRQ_TYPE_EDGE_RISING>; 43 - resets = <&syscon GEMINI_RESET_TVC>; 44 - clocks = <&syscon GEMINI_CLK_GATE_TVC>, 45 - <&syscon GEMINI_CLK_TVC>; 46 - clock-names = "PCLK", "TVE"; 47 - 48 - port@0 { 49 - reg = <0>; 50 - display_out: endpoint { 51 - remote-endpoint = <&panel_in>; 52 - }; 53 - }; 54 - };
+68
Documentation/devicetree/bindings/display/faraday,tve200.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/faraday,tve200.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Faraday TV Encoder TVE200 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - const: faraday,tve200 16 + - items: 17 + - const: cortina,gemini-tvc 18 + - const: faraday,tve200 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + minItems: 1 25 + 26 + clock-names: 27 + items: 28 + - const: PCLK 29 + - const: TVE 30 + 31 + clocks: 32 + minItems: 2 33 + 34 + resets: 35 + minItems: 1 36 + 37 + port: 38 + $ref: /schemas/graph.yaml#/properties/port 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - interrupts 44 + - clock-names 45 + - clocks 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/clock/cortina,gemini-clock.h> 52 + #include <dt-bindings/interrupt-controller/irq.h> 53 + #include <dt-bindings/reset/cortina,gemini-reset.h> 54 + display-controller@6a000000 { 55 + compatible = "faraday,tve200"; 56 + reg = <0x6a000000 0x1000>; 57 + interrupts = <13 IRQ_TYPE_EDGE_RISING>; 58 + resets = <&syscon GEMINI_RESET_TVC>; 59 + clocks = <&syscon GEMINI_CLK_GATE_TVC>, 60 + <&syscon GEMINI_CLK_TVC>; 61 + clock-names = "PCLK", "TVE"; 62 + 63 + port { 64 + display_out: endpoint { 65 + remote-endpoint = <&panel_in>; 66 + }; 67 + }; 68 + };