Skip to contentSkip to conversation

arm64: dts: imx8mm: add pgc/blk_ctl nodes

PATCH In review Peng Fan (OSS) 4 participants 4 messages Jun 4, 2021 – Jun 30, 2021

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

PATCH 1/1 arm64: dts: imx8mm: add pgc/blk_ctl nodes

From: Peng Fan <[email protected]>

With PGC and BLK-CTL landed, we could add pgc and blk-ctl nodes, because some pgc domain relies on blk-ctl power domain, so they need to be added together.

---

V1:
Depends on the blk-ctl patchset,
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/

Shawn,
Since the blk-ctl patchset is in good shape and tested, is it ok for you to pick up?
Thanks

 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 128 ++++++++++++++++++++++
 1 file changed, 128 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm.dtsi +128 -0
index e7648c3b8390..0e01ff649956 100644
@@ -7,6 +7,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/imx8mm-power.h>
+#include <dt-bindings/reset/imx8mq-reset.h>
 #include <dt-bindings/thermal/thermal.h>
 
 #include "imx8mm-pinfunc.h"
@@ -609,6 +611,109 @@ src: reset-controller@30390000 {
 				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
 				#reset-cells = <1>;
 			};
+
+			gpc: gpc@303a0000 {
+				compatible = "fsl,imx8mm-gpc";
+				reg = <0x303a0000 0x10000>;
+				interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
+				interrupt-parent = <&gic>;
+				interrupt-controller;
+				#interrupt-cells = <3>;
+
+				pgc {
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					pgc_hsiomix: power-domain@0 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_HSIOMIX>;
+						clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
+					};
+
+					pgc_pcie: power-domain@1 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_PCIE>;
+						power-domains = <&pgc_hsiomix>;
+						clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>;
+					};
+
+					pgc_otg1: power-domain@2 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_OTG1>;
+						power-domains = <&pgc_hsiomix>;
+					};
+
+					pgc_otg2: power-domain@3 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_OTG2>;
+						power-domains = <&pgc_hsiomix>;
+					};
+
+					pgc_gpumix: power-domain@4 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
+						clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
+							 <&clk IMX8MM_CLK_GPU_AHB>;
+					};
+
+					pgc_gpu: power-domain@5 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_GPU>;
+						clocks = <&clk IMX8MM_CLK_GPU_AHB>,
+							 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
+							 <&clk IMX8MM_CLK_GPU2D_ROOT>,
+							 <&clk IMX8MM_CLK_GPU3D_ROOT>;
+						resets = <&src IMX8MQ_RESET_GPU_RESET>;
+						power-domains = <&pgc_gpumix>;
+					};
+
+					pgc_vpumix: power-domain@6 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
+						clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
+						resets = <&src IMX8MQ_RESET_VPU_RESET>;
+					};
+
+					pgc_vpu_g1: power-domain@7 {
+						#power-domain-cells = <0>;
+						power-domains =
+						<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+						reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
+						clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>;
+					};
+
+					pgc_vpu_g2: power-domain@8 {
+						#power-domain-cells = <0>;
+						power-domains =
+						<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+						reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
+						clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>;
+					};
+
+					pgc_vpu_h1: power-domain@9 {
+						#power-domain-cells = <0>;
+						power-domains =
+						<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+						reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
+						clocks = <&clk IMX8MM_CLK_VPU_H1_ROOT>;
+					};
+
+					pgc_dispmix: power-domain@10 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
+						clocks = <&clk IMX8MM_CLK_DISP_ROOT>,
+							 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
+							 <&clk IMX8MM_CLK_DISP_APB_ROOT>;
+					};
+
+					pgc_mipi: power-domain@11 {
+						#power-domain-cells = <0>;
+						reg = <IMX8MM_POWER_DOMAIN_MIPI>;
+						power-domains =
+						<&dispmix_blk_ctl IMX8MM_BLK_CTL_PD_DISPMIX_BUS>;
+					};
+				};
+			};
 		};
 
 		aips2: bus@30400000 {
@@ -960,6 +1065,18 @@ aips4: bus@32c00000 {
 			#size-cells = <1>;
 			ranges = <0x32c00000 0x32c00000 0x400000>;
 
+			dispmix_blk_ctl: blk_ctl@32e28000 {
+				compatible = "fsl,imx8mm-dispmix-blk-ctl", "syscon";
+				reg = <0x32e28000 0x100>;
+				#power-domain-cells = <1>;
+				#reset-cells = <1>;
+				power-domains = <&pgc_dispmix>, <&pgc_mipi>;
+				power-domain-names = "dispmix", "mipi";
+				clocks = <&clk IMX8MM_CLK_DISP_ROOT>,
+					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
+					 <&clk IMX8MM_CLK_DISP_APB_ROOT>;
+			};
+
 			usbotg1: usb@32e40000 {
 				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
 				reg = <0x32e40000 0x200>;
@@ -1029,6 +1146,17 @@ gpmi: nand-controller@33002000{
 			status = "disabled";
 		};
 
+		vpumix_blk_ctl: blk-ctl@38330000 {
+			compatible = "fsl,imx8mm-vpumix-blk-ctl", "syscon";
+			reg = <0x38330000 0x100>;
+			#power-domain-cells = <1>;
+			#reset-cells = <1>;
+			power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>, <&pgc_vpu_g2>, <&pgc_vpu_h1>;
+			power-domain-names = "vpumix", "vpu-g1", "vpu-g2", "vpu-h1";
+			clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>, <&clk IMX8MM_CLK_VPU_G1_ROOT>,
+				 <&clk IMX8MM_CLK_VPU_G2_ROOT>, <&clk IMX8MM_CLK_VPU_H1_ROOT>;
+		};
+
 		gic: interrupt-controller@38800000 {
 			compatible = "arm,gic-v3";
 			reg = <0x38800000 0x10000>, /* GIC Dist */
Signature · 1 line
2.30.0
#1 lore raw
Quoted 67 lines · Peng Fan (OSS)

From: Peng Fan <[email protected]>

With PGC and BLK-CTL landed, we could add pgc and blk-ctl nodes, because some pgc domain relies on blk-ctl power domain, so they need to be added together.

---

V1:
Depends on the blk-ctl patchset,
https://patchwork.kernel.org/project/linux-arm-kernel/cover/[email protected]/

Shawn,
Since the blk-ctl patchset is in good shape and tested, is it ok for you to pick up?
Thanks

 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 128 ++++++++++++++++++++++
 1 file changed, 128 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm.dtsi +30 -0
index e7648c3b8390..0e01ff649956 100644
@@ -7,6 +7,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/imx8mm-power.h>
+#include <dt-bindings/reset/imx8mq-reset.h>
 #include <dt-bindings/thermal/thermal.h>
 
 #include "imx8mm-pinfunc.h"
@@ -609,6 +611,109 @@ src: reset-controller@30390000 {
                                interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
                                #reset-cells = <1>;
                        };
+
+                       gpc: gpc@303a0000 {
+                               compatible = "fsl,imx8mm-gpc";
+                               reg = <0x303a0000 0x10000>;
+                               interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-parent = <&gic>;
+                               interrupt-controller;
+                               #interrupt-cells = <3>;
+
+                               pgc {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       pgc_hsiomix: power-domain@0 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_HSIOMIX>;
+                                               clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
+                                       };
+
+                                       pgc_pcie: power-domain@1 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_PCIE>;
+                                               power-domains = <&pgc_hsiomix>;
+                                               clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>;
+                                       };
+
+                                       pgc_otg1: power-domain@2 {
+                                               #power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 651

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +10 -0
+                                               reg = <IMX8MM_POWER_DOMAIN_OTG1>;
+                                               power-domains = <&pgc_hsiomix>;
+                                       };
+
+                                       pgc_otg2: power-domain@3 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_OTG2>;
+                                               power-domains = <&pgc_hsiomix>;
+                                       };
+

Any change you could add the references to pgc_otg1 and pgc_otg2 to their respective OTG nodes? Without them, enabling OTG1 or OTG2 can result in a hang unless it was started in U-Boot.

Quoted 108 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +88 -1
+                                       pgc_gpumix: power-domain@4 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
+                                               clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
+                                                        <&clk IMX8MM_CLK_GPU_AHB>;
+                                       };
+
+                                       pgc_gpu: power-domain@5 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_GPU>;
+                                               clocks = <&clk IMX8MM_CLK_GPU_AHB>,
+                                                        <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
+                                                        <&clk IMX8MM_CLK_GPU2D_ROOT>,
+                                                        <&clk IMX8MM_CLK_GPU3D_ROOT>;
+                                               resets = <&src IMX8MQ_RESET_GPU_RESET>;
+                                               power-domains = <&pgc_gpumix>;
+                                       };
+
+                                       pgc_vpumix: power-domain@6 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
+                                               clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
+                                               resets = <&src IMX8MQ_RESET_VPU_RESET>;
+                                       };
+
+                                       pgc_vpu_g1: power-domain@7 {
+                                               #power-domain-cells = <0>;
+                                               power-domains =
+                                               <&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+                                               reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
+                                               clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>;
+                                       };
+
+                                       pgc_vpu_g2: power-domain@8 {
+                                               #power-domain-cells = <0>;
+                                               power-domains =
+                                               <&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+                                               reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
+                                               clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>;
+                                       };
+
+                                       pgc_vpu_h1: power-domain@9 {
+                                               #power-domain-cells = <0>;
+                                               power-domains =
+                                               <&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;
+                                               reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
+                                               clocks = <&clk IMX8MM_CLK_VPU_H1_ROOT>;
+                                       };
+
+                                       pgc_dispmix: power-domain@10 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
+                                               clocks = <&clk IMX8MM_CLK_DISP_ROOT>,
+                                                        <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
+                                                        <&clk IMX8MM_CLK_DISP_APB_ROOT>;
+                                       };
+
+                                       pgc_mipi: power-domain@11 {
+                                               #power-domain-cells = <0>;
+                                               reg = <IMX8MM_POWER_DOMAIN_MIPI>;
+                                               power-domains =
+                                               <&dispmix_blk_ctl IMX8MM_BLK_CTL_PD_DISPMIX_BUS>;
+                                       };
+                               };
+                       };
                };
 
                aips2: bus@30400000 {
@@ -960,6 +1065,18 @@ aips4: bus@32c00000 {
                        #size-cells = <1>;
                        ranges = <0x32c00000 0x32c00000 0x400000>;
 
+                       dispmix_blk_ctl: blk_ctl@32e28000 {
+                               compatible = "fsl,imx8mm-dispmix-blk-ctl", "syscon";
+                               reg = <0x32e28000 0x100>;
+                               #power-domain-cells = <1>;
+                               #reset-cells = <1>;
+                               power-domains = <&pgc_dispmix>, <&pgc_mipi>;
+                               power-domain-names = "dispmix", "mipi";
+                               clocks = <&clk IMX8MM_CLK_DISP_ROOT>,
+                                        <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
+                                        <&clk IMX8MM_CLK_DISP_APB_ROOT>;
+                       };
+
                        usbotg1: usb@32e40000 {
                                compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
                                reg = <0x32e40000 0x200>;
@@ -1029,6 +1146,17 @@ gpmi: nand-controller@33002000{
                        status = "disabled";
                };
 
+               vpumix_blk_ctl: blk-ctl@38330000 {
+                       compatible = "fsl,imx8mm-vpumix-blk-ctl", "syscon";
+                       reg = <0x38330000 0x100>;
+                       #power-domain-cells = <1>;
+                       #reset-cells = <1>;
+                       power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>, <&pgc_vpu_g2>, <&pgc_vpu_h1>;
+                       power-domain-names = "vpumix", "vpu-g1", "vpu-g2", "vpu-h1";
+                       clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>, <&clk IMX8MM_CLK_VPU_G1_ROOT>,
+                                <&clk IMX8MM_CLK_VPU_G2_ROOT>, <&clk IMX8MM_CLK_VPU_H1_ROOT>;
+               };
+
                gic: interrupt-controller@38800000 {
                        compatible = "arm,gic-v3";
                        reg = <0x38800000 0x10000>, /* GIC Dist */
--

2.30.0

#3 lore raw
In reply to Adam Ford
Quoted 116 lines

Subject: Re: [PATCH] arm64: dts: imx8mm: add pgc/blk_ctl nodes

Quoted 7 lines · Peng Fan (OSS)

From: Peng Fan <[email protected]>

With PGC and BLK-CTL landed, we could add pgc and blk-ctl nodes, because some pgc domain relies on blk-ctl power domain, so they need to be added together.

Quoted 8 lines

---

V1:
Depends on the blk-ctl patchset,

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc

hwork.kernel.org%2Fproject%2Flinux-arm-kernel%2Fcover%2F202105221342 49

Quoted 1 line

.15322-1-peng.fan%40oss.nxp.com%2F&amp;data=04%7C01%7Cpeng.fan%

40nxp.c

Quoted 1 line

om%7C388c4bd417ff49d393c708d93b02e9f9%7C686ea1d3bc2b4c6fa92cd99 c5c3016

Quoted 1 line

35%7C0%7C0%7C637605705985073021%7CUnknown%7CTWFpbGZsb3d8ey JWIjoiMC4wLj

Quoted 1 line

AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp ;sdata=

Quoted 1 line

osAlqXkaxQ8qexwmd%2Fh33V0tUpVnT%2Fk7B5kq5vgVRVQ%3D&amp;reser ved=0

Quoted 25 lines

Shawn,
Since the blk-ctl patchset is in good shape and tested, is it ok for you to pick up?
Thanks

 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 128
++++++++++++++++++++++
 1 file changed, 128 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
index e7648c3b8390..0e01ff649956 100644
@@ -7,6 +7,8 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/imx8mm-power.h>
+#include <dt-bindings/reset/imx8mq-reset.h>
 #include <dt-bindings/thermal/thermal.h>
 
 #include "imx8mm-pinfunc.h"

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 611

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +0 -0
@@ -609,6 +611,109 @@ src: reset-controller@30390000 {
                                interrupts = <GIC_SPI 89

IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +5 -0
                                #reset-cells = <1>;
                        };
+
+                       gpc: gpc@303a0000 {
+                               compatible = "fsl,imx8mm-gpc";
+                               reg = <0x303a0000 0x10000>;
+                               interrupts = <GIC_SPI 87

IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +9 -0
+                               interrupt-parent = <&gic>;
+                               interrupt-controller;
+                               #interrupt-cells = <3>;
+
+                               pgc {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       pgc_hsiomix:

power-domain@0 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 628

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 629

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_HSIOMIX>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 630

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_USB1_CTRL_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_pcie:

power-domain@1 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 634

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 635

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_PCIE>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 636

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

= <&pgc_hsiomix>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 637

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_PCIE1_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_otg1:

power-domain@2 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 641

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 642

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_OTG1>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 643

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

= <&pgc_hsiomix>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_otg2:

power-domain@3 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 647

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 648

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_OTG2>;

Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 649

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

= <&pgc_hsiomix>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 651

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
+                                       };
+

Any change you could add the references to pgc_otg1 and pgc_otg2 to their respective OTG nodes? Without them, enabling OTG1 or OTG2 can result in a hang unless it was started in U-Boot.

Will post v2 to add that, really hope the driver part could be in, then move on.

Thanks,
Peng.

Quoted 171 lines

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 652

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                       pgc_gpumix:

power-domain@4 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 653

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 654

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_GPUMIX>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 655

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_GPU_BUS_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 656

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_GPU_AHB>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_gpu:

power-domain@5 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 660

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 661

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_GPU>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 662

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_GPU_AHB>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 663

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_GPU_BUS_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 664

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_GPU2D_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 665

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_GPU3D_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 666

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               resets = <&src

IMX8MQ_RESET_GPU_RESET>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 667

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

= <&pgc_gpumix>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_vpumix:

power-domain@6 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 671

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 672

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_VPUMIX>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 673

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_VPU_DEC_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 674

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               resets = <&src

IMX8MQ_RESET_VPU_RESET>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_vpu_g1:

power-domain@7 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 678

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 679

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

=

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 680

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 681

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_VPUG1>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 682

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_VPU_G1_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_vpu_g2:

power-domain@8 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 686

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 687

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

=

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 688

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 689

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_VPUG2>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 690

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_VPU_G2_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_vpu_h1:

power-domain@9 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 694

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 695

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

=

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 696

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&vpumix_blk_ctl IMX8MM_BLK_CTL_PD_VPU_BUS>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 697

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_VPUH1>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 698

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_VPU_H1_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_dispmix:

power-domain@10 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 702

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 703

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_DISPMIX>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 704

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               clocks = <&clk

IMX8MM_CLK_DISP_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 705

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_DISP_AXI_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 706

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&clk IMX8MM_CLK_DISP_APB_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 {

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+
+                                       pgc_mipi:

power-domain@11 {

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 710

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

#power-domain-cells = <0>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 711

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               reg =

<IMX8MM_POWER_DOMAIN_MIPI>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 712

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                               power-domains

=

arch/arm64/boot/dts/freescale/imx8mm.dtsi src: reset-controller@30390000 { · line 713

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+

<&dispmix_blk_ctl IMX8MM_BLK_CTL_PD_DISPMIX_BUS>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1066

Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+                                       };
+                               };
+                       };
                };
 
                aips2: bus@30400000 {
@@ -960,6 +1065,18 @@ aips4: bus@32c00000 {
                        #size-cells = <1>;
                        ranges = <0x32c00000 0x32c00000

0x400000>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1068

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
+                       dispmix_blk_ctl: blk_ctl@32e28000 {
+                               compatible =

"fsl,imx8mm-dispmix-blk-ctl", "syscon";

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 {

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +4 -0
+                               reg = <0x32e28000 0x100>;
+                               #power-domain-cells = <1>;
+                               #reset-cells = <1>;
+                               power-domains = <&pgc_dispmix>,

<&pgc_mipi>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1073

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                               power-domain-names = "dispmix",

"mipi";

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1074

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                               clocks = <&clk

IMX8MM_CLK_DISP_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1075

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                        <&clk

IMX8MM_CLK_DISP_AXI_ROOT>,

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1076

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +1 -0
+                                        <&clk

IMX8MM_CLK_DISP_APB_ROOT>;

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 {

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
+                       };
+
                        usbotg1: usb@32e40000 {
                                compatible = "fsl,imx8mm-usb",

"fsl,imx7d-usb";

arch/arm64/boot/dts/freescale/imx8mm.dtsi aips4: bus@32c00000 { · line 1081

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mm.dtsi +0 -0
                                reg = <0x32e40000 0x200>; @@

-1029,6

arch/arm64/boot/dts/freescale/imx8mm.dtsi gpmi: nand-controller@33002000{

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -0
+1146,17 @@ gpmi: nand-controller@33002000{
                        status = "disabled";
                };
 
+               vpumix_blk_ctl: blk-ctl@38330000 {
+                       compatible = "fsl,imx8mm-vpumix-blk-ctl",

"syscon";

arch/arm64/boot/dts/freescale/imx8mm.dtsi gpmi: nand-controller@33002000{

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +4 -0
+                       reg = <0x38330000 0x100>;
+                       #power-domain-cells = <1>;
+                       #reset-cells = <1>;
+                       power-domains = <&pgc_vpumix>,

<&pgc_vpu_g1>, <&pgc_vpu_g2>, <&pgc_vpu_h1>;

Quoted 1 line

+ power-domain-names = "vpumix", "vpu-g1",

"vpu-g2", "vpu-h1";

Quoted 1 line

+ clocks = <&clk

IMX8MM_CLK_VPU_DEC_ROOT>, <&clk IMX8MM_CLK_VPU_G1_ROOT>,

Quoted 1 line

+ <&clk

IMX8MM_CLK_VPU_G2_ROOT>, <&clk IMX8MM_CLK_VPU_H1_ROOT>;

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -1
+               };
+
                gic: interrupt-controller@38800000 {
                        compatible = "arm,gic-v3";
                        reg = <0x38800000 0x10000>, /* GIC Dist */
--

2.30.0