1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/t 4 $id: http://devicetree.org/schemas/media/i2c/techwell,tw9900.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Techwell TW9900 NTSC/PAL video decoder 7 title: Techwell TW9900 NTSC/PAL video decoder 8 8 9 maintainers: 9 maintainers: 10 - Mehdi Djait <mehdi.djait@bootlin.com> 10 - Mehdi Djait <mehdi.djait@bootlin.com> 11 11 12 description: 12 description: 13 The tw9900 is a multi-standard video decoder 13 The tw9900 is a multi-standard video decoder, supporting NTSC, PAL standards 14 with auto-detection features. 14 with auto-detection features. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: techwell,tw9900 18 const: techwell,tw9900 19 19 20 reg: 20 reg: 21 maxItems: 1 21 maxItems: 1 22 22 23 vdd-supply: 23 vdd-supply: 24 description: VDD power supply 24 description: VDD power supply 25 25 26 reset-gpios: 26 reset-gpios: 27 description: GPIO descriptor for the RESET 27 description: GPIO descriptor for the RESET input pin 28 maxItems: 1 28 maxItems: 1 29 29 30 powerdown-gpios: 30 powerdown-gpios: 31 description: GPIO descriptor for the POWER 31 description: GPIO descriptor for the POWERDOWN input pin 32 maxItems: 1 32 maxItems: 1 33 33 34 ports: 34 ports: 35 $ref: /schemas/graph.yaml#/properties/port 35 $ref: /schemas/graph.yaml#/properties/ports 36 36 37 properties: 37 properties: 38 port@0: 38 port@0: 39 $ref: /schemas/graph.yaml#/properties/ 39 $ref: /schemas/graph.yaml#/properties/port 40 description: Analog input port 40 description: Analog input port 41 41 42 properties: 42 properties: 43 endpoint@0: 43 endpoint@0: 44 $ref: /schemas/graph.yaml#/propert 44 $ref: /schemas/graph.yaml#/properties/endpoint 45 description: CVBS over MUX0 45 description: CVBS over MUX0 46 46 47 endpoint@1: 47 endpoint@1: 48 $ref: /schemas/graph.yaml#/propert 48 $ref: /schemas/graph.yaml#/properties/endpoint 49 description: CVBS over MUX1 49 description: CVBS over MUX1 50 50 51 endpoint@2: 51 endpoint@2: 52 $ref: /schemas/graph.yaml#/propert 52 $ref: /schemas/graph.yaml#/properties/endpoint 53 description: Chroma over CIN0 and 53 description: Chroma over CIN0 and Y over MUX0 54 54 55 endpoint@3: 55 endpoint@3: 56 $ref: /schemas/graph.yaml#/propert 56 $ref: /schemas/graph.yaml#/properties/endpoint 57 description: Chroma over CIN0 and 57 description: Chroma over CIN0 and Y over MUX1 58 58 59 oneOf: 59 oneOf: 60 - required: 60 - required: 61 - endpoint@0 61 - endpoint@0 62 - required: 62 - required: 63 - endpoint@1 63 - endpoint@1 64 - required: 64 - required: 65 - endpoint@2 65 - endpoint@2 66 - required: 66 - required: 67 - endpoint@3 67 - endpoint@3 68 68 69 port@1: 69 port@1: 70 $ref: /schemas/graph.yaml#/properties/ 70 $ref: /schemas/graph.yaml#/properties/port 71 description: Video port for the decode 71 description: Video port for the decoder output. 72 72 73 73 74 required: 74 required: 75 - port@0 75 - port@0 76 - port@1 76 - port@1 77 77 78 required: 78 required: 79 - compatible 79 - compatible 80 - ports 80 - ports 81 - reg 81 - reg 82 - vdd-supply 82 - vdd-supply 83 83 84 additionalProperties: false 84 additionalProperties: false 85 85 86 examples: 86 examples: 87 - | 87 - | 88 #include <dt-bindings/display/sdtv-standar 88 #include <dt-bindings/display/sdtv-standards.h> 89 #include <dt-bindings/gpio/gpio.h> 89 #include <dt-bindings/gpio/gpio.h> 90 90 91 composite_connector { 91 composite_connector { 92 compatible = "composite-video-connecto 92 compatible = "composite-video-connector"; 93 label = "tv"; 93 label = "tv"; 94 sdtv-standards = <(SDTV_STD_PAL | SDTV 94 sdtv-standards = <(SDTV_STD_PAL | SDTV_STD_NTSC)>; 95 95 96 port { 96 port { 97 composite_to_tw9900: endpoint { 97 composite_to_tw9900: endpoint { 98 remote-endpoint = <&tw9900_to_ 98 remote-endpoint = <&tw9900_to_composite>; 99 }; 99 }; 100 }; 100 }; 101 }; 101 }; 102 102 103 i2c { 103 i2c { 104 #address-cells = <1>; 104 #address-cells = <1>; 105 #size-cells = <0>; 105 #size-cells = <0>; 106 106 107 video-decoder@44 { 107 video-decoder@44 { 108 compatible = "techwell,tw9900"; 108 compatible = "techwell,tw9900"; 109 reg = <0x44>; 109 reg = <0x44>; 110 110 111 vdd-supply = <&tw9900_supply>; 111 vdd-supply = <&tw9900_supply>; 112 reset-gpios = <&gpio2 5 GPIO_ACTIV 112 reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; 113 113 114 ports { 114 ports { 115 #address-cells = <1>; 115 #address-cells = <1>; 116 #size-cells = <0>; 116 #size-cells = <0>; 117 117 118 port@0 { 118 port@0 { 119 #address-cells = <1>; 119 #address-cells = <1>; 120 #size-cells = <0>; 120 #size-cells = <0>; 121 121 122 reg = <0>; 122 reg = <0>; 123 tw9900_to_composite: endpo 123 tw9900_to_composite: endpoint@0 { 124 reg = <0>; 124 reg = <0>; 125 remote-endpoint = <&co 125 remote-endpoint = <&composite_to_tw9900>; 126 }; 126 }; 127 }; 127 }; 128 128 129 port@1 { 129 port@1 { 130 reg = <1>; 130 reg = <1>; 131 endpoint { 131 endpoint { 132 remote-endpoint = <&ci 132 remote-endpoint = <&cif_in>; 133 }; 133 }; 134 }; 134 }; 135 }; 135 }; 136 }; 136 }; 137 }; 137 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.