10c03fa00SAnson Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 20c03fa00SAnson Huang%YAML 1.2 30c03fa00SAnson Huang--- 40c03fa00SAnson Huang$id: http://devicetree.org/schemas/power/fsl,imx-gpc.yaml# 50c03fa00SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 60c03fa00SAnson Huang 70c03fa00SAnson Huangtitle: Freescale i.MX General Power Controller 80c03fa00SAnson Huang 90c03fa00SAnson Huangmaintainers: 100c03fa00SAnson Huang - Philipp Zabel <p.zabel@pengutronix.de> 110c03fa00SAnson Huang 120c03fa00SAnson Huangdescription: | 130c03fa00SAnson Huang The i.MX6 General Power Control (GPC) block contains DVFS load tracking 140c03fa00SAnson Huang counters and Power Gating Control (PGC). 150c03fa00SAnson Huang 160c03fa00SAnson Huang The power domains are generic power domain providers as documented in 170c03fa00SAnson Huang Documentation/devicetree/bindings/power/power-domain.yaml. They are 180c03fa00SAnson Huang described as subnodes of the power gating controller 'pgc' node of the GPC. 190c03fa00SAnson Huang 200c03fa00SAnson Huang IP cores belonging to a power domain should contain a 'power-domains' 210c03fa00SAnson Huang property that is a phandle pointing to the power domain the device belongs 220c03fa00SAnson Huang to. 230c03fa00SAnson Huang 240c03fa00SAnson Huangproperties: 250c03fa00SAnson Huang compatible: 260c03fa00SAnson Huang enum: 270c03fa00SAnson Huang - fsl,imx6q-gpc 280c03fa00SAnson Huang - fsl,imx6qp-gpc 290c03fa00SAnson Huang - fsl,imx6sl-gpc 300c03fa00SAnson Huang - fsl,imx6sx-gpc 310c03fa00SAnson Huang 320c03fa00SAnson Huang reg: 330c03fa00SAnson Huang maxItems: 1 340c03fa00SAnson Huang 350c03fa00SAnson Huang interrupts: 360c03fa00SAnson Huang maxItems: 1 370c03fa00SAnson Huang 380c03fa00SAnson Huang clocks: 390c03fa00SAnson Huang maxItems: 1 400c03fa00SAnson Huang 410c03fa00SAnson Huang clock-names: 420c03fa00SAnson Huang const: ipg 430c03fa00SAnson Huang 440c03fa00SAnson Huang pgc: 450c03fa00SAnson Huang type: object 46*7b3c2046SRob Herring additionalProperties: false 470c03fa00SAnson Huang description: list of power domains provided by this controller. 480c03fa00SAnson Huang 49*7b3c2046SRob Herring properties: 50*7b3c2046SRob Herring '#address-cells': 51*7b3c2046SRob Herring const: 1 52*7b3c2046SRob Herring 53*7b3c2046SRob Herring '#size-cells': 54*7b3c2046SRob Herring const: 0 55*7b3c2046SRob Herring 560c03fa00SAnson Huang patternProperties: 570c03fa00SAnson Huang "power-domain@[0-9]$": 580c03fa00SAnson Huang type: object 59*7b3c2046SRob Herring additionalProperties: false 60*7b3c2046SRob Herring 610c03fa00SAnson Huang properties: 620c03fa00SAnson Huang 630c03fa00SAnson Huang '#power-domain-cells': 640c03fa00SAnson Huang const: 0 650c03fa00SAnson Huang 660c03fa00SAnson Huang reg: 670c03fa00SAnson Huang description: | 680c03fa00SAnson Huang The following DOMAIN_INDEX values are valid for i.MX6Q: 690c03fa00SAnson Huang ARM_DOMAIN 0 700c03fa00SAnson Huang PU_DOMAIN 1 710c03fa00SAnson Huang The following additional DOMAIN_INDEX value is valid for i.MX6SL: 720c03fa00SAnson Huang DISPLAY_DOMAIN 2 730c03fa00SAnson Huang The following additional DOMAIN_INDEX value is valid for i.MX6SX: 740c03fa00SAnson Huang PCI_DOMAIN 3 750c03fa00SAnson Huang maxItems: 1 760c03fa00SAnson Huang 770c03fa00SAnson Huang clocks: 780c03fa00SAnson Huang description: | 790c03fa00SAnson Huang A number of phandles to clocks that need to be enabled during domain 800c03fa00SAnson Huang power-up sequencing to ensure reset propagation into devices located 810c03fa00SAnson Huang inside this power domain. 820c03fa00SAnson Huang minItems: 1 830c03fa00SAnson Huang maxItems: 7 840c03fa00SAnson Huang 850c03fa00SAnson Huang power-supply: true 860c03fa00SAnson Huang 870c03fa00SAnson Huang required: 880c03fa00SAnson Huang - '#power-domain-cells' 890c03fa00SAnson Huang - reg 900c03fa00SAnson Huang 910c03fa00SAnson Huang required: 92*7b3c2046SRob Herring - '#address-cells' 93*7b3c2046SRob Herring - '#size-cells' 94*7b3c2046SRob Herring 95*7b3c2046SRob Herringrequired: 960c03fa00SAnson Huang - compatible 970c03fa00SAnson Huang - reg 980c03fa00SAnson Huang - interrupts 990c03fa00SAnson Huang - clocks 1000c03fa00SAnson Huang - clock-names 1010c03fa00SAnson Huang - pgc 1020c03fa00SAnson Huang 1030c03fa00SAnson HuangadditionalProperties: false 1040c03fa00SAnson Huang 1050c03fa00SAnson Huangexamples: 1060c03fa00SAnson Huang - | 1070c03fa00SAnson Huang #include <dt-bindings/clock/imx6qdl-clock.h> 1080c03fa00SAnson Huang #include <dt-bindings/interrupt-controller/arm-gic.h> 1090c03fa00SAnson Huang 1100c03fa00SAnson Huang gpc@20dc000 { 1110c03fa00SAnson Huang compatible = "fsl,imx6q-gpc"; 1120c03fa00SAnson Huang reg = <0x020dc000 0x4000>; 1130c03fa00SAnson Huang interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; 1140c03fa00SAnson Huang clocks = <&clks IMX6QDL_CLK_IPG>; 1150c03fa00SAnson Huang clock-names = "ipg"; 1160c03fa00SAnson Huang 1170c03fa00SAnson Huang pgc { 1180c03fa00SAnson Huang #address-cells = <1>; 1190c03fa00SAnson Huang #size-cells = <0>; 1200c03fa00SAnson Huang 1210c03fa00SAnson Huang power-domain@0 { 1220c03fa00SAnson Huang reg = <0>; 1230c03fa00SAnson Huang #power-domain-cells = <0>; 1240c03fa00SAnson Huang }; 1250c03fa00SAnson Huang 1260c03fa00SAnson Huang pd_pu: power-domain@1 { 1270c03fa00SAnson Huang reg = <1>; 1280c03fa00SAnson Huang #power-domain-cells = <0>; 1290c03fa00SAnson Huang power-supply = <®_pu>; 1300c03fa00SAnson Huang clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>, 1310c03fa00SAnson Huang <&clks IMX6QDL_CLK_GPU3D_SHADER>, 1320c03fa00SAnson Huang <&clks IMX6QDL_CLK_GPU2D_CORE>, 1330c03fa00SAnson Huang <&clks IMX6QDL_CLK_GPU2D_AXI>, 1340c03fa00SAnson Huang <&clks IMX6QDL_CLK_OPENVG_AXI>, 1350c03fa00SAnson Huang <&clks IMX6QDL_CLK_VPU_AXI>; 1360c03fa00SAnson Huang }; 1370c03fa00SAnson Huang }; 1380c03fa00SAnson Huang }; 139