mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

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>
80 lines
1.6 KiB
YAML
80 lines
1.6 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/display/panel/raydium,rm67191.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Raydium RM67171 OLED LCD panel with MIPI-DSI protocol
|
|
|
|
maintainers:
|
|
- Robert Chiras <robert.chiras@nxp.com>
|
|
|
|
allOf:
|
|
- $ref: panel-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: raydium,rm67191
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
port: true
|
|
reset-gpios: true
|
|
width-mm: true
|
|
height-mm: true
|
|
|
|
dsi-lanes:
|
|
description: Number of DSI lanes to be used must be <3> or <4>
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [3, 4]
|
|
|
|
v3p3-supply:
|
|
description: phandle to 3.3V regulator that powers the VDD_3V3 pin
|
|
|
|
v1p8-supply:
|
|
description: phandle to 1.8V regulator that powers the VDD_1V8 pin
|
|
|
|
video-mode:
|
|
description: |
|
|
0 - burst-mode
|
|
1 - non-burst with sync event
|
|
2 - non-burst with sync pulse
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [0, 1, 2]
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- dsi-lanes
|
|
- port
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
dsi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
panel@0 {
|
|
compatible = "raydium,rm67191";
|
|
reg = <0>;
|
|
reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
|
dsi-lanes = <4>;
|
|
width-mm = <68>;
|
|
height-mm = <121>;
|
|
video-mode = <1>;
|
|
|
|
port {
|
|
panel_in: endpoint {
|
|
remote-endpoint = <&mipi_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|