Path: blob/master/Documentation/devicetree/bindings/display/bridge/adi,adv7511.yaml
53269 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: false157158required:159- compatible160- reg161- ports162- adi,input-depth163- adi,input-colorspace164- adi,input-clock165- avdd-supply166- dvdd-supply167- pvdd-supply168- dvdd-3v-supply169- bgvdd-supply170171additionalProperties: false172173examples:174- |175#include <dt-bindings/interrupt-controller/irq.h>176177i2c@e6500000 {178#address-cells = <1>;179#size-cells = <0>;180181reg = <0 0xe6500000>;182183adv7511w: hdmi@39 {184compatible = "adi,adv7511w";185/*186* The EDID page will be accessible on address 0x66 on the I2C187* bus. All other maps continue to use their default addresses.188*/189reg = <0x39>, <0x66>;190reg-names = "main", "edid";191interrupt-parent = <&gpio3>;192interrupts = <29 IRQ_TYPE_EDGE_FALLING>;193clocks = <&cec_clock>;194clock-names = "cec";195avdd-supply = <&v1v8>;196dvdd-supply = <&v1v8>;197pvdd-supply = <&v1v8>;198dvdd-3v-supply = <&v3v3>;199bgvdd-supply = <&v1v8>;200201adi,input-depth = <8>;202adi,input-colorspace = "yuv422";203adi,input-clock = "1x";204205adi,input-style = <3>;206adi,input-justification = "right";207ports {208#address-cells = <1>;209#size-cells = <0>;210211port@0 {212reg = <0>;213adv7511w_in: endpoint {214remote-endpoint = <&dpi_out>;215};216};217218port@1 {219reg = <1>;220adv7511_out: endpoint {221remote-endpoint = <&hdmi_connector_in>;222};223};224225port@2 {226reg = <2>;227codec_endpoint: endpoint {228remote-endpoint = <&i2s0_cpu_endpoint>;229};230};231};232};233};234235...236237238