mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
The purpose of common schemas, like panel-common.yaml, is to list applicable properties. It can list common ABI, e.g. "label" property, and pure hardware related properties like power supply or GPIOs. In the second case it means that all panels have these supplies or GPIOs. This is the only meaning when hardware property is allowed in common schema, because bindings are precise and we do not define common schemas for "possible" hardware configurations. Following this, all panel bindings which reference common schema and use "unevaluatedProperties: false" do not need to list these common parts. Simplify such bindings to also reduce copy-paste code and review time for new contributions. 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-3-3086eda1efaf@oss.qualcomm.com
106 lines
2.3 KiB
YAML
106 lines
2.3 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/display/panel/novatek,nt36523.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Novatek NT36523 based DSI display Panels
|
|
|
|
maintainers:
|
|
- Jianhua Lu <lujianhua000@gmail.com>
|
|
|
|
description: |
|
|
The Novatek NT36523 is a generic DSI Panel IC used to drive dsi
|
|
panels. Support video mode panels from China Star Optoelectronics
|
|
Technology (CSOT) and BOE Technology.
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- enum:
|
|
- xiaomi,elish-boe-nt36523
|
|
- xiaomi,elish-csot-nt36523
|
|
- const: novatek,nt36523
|
|
- items:
|
|
- enum:
|
|
- lenovo,j606f-boe-nt36523w
|
|
- const: novatek,nt36523w
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
reset-gpios:
|
|
maxItems: 1
|
|
description: phandle of gpio for reset line - This should be 8mA
|
|
|
|
vddio-supply:
|
|
description: regulator that supplies the I/O voltage
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- vddio-supply
|
|
- reset-gpios
|
|
|
|
allOf:
|
|
- $ref: panel-common-dual.yaml#
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- novatek,nt36523w
|
|
then:
|
|
properties:
|
|
ports:
|
|
properties:
|
|
port@1: false
|
|
else:
|
|
properties:
|
|
port: false
|
|
ports:
|
|
required:
|
|
- port@1
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
dsi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
panel@0 {
|
|
compatible = "xiaomi,elish-csot-nt36523", "novatek,nt36523";
|
|
reg = <0>;
|
|
|
|
vddio-supply = <&vreg_l14a_1p88>;
|
|
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
|
|
backlight = <&backlight>;
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
panel_in_0: endpoint {
|
|
remote-endpoint = <&dsi0_out>;
|
|
};
|
|
};
|
|
|
|
port@1{
|
|
reg = <1>;
|
|
panel_in_1: endpoint {
|
|
remote-endpoint = <&dsi1_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|