bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1183-dt-bindings-display-panel-dsi-bindings.patch
1 From e14ceeadfa5b9d8a41e73edfa416bbe92dd5b20d Mon Sep 17 00:00:00 2001
2 From: Timon Skerutsch <kernel@diodes-delight.com>
3 Date: Mon, 13 Nov 2023 22:53:22 +0100
4 Subject: [PATCH] dt-bindings: display: panel-dsi bindings
5
6 Bindings for the panel-dsi specific additions to panel-simple.
7 Allow for DSI specific bus settings and panel timing
8 to be define in devicetree. Very similar to panel-dpi.
9
10 Signed-off-by: Timon Skerutsch <kernel@diodes-delight.com>
11 ---
12 .../bindings/display/panel/panel-dsi.yaml | 118 ++++++++++++++++++
13 1 file changed, 118 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/display/panel/panel-dsi.yaml
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/display/panel/panel-dsi.yaml
18 @@ -0,0 +1,118 @@
19 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
20 +%YAML 1.2
21 +---
22 +$id: http://devicetree.org/schemas/display/panel/panel-dsi.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
24 +
25 +title: Generic MIPI DSI Panel
26 +
27 +maintainers:
28 + - Timon Skerutsch <kernel@diodes-delight.com>
29 +
30 +allOf:
31 + - $ref: panel-common.yaml#
32 +
33 +properties:
34 + compatible:
35 + description:
36 + Shall contain a panel specific compatible and "panel-dsi"
37 + in that order.
38 + items:
39 + - {}
40 + - const: panel-dsi
41 +
42 + dsi-color-format:
43 + description: |
44 + The color format used by the panel. Only DSI supported formats are allowed.
45 + enum:
46 + - RGB888
47 + - RGB666
48 + - RGB666_PACKED
49 + - RGB565
50 +
51 + port:
52 + $ref: /schemas/graph.yaml#/$defs/port-base
53 + unevaluatedProperties: false
54 + description:
55 + Panel MIPI DSI input
56 +
57 + properties:
58 + endpoint:
59 + $ref: /schemas/media/video-interfaces.yaml#
60 + unevaluatedProperties: false
61 +
62 + properties:
63 + data-lanes: true
64 +
65 + required:
66 + - data-lanes
67 +
68 + mode:
69 + description: |
70 + DSI mode flags. See DSI Specs for details.
71 + These are driver independent features of the DSI bus.
72 + items:
73 + - const: MODE_VIDEO
74 + - const: MODE_VIDEO_BURST
75 + - const: MODE_VIDEO_SYNC_PULSE
76 + - const: MODE_VIDEO_AUTO_VERT
77 + - const: MODE_VIDEO_HSE
78 + - const: MODE_VIDEO_NO_HFP
79 + - const: MODE_VIDEO_NO_HBP
80 + - const: MODE_VIDEO_NO_HSA
81 + - const: MODE_VSYNC_FLUSH
82 + - const: MODE_NO_EOT_PACKET
83 + - const: CLOCK_NON_CONTINUOUS
84 + - const: MODE_LPM
85 + - const: HS_PKT_END_ALIGNED
86 +
87 + reg: true
88 + backlight: true
89 + enable-gpios: true
90 + width-mm: true
91 + height-mm: true
92 + panel-timing: true
93 + power-supply: true
94 + reset-gpios: true
95 + ddc-i2c-bus: true
96 +
97 +required:
98 + - panel-timing
99 + - reg
100 + - power-supply
101 + - dsi-color-format
102 + - port
103 +
104 +additionalProperties: false
105 +
106 +examples:
107 + - |
108 + panel {
109 + compatible = "panel-mfgr,generic-dsi-panel","panel-dsi";
110 + power-supply = <&vcc_supply>;
111 + backlight = <&backlight>;
112 + dsi-color-format = "RGB888";
113 + reg = <0>;
114 + mode = "MODE_VIDEO", "MODE_VIDEO_BURST", "MODE_NO_EOT_PACKET";
115 +
116 + port {
117 + panel_dsi_port: endpoint {
118 + data-lanes = <1 2>;
119 + remote-endpoint = <&dsi_out>;
120 + };
121 + };
122 +
123 + panel-timing {
124 + clock-frequency = <9200000>;
125 + hactive = <800>;
126 + vactive = <480>;
127 + hfront-porch = <8>;
128 + hback-porch = <4>;
129 + hsync-len = <41>;
130 + vback-porch = <2>;
131 + vfront-porch = <4>;
132 + vsync-len = <10>;
133 + };
134 + };
135 +
136 +...