Path: blob/master/Documentation/devicetree/bindings/display/bridge/adi,adv7511.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/bridge/adi,adv7511.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices ADV7511/11W/13 HDMI Encoders78maintainers:9- Laurent Pinchart <laurent.pinchart@ideasonboard.com>1011description: |12The ADV7511, ADV7511W and ADV7513 are HDMI audio and video13transmitters compatible with HDMI 1.4 and DVI 1.0. They support color14space conversion, S/PDIF, CEC and HDCP. The transmitter input is15parallel RGB or YUV data.1617properties:18compatible:19enum:20- adi,adv751121- adi,adv7511w22- adi,adv75132324reg:25description: |26I2C slave addresses.2728The ADV7511/11W/13 internal registers are split into four pages29exposed through different I2C addresses, creating four register30maps. Each map has it own I2C address and acts as a standard slave31device on the I2C bus. The main address is mandatory, others are32optional and revert to defaults if not specified.33minItems: 134maxItems: 43536reg-names:37description:38Names of maps with programmable addresses. It can contain any map39needing a non-default address.40minItems: 141items:42- const: main43- const: edid44- const: cec45- const: packet4647clocks:48description: Reference to the CEC clock.49maxItems: 15051clock-names:52const: cec5354interrupts:55maxItems: 15657pd-gpios:58description: GPIO connected to the power down signal.59maxItems: 16061avdd-supply:62description: A 1.8V supply that powers up the AVDD pin.6364dvdd-supply:65description: A 1.8V supply that powers up the DVDD pin.6667pvdd-supply:68description: A 1.8V supply that powers up the PVDD pin.6970dvdd-3v-supply:71description: A 3.3V supply that powers up the DVDD_3V pin.7273bgvdd-supply:74description: A 1.8V supply that powers up the BGVDD pin.7576adi,input-depth:77description: Number of bits per color component at the input.78$ref: /schemas/types.yaml#/definitions/uint3279enum: [ 8, 10, 12 ]8081adi,input-colorspace:82description: Input color space.83enum: [ rgb, yuv422, yuv444 ]8485adi,input-clock:86description: |87Input clock type.88"1x": one clock cycle per pixel89"2x": two clock cycles per pixel90"dd": one clock cycle per pixel, data driven on both edges91enum: [ 1x, 2x, dd ]9293adi,clock-delay:94description:95Video data clock delay relative to the pixel clock, in ps96(-1200ps .. 1600 ps).97$ref: /schemas/types.yaml#/definitions/uint3298default: 099100adi,embedded-sync:101description:102If defined, the input uses synchronization signals embedded in the103data stream (similar to BT.656).104type: boolean105106adi,input-style:107description:108Input components arrangement variant as listed in the input109format tables in the datasheet.110$ref: /schemas/types.yaml#/definitions/uint32111enum: [ 1, 2, 3 ]112113adi,input-justification:114description: Input bit justification.115enum: [ left, evenly, right ]116117ports:118description:119The ADV7511(W)/13 has two video ports and one audio port.120$ref: /schemas/graph.yaml#/properties/ports121122properties:123port@0:124description: Video port for the RGB or YUV input.125$ref: /schemas/graph.yaml#/properties/port126127port@1:128description: Video port for the HDMI output.129$ref: /schemas/graph.yaml#/properties/port130131port@2:132description: Audio port for the HDMI output.133$ref: /schemas/graph.yaml#/properties/port134135# adi,input-colorspace and adi,input-clock are required except in136# "rgb 1x" and "yuv444 1x" modes, in which case they must not be137# specified.138if:139not:140properties:141adi,input-colorspace:142contains:143enum: [ rgb, yuv444 ]144adi,input-clock:145contains:146const: 1x147148then:149required:150- adi,input-style151- adi,input-justification152153else:154properties:155adi,input-style: false156adi,input-justification: false157158159required:160- compatible161- reg162- ports163- adi,input-depth164- adi,input-colorspace165- adi,input-clock166- avdd-supply167- dvdd-supply168- pvdd-supply169- dvdd-3v-supply170- bgvdd-supply171172additionalProperties: false173174examples:175- |176#include <dt-bindings/interrupt-controller/irq.h>177178i2c@e6500000 {179#address-cells = <1>;180#size-cells = <0>;181182reg = <0 0xe6500000>;183184adv7511w: hdmi@39 {185compatible = "adi,adv7511w";186/*187* The EDID page will be accessible on address 0x66 on the I2C188* bus. All other maps continue to use their default addresses.189*/190reg = <0x39>, <0x66>;191reg-names = "main", "edid";192interrupt-parent = <&gpio3>;193interrupts = <29 IRQ_TYPE_EDGE_FALLING>;194clocks = <&cec_clock>;195clock-names = "cec";196avdd-supply = <&v1v8>;197dvdd-supply = <&v1v8>;198pvdd-supply = <&v1v8>;199dvdd-3v-supply = <&v3v3>;200bgvdd-supply = <&v1v8>;201202adi,input-depth = <8>;203adi,input-colorspace = "yuv422";204adi,input-clock = "1x";205206adi,input-style = <3>;207adi,input-justification = "right";208ports {209#address-cells = <1>;210#size-cells = <0>;211212port@0 {213reg = <0>;214adv7511w_in: endpoint {215remote-endpoint = <&dpi_out>;216};217};218219port@1 {220reg = <1>;221adv7511_out: endpoint {222remote-endpoint = <&hdmi_connector_in>;223};224};225226port@2 {227reg = <2>;228codec_endpoint: endpoint {229remote-endpoint = <&i2s0_cpu_endpoint>;230};231};232};233};234};235236...237238239