Skip to content

Commit 71ab34f

Browse files
committed
Merge tag 'drm-misc-next-2024-02-22' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for v6.9: UAPI Changes: - changes to fdinfo stats Cross-subsystem Changes: agp: - remove unused type field from struct agp_bridge_data Core Changes: ci: - update test names - cleanups gem: - add stats for shared buffers plus updates to amdgpu, i915, xe Documentation: - fixes syncobj: - fixes to waiting and sleeping Driver Changes: bridge: - adv7511: fix crash on irq during probe - dw_hdmi: set bridge type host1x: - cleanups ivpu: - updates to firmware API - refactor BO allocation meson: - fix error handling in probe panel: - revert "drm/panel-edp: Add auo_b116xa3_mode" - add Himax HX83112A plus DT bindings - ltk500hd1829: add support for ltk101b4029w and admatec 9904370 - simple: add BOE BP082WX1-100 8.2" panel plus DT bindungs renesas: - add RZ/G2L DU support plus DT bindings Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20240222135841.GA6677@localhost.localdomain
2 parents 40d47c5 + a3baaca commit 71ab34f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3748
-1279
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/panel/himax,hx83112a.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Himax HX83112A-based DSI display panels
8+
9+
maintainers:
10+
- Luca Weiss <luca.weiss@fairphone.com>
11+
12+
description:
13+
The Himax HX83112A is a generic DSI Panel IC used to control
14+
LCD panels.
15+
16+
allOf:
17+
- $ref: panel-common.yaml#
18+
19+
properties:
20+
compatible:
21+
contains:
22+
const: djn,9a-3r063-1102b
23+
24+
vdd1-supply:
25+
description: Digital voltage rail
26+
27+
vsn-supply:
28+
description: Positive source voltage rail
29+
30+
vsp-supply:
31+
description: Negative source voltage rail
32+
33+
reg: true
34+
port: true
35+
36+
required:
37+
- compatible
38+
- reg
39+
- reset-gpios
40+
- vdd1-supply
41+
- vsn-supply
42+
- vsp-supply
43+
- port
44+
45+
unevaluatedProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/gpio/gpio.h>
50+
51+
dsi {
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
55+
panel@0 {
56+
compatible = "djn,9a-3r063-1102b";
57+
reg = <0>;
58+
59+
backlight = <&pm6150l_wled>;
60+
reset-gpios = <&pm6150l_gpios 9 GPIO_ACTIVE_LOW>;
61+
62+
vdd1-supply = <&vreg_l1e>;
63+
vsn-supply = <&pm6150l_lcdb_ncp>;
64+
vsp-supply = <&pm6150l_lcdb_ldo>;
65+
66+
port {
67+
panel_in_0: endpoint {
68+
remote-endpoint = <&dsi0_out>;
69+
};
70+
};
71+
};
72+
};
73+
74+
...

Documentation/devicetree/bindings/display/panel/leadtek,ltk500hd1829.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ allOf:
1414

1515
properties:
1616
compatible:
17-
const: leadtek,ltk500hd1829
17+
enum:
18+
- leadtek,ltk101b4029w
19+
- leadtek,ltk500hd1829
1820
reg: true
1921
backlight: true
2022
reset-gpios: true

Documentation/devicetree/bindings/display/panel/panel-lvds.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ properties:
3939
compatible:
4040
items:
4141
- enum:
42+
# Admatec 9904379 10.1" 1024x600 LVDS panel
43+
- admatec,9904379
4244
- auo,b101ew05
4345
# Chunghwa Picture Tubes Ltd. 7" WXGA (800x1280) TFT LCD LVDS panel
4446
- chunghwa,claa070wp03xg

