For code readability the bindings are expected to follow order shown in example-schema.yaml - put the additionalProperties/unevaluatedProperties entry at the end, after listing all required properties and possible "allOf:if:then:" conditions. Meaning of this style is to close the schema, after listing what it contains, with final "nothing more is allowed". Move the code around adjusting it to coding style. No functional impact. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260306-dt-bindings-display-panel-clean-v1-4-3086eda1efaf@oss.qualcomm.com
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/display/panel/visionox,r66451.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Visionox R66451 AMOLED DSI Panel
|
|
|
|
maintainers:
|
|
- Jessica Zhang <quic_jesszhan@quicinc.com>
|
|
|
|
allOf:
|
|
- $ref: panel-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: visionox,r66451
|
|
|
|
reg:
|
|
maxItems: 1
|
|
description: DSI virtual channel
|
|
|
|
vddio-supply: true
|
|
vdd-supply: true
|
|
port: true
|
|
reset-gpios: true
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- vddio-supply
|
|
- vdd-supply
|
|
- reset-gpios
|
|
- port
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
dsi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
panel@0 {
|
|
compatible = "visionox,r66451";
|
|
reg = <0>;
|
|
vddio-supply = <&vreg_l12c_1p8>;
|
|
vdd-supply = <&vreg_l13c_3p0>;
|
|
|
|
reset-gpios = <&tlmm 24 GPIO_ACTIVE_LOW>;
|
|
|
|
port {
|
|
panel0_in: endpoint {
|
|
remote-endpoint = <&dsi0_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
...
|