033-dt-bindings-add-SMP-enable-method-for-Broadcom-NSP.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From fa20071c74be69a1d84df85e5d1e72a40a156b89 Mon Sep 17 00:00:00 2001
  2. From: Kapil Hali <kapilh@broadcom.com>
  3. Date: Tue, 1 Dec 2015 11:24:05 -0500
  4. Subject: [PATCH] dt-bindings: add SMP enable-method for Broadcom NSP
  5. Add a compatible string "brcm,bcm-nsp-smp" for Broadcom's
  6. Northstar Plus CPU to the 32-bit ARM CPU device tree binding
  7. documentation file and create a new binding documentation for
  8. Northstar Plus CPU.
  9. Signed-off-by: Kapil Hali <kapilh@broadcom.com>
  10. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  11. ---
  12. .../bindings/arm/bcm/brcm,nsp-cpu-method.txt | 39 ++++++++++++++++++++++
  13. Documentation/devicetree/bindings/arm/cpus.txt | 1 +
  14. 2 files changed, 40 insertions(+)
  15. create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
  16. --- /dev/null
  17. +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
  18. @@ -0,0 +1,39 @@
  19. +Broadcom Northstar Plus SoC CPU Enable Method
  20. +---------------------------------------------
  21. +This binding defines the enable method used for starting secondary
  22. +CPUs in the following Broadcom SoCs:
  23. + BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
  24. +
  25. +The enable method is specified by defining the following required
  26. +properties in the "cpus" device tree node:
  27. + - enable-method = "brcm,bcm-nsp-smp";
  28. + - secondary-boot-reg = <...>;
  29. +
  30. +The secondary-boot-reg property is a u32 value that specifies the
  31. +physical address of the register which should hold the common
  32. +entry point for a secondary CPU. This entry is cpu node specific
  33. +and should be added per cpu. E.g., in case of NSP (BCM58625) which
  34. +is a dual core CPU SoC, this entry should be added to cpu1 node.
  35. +
  36. +
  37. +Example:
  38. + cpus {
  39. + #address-cells = <1>;
  40. + #size-cells = <0>;
  41. + enable-method = "brcm,bcm-nsp-smp";
  42. +
  43. + cpu0: cpu@0 {
  44. + device_type = "cpu";
  45. + compatible = "arm,cortex-a9";
  46. + next-level-cache = <&L2>;
  47. + reg = <0>;
  48. + };
  49. +
  50. + cpu1: cpu@1 {
  51. + device_type = "cpu";
  52. + compatible = "arm,cortex-a9";
  53. + next-level-cache = <&L2>;
  54. + reg = <1>;
  55. + secondary-boot-reg = <0xffff042c>;
  56. + };
  57. + };
  58. --- a/Documentation/devicetree/bindings/arm/cpus.txt
  59. +++ b/Documentation/devicetree/bindings/arm/cpus.txt
  60. @@ -190,6 +190,7 @@ nodes to be present and contain the prop
  61. "allwinner,sun6i-a31"
  62. "allwinner,sun8i-a23"
  63. "arm,psci"
  64. + "brcm,bcm-nsp-smp"
  65. "brcm,brahma-b15"
  66. "marvell,armada-375-smp"
  67. "marvell,armada-380-smp"