fsl_soc: add support for "fsl, soc" compatible matching
Subsystems (2)
PATCH 1/2 fsl_soc: add support for "fsl, soc" compatible matching
As we've seen, fsl,immr isn't good name for the generic purposes, because some SOCs use ccsr term. So, for generic matching, "fsl,soc" is used, whereas "fsl,immr" and "fsl,ccsr" is used for more specific matching.
Signed-off-by Anton Vorontsov <[email protected]>
--- Documentation/powerpc/booting-without-of.txt | 20 +++++------ arch/powerpc/sysdev/fsl_soc.c | 51 +++++++++++++++----------- 2 files changed, 39 insertions(+), 32 deletions(-)
Documentation/powerpc/booting-without-of.txt +9 -11
@@ -32,7 +32,7 @@ Table of Contents c) The /cpus/* nodes d) the /memory node(s) e) The /chosen node - f) the /soc<SOCname> node + f) the /soc node IV - "dtc", the device tree compiler
@@ -961,20 +961,17 @@ compatibility. under /chosen called interrupt-controller which had a phandle value that pointed to the main interrupt controller) - f) the /soc<SOCname> node + f) the /soc node This node is used to represent a system-on-a-chip (SOC) and must be present if the processor is a SOC. The top-level soc node contains - information that is global to all devices on the SOC. The node name - should contain a unit address for the SOC, which is the base address - of the memory-mapped register set for the SOC. The name of an soc - node should start with "soc", and the remainder of the name should - represent the part number for the soc. For example, the MPC8540's - soc node would be called "soc8540". + information that is global to all devices on the SOC. The name of an + soc node should be "soc". Required properties: - - device_type : Should be "soc" + - compatible : Should be "<cpu>-<immr or ccsr>", "fsl,<immr or ccsr>", + "fsl,soc", "simple-bus". - ranges : Should be defined as specified in 1) to describe the translation of SOC addresses for memory mapped SOC registers. - bus-frequency: Contains the bus frequency for the SOC node.
@@ -2913,11 +2910,12 @@ Note that the #address-cells and #size-cells for the SoC node in this example have been explicitly listed; these are likely not necessary as they are usually the same as the root node. - soc8540@e0000000 { + soc@e0000000 { #address-cells = <1>; #size-cells = <1>; #interrupt-cells = <2>; - device_type = "soc"; + compatible = "fsl,mpc8540-ccsr", "fsl,ccsr", "fsl,soc", + "simple-bus"; ranges = <00000000 e0000000 00100000> reg = <e0000000 00003000>; bus-frequency = <0>;
arch/powerpc/sysdev/fsl_soc.c +30 -21
77 lines not on this page · raw message
Signature · 1 line
1.5.2.2