2
0

033-v6.0-0006-arm64-dts-Add-DTS-files-for-bcmbca-SoC-BCM6813.patchgit 4.7 KB

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