Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/display/bridge/analogix,anx7814.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analogix ANX7814 SlimPort (Full-HD Transmitter) |
| 8 | |
| 9 | maintainers: |
Krzysztof Kozlowski | 5e547d6 | 2022-01-20 11:40:08 +0100 | [diff] [blame] | 10 | - Andrzej Hajda <andrzej.hajda@intel.com> |
| 11 | - Neil Armstrong <narmstrong@baylibre.com> |
| 12 | - Robert Foss <robert.foss@linaro.org> |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 13 | |
| 14 | properties: |
| 15 | compatible: |
| 16 | enum: |
| 17 | - analogix,anx7808 |
| 18 | - analogix,anx7812 |
| 19 | - analogix,anx7814 |
| 20 | - analogix,anx7818 |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | description: I2C address of the device. |
| 25 | |
| 26 | interrupts: |
| 27 | maxItems: 1 |
| 28 | description: Should contain the INTP interrupt. |
| 29 | |
| 30 | hpd-gpios: |
| 31 | deprecated: true |
| 32 | maxItems: 1 |
| 33 | description: Which GPIO to use for hpd. |
| 34 | |
| 35 | pd-gpios: |
| 36 | maxItems: 1 |
| 37 | description: Which GPIO to use for power down. |
| 38 | |
| 39 | reset-gpios: |
| 40 | maxItems: 1 |
| 41 | description: Which GPIO to use for reset. |
| 42 | |
| 43 | dvdd10-supply: |
| 44 | description: Regulator for 1.0V digital core power. |
| 45 | |
| 46 | ports: |
Rob Herring | b675542 | 2021-01-04 11:07:23 -0700 | [diff] [blame] | 47 | $ref: /schemas/graph.yaml#/properties/ports |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 48 | |
| 49 | properties: |
| 50 | port@0: |
Rob Herring | b675542 | 2021-01-04 11:07:23 -0700 | [diff] [blame] | 51 | $ref: /schemas/graph.yaml#/properties/port |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 52 | description: Video port for HDMI input. |
| 53 | |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 54 | port@1: |
Rob Herring | b675542 | 2021-01-04 11:07:23 -0700 | [diff] [blame] | 55 | $ref: /schemas/graph.yaml#/properties/port |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 56 | description: |
| 57 | Video port for SlimPort, DisplayPort, eDP or MyDP output. |
| 58 | |
Ricardo Cañuelo | b07de44 | 2020-05-14 12:12:35 +0200 | [diff] [blame] | 59 | required: |
| 60 | - port@0 |
| 61 | - port@1 |
| 62 | |
| 63 | required: |
| 64 | - compatible |
| 65 | - reg |
| 66 | - ports |
| 67 | |
| 68 | additionalProperties: false |
| 69 | |
| 70 | examples: |
| 71 | - | |
| 72 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 73 | #include <dt-bindings/gpio/gpio.h> |
| 74 | |
| 75 | i2c { |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <0>; |
| 78 | |
| 79 | anx7814: bridge@38 { |
| 80 | compatible = "analogix,anx7814"; |
| 81 | reg = <0x38>; |
| 82 | interrupt-parent = <&gpio0>; |
| 83 | interrupts = <99 IRQ_TYPE_LEVEL_LOW>; /* INTP */ |
| 84 | pd-gpios = <&pio 33 GPIO_ACTIVE_HIGH>; |
| 85 | reset-gpios = <&pio 98 GPIO_ACTIVE_HIGH>; |
| 86 | |
| 87 | ports { |
| 88 | #address-cells = <1>; |
| 89 | #size-cells = <0>; |
| 90 | |
| 91 | port@0 { |
| 92 | reg = <0>; |
| 93 | anx7814_in: endpoint { |
| 94 | remote-endpoint = <&hdmi0_out>; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | port@1 { |
| 99 | reg = <1>; |
| 100 | anx7814_out: endpoint { |
| 101 | remote-endpoint = <&edp_out>; |
| 102 | }; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
| 107 | |
| 108 | ... |