Documentation/devicetree/bindings/display/panel/panel-simple.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ properties:
7373
- auo,t215hvn01
7474
# Shanghai AVIC Optoelectronics 7" 1024x600 color TFT-LCD panel
7575
- avic,tm070ddh03
76+
# BOE BP082WX1-100 8.2" WXGA (1280x800) LVDS panel
77+
- boe,bp082wx1-100
7678
# BOE BP101WX1-100 10.1" WXGA (1280x800) LVDS panel
7779
- boe,bp101wx1-100
7880
# BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/renesas,rzg2l-du.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G2L Display Unit (DU)
8+
9+
maintainers:
10+
- Biju Das <biju.das.jz@bp.renesas.com>
11+
- Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
12+
13+
description: |
14+
These DT bindings describe the Display Unit embedded in the Renesas RZ/G2L
15+
and RZ/V2L SoCs.
16+
17+
properties:
18+
compatible:
19+
oneOf:
20+
- enum:
21+
- renesas,r9a07g044-du # RZ/G2{L,LC}
22+
- items:
23+
- enum:
24+
- renesas,r9a07g054-du # RZ/V2L
25+
- const: renesas,r9a07g044-du # RZ/G2L fallback
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
clocks:
34+
items:
35+
- description: Main clock
36+
- description: Register access clock
37+
- description: Video clock
38+
39+
clock-names:
40+
items:
41+
- const: aclk
42+
- const: pclk
43+
- const: vclk
44+
45+
resets:
46+
maxItems: 1
47+
48+
power-domains:
49+
maxItems: 1
50+
51+
ports:
52+
$ref: /schemas/graph.yaml#/properties/ports
53+
description: |
54+
The connections to the DU output video ports are modeled using the OF
55+
graph bindings. The number of ports and their assignment are
56+
model-dependent. Each port shall have a single endpoint.
57+
58+
patternProperties:
59+
"^port@[0-1]$":
60+
$ref: /schemas/graph.yaml#/properties/port
61+
unevaluatedProperties: false
62+
63+
required:
64+
- port@0
65+
66+
unevaluatedProperties: false
67+
68+
renesas,vsps:
69+
$ref: /schemas/types.yaml#/definitions/phandle-array
70+
items:
71+
items:
72+
- description: phandle to VSP instance that serves the DU channel
73+
- description: Channel index identifying the LIF instance in that VSP
74+
description:
75+
A list of phandle and channel index tuples to the VSPs that handle the
76+
memory interfaces for the DU channels.
77+
78+
required:
79+
- compatible
80+
- reg
81+
- interrupts
82+
- clocks
83+
- clock-names
84+
- resets
85+
- power-domains
86+
- ports
87+
- renesas,vsps
88+
89+
additionalProperties: false
90+
91+
examples:
92+
# RZ/G2L DU
93+
- |
94+
#include <dt-bindings/clock/r9a07g044-cpg.h>
95+
#include <dt-bindings/interrupt-controller/arm-gic.h>
96+
97+
display@10890000 {
98+
compatible = "renesas,r9a07g044-du";
99+
reg = <0x10890000 0x10000>;
100+
interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
101+
clocks = <&cpg CPG_MOD R9A07G044_LCDC_CLK_A>,
102+
<&cpg CPG_MOD R9A07G044_LCDC_CLK_P>,
103+
<&cpg CPG_MOD R9A07G044_LCDC_CLK_D>;
104+
clock-names = "aclk", "pclk", "vclk";
105+
resets = <&cpg R9A07G044_LCDC_RESET_N>;
106+
power-domains = <&cpg>;
107+
108+
renesas,vsps = <&vspd0 0>;
109+
110+
ports {
111+
#address-cells = <1>;
112+
#size-cells = <0>;
113+
114+
port@0 {
115+
reg = <0>;
116+
endpoint {
117+
remote-endpoint = <&dsi0_in>;
118+
};
119+
};
120+
port@1 {
121+
reg = <1>;
122+
};
123+
};
124+
};
125+
126+
...

Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ properties:
3737
- description: OVR2 overlay manager for vp2
3838
- description: VP1 video port 1
3939
- description: VP2 video port 2
40+
- description: common1 DSS register area
4041

4142
reg-names:
4243
items:
@@ -47,6 +48,7 @@ properties:
4748
- const: ovr2
4849
- const: vp1
4950
- const: vp2
51+
- const: common1
5052

