ARM: dts: imx51: add CodaHx4 VPU
Subsystems (2)
PATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Add the CodaHx4 VPU to the i.MX51 device tree.
---
This patch should only be applied once the patch to fix VPU register access on i.MX51 [1] is merged. The coda driver with patches [2] applied will start accessing VPU registers on i.MX51, which hangs the system without [1].
[1] https://patchwork.kernel.org/patch/10109781/
("clk: imx51: uart4, uart5 gates only exist on imx50, imx53")
[2] https://patchwork.linuxtv.org/patch/45929/
("media: dt-bindings: coda: Add compatible for CodaHx4 on i.MX51")
https://patchwork.linuxtv.org/patch/45930/
("media: coda: Add i.MX51 (CodaHx4) support")
---
arch/arm/boot/dts/imx51.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)arch/arm/boot/dts/imx51.dtsi +11 -0
@@ -597,6 +597,17 @@ clock-names = "ipg", "ahb", "ptp"; status = "disabled"; }; + + vpu at 83ff4000 { + compatible = "fsl,imx51-vpu", "cnm,codahx4"; + reg = <0x83ff4000 0x1000>; + interrupts = <9>; + clocks = <&clks IMX5_CLK_VPU_REFERENCE_GATE>, + <&clks IMX5_CLK_VPU_GATE>; + clock-names = "per", "ahb"; + resets = <&src 1>; + iram = <&iram>; + }; }; }; };
Signature · 1 line
2.11.0
PATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Quoted 7 lines · Philipp Zabel
Add the CodaHx4 VPU to the i.MX51 device tree.
Signed-off-by Philipp Zabel <[email protected]>---
This patch should only be applied once the patch to fix VPU register access on i.MX51 [1] is merged. The coda driver with patches [2] applied will start accessing VPU registers on i.MX51, which hangs the system without [1].
Ping me when it can be safely applied on IMX tree.
Shawn
PATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Hi Shawn,
Quoted 10 lines · Shawn Guo
Quoted 7 lines · Philipp Zabel
Add the CodaHx4 VPU to the i.MX51 device tree.
Signed-off-by Philipp Zabel <[email protected]>---
This patch should only be applied once the patch to fix VPU register access on i.MX51 [1] is merged. The coda driver with patches [2] applied will start accessing VPU registers on i.MX51, which hangs the system without [1].Ping me when it can be safely applied on IMX tree.
I forgot about this between the years, this patch is safe to be applied.
regards
Philipp
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Hi Philipp,
Quoted 1 line · Philipp Zabel
I forgot about this between the years, this patch is safe to be applied.
In order to get the internal RAM to be functional, I think we also need to pass the IRAM clock in the iram node:
iram: iram at 1ffe0000 {
compatible = "mmio-sram";
reg = <0x1ffe0000 0x20000>;
+ clocks = <&clks IMX5_CLK_OCRAM>;
};Thanks
PATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Hi Fabio,
Quoted 9 lines · Fabio Estevam
Hi Philipp,
Quoted 1 line · Philipp Zabel
I forgot about this between the years, this patch is safe to be applied.
In order to get the internal RAM to be functional, I think we also need to pass the IRAM clock in the iram node:
Quoted 7 lines
iram: iram at 1ffe0000 { compatible = "mmio-sram"; reg = <0x1ffe0000 0x20000>; + clocks = <&clks IMX5_CLK_OCRAM>; };Thanks
I think i.MX51 doesn't have that clock gate:
????????clk[IMX5_CLK_OCRAM]?????????????= imx_clk_gate2("ocram", "ahb", MXC_CCM_CCGR6, 2);
is added for i.MX53 only. CCGR6 CG1 (bits 3:2) is documented as "no longer supported, should be cleared" in the i.MX51 reference manual. I can't find any mention of a gate for the SCC RAM.
regards
Philipp
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
Hi Philipp,
Quoted 7 lines · Philipp Zabel
I think i.MX51 doesn't have that clock gate:
clk[IMX5_CLK_OCRAM] = imx_clk_gate2("ocram", "ahb", MXC_CCM_CCGR6, 2);is added for i.MX53 only. CCGR6 CG1 (bits 3:2) is documented as "no longer supported, should be cleared" in the i.MX51 reference manual. I can't find any mention of a gate for the SCC RAM.
That's true. This gate is only present on i.MX53, so:
Thanks for the clarification
Shawn Guo
AppliedPATCH 1/1 ARM: dts: imx51: add CodaHx4 VPU
In reply to Philipp ZabelQuoted 3 lines · Philipp Zabel
Add the CodaHx4 VPU to the i.MX51 device tree.
Signed-off-by Philipp Zabel <[email protected]>
Applied, thanks.