cpus.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ==================
  2. C-SKY CPU Bindings
  3. ==================
  4. The device tree allows to describe the layout of CPUs in a system through
  5. the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
  6. defining properties for every cpu.
  7. Only SMP system need to care about the cpus node and single processor
  8. needn't define cpus node at all.
  9. =====================================
  10. cpus and cpu node bindings definition
  11. =====================================
  12. - cpus node
  13. Description: Container of cpu nodes
  14. The node name must be "cpus".
  15. A cpus node must define the following properties:
  16. - #address-cells
  17. Usage: required
  18. Value type: <u32>
  19. Definition: must be set to 1
  20. - #size-cells
  21. Usage: required
  22. Value type: <u32>
  23. Definition: must be set to 0
  24. - cpu node
  25. Description: Describes one of SMP cores
  26. PROPERTIES
  27. - device_type
  28. Usage: required
  29. Value type: <string>
  30. Definition: must be "cpu"
  31. - reg
  32. Usage: required
  33. Value type: <u32>
  34. Definition: CPU index
  35. - compatible:
  36. Usage: required
  37. Value type: <string>
  38. Definition: must contain "csky", eg:
  39. "csky,610"
  40. "csky,807"
  41. "csky,810"
  42. "csky,860"
  43. Example:
  44. --------
  45. cpus {
  46. #address-cells = <1>;
  47. #size-cells = <0>;
  48. cpu@0 {
  49. device_type = "cpu";
  50. reg = <0>;
  51. status = "ok";
  52. };
  53. cpu@1 {
  54. device_type = "cpu";
  55. reg = <1>;
  56. status = "ok";
  57. };
  58. };