Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: fsl: rcpm: Add 'little-endian' and update Chassis definition

By default, QorIQ SoC's RCPM register block is Big Endian. But
there are some exceptions, such as LS1088A and LS2088A, are
Little Endian. So add this optional property to help identify
them.

Actually LS2021A and other Layerscapes won't totally follow Chassis
2.1, so separate them from powerpc SoC.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Li Yang <leoyang.li@nxp.com>

authored by

Ran Wang and committed by
Li Yang
21832537 b4941adb

+10 -4
+10 -4
Documentation/devicetree/bindings/soc/fsl/rcpm.txt
··· 5 5 6 6 Required properites: 7 7 - reg : Offset and length of the register set of the RCPM block. 8 - - fsl,#rcpm-wakeup-cells : The number of IPPDEXPCR register cells in the 8 + - #fsl,rcpm-wakeup-cells : The number of IPPDEXPCR register cells in the 9 9 fsl,rcpm-wakeup property. 10 10 - compatible : Must contain a chip-specific RCPM block compatible string 11 11 and (if applicable) may contain a chassis-version RCPM compatible ··· 20 20 * "fsl,qoriq-rcpm-1.0": for chassis 1.0 rcpm 21 21 * "fsl,qoriq-rcpm-2.0": for chassis 2.0 rcpm 22 22 * "fsl,qoriq-rcpm-2.1": for chassis 2.1 rcpm 23 + * "fsl,qoriq-rcpm-2.1+": for chassis 2.1+ rcpm 23 24 24 25 All references to "1.0" and "2.0" refer to the QorIQ chassis version to 25 26 which the chip complies. ··· 28 27 --------------- ------------------------------- 29 28 1.0 p4080, p5020, p5040, p2041, p3041 30 29 2.0 t4240, b4860, b4420 31 - 2.1 t1040, ls1021 30 + 2.1 t1040, 31 + 2.1+ ls1021a, ls1012a, ls1043a, ls1046a 32 + 33 + Optional properties: 34 + - little-endian : RCPM register block is Little Endian. Without it RCPM 35 + will be Big Endian (default case). 32 36 33 37 Example: 34 38 The RCPM node for T4240: 35 39 rcpm: global-utilities@e2000 { 36 40 compatible = "fsl,t4240-rcpm", "fsl,qoriq-rcpm-2.0"; 37 41 reg = <0xe2000 0x1000>; 38 - fsl,#rcpm-wakeup-cells = <2>; 42 + #fsl,rcpm-wakeup-cells = <2>; 39 43 }; 40 44 41 45 * Freescale RCPM Wakeup Source Device Tree Bindings ··· 50 44 51 45 - fsl,rcpm-wakeup: Consists of a phandle to the rcpm node and the IPPDEXPCR 52 46 register cells. The number of IPPDEXPCR register cells is defined in 53 - "fsl,#rcpm-wakeup-cells" in the rcpm node. The first register cell is 47 + "#fsl,rcpm-wakeup-cells" in the rcpm node. The first register cell is 54 48 the bit mask that should be set in IPPDEXPCR0, and the second register 55 49 cell is for IPPDEXPCR1, and so on. 56 50