| 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/nxp,ptn3460.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: NXP PTN3460 eDP to LVDS bridge |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Sean Paul <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
const: nxp,ptn3460 |
| 15 |
|
| 16 |
reg: |
| 17 |
description: I2C address of the bridge |
| 18 |
maxItems: 1 |
| 19 |
|
| 20 |
edid-emulation: |
| 21 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 22 |
description: |
| 23 |
The EDID emulation entry to use |
| 24 |
Value Resolution Description |
| 25 |
0 1024x768 NXP Generic |
| 26 |
1 1920x1080 NXP Generic |
| 27 |
2 1920x1080 NXP Generic |
| 28 |
3 1600x900 Samsung LTM200KT |
| 29 |
4 1920x1080 Samsung LTM230HT |
| 30 |
5 1366x768 NXP Generic |
| 31 |
6 1600x900 ChiMei M215HGE |
| 32 |
enum: [0, 1, 2, 3, 4, 5, 6] |
| 33 |
|
| 34 |
powerdown-gpios: |
| 35 |
description: GPIO connected to the PD_N signal. |
| 36 |
maxItems: 1 |
| 37 |
|
| 38 |
reset-gpios: |
| 39 |
description: GPIO connected to the RST_N signal. |
| 40 |
maxItems: 1 |
| 41 |
|
| 42 |
ports: |
| 43 |
$ref: /schemas/graph.yaml#/properties/ports |
| 44 |
|
| 45 |
properties: |
| 46 |
port@0: |
| 47 |
$ref: /schemas/graph.yaml#/properties/port |
| 48 |
description: |
| 49 |
Video port for LVDS output |
| 50 |
|
| 51 |
port@1: |
| 52 |
$ref: /schemas/graph.yaml#/properties/port |
| 53 |
description: |
| 54 |
Video port for eDP input |
| 55 |
|
| 56 |
required: |
| 57 |
- port@0 |
| 58 |
- port@1 |
| 59 |
|
| 60 |
required: |
| 61 |
- compatible |
| 62 |
- reg |
| 63 |
- edid-emulation |
| 64 |
- powerdown-gpios |
| 65 |
- reset-gpios |
| 66 |
- ports |
| 67 |
|
| 68 |
additionalProperties: false |
| 69 |
|
| 70 |
examples: |
| 71 |
- | |
| 72 |
#include <dt-bindings/gpio/gpio.h> |
| 73 |
|
| 74 |
i2c { |
| 75 |
#address-cells = <1>; |
| 76 |
#size-cells = <0>; |
| 77 |
|
| 78 |
bridge@20 { |
| 79 |
compatible = "nxp,ptn3460"; |
| 80 |
reg = <0x20>; |
| 81 |
edid-emulation = <5>; |
| 82 |
powerdown-gpios = <&gpy2 5 GPIO_ACTIVE_HIGH>; |
| 83 |
reset-gpios = <&gpx1 5 GPIO_ACTIVE_LOW>; |
| 84 |
|
| 85 |
ports { |
| 86 |
#address-cells = <1>; |
| 87 |
#size-cells = <0>; |
| 88 |
|
| 89 |
port@0 { |
| 90 |
reg = <0>; |
| 91 |
bridge_out: endpoint { |
| 92 |
remote-endpoint = <&panel_in>; |
| 93 |
}; |
| 94 |
}; |
| 95 |
|
| 96 |
port@1 { |
| 97 |
reg = <1>; |
| 98 |
bridge_in: endpoint { |
| 99 |
remote-endpoint = <&dp_out>; |
| 100 |
}; |
| 101 |
}; |
| 102 |
}; |
| 103 |
}; |
| 104 |
}; |
| 105 |
|
| 106 |
... |