Skip to content

Commit 66ccd1d

Browse files
committed
Merge tag 'drm-misc-next-fixes-2022-05-19' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
A device tree binding change for Rockchip VOP2 Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220519080556.42p52cya4u6y3kps@houat
2 parents 00df051 + 5ee8c8f commit 66ccd1d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ properties:
2222
- rockchip,rk3568-vop
2323

2424
reg:
25-
minItems: 1
2625
items:
2726
- description:
2827
Must contain one entry corresponding to the base address and length
@@ -31,6 +30,11 @@ properties:
3130
Can optionally contain a second entry corresponding to
3231
the CRTC gamma LUT address.
3332

33+
reg-names:
34+
items:
35+
- const: vop
36+
- const: gamma-lut
37+
3438
interrupts:
3539
maxItems: 1
3640
description:
@@ -86,6 +90,7 @@ properties:
8690
required:
8791
- compatible
8892
- reg
93+
- reg-names
8994
- interrupts
9095
- clocks
9196
- clock-names
@@ -104,6 +109,7 @@ examples:
104109
vop: vop@fe040000 {
105110
compatible = "rockchip,rk3568-vop";
106111
reg = <0x0 0xfe040000 0x0 0x3000>, <0x0 0xfe044000 0x0 0x1000>;
112+
reg-names = "vop", "gamma-lut";
107113
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
108114
clocks = <&cru ACLK_VOP>,
109115
<&cru HCLK_VOP>,

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ static int vop2_bind(struct device *dev, struct device *master, void *data)
26202620

26212621
dev_set_drvdata(dev, vop2);
26222622

2623-
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
2623+
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vop");
26242624
if (!res) {
26252625
drm_err(vop2->drm, "failed to get vop2 register byname\n");
26262626
return -EINVAL;
@@ -2637,7 +2637,7 @@ static int vop2_bind(struct device *dev, struct device *master, void *data)
26372637
if (ret)
26382638
return ret;
26392639

2640-
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gamma_lut");
2640+
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gamma-lut");
26412641
if (res) {
26422642
vop2->lut_regs = devm_ioremap_resource(dev, res);
26432643
if (IS_ERR(vop2->lut_regs))

0 commit comments

Comments
 (0)