ARM: dts: imx6: adopt DT to new GPC binding
Subsystems (2)
PATCH 1/2 ARM: dts: imx6: adopt DT to new GPC binding
Adopt the i.MX6Q/DL DT to the new and more flexible GPC binding.
Signed-off-by Lucas Stach <[email protected]>
---
v2: adapt to changed domain supply name
--- arch/arm/boot/dts/imx6q.dtsi | 2 +- arch/arm/boot/dts/imx6qdl.dtsi | 37 ++++++++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 12 deletions(-)
arch/arm/boot/dts/imx6q.dtsi +1 -1
@@ -125,7 +125,7 @@ clocks = <&clks IMX6QDL_CLK_OPENVG_AXI>, <&clks IMX6QDL_CLK_GPU2D_CORE>; clock-names = "bus", "core"; - power-domains = <&gpc 1>; + power-domains = <&pd_pu>; }; ipu2: ipu at 02800000 {
arch/arm/boot/dts/imx6qdl.dtsi +26 -11
@@ -156,7 +156,7 @@ <&clks IMX6QDL_CLK_GPU3D_CORE>, <&clks IMX6QDL_CLK_GPU3D_SHADER>; clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; + power-domains = <&pd_pu>; }; gpu_2d: gpu at 00134000 {
@@ -166,7 +166,7 @@ clocks = <&clks IMX6QDL_CLK_GPU2D_AXI>, <&clks IMX6QDL_CLK_GPU2D_CORE>; clock-names = "bus", "core"; - power-domains = <&gpc 1>; + power-domains = <&pd_pu>; }; timer at 00a00600 {
@@ -434,7 +434,7 @@ clocks = <&clks IMX6QDL_CLK_VPU_AXI>, <&clks IMX6QDL_CLK_MMDC_CH0_AXI>; clock-names = "per", "ahb"; - power-domains = <&gpc 1>; + power-domains = <&pd_pu>; resets = <&src 1>; iram = <&ocram>; };
@@ -797,14 +797,29 @@ interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>, <0 90 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&intc>; - pu-supply = <®_pu>; - clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>, - <&clks IMX6QDL_CLK_GPU2D_CORE>, - <&clks IMX6QDL_CLK_GPU2D_AXI>, - <&clks IMX6QDL_CLK_OPENVG_AXI>, - <&clks IMX6QDL_CLK_VPU_AXI>; - #power-domain-cells = <1>; + clocks = <&clks IMX6QDL_CLK_IPG>; + clock-names = "ipg"; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + power-domain at 0 { + reg = <0>; + #power-domain-cells = <0>; + }; + pd_pu: power-domain at 1 { + reg = <1>; + #power-domain-cells = <0>; + power-supply = <®_pu>; + clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>, + <&clks IMX6QDL_CLK_GPU3D_SHADER>, + <&clks IMX6QDL_CLK_GPU2D_CORE>, + <&clks IMX6QDL_CLK_GPU2D_AXI>, + <&clks IMX6QDL_CLK_OPENVG_AXI>, + <&clks IMX6QDL_CLK_VPU_AXI>; + }; + }; }; gpr: iomuxc-gpr at 020e0000 {
Signature · 1 line
2.11.0
PATCH 2/2 ARM: dts: imx6qp: add specific compatible for GPC
Add the more specific QuadPlus compatible to the GPC node, to trigger the required workarounds in the power domain code.
In regard to the interrupt mapping the QuadPlus controller is fully compatible to the Quad one, so keep that compatible in place.
Signed-off-by Lucas Stach <[email protected]>
--- arch/arm/boot/dts/imx6qp.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/imx6qp.dtsi +4 -0
@@ -120,6 +120,10 @@ <0 119 IRQ_TYPE_LEVEL_HIGH>; }; +&gpc { + compatible = "fsl,imx6qp-gpc", "fsl,imx6q-gpc"; +}; + &ipu1 { compatible = "fsl,imx6qp-ipu", "fsl,imx6q-ipu"; fsl,prg = <&prg1>;
Signature · 1 line
2.11.0
Shawn Guo
AppliedPATCH 1/2 ARM: dts: imx6: adopt DT to new GPC binding
In reply to Lucas StachQuoted 3 lines · Lucas Stach
Adopt the i.MX6Q/DL DT to the new and more flexible GPC binding.
Signed-off-by Lucas Stach <[email protected]>
Applied both, thanks.