-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'imx-drivers-4.12' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/shawnguo/linux into next/drivers i.MX drivers updates for 4.12: - A series from Lucas Stach which partly rewrites the imx gpc driver to support multiple power domains, and moves the related code from imx platform into drivers folder. - A series from Dong Aisheng which fixes the issues with Lucas' code changes and improves things. - Add workaround for i.MX6QP hardware erratum ERR009619 that is PRE clocks may be stalled during the power up sequencing of the PU power domain. - Add imx-gpcv2 driver to support power domains managed by GPCv2 IP block found on i.MX7 series of SoCs. * tag 'imx-drivers-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: soc: imx: gpc: add workaround for i.MX6QP to the GPC PD driver dt-bindings: imx-gpc: add i.MX6 QuadPlus compatible soc: imx: gpc: add defines for domain index soc: imx: Add GPCv2 power gating driver dt-bindings: Add GPCv2 power gating driver soc: imx: gpc: remove unnecessary readable_reg callback dt-bindings: imx-gpc: correct the DOMAIN_INDEX using soc: imx: gpc: keep PGC_X_CTRL name align with reference manual soc: imx: gpc: fix comment when power up domain soc: imx: gpc: fix imx6sl gpc power domain regression soc: imx: gpc: fix domain_index sanity check issue soc: imx: gpc: fix the wrong using of regmap cache soc: imx: gpc: fix gpc clk get error handling soc: imx: move PGC handling to a new GPC driver dt-bindings: add multidomain support to i.MX GPC DT binding Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Showing
11 changed files
with
1,010 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Freescale i.MX General Power Controller v2 | ||
========================================== | ||
|
||
The i.MX7S/D General Power Control (GPC) block contains Power Gating | ||
Control (PGC) for various power domains. | ||
|
||
Required properties: | ||
|
||
- compatible: Should be "fsl,imx7d-gpc" | ||
|
||
- reg: should be register base and length as documented in the | ||
datasheet | ||
|
||
- interrupts: Should contain GPC interrupt request 1 | ||
|
||
Power domains contained within GPC node are generic power domain | ||
providers, documented in | ||
Documentation/devicetree/bindings/power/power_domain.txt, which are | ||
described as subnodes of the power gating controller 'pgc' node, | ||
which, in turn, is expected to contain the following: | ||
|
||
Required properties: | ||
|
||
- reg: Power domain index. Valid values are defined in | ||
include/dt-bindings/power/imx7-power.h | ||
|
||
- #power-domain-cells: Should be 0 | ||
|
||
Optional properties: | ||
|
||
- power-supply: Power supply used to power the domain | ||
|
||
Example: | ||
|
||
gpc: gpc@303a0000 { | ||
compatible = "fsl,imx7d-gpc"; | ||
reg = <0x303a0000 0x1000>; | ||
interrupt-controller; | ||
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; | ||
#interrupt-cells = <3>; | ||
interrupt-parent = <&intc>; | ||
|
||
pgc { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
pgc_pcie_phy: power-domain@3 { | ||
#power-domain-cells = <0>; | ||
|
||
reg = <IMX7_POWER_DOMAIN_PCIE_PHY>; | ||
power-supply = <®_1p0d>; | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
Specifying power domain for IP modules | ||
====================================== | ||
|
||
IP cores belonging to a power domain should contain a 'power-domains' | ||
property that is a phandle for PGC node representing the domain. | ||
|
||
Example of a device that is part of the PCIE_PHY power domain: | ||
|
||
pcie: pcie@33800000 { | ||
reg = <0x33800000 0x4000>, | ||
<0x4ff00000 0x80000>; | ||
/* ... */ | ||
power-domains = <&pgc_pcie_phy>; | ||
/* ... */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.