Skip to content

Commit 559549b

Browse files
YongWu-HFjoergroedel
authored andcommitted
dt-bindings: media: mediatek,jpeg: Remove dma-ranges property
After commit f1ad533 ("of: Fix "dma-ranges" handling for bus controllers"), the dma-ranges of the leaf node doesn't work. Remove it for jpeg here. Currently there is only mt8195 jpeg node has this property in upstream, and it already uses parent-child node, this property did work. But instead, MediaTek iommu will control the masters' iova ranges by the master's larb/port id internally, then this property is unnecessary. Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: Bin Liu <bin.liu@mediatek.com> Cc: kyrie wu <kyrie.wu@mediatek.corp-partner.google.com> Cc: Xia Jiang <xia.jiang@mediatek.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Link: https://lore.kernel.org/r/20230411093144.2690-3-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent e494245 commit 559549b

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

Documentation/devicetree/bindings/media/mediatek,mt8195-jpegdec.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ properties:
2626
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
2727
Ports are according to the HW.
2828

29-
dma-ranges:
30-
maxItems: 1
31-
description: |
32-
Describes the physical address space of IOMMU maps to memory.
33-
3429
"#address-cells":
3530
const: 2
3631

@@ -89,7 +84,6 @@ required:
8984
- compatible
9085
- power-domains
9186
- iommus
92-
- dma-ranges
9387
- ranges
9488

9589
additionalProperties: false
@@ -115,7 +109,6 @@ examples:
115109
<&iommu_vpp M4U_PORT_L19_JPGDEC_BSDMA1>,
116110
<&iommu_vpp M4U_PORT_L19_JPGDEC_BUFF_OFFSET1>,
117111
<&iommu_vpp M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>;
118-
dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>;
119112
#address-cells = <2>;
120113
#size-cells = <2>;
121114
ranges;

Documentation/devicetree/bindings/media/mediatek,mt8195-jpegenc.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ properties:
2626
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
2727
Ports are according to the HW.
2828

29-
dma-ranges:
30-
maxItems: 1
31-
description: |
32-
Describes the physical address space of IOMMU maps to memory.
33-
3429
"#address-cells":
3530
const: 2
3631

@@ -89,7 +84,6 @@ required:
8984
- compatible
9085
- power-domains
9186
- iommus
92-
- dma-ranges
9387
- ranges
9488

9589
additionalProperties: false
@@ -113,7 +107,6 @@ examples:
113107
<&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>,
114108
<&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>,
115109
<&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>;
116-
dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>;
117110
#address-cells = <2>;
118111
#size-cells = <2>;
119112
ranges;

Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ properties:
4444
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
4545
Ports are according to the HW.
4646
47-
dma-ranges:
48-
maxItems: 1
49-
description: |
50-
Describes the physical address space of IOMMU maps to memory.
51-
5247
required:
5348
- compatible
5449
- reg

0 commit comments

Comments
 (0)