162306a36Sopenharmony_ci* Run Control and Power Management
262306a36Sopenharmony_ci-------------------------------------------
362306a36Sopenharmony_ciThe RCPM performs all device-level tasks associated with device run control
462306a36Sopenharmony_ciand power management.
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciRequired properites:
762306a36Sopenharmony_ci  - reg : Offset and length of the register set of the RCPM block.
862306a36Sopenharmony_ci  - #fsl,rcpm-wakeup-cells : The number of IPPDEXPCR register cells in the
962306a36Sopenharmony_ci	fsl,rcpm-wakeup property.
1062306a36Sopenharmony_ci  - compatible : Must contain a chip-specific RCPM block compatible string
1162306a36Sopenharmony_ci	and (if applicable) may contain a chassis-version RCPM compatible
1262306a36Sopenharmony_ci	string. Chip-specific strings are of the form "fsl,<chip>-rcpm",
1362306a36Sopenharmony_ci	such as:
1462306a36Sopenharmony_ci	* "fsl,p2041-rcpm"
1562306a36Sopenharmony_ci	* "fsl,p5020-rcpm"
1662306a36Sopenharmony_ci	* "fsl,t4240-rcpm"
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	Chassis-version strings are of the form "fsl,qoriq-rcpm-<version>",
1962306a36Sopenharmony_ci	such as:
2062306a36Sopenharmony_ci	* "fsl,qoriq-rcpm-1.0": for chassis 1.0 rcpm
2162306a36Sopenharmony_ci	* "fsl,qoriq-rcpm-2.0": for chassis 2.0 rcpm
2262306a36Sopenharmony_ci	* "fsl,qoriq-rcpm-2.1": for chassis 2.1 rcpm
2362306a36Sopenharmony_ci	* "fsl,qoriq-rcpm-2.1+": for chassis 2.1+ rcpm
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciAll references to "1.0" and "2.0" refer to the QorIQ chassis version to
2662306a36Sopenharmony_ciwhich the chip complies.
2762306a36Sopenharmony_ciChassis Version		Example Chips
2862306a36Sopenharmony_ci---------------		-------------------------------
2962306a36Sopenharmony_ci1.0				p4080, p5020, p5040, p2041, p3041
3062306a36Sopenharmony_ci2.0				t4240, b4860, b4420
3162306a36Sopenharmony_ci2.1				t1040,
3262306a36Sopenharmony_ci2.1+				ls1021a, ls1012a, ls1043a, ls1046a
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciOptional properties:
3562306a36Sopenharmony_ci - little-endian : RCPM register block is Little Endian. Without it RCPM
3662306a36Sopenharmony_ci   will be Big Endian (default case).
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciExample:
3962306a36Sopenharmony_ciThe RCPM node for T4240:
4062306a36Sopenharmony_ci	rcpm: global-utilities@e2000 {
4162306a36Sopenharmony_ci		compatible = "fsl,t4240-rcpm", "fsl,qoriq-rcpm-2.0";
4262306a36Sopenharmony_ci		reg = <0xe2000 0x1000>;
4362306a36Sopenharmony_ci		#fsl,rcpm-wakeup-cells = <2>;
4462306a36Sopenharmony_ci	};
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci* Freescale RCPM Wakeup Source Device Tree Bindings
4762306a36Sopenharmony_ci-------------------------------------------
4862306a36Sopenharmony_ciRequired fsl,rcpm-wakeup property should be added to a device node if the device
4962306a36Sopenharmony_cican be used as a wakeup source.
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci  - fsl,rcpm-wakeup: Consists of a phandle to the rcpm node and the IPPDEXPCR
5262306a36Sopenharmony_ci	register cells. The number of IPPDEXPCR register cells is defined in
5362306a36Sopenharmony_ci	"#fsl,rcpm-wakeup-cells" in the rcpm node. The first register cell is
5462306a36Sopenharmony_ci	the bit mask that should be set in IPPDEXPCR0, and the second register
5562306a36Sopenharmony_ci	cell is for IPPDEXPCR1, and so on.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci	Note: IPPDEXPCR(IP Powerdown Exception Control Register) provides a
5862306a36Sopenharmony_ci	mechanism for keeping certain blocks awake during STANDBY and MEM, in
5962306a36Sopenharmony_ci	order to use them as wake-up sources.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ciExample:
6262306a36Sopenharmony_ci	lpuart0: serial@2950000 {
6362306a36Sopenharmony_ci		compatible = "fsl,ls1021a-lpuart";
6462306a36Sopenharmony_ci		reg = <0x0 0x2950000 0x0 0x1000>;
6562306a36Sopenharmony_ci		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
6662306a36Sopenharmony_ci		clocks = <&sysclk>;
6762306a36Sopenharmony_ci		clock-names = "ipg";
6862306a36Sopenharmony_ci		fsl,rcpm-wakeup = <&rcpm 0x0 0x40000000>;
6962306a36Sopenharmony_ci	};
70