5153
clocks:
5254
items:
@@ -147,9 +149,10 @@ examples:
147149
<0x04a07000 0x1000>, /* ovr1 */
148150
<0x04a08000 0x1000>, /* ovr2 */
149151
<0x04a0a000 0x1000>, /* vp1 */
150-
<0x04a0b000 0x1000>; /* vp2 */
152+
<0x04a0b000 0x1000>, /* vp2 */
153+
<0x04a01000 0x1000>; /* common1 */
151154
reg-names = "common", "vidl1", "vid",
152-
"ovr1", "ovr2", "vp1", "vp2";
155+
"ovr1", "ovr2", "vp1", "vp2", "common1";
153156
ti,am65x-oldi-io-ctrl = <&dss_oldi_io_ctrl>;
154157
power-domains = <&k3_pds 67 TI_SCI_PD_EXCLUSIVE>;
155158
clocks = <&k3_clks 67 1>,

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ patternProperties:
6161
description: Analog Devices, Inc.
6262
"^adieng,.*":
6363
description: ADI Engineering, Inc.
64+
"^admatec,.*":
65+
description: admatec GmbH
6466
"^advantech,.*":
6567
description: Advantech Corporation
6668
"^aeroflexgaisler,.*":

Documentation/gpu/drm-usage-stats.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ indicating kibi- or mebi-bytes.
138138

139139
- drm-shared-<region>: <uint> [KiB|MiB]
140140

141-
The total size of buffers that are shared with another file (ie. have more
141+
The total size of buffers that are shared with another file (e.g., have more
142142
than a single handle).
143143

144144
- drm-total-<region>: <uint> [KiB|MiB]

MAINTAINERS

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7025,7 +7025,7 @@ X: drivers/gpu/drm/mediatek/
70257025
X: drivers/gpu/drm/msm/
70267026
X: drivers/gpu/drm/nouveau/
70277027
X: drivers/gpu/drm/radeon/
7028-
X: drivers/gpu/drm/renesas/
7028+
X: drivers/gpu/drm/renesas/rcar-du/
70297029
X: drivers/gpu/drm/tegra/
70307030

70317031
DRM DRIVERS FOR ALLWINNER A10
@@ -7193,12 +7193,22 @@ F: Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
71937193
F: Documentation/devicetree/bindings/display/renesas,du.yaml
71947194
F: drivers/gpu/drm/renesas/rcar-du/
71957195

7196+
DRM DRIVERS FOR RENESAS RZ
7197+
M: Biju Das <biju.das.jz@bp.renesas.com>
7198+
L: dri-devel@lists.freedesktop.org
7199+
L: linux-renesas-soc@vger.kernel.org
7200+
S: Maintained
7201+
T: git git://anongit.freedesktop.org/drm/drm-misc
7202+
F: Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml
7203+
F: drivers/gpu/drm/renesas/rz-du/
7204+
71967205
DRM DRIVERS FOR RENESAS SHMOBILE
71977206
M: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
71987207
M: Geert Uytterhoeven <geert+renesas@glider.be>
71997208
L: dri-devel@lists.freedesktop.org
72007209
L: linux-renesas-soc@vger.kernel.org
72017210
S: Supported
7211+
T: git git://anongit.freedesktop.org/drm/drm-misc
72027212
F: Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml
72037213
F: drivers/gpu/drm/renesas/shmobile/
72047214
F: include/linux/platform_data/shmob_drm.h

drivers/accel/ivpu/ivpu_debugfs.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -286,22 +286,6 @@ static const struct file_operations fw_trace_level_fops = {
286286
.write = fw_trace_level_fops_write,
287287
};
288288

289-
static ssize_t
290-
ivpu_reset_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
291-
{
292-
struct ivpu_device *vdev = file->private_data;
293-
294-
if (!size)
295-
return -EINVAL;
296-
297-
if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COMPUTE))
298-
return -ENODEV;
299-
if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COPY))
300-
return -ENODEV;
301-
302-
return size;
303-
}
304-
305289
static ssize_t
306290
ivpu_force_recovery_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
307291
{
@@ -327,6 +311,22 @@ static const struct file_operations ivpu_force_recovery_fops = {
327311
.write = ivpu_force_recovery_fn,
328312
};
329313

314+
static ssize_t
315+
ivpu_reset_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
316+
{
317+
struct ivpu_device *vdev = file->private_data;
318+
319+
if (!size)
320+
return -EINVAL;
321+
322+
if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COMPUTE))
323+
return -ENODEV;
324+
if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COPY))
325+
return -ENODEV;
326+
327+
return size;
328+
}
329+
330330
static const struct file_operations ivpu_reset_engine_fops = {
331331
.owner = THIS_MODULE,
332332
.open = simple_open,

0 commit comments

Comments
 (0)