linux-loongson/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml
Krzysztof Kozlowski ad6d17e103 dt-bindings: display: samsung,exynos5-dp: convert to DT Schema
Convert Samsung Exynos5250/5420 SoC Display Port Controller bindings to
DT schema with a change: add power-domains, already used in DTS.

This Display Port controller is actually variant of Analogix Display
Port bridge, however new DT Schema does not reference analogix,dp.yaml,
because of incompatibilities in the driver.  The analogix,dp.yaml
expects two ports, input and output, but Linux Exynos DP DRM driver and
DTS use only one port: output.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240313182855.14140-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
2024-03-25 16:49:41 -05:00

164 lines
3.7 KiB
YAML

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Samsung Exynos5250/Exynos5420 SoC Display Port
maintainers:
- Inki Dae <inki.dae@samsung.com>
- Seung-Woo Kim <sw0312.kim@samsung.com>
- Kyungmin Park <kyungmin.park@samsung.com>
- Krzysztof Kozlowski <krzk@kernel.org>
properties:
compatible:
const: samsung,exynos5-dp
reg:
maxItems: 1
clocks:
maxItems: 1
clock-names:
items:
- const: dp
display-timings:
$ref: /schemas/display/panel/display-timings.yaml#
interrupts:
maxItems: 1
hpd-gpios:
description:
Hotplug detect GPIO.
Indicates which GPIO should be used for hotplug detection
phys:
maxItems: 1
phy-names:
items:
- const: dp
power-domains:
maxItems: 1
interlaced:
type: boolean
deprecated: true
description:
Interlace scan mode. Progressive if defined, interlaced if not defined.
vsync-active-high:
type: boolean
deprecated: true
description:
VSYNC polarity configuration. High if defined, low if not defined
hsync-active-high:
type: boolean
deprecated: true
description:
HSYNC polarity configuration. High if defined, low if not defined
ports:
$ref: /schemas/graph.yaml#/properties/ports
properties:
port:
$ref: /schemas/graph.yaml#/properties/port
description:
Port node with one endpoint connected to a dp-connector node.
required:
- port
samsung,hpd-gpios:
maxItems: 1
deprecated: true
samsung,ycbcr-coeff:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can parsed from drm_display_mode.
samsung,dynamic-range:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can parsed from drm_display_mode.
samsung,color-space:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can parsed from drm_display_info.
samsung,color-depth:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can parsed from drm_display_info.
samsung,link-rate:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can reading from monitor by dpcd method.
samsung,lane-count:
$ref: /schemas/types.yaml#/definitions/uint32
deprecated: true
description:
Deprecated prop that can reading from monitor by dpcd method.
required:
- compatible
- reg
- clocks
- clock-names
- interrupts
- phys
- phy-names
additionalProperties: false
examples:
- |
#include <dt-bindings/clock/exynos5250.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
dp-controller@145b0000 {
compatible = "samsung,exynos5-dp";
reg = <0x145b0000 0x1000>;
clocks = <&clock CLK_DP>;
clock-names = "dp";
interrupts = <10 3>;
interrupt-parent = <&combiner>;
phys = <&dp_phy>;
phy-names = "dp";
pinctrl-0 = <&dp_hpd>;
pinctrl-names = "default";
power-domains = <&pd_disp1>;
samsung,color-space = <0>;
samsung,color-depth = <1>;
samsung,link-rate = <0x0a>;
samsung,lane-count = <2>;
hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
ports {
port {
dp_out: endpoint {
remote-endpoint = <&bridge_in>;
};
};
};
};