ns2.dtsi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * BSD LICENSE
  3. *
  4. * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Broadcom Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /memreserve/ 0x81000000 0x00200000;
  33. #include <dt-bindings/interrupt-controller/arm-gic.h>
  34. /memreserve/ 0x84b00000 0x00000008;
  35. / {
  36. compatible = "brcm,ns2";
  37. interrupt-parent = <&gic>;
  38. #address-cells = <2>;
  39. #size-cells = <2>;
  40. cpus {
  41. #address-cells = <2>;
  42. #size-cells = <0>;
  43. cpu@0 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a57", "arm,armv8";
  46. reg = <0 0>;
  47. enable-method = "spin-table";
  48. cpu-release-addr = <0 0x84b00000>;
  49. };
  50. cpu@1 {
  51. device_type = "cpu";
  52. compatible = "arm,cortex-a57", "arm,armv8";
  53. reg = <0 1>;
  54. enable-method = "spin-table";
  55. cpu-release-addr = <0 0x84b00000>;
  56. };
  57. cpu@2 {
  58. device_type = "cpu";
  59. compatible = "arm,cortex-a57", "arm,armv8";
  60. reg = <0 2>;
  61. enable-method = "spin-table";
  62. cpu-release-addr = <0 0x84b00000>;
  63. };
  64. cpu@3 {
  65. device_type = "cpu";
  66. compatible = "arm,cortex-a57", "arm,armv8";
  67. reg = <0 3>;
  68. enable-method = "spin-table";
  69. cpu-release-addr = <0 0x84b00000>;
  70. };
  71. };
  72. timer {
  73. compatible = "arm,armv8-timer";
  74. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) |
  75. IRQ_TYPE_EDGE_RISING)>,
  76. <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) |
  77. IRQ_TYPE_EDGE_RISING)>,
  78. <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) |
  79. IRQ_TYPE_EDGE_RISING)>,
  80. <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) |
  81. IRQ_TYPE_EDGE_RISING)>;
  82. };
  83. soc: soc {
  84. compatible = "simple-bus";
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. ranges = <0 0 0 0xffffffff>;
  88. gic: interrupt-controller@65210000 {
  89. compatible = "arm,gic-400";
  90. #interrupt-cells = <3>;
  91. interrupt-controller;
  92. reg = <0x65210000 0x1000>,
  93. <0x65220000 0x1000>,
  94. <0x65240000 0x2000>,
  95. <0x65260000 0x1000>;
  96. };
  97. uart3: serial@66130000 {
  98. compatible = "snps,dw-apb-uart";
  99. reg = <0x66130000 0x100>;
  100. interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>;
  101. reg-shift = <2>;
  102. reg-io-width = <4>;
  103. clock-frequency = <23961600>;
  104. status = "disabled";
  105. };
  106. };
  107. };