dt-bindings: power: add defines for i.MX8MM power domains
authorLucas Stach <l.stach@pengutronix.de>
Mon, 10 May 2021 04:00:42 +0000 (12:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 27 May 2021 01:01:36 +0000 (09:01 +0800)
Adding defines for i.MX8MM GPC power domains.

Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
include/dt-bindings/power/imx8mm-power.h [new file with mode: 0644]

index a96e6dbf18588444a5cc8205f53ba6adaa9ac87a..cac2869af3d063469140a7951e40a24d6865fe15 100644 (file)
@@ -26,6 +26,7 @@ properties:
     enum:
       - fsl,imx7d-gpc
       - fsl,imx8mq-gpc
+      - fsl,imx8mm-gpc
 
   reg:
     maxItems: 1
@@ -54,6 +55,7 @@ properties:
               Power domain index. Valid values are defined in
               include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and
               include/dt-bindings/power/imx8m-power.h for fsl,imx8mq-gpc
+              include/dt-bindings/power/imx8mm-power.h for fsl,imx8mm-gpc
             maxItems: 1
 
           clocks:
diff --git a/include/dt-bindings/power/imx8mm-power.h b/include/dt-bindings/power/imx8mm-power.h
new file mode 100644 (file)
index 0000000..fc9c2e1
--- /dev/null
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
+/*
+ *  Copyright (C) 2020 Pengutronix, Lucas Stach <kernel@pengutronix.de>
+ */
+
+#ifndef __DT_BINDINGS_IMX8MM_POWER_H__
+#define __DT_BINDINGS_IMX8MM_POWER_H__
+
+#define IMX8MM_POWER_DOMAIN_HSIOMIX    0
+#define IMX8MM_POWER_DOMAIN_PCIE       1
+#define IMX8MM_POWER_DOMAIN_OTG1       2
+#define IMX8MM_POWER_DOMAIN_OTG2       3
+#define IMX8MM_POWER_DOMAIN_GPUMIX     4
+#define IMX8MM_POWER_DOMAIN_GPU                5
+#define IMX8MM_POWER_DOMAIN_VPUMIX     6
+#define IMX8MM_POWER_DOMAIN_VPUG1      7
+#define IMX8MM_POWER_DOMAIN_VPUG2      8
+#define IMX8MM_POWER_DOMAIN_VPUH1      9
+#define IMX8MM_POWER_DOMAIN_DISPMIX    10
+#define IMX8MM_POWER_DOMAIN_MIPI       11
+
+#endif