mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
arm64: dts: mediatek: mt8195: Fix ranges for jpeg enc/decoder nodes
The jpeg decoder main node is under the soc bus but currently has no ranges or reg specified, while the children do, and this is wrong in multiple aspects. The very same is also valid for the jpeg encoder node. Rename the decoder and encoder nodes to "jpeg-decoder@1a040000" and to "jpeg-encoder@1a030000" respectively, and change their children to use the newly defined ranges. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Fei Shao <fshao@chromium.org> Link: https://lore.kernel.org/r/20250724083914.61351-35-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
committed by
Matthias Brugger
parent
0f4a8198d6
commit
a9eac43d03
@@ -3036,7 +3036,7 @@
|
||||
#size-cells = <2>;
|
||||
};
|
||||
|
||||
jpgdec-master {
|
||||
jpeg-decoder@1a040000 {
|
||||
compatible = "mediatek,mt8195-jpgdec";
|
||||
power-domains = <&spm MT8195_POWER_DOMAIN_VDEC1>;
|
||||
iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>,
|
||||
@@ -3047,11 +3047,12 @@
|
||||
<&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
ranges = <0 0 0 0x1a040000 0 0x20000>,
|
||||
<1 0 0 0x1b040000 0 0x10000>;
|
||||
|
||||
jpgdec@1a040000 {
|
||||
jpgdec@0,0 {
|
||||
compatible = "mediatek,mt8195-jpgdec-hw";
|
||||
reg = <0 0x1a040000 0 0x10000>;/* JPGDEC_C0 */
|
||||
reg = <0 0 0 0x10000>;/* JPGDEC_C0 */
|
||||
iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA0>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA1>,
|
||||
@@ -3064,9 +3065,9 @@
|
||||
power-domains = <&spm MT8195_POWER_DOMAIN_VDEC0>;
|
||||
};
|
||||
|
||||
jpgdec@1a050000 {
|
||||
jpgdec@0,10000 {
|
||||
compatible = "mediatek,mt8195-jpgdec-hw";
|
||||
reg = <0 0x1a050000 0 0x10000>;/* JPGDEC_C1 */
|
||||
reg = <0 0 0x10000 0x10000>;/* JPGDEC_C1 */
|
||||
iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA0>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA1>,
|
||||
@@ -3079,9 +3080,9 @@
|
||||
power-domains = <&spm MT8195_POWER_DOMAIN_VDEC1>;
|
||||
};
|
||||
|
||||
jpgdec@1b040000 {
|
||||
jpgdec@1,0 {
|
||||
compatible = "mediatek,mt8195-jpgdec-hw";
|
||||
reg = <0 0x1b040000 0 0x10000>;/* JPGDEC_C2 */
|
||||
reg = <1 0 0 0x10000>;/* JPGDEC_C2 */
|
||||
iommus = <&iommu_vpp M4U_PORT_L20_JPGDEC_WDMA0>,
|
||||
<&iommu_vpp M4U_PORT_L20_JPGDEC_BSDMA0>,
|
||||
<&iommu_vpp M4U_PORT_L20_JPGDEC_WDMA1>,
|
||||
@@ -3110,7 +3111,7 @@
|
||||
};
|
||||
|
||||
|
||||
jpgenc-master {
|
||||
jpeg-encoder@1a030000 {
|
||||
compatible = "mediatek,mt8195-jpgenc";
|
||||
power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>;
|
||||
iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>,
|
||||
@@ -3119,11 +3120,12 @@
|
||||
<&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
ranges = <0 0 0 0x1a030000 0 0x10000>,
|
||||
<1 0 0 0x1b030000 0 0x10000>;
|
||||
|
||||
jpgenc@1a030000 {
|
||||
jpgenc@0,0 {
|
||||
compatible = "mediatek,mt8195-jpgenc-hw";
|
||||
reg = <0 0x1a030000 0 0x10000>;
|
||||
reg = <0 0 0 0x10000>;
|
||||
iommus = <&iommu_vdo M4U_PORT_L19_JPGENC_Y_RDMA>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGENC_C_RDMA>,
|
||||
<&iommu_vdo M4U_PORT_L19_JPGENC_Q_TABLE>,
|
||||
@@ -3134,9 +3136,9 @@
|
||||
power-domains = <&spm MT8195_POWER_DOMAIN_VENC>;
|
||||
};
|
||||
|
||||
jpgenc@1b030000 {
|
||||
jpgenc@1,0 {
|
||||
compatible = "mediatek,mt8195-jpgenc-hw";
|
||||
reg = <0 0x1b030000 0 0x10000>;
|
||||
reg = <1 0 0 0x10000>;
|
||||
iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>,
|
||||
<&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>,
|
||||
<&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>,
|
||||
|
||||
Reference in New Issue
Block a user