Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [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/lontium,lt9611.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Lontium LT9611(UXC) 2 Port MIPI to HDMI Bridge |
| 8 | |
| 9 | maintainers: |
| 10 | - Vinod Koul <vkoul@kernel.org> |
| 11 | |
| 12 | description: | |
| 13 | The LT9611 and LT9611UXC are bridge devices which convert DSI to HDMI |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - lontium,lt9611 |
| 19 | - lontium,lt9611uxc |
| 20 | |
| 21 | reg: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | "#sound-dai-cells": |
| 25 | const: 1 |
| 26 | |
| 27 | interrupts: |
| 28 | maxItems: 1 |
| 29 | |
| 30 | reset-gpios: |
| 31 | maxItems: 1 |
| 32 | description: GPIO connected to active high RESET pin. |
| 33 | |
| 34 | vdd-supply: |
| 35 | description: Regulator for 1.8V MIPI phy power. |
| 36 | |
| 37 | vcc-supply: |
| 38 | description: Regulator for 3.3V IO power. |
| 39 | |
| 40 | ports: |
| 41 | $ref: /schemas/graph.yaml#/properties/ports |
| 42 | |
| 43 | properties: |
| 44 | port@0: |
| 45 | $ref: /schemas/graph.yaml#/properties/port |
| 46 | description: |
| 47 | Primary MIPI port-1 for MIPI input |
| 48 | |
| 49 | port@1: |
| 50 | $ref: /schemas/graph.yaml#/properties/port |
| 51 | description: |
| 52 | Additional MIPI port-2 for MIPI input, used in combination |
| 53 | with primary MIPI port-1 to drive higher resolution displays |
| 54 | |
| 55 | port@2: |
| 56 | $ref: /schemas/graph.yaml#/properties/port |
| 57 | description: |
| 58 | HDMI port for HDMI output |
| 59 | |
| 60 | required: |
| 61 | - port@0 |
| 62 | - port@2 |
| 63 | |
| 64 | required: |
| 65 | - compatible |
| 66 | - reg |
| 67 | - interrupts |
| 68 | - vdd-supply |
| 69 | - vcc-supply |
| 70 | - ports |
| 71 | |
| 72 | additionalProperties: false |
| 73 | |
| 74 | examples: |
| 75 | - | |
| 76 | #include <dt-bindings/gpio/gpio.h> |
| 77 | #include <dt-bindings/interrupt-controller/irq.h> |
| 78 | |
| 79 | i2c10 { |
| 80 | #address-cells = <1>; |
| 81 | #size-cells = <0>; |
| 82 | |
| 83 | hdmi-bridge@3b { |
| 84 | compatible = "lontium,lt9611"; |
| 85 | reg = <0x3b>; |
| 86 | |
| 87 | reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>; |
| 88 | interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>; |
| 89 | |
| 90 | vdd-supply = <<9611_1v8>; |
| 91 | vcc-supply = <<9611_3v3>; |
| 92 | |
| 93 | ports { |
| 94 | #address-cells = <1>; |
| 95 | #size-cells = <0>; |
| 96 | |
| 97 | port@0 { |
| 98 | reg = <0>; |
| 99 | lt9611_a: endpoint { |
| 100 | remote-endpoint = <&dsi0_out>; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | port@1 { |
| 105 | reg = <1>; |
| 106 | lt9611_b: endpoint { |
| 107 | remote-endpoint = <&dsi1_out>; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | port@2 { |
| 112 | reg = <2>; |
| 113 | lt9611_out: endpoint { |
| 114 | remote-endpoint = <&hdmi_con>; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | }; |
| 119 | }; |
| 120 | |
| 121 | ... |