Skip to contentSkip to conversation

dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

PATCH Applied Eugen Hristev 4 participants 9 messages Jan 27, 2024 – Jan 30, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

---
Changes in v3:
minItems changed to 2.

Changes in v2:
fixed typo in subject

 .../devicetree/bindings/media/mediatek-jpeg-encoder.yaml       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml +2 -1
index 37800e1908cc..83c020a673d6 100644
@@ -38,7 +38,8 @@ properties:
     maxItems: 1
 
   iommus:
-    maxItems: 2
+    minItems: 2
+    maxItems: 4
     description: |
       Points to the respective IOMMU block with master port as argument, see
       Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 2/2 arm64: dts: mediatek: mt8186: Add jpgenc node

From: Allen-KH Cheng <[email protected]>

Add JPEG encoder node.

---
Changes in v3:
-none

Changes in v2:
- renamed node
- reordered props

 arch/arm64/boot/dts/mediatek/mt8186.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/mediatek/mt8186.dtsi +13 -0
index 37a84d88036a..c93a8b82db76 100644
@@ -2054,6 +2054,19 @@ venc: video-encoder@17020000 {
 			mediatek,scp = <&scp>;
 		};
 
+		jpgenc: jpeg-encoder@17030000 {
+			compatible = "mediatek,mt8186-jpgenc", "mediatek,mtk-jpgenc";
+			reg = <0 0x17030000 0 0x10000>;
+			interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&vencsys CLK_VENC_CKE2_JPGENC>;
+			clock-names = "jpgenc";
+			iommus = <&iommu_mm IOMMU_PORT_L7_JPGENC_Y_RDMA>,
+				 <&iommu_mm IOMMU_PORT_L7_JPGENC_C_RDMA>,
+				 <&iommu_mm IOMMU_PORT_L7_JPGENC_Q_TABLE>,
+				 <&iommu_mm IOMMU_PORT_L7_JPGENC_BSDMA>;
+			power-domains = <&spm MT8186_POWER_DOMAIN_VENC>;
+		};
+
 		camsys: clock-controller@1a000000 {
 			compatible = "mediatek,mt8186-camsys";
 			reg = <0 0x1a000000 0 0x1000>;
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 2/2
#2 lore raw

Re: [PATCH v3 2/2] arm64: dts: mediatek: mt8186: Add jpgenc node

Il 27/01/24 09:42, Eugen Hristev ha scritto:

Quoted 11 lines

From: Allen-KH Cheng <[email protected]>

Add JPEG encoder node.

maintainer Applied
#3 lore raw
In reply to Eugen Hristev
Quoted 5 lines · Eugen Hristev

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Applied to v6.4-next/dts64, thanks!

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

      commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1
[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node
      commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,

Signature · 1 line
AngeloGioacchino Del Regno <[email protected]>
#4 lore raw

Il 29/01/24 11:41, AngeloGioacchino Del Regno ha scritto:

Quoted 10 lines · Eugen Hristev
Quoted 5 lines

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Applied to v6.4-next/dts64, thanks!

Sorry, typo: v6.8-next/dts64

Quoted 6 lines

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

       commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1
[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node
       commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,

maintainer
#7 lore raw
In reply to AngeloGioacchino Del Regno
Quoted 8 lines · AngeloGioacchino Del Regno
Quoted 5 lines · Eugen Hristev

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Quoted 4 lines

Applied to v6.4-next/dts64, thanks!

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

       commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1

Hm, not sure why you took this one, as DT-Bindings normally go through the subsystem maintainer trees. Otherwise merge conflicts can occur. Just saying.

Matthias

Quoted 4 lines

[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node

       commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,

#5 lore raw
In reply to AngeloGioacchino Del Regno

(Drop a bunch of people from CC)

Quoted 10 lines · AngeloGioacchino Del Regno

Il 29/01/24 11:41, AngeloGioacchino Del Regno ha scritto:

Quoted 8 lines · Eugen Hristev
Quoted 5 lines

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Quoted 4 lines
Quoted 2 lines

Applied to v6.4-next/dts64, thanks!

Sorry, typo: v6.8-next/dts64

I was wondering, what script produces this email?

AFAIK b4 ty gives a simple thank you letter without branch or commit hashes.

ChenYu

Quoted 8 lines
Quoted 6 lines

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

       commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1
[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node
       commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,

#8 lore raw
In reply to Matthias Brugger

Il 29/01/24 16:46, Matthias Brugger ha scritto:

Quoted 11 lines · AngeloGioacchino Del Regno
Quoted 8 lines · Eugen Hristev
Quoted 5 lines

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Quoted 7 lines
Quoted 4 lines

Applied to v6.4-next/dts64, thanks!

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count
       commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1

Hm, not sure why you took this one, as DT-Bindings normally go through the subsystem maintainer trees. Otherwise merge conflicts can occur. Just saying.

That was done so that we don't get devicetree validation issues on our branch; eventually, there were no driver changes to support that binding change, and it's there just to validate commit 2/2.

Of course the media maintainers do know about this so there will be no merge conflict - but yes next time I'll let them pick these instead, it's probably easier for everyone, besides simply being the proper thing to do.

Angelo

Quoted 7 lines

Matthias

Quoted 4 lines

[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node
       commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,

#6 lore raw
In reply to Chen-Yu Tsai

Il 30/01/24 04:24, Chen-Yu Tsai ha scritto:

Quoted 17 lines

(Drop a bunch of people from CC)

Quoted 13 lines · AngeloGioacchino Del Regno

Il 29/01/24 11:41, AngeloGioacchino Del Regno ha scritto:

Quoted 10 lines · Eugen Hristev
Quoted 5 lines

MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2).
Add also minItems as 2 to keep compatibility with current devices.

Applied to v6.4-next/dts64, thanks!

Quoted 7 lines
Quoted 1 line

Sorry, typo: v6.8-next/dts64

I was wondering, what script produces this email?

AFAIK b4 ty gives a simple thank you letter without branch or commit hashes.

That's exactly b4 ty :-)
You can use a custom template, so that it reads something like

Applied to ${branch}, thanks!

Cheers,
Angelo

Quoted 10 lines

ChenYu

Quoted 8 lines
Quoted 6 lines

[1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count

        commit: b824b32dd5e98221cbe2e8bcccc6fb4134e35fc1
[2/2] arm64: dts: mediatek: mt8186: Add jpgenc node
        commit: 4c5b46fbf52d52b0f392f0fc3913560bad438e49

Best regards,