sunplus-sp7021-achip.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for Sunplus SP7021
  4. *
  5. * Copyright (C) 2021 Sunplus Technology Co.
  6. */
  7. #include "sunplus-sp7021.dtsi"
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. / {
  10. compatible = "sunplus,sp7021-achip", "sunplus,sp7021";
  11. model = "Sunplus SP7021 (CA7)";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. interrupt-parent = <&gic>;
  15. cpus {
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. cpu0: cpu@0 {
  19. compatible = "arm,cortex-a7";
  20. device_type = "cpu";
  21. reg = <0>;
  22. clock-frequency = <931000000>;
  23. };
  24. cpu1: cpu@1 {
  25. compatible = "arm,cortex-a7";
  26. device_type = "cpu";
  27. reg = <1>;
  28. clock-frequency = <931000000>;
  29. };
  30. cpu2: cpu@2 {
  31. compatible = "arm,cortex-a7";
  32. device_type = "cpu";
  33. reg = <2>;
  34. clock-frequency = <931000000>;
  35. };
  36. cpu3: cpu@3 {
  37. compatible = "arm,cortex-a7";
  38. device_type = "cpu";
  39. reg = <3>;
  40. clock-frequency = <931000000>;
  41. };
  42. };
  43. gic: interrupt-controller@9f101000 {
  44. compatible = "arm,cortex-a7-gic";
  45. interrupt-controller;
  46. #interrupt-cells = <3>;
  47. reg = <0x9f101000 0x1000>,
  48. <0x9f102000 0x2000>,
  49. <0x9f104000 0x2000>,
  50. <0x9f106000 0x2000>;
  51. };
  52. timer {
  53. compatible = "arm,armv7-timer";
  54. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  55. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  56. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  57. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  58. clock-frequency = <XTAL>;
  59. arm,cpu-registers-not-fw-configured;
  60. };
  61. arm-pmu {
  62. compatible = "arm,cortex-a7-pmu";
  63. interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
  64. <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
  65. <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
  66. <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
  67. interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  68. };
  69. soc@9c000000 {
  70. intc: interrupt-controller@780 {
  71. interrupt-parent = <&gic>;
  72. interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, /* EXT_INT0 */
  73. <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; /* EXT_INT1 */
  74. };
  75. };
  76. };