031-v6.5-0004-ARM-dts-BCM5301X-Relicense-Hauke-s-code-to-the-GPL-2.patch 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. From b3b3cd885ed39cb4b38319a1c4fa4e41db6fee72 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Mon, 15 May 2023 17:19:20 +0200
  4. Subject: [PATCH] ARM: dts: BCM5301X: Relicense Hauke's code to the GPL 2.0+ /
  5. MIT
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Move code added by Hauke to the bcm-ns.dtsi which uses dual licensing.
  10. That syncs more Northstar code to be based on the same licensing schema.
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Cc: Hauke Mehrtens <[email protected]>
  13. Acked-by: Hauke Mehrtens <[email protected]>
  14. Link: https://lore.kernel.org/r/[email protected]
  15. Signed-off-by: Florian Fainelli <[email protected]>
  16. ---
  17. arch/arm/boot/dts/bcm-ns.dtsi | 90 +++++++++++++++++++++++++++++++++
  18. arch/arm/boot/dts/bcm5301x.dtsi | 85 -------------------------------
  19. 2 files changed, 90 insertions(+), 85 deletions(-)
  20. --- a/arch/arm/boot/dts/bcm-ns.dtsi
  21. +++ b/arch/arm/boot/dts/bcm-ns.dtsi
  22. @@ -1,4 +1,7 @@
  23. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  24. +/*
  25. + * Copyright 2013-2014 Hauke Mehrtens <[email protected]>
  26. + */
  27. #include <dt-bindings/clock/bcm-nsp.h>
  28. #include <dt-bindings/gpio/gpio.h>
  29. @@ -7,6 +10,81 @@
  30. #include <dt-bindings/interrupt-controller/arm-gic.h>
  31. / {
  32. + interrupt-parent = <&gic>;
  33. + #address-cells = <1>;
  34. + #size-cells = <1>;
  35. +
  36. + chipcommon-a-bus@18000000 {
  37. + compatible = "simple-bus";
  38. + ranges = <0x00000000 0x18000000 0x00001000>;
  39. + #address-cells = <1>;
  40. + #size-cells = <1>;
  41. +
  42. + uart0: serial@300 {
  43. + compatible = "ns16550";
  44. + reg = <0x0300 0x100>;
  45. + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  46. + clocks = <&iprocslow>;
  47. + status = "disabled";
  48. + };
  49. +
  50. + uart1: serial@400 {
  51. + compatible = "ns16550";
  52. + reg = <0x0400 0x100>;
  53. + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  54. + clocks = <&iprocslow>;
  55. + pinctrl-names = "default";
  56. + pinctrl-0 = <&pinmux_uart1>;
  57. + status = "disabled";
  58. + };
  59. + };
  60. +
  61. + mpcore-bus@19000000 {
  62. + compatible = "simple-bus";
  63. + ranges = <0x00000000 0x19000000 0x00023000>;
  64. + #address-cells = <1>;
  65. + #size-cells = <1>;
  66. +
  67. + scu@20000 {
  68. + compatible = "arm,cortex-a9-scu";
  69. + reg = <0x20000 0x100>;
  70. + };
  71. +
  72. + timer@20200 {
  73. + compatible = "arm,cortex-a9-global-timer";
  74. + reg = <0x20200 0x100>;
  75. + interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
  76. + clocks = <&periph_clk>;
  77. + };
  78. +
  79. + timer@20600 {
  80. + compatible = "arm,cortex-a9-twd-timer";
  81. + reg = <0x20600 0x20>;
  82. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
  83. + IRQ_TYPE_EDGE_RISING)>;
  84. + clocks = <&periph_clk>;
  85. + };
  86. +
  87. + gic: interrupt-controller@21000 {
  88. + compatible = "arm,cortex-a9-gic";
  89. + #interrupt-cells = <3>;
  90. + #address-cells = <0>;
  91. + interrupt-controller;
  92. + reg = <0x21000 0x1000>,
  93. + <0x20100 0x100>;
  94. + };
  95. +
  96. + L2: cache-controller@22000 {
  97. + compatible = "arm,pl310-cache";
  98. + reg = <0x22000 0x1000>;
  99. + cache-unified;
  100. + arm,shared-override;
  101. + prefetch-data = <1>;
  102. + prefetch-instr = <1>;
  103. + cache-level = <2>;
  104. + };
  105. + };
  106. +
  107. axi@18000000 {
  108. compatible = "brcm,bus-axi";
  109. reg = <0x18000000 0x1000>;
  110. @@ -216,6 +294,18 @@
  111. };
  112. };
  113. + nand_controller: nand-controller@18028000 {
  114. + compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
  115. + reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
  116. + reg-names = "nand", "iproc-idm", "iproc-ext";
  117. + interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  118. +
  119. + #address-cells = <1>;
  120. + #size-cells = <0>;
  121. +
  122. + brcm,nand-has-wp;
  123. + };
  124. +
  125. thermal-zones {
  126. cpu_thermal: cpu-thermal {
  127. polling-delay-passive = <0>;
  128. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  129. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  130. @@ -11,41 +11,7 @@
  131. #include "bcm-ns.dtsi"
  132. / {
  133. - #address-cells = <1>;
  134. - #size-cells = <1>;
  135. - interrupt-parent = <&gic>;
  136. -
  137. - chipcommon-a-bus@18000000 {
  138. - compatible = "simple-bus";
  139. - ranges = <0x00000000 0x18000000 0x00001000>;
  140. - #address-cells = <1>;
  141. - #size-cells = <1>;
  142. -
  143. - uart0: serial@300 {
  144. - compatible = "ns16550";
  145. - reg = <0x0300 0x100>;
  146. - interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  147. - clocks = <&iprocslow>;
  148. - status = "disabled";
  149. - };
  150. -
  151. - uart1: serial@400 {
  152. - compatible = "ns16550";
  153. - reg = <0x0400 0x100>;
  154. - interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  155. - clocks = <&iprocslow>;
  156. - pinctrl-names = "default";
  157. - pinctrl-0 = <&pinmux_uart1>;
  158. - status = "disabled";
  159. - };
  160. - };
  161. -
  162. mpcore-bus@19000000 {
  163. - compatible = "simple-bus";
  164. - ranges = <0x00000000 0x19000000 0x00023000>;
  165. - #address-cells = <1>;
  166. - #size-cells = <1>;
  167. -
  168. a9pll: arm_clk@0 {
  169. #clock-cells = <0>;
  170. compatible = "brcm,nsp-armpll";
  171. @@ -53,26 +19,6 @@
  172. reg = <0x00000 0x1000>;
  173. };
  174. - scu@20000 {
  175. - compatible = "arm,cortex-a9-scu";
  176. - reg = <0x20000 0x100>;
  177. - };
  178. -
  179. - timer@20200 {
  180. - compatible = "arm,cortex-a9-global-timer";
  181. - reg = <0x20200 0x100>;
  182. - interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
  183. - clocks = <&periph_clk>;
  184. - };
  185. -
  186. - timer@20600 {
  187. - compatible = "arm,cortex-a9-twd-timer";
  188. - reg = <0x20600 0x20>;
  189. - interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
  190. - IRQ_TYPE_EDGE_RISING)>;
  191. - clocks = <&periph_clk>;
  192. - };
  193. -
  194. watchdog@20620 {
  195. compatible = "arm,cortex-a9-twd-wdt";
  196. reg = <0x20620 0x20>;
  197. @@ -80,25 +26,6 @@
  198. IRQ_TYPE_EDGE_RISING)>;
  199. clocks = <&periph_clk>;
  200. };
  201. -
  202. - gic: interrupt-controller@21000 {
  203. - compatible = "arm,cortex-a9-gic";
  204. - #interrupt-cells = <3>;
  205. - #address-cells = <0>;
  206. - interrupt-controller;
  207. - reg = <0x21000 0x1000>,
  208. - <0x20100 0x100>;
  209. - };
  210. -
  211. - L2: cache-controller@22000 {
  212. - compatible = "arm,pl310-cache";
  213. - reg = <0x22000 0x1000>;
  214. - cache-unified;
  215. - arm,shared-override;
  216. - prefetch-data = <1>;
  217. - prefetch-instr = <1>;
  218. - cache-level = <2>;
  219. - };
  220. };
  221. pmu {
  222. @@ -301,18 +228,6 @@
  223. };
  224. };
  225. - nand_controller: nand-controller@18028000 {
  226. - compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
  227. - reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
  228. - reg-names = "nand", "iproc-idm", "iproc-ext";
  229. - interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  230. -
  231. - #address-cells = <1>;
  232. - #size-cells = <0>;
  233. -
  234. - brcm,nand-has-wp;
  235. - };
  236. -
  237. spi@18029200 {
  238. compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
  239. reg = <0x18029200 0x184>,