linux-loongson/Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml
Krzysztof Kozlowski 9fa6bcf23e dt-bindings: display: panel: constrain 'reg' in DSI panels
DSI-attached devices could respond to more than one virtual channel
number, thus their bindings are supposed to constrain the 'reg' property
to match hardware.  Add missing 'reg' constrain for DSI-attached display
panels, based on DTS sources in Linux kernel (assume all devices take
only one channel number).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240509-dt-bindings-dsi-panel-reg-v1-3-8b2443705be0@linaro.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
2024-05-13 09:57:34 -05:00

78 lines
1.5 KiB
YAML

# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/samsung,amoled-mipi-dsi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Samsung AMOLED MIPI-DSI panels
maintainers:
- Hoegeun Kwon <hoegeun.kwon@samsung.com>
allOf:
- $ref: panel-common.yaml#
- if:
properties:
compatible:
contains:
enum:
- samsung,s6e3ha2
- samsung,s6e3hf2
then:
required:
- enable-gpios
properties:
compatible:
enum:
# Samsung S6E63J0X03 1.63" 320x320 AMOLED panel
- samsung,s6e63j0x03
# Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel
- samsung,s6e3ha2
# Samsung S6E3HF2 5.65" 1600x2560 AMOLED panel
- samsung,s6e3hf2
reg:
maxItems: 1
reset-gpios: true
enable-gpios: true
te-gpios: true
vdd3-supply:
description: I/O voltage supply
vci-supply:
description: voltage supply for analog circuits
required:
- compatible
- reg
- vdd3-supply
- vci-supply
- reset-gpios
additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
dsi {
#address-cells = <1>;
#size-cells = <0>;
panel@0 {
compatible = "samsung,s6e3ha2";
reg = <0>;
vdd3-supply = <&ldo27_reg>;
vci-supply = <&ldo28_reg>;
reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>;
enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>;
te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>;
};
};
...