116 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/display/bridge/parade,ps8622.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Parade PS8622/PS8625 DisplayPort to LVDS Converter8 9maintainers:10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>11 12properties:13 compatible:14 enum:15 - parade,ps862216 - parade,ps862517 18 reg:19 maxItems: 120 21 lane-count:22 $ref: /schemas/types.yaml#/definitions/uint3223 enum: [1, 2]24 description: Number of DP lanes to use.25 26 use-external-pwm:27 type: boolean28 description: Backlight will be controlled by an external PWM.29 30 reset-gpios:31 maxItems: 132 description: GPIO connected to RST_ pin.33 34 sleep-gpios:35 maxItems: 136 description: GPIO connected to PD_ pin.37 38 vdd12-supply: true39 40 ports:41 $ref: /schemas/graph.yaml#/properties/ports42 43 properties:44 port@0:45 $ref: /schemas/graph.yaml#/properties/port46 description: Video port for LVDS output.47 48 port@1:49 $ref: /schemas/graph.yaml#/properties/port50 description: Video port for DisplayPort input.51 52 required:53 - port@054 - port@155 56required:57 - compatible58 - reg59 - reset-gpios60 - sleep-gpios61 - ports62 63allOf:64 - if:65 properties:66 compatible:67 const: parade,ps862268 then:69 properties:70 lane-count:71 const: 172 else:73 properties:74 lane-count:75 const: 276 77additionalProperties: false78 79examples:80 - |81 #include <dt-bindings/gpio/gpio.h>82 i2c {83 #address-cells = <1>;84 #size-cells = <0>;85 86 lvds-bridge@48 {87 compatible = "parade,ps8625";88 reg = <0x48>;89 sleep-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;90 reset-gpios = <&gpy7 7 GPIO_ACTIVE_HIGH>;91 lane-count = <2>;92 use-external-pwm;93 94 ports {95 #address-cells = <1>;96 #size-cells = <0>;97 98 port@0 {99 reg = <0>;100 101 bridge_out: endpoint {102 remote-endpoint = <&panel_in>;103 };104 };105 106 port@1 {107 reg = <1>;108 109 bridge_in: endpoint {110 remote-endpoint = <&dp_out>;111 };112 };113 };114 };115 };116