033-v6.0-0003-ARM64-dts-Add-DTS-files-for-bcmbca-SoC-BCM6858.patchgit 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. From e663e06bd3f21e64bc2163910f626af68add6308 Mon Sep 17 00:00:00 2001
  2. From: Anand Gore <[email protected]>
  3. Date: Wed, 1 Jun 2022 13:19:56 -0700
  4. Subject: [PATCH] ARM64: dts: Add DTS files for bcmbca SoC BCM6858
  5. Add DTS for ARMv8 based broadband SoC BCM6858. bcm6858.dtsi is the SoC
  6. description DTS header and bcm96858.dts is a simple DTS file for
  7. Broadcom BCM96858 Reference board that only enables the UART port.
  8. Signed-off-by: Anand Gore <[email protected]>
  9. Signed-off-by: Florian Fainelli <[email protected]>
  10. ---
  11. arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +-
  12. .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 121 ++++++++++++++++++
  13. .../boot/dts/broadcom/bcmbca/bcm96858.dts | 30 +++++
  14. 3 files changed, 153 insertions(+), 1 deletion(-)
  15. create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
  16. create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts
  17. --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
  18. +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
  19. @@ -1,3 +1,4 @@
  20. # SPDX-License-Identifier: GPL-2.0
  21. dtb-$(CONFIG_ARCH_BCMBCA) += bcm94912.dtb \
  22. - bcm963158.dtb
  23. + bcm963158.dtb \
  24. + bcm96858.dtb
  25. --- /dev/null
  26. +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
  27. @@ -0,0 +1,121 @@
  28. +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  29. +/*
  30. + * Copyright 2022 Broadcom Ltd.
  31. + */
  32. +
  33. +#include <dt-bindings/interrupt-controller/irq.h>
  34. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  35. +
  36. +/ {
  37. + compatible = "brcm,bcm6858", "brcm,bcmbca";
  38. + #address-cells = <2>;
  39. + #size-cells = <2>;
  40. +
  41. + interrupt-parent = <&gic>;
  42. +
  43. + cpus {
  44. + #address-cells = <2>;
  45. + #size-cells = <0>;
  46. +
  47. + B53_0: cpu@0 {
  48. + compatible = "brcm,brahma-b53";
  49. + device_type = "cpu";
  50. + reg = <0x0 0x0>;
  51. + next-level-cache = <&L2_0>;
  52. + enable-method = "psci";
  53. + };
  54. +
  55. + B53_1: cpu@1 {
  56. + compatible = "brcm,brahma-b53";
  57. + device_type = "cpu";
  58. + reg = <0x0 0x1>;
  59. + next-level-cache = <&L2_0>;
  60. + enable-method = "psci";
  61. + };
  62. +
  63. + B53_2: cpu@2 {
  64. + compatible = "brcm,brahma-b53";
  65. + device_type = "cpu";
  66. + reg = <0x0 0x2>;
  67. + next-level-cache = <&L2_0>;
  68. + enable-method = "psci";
  69. + };
  70. +
  71. + B53_3: cpu@3 {
  72. + compatible = "brcm,brahma-b53";
  73. + device_type = "cpu";
  74. + reg = <0x0 0x3>;
  75. + next-level-cache = <&L2_0>;
  76. + enable-method = "psci";
  77. + };
  78. + L2_0: l2-cache0 {
  79. + compatible = "cache";
  80. + };
  81. + };
  82. +
  83. + timer {
  84. + compatible = "arm,armv8-timer";
  85. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  86. + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  87. + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  88. + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  89. + };
  90. +
  91. + pmu: pmu {
  92. + compatible = "arm,armv8-pmuv3";
  93. + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
  94. + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
  95. + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  96. + <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  97. + interrupt-affinity = <&B53_0>, <&B53_1>,
  98. + <&B53_2>, <&B53_3>;
  99. + };
  100. +
  101. + clocks: clocks {
  102. + periph_clk:periph-clk {
  103. + compatible = "fixed-clock";
  104. + #clock-cells = <0>;
  105. + clock-frequency = <200000000>;
  106. + };
  107. + };
  108. +
  109. + psci {
  110. + compatible = "arm,psci-0.2";
  111. + method = "smc";
  112. + };
  113. +
  114. + axi@81000000 {
  115. + compatible = "simple-bus";
  116. + #address-cells = <1>;
  117. + #size-cells = <1>;
  118. + ranges = <0x0 0x0 0x81000000 0x8000>;
  119. +
  120. + gic: interrupt-controller@1000 {
  121. + compatible = "arm,gic-400";
  122. + #interrupt-cells = <3>;
  123. + interrupt-controller;
  124. + reg = <0x1000 0x1000>, /* GICD */
  125. + <0x2000 0x2000>, /* GICC */
  126. + <0x4000 0x2000>, /* GICH */
  127. + <0x6000 0x2000>; /* GICV */
  128. + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
  129. + IRQ_TYPE_LEVEL_HIGH)>;
  130. + };
  131. + };
  132. +
  133. + bus@ff800000 {
  134. + compatible = "simple-bus";
  135. + #address-cells = <1>;
  136. + #size-cells = <1>;
  137. + ranges = <0x0 0x0 0xff800000 0x62000>;
  138. +
  139. + uart0: serial@640 {
  140. + compatible = "brcm,bcm6345-uart";
  141. + reg = <0x640 0x18>;
  142. + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  143. + clocks = <&periph_clk>;
  144. + clock-names = "refclk";
  145. + status = "disabled";
  146. + };
  147. + };
  148. +};
  149. --- /dev/null
  150. +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts
  151. @@ -0,0 +1,30 @@
  152. +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  153. +/*
  154. + * Copyright 2022 Broadcom Ltd.
  155. + */
  156. +
  157. +/dts-v1/;
  158. +
  159. +#include "bcm6858.dtsi"
  160. +
  161. +/ {
  162. + model = "Broadcom BCM96858 Reference Board";
  163. + compatible = "brcm,bcm96858", "brcm,bcm6858", "brcm,bcmbca";
  164. +
  165. + aliases {
  166. + serial0 = &uart0;
  167. + };
  168. +
  169. + chosen {
  170. + stdout-path = "serial0:115200n8";
  171. + };
  172. +
  173. + memory@0 {
  174. + device_type = "memory";
  175. + reg = <0x0 0x0 0x0 0x08000000>;
  176. + };
  177. +};
  178. +
  179. +&uart0 {
  180. + status = "okay";
  181. +};