161 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/i2c/adv7604.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Analog Devices ADV7604/10/11/12 video decoder with HDMI receiver8 9maintainers:10 - Hans Verkuil <hverkuil-cisco@xs4all.nl>11 12description:13 The ADV7604 and ADV7610/11/12 are multiformat video decoders with14 an integrated HDMI receiver. The ADV7604 has four multiplexed HDMI inputs15 and one analog input, and the ADV7610/11 have one HDMI input and no analog16 input. The ADV7612 is similar to the ADV7610/11 but has 2 HDMI inputs.17 18 These device tree bindings support the ADV7610/11/12 only at the moment.19 20properties:21 compatible:22 items:23 - enum:24 - adi,adv761025 - adi,adv761126 - adi,adv761227 28 reg:29 minItems: 130 maxItems: 1331 32 reg-names:33 minItems: 134 items:35 - const: main36 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]37 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]38 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]39 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]40 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]41 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]42 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]43 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]44 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]45 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]46 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]47 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]48 49 interrupts:50 maxItems: 151 52 reset-gpios:53 maxItems: 154 55 hpd-gpios:56 minItems: 157 description:58 References to the GPIOs that control the HDMI hot-plug detection pins,59 one per HDMI input. The active flag indicates the GPIO level that60 enables hot-plug detection.61 62 default-input:63 $ref: /schemas/types.yaml#/definitions/uint3264 enum: [ 0, 1 ]65 description:66 Select which input is selected after reset.67 68 ports: true69 70required:71 - compatible72 - reg73 - ports74 75additionalProperties: false76 77allOf:78 - if:79 properties:80 compatible:81 contains:82 const: adi,adv761183 then:84 properties:85 ports:86 $ref: /schemas/graph.yaml#/properties/ports87 properties:88 port@0:89 $ref: /schemas/graph.yaml#/properties/port90 description: Input port91 92 port@1:93 $ref: /schemas/graph.yaml#/properties/port94 description: Output port95 96 required:97 - port@198 99 - if:100 properties:101 compatible:102 contains:103 const: adi,adv7612104 then:105 properties:106 ports:107 $ref: /schemas/graph.yaml#/properties/ports108 properties:109 port@2:110 $ref: /schemas/graph.yaml#/properties/port111 description: Output port112 113 patternProperties:114 "^port@[0-1]$":115 $ref: /schemas/graph.yaml#/properties/port116 description: Input port117 118 required:119 - port@2120 121examples:122 - |123 #include <dt-bindings/gpio/gpio.h>124 125 i2c {126 #address-cells = <1>;127 #size-cells = <0>;128 129 hdmi_receiver@4c {130 compatible = "adi,adv7611";131 /*132 * The edid page will be accessible @ 0x66 on the I2C bus. All133 * other maps will retain their default addresses.134 */135 reg = <0x4c>, <0x66>;136 reg-names = "main", "edid";137 138 reset-gpios = <&ioexp 0 GPIO_ACTIVE_LOW>;139 hpd-gpios = <&ioexp 2 GPIO_ACTIVE_HIGH>;140 default-input = <0>;141 142 ports {143 #address-cells = <1>;144 #size-cells = <0>;145 146 port@0 {147 reg = <0>;148 };149 150 port@1 {151 reg = <1>;152 hdmi_in: endpoint {153 remote-endpoint = <&ccdc_in>;154 };155 };156 };157 158 159 };160 };161