bluestone.dts 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Device Tree for Bluestone (APM821xx) board.
  4. *
  5. * Copyright (c) 2010, Applied Micro Circuits Corporation
  6. * Author: Tirumala R Marri <[email protected]>
  7. */
  8. /dts-v1/;
  9. / {
  10. #address-cells = <2>;
  11. #size-cells = <1>;
  12. model = "apm,bluestone";
  13. compatible = "apm,bluestone";
  14. dcr-parent = <&{/cpus/cpu@0}>;
  15. aliases {
  16. ethernet0 = &EMAC0;
  17. serial0 = &UART0;
  18. serial1 = &UART1;
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. cpu@0 {
  24. device_type = "cpu";
  25. model = "PowerPC,apm821xx";
  26. reg = <0x00000000>;
  27. clock-frequency = <0>; /* Filled in by U-Boot */
  28. timebase-frequency = <0>; /* Filled in by U-Boot */
  29. i-cache-line-size = <32>;
  30. d-cache-line-size = <32>;
  31. i-cache-size = <32768>;
  32. d-cache-size = <32768>;
  33. dcr-controller;
  34. dcr-access-method = "native";
  35. next-level-cache = <&L2C0>;
  36. };
  37. };
  38. memory {
  39. device_type = "memory";
  40. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  41. };
  42. UIC0: interrupt-controller0 {
  43. compatible = "ibm,uic";
  44. interrupt-controller;
  45. cell-index = <0>;
  46. dcr-reg = <0x0c0 0x009>;
  47. #address-cells = <0>;
  48. #size-cells = <0>;
  49. #interrupt-cells = <2>;
  50. };
  51. UIC1: interrupt-controller1 {
  52. compatible = "ibm,uic";
  53. interrupt-controller;
  54. cell-index = <1>;
  55. dcr-reg = <0x0d0 0x009>;
  56. #address-cells = <0>;
  57. #size-cells = <0>;
  58. #interrupt-cells = <2>;
  59. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  60. interrupt-parent = <&UIC0>;
  61. };
  62. UIC2: interrupt-controller2 {
  63. compatible = "ibm,uic";
  64. interrupt-controller;
  65. cell-index = <2>;
  66. dcr-reg = <0x0e0 0x009>;
  67. #address-cells = <0>;
  68. #size-cells = <0>;
  69. #interrupt-cells = <2>;
  70. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  71. interrupt-parent = <&UIC0>;
  72. };
  73. UIC3: interrupt-controller3 {
  74. compatible = "ibm,uic";
  75. interrupt-controller;
  76. cell-index = <3>;
  77. dcr-reg = <0x0f0 0x009>;
  78. #address-cells = <0>;
  79. #size-cells = <0>;
  80. #interrupt-cells = <2>;
  81. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  82. interrupt-parent = <&UIC0>;
  83. };
  84. OCM: ocm@400040000 {
  85. compatible = "ibm,ocm";
  86. status = "okay";
  87. cell-index = <1>;
  88. /* configured in U-Boot */
  89. reg = <4 0x00040000 0x8000>; /* 32K */
  90. };
  91. SDR0: sdr {
  92. compatible = "ibm,sdr-apm821xx";
  93. dcr-reg = <0x00e 0x002>;
  94. };
  95. CPR0: cpr {
  96. compatible = "ibm,cpr-apm821xx";
  97. dcr-reg = <0x00c 0x002>;
  98. };
  99. L2C0: l2c {
  100. compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
  101. dcr-reg = <0x020 0x008
  102. 0x030 0x008>;
  103. cache-line-size = <32>;
  104. cache-size = <262144>;
  105. interrupt-parent = <&UIC1>;
  106. interrupts = <11 1>;
  107. };
  108. plb {
  109. compatible = "ibm,plb4";
  110. #address-cells = <2>;
  111. #size-cells = <1>;
  112. ranges;
  113. clock-frequency = <0>; /* Filled in by U-Boot */
  114. SDRAM0: sdram {
  115. compatible = "ibm,sdram-apm821xx";
  116. dcr-reg = <0x010 0x002>;
  117. };
  118. MAL0: mcmal {
  119. compatible = "ibm,mcmal2";
  120. descriptor-memory = "ocm";
  121. dcr-reg = <0x180 0x062>;
  122. num-tx-chans = <1>;
  123. num-rx-chans = <1>;
  124. #address-cells = <0>;
  125. #size-cells = <0>;
  126. interrupt-parent = <&UIC2>;
  127. interrupts = < /*TXEOB*/ 0x6 0x4
  128. /*RXEOB*/ 0x7 0x4
  129. /*SERR*/ 0x3 0x4
  130. /*TXDE*/ 0x4 0x4
  131. /*RXDE*/ 0x5 0x4>;
  132. };
  133. POB0: opb {
  134. compatible = "ibm,opb";
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  138. clock-frequency = <0>; /* Filled in by U-Boot */
  139. EBC0: ebc {
  140. compatible = "ibm,ebc";
  141. dcr-reg = <0x012 0x002>;
  142. #address-cells = <2>;
  143. #size-cells = <1>;
  144. clock-frequency = <0>; /* Filled in by U-Boot */
  145. /* ranges property is supplied by U-Boot */
  146. ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
  147. interrupts = <0x6 0x4>;
  148. interrupt-parent = <&UIC1>;
  149. nor_flash@0,0 {
  150. compatible = "amd,s29gl512n", "cfi-flash";
  151. bank-width = <2>;
  152. reg = <0x00000000 0x00000000 0x00400000>;
  153. #address-cells = <1>;
  154. #size-cells = <1>;
  155. partition@0 {
  156. label = "kernel";
  157. reg = <0x00000000 0x00180000>;
  158. };
  159. partition@180000 {
  160. label = "env";
  161. reg = <0x00180000 0x00020000>;
  162. };
  163. partition@1a0000 {
  164. label = "u-boot";
  165. reg = <0x001a0000 0x00060000>;
  166. };
  167. };
  168. ndfc@1,0 {
  169. compatible = "ibm,ndfc";
  170. reg = <0x00000003 0x00000000 0x00002000>;
  171. ccr = <0x00001000>;
  172. bank-settings = <0x80002222>;
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. /* 2Gb Nand Flash */
  176. nand {
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. partition@0 {
  180. label = "firmware";
  181. reg = <0x00000000 0x00C00000>;
  182. };
  183. partition@c00000 {
  184. label = "environment";
  185. reg = <0x00C00000 0x00B00000>;
  186. };
  187. partition@1700000 {
  188. label = "kernel";
  189. reg = <0x01700000 0x00E00000>;
  190. };
  191. partition@2500000 {
  192. label = "root";
  193. reg = <0x02500000 0x08200000>;
  194. };
  195. partition@a700000 {
  196. label = "device-tree";
  197. reg = <0x0A700000 0x00B00000>;
  198. };
  199. partition@b200000 {
  200. label = "config";
  201. reg = <0x0B200000 0x00D00000>;
  202. };
  203. partition@bf00000 {
  204. label = "diag";
  205. reg = <0x0BF00000 0x00C00000>;
  206. };
  207. partition@cb00000 {
  208. label = "vendor";
  209. reg = <0x0CB00000 0x3500000>;
  210. };
  211. };
  212. };
  213. };
  214. UART0: serial@ef600300 {
  215. device_type = "serial";
  216. compatible = "ns16550";
  217. reg = <0xef600300 0x00000008>;
  218. virtual-reg = <0xef600300>;
  219. clock-frequency = <0>; /* Filled in by U-Boot */
  220. current-speed = <0>; /* Filled in by U-Boot */
  221. interrupt-parent = <&UIC1>;
  222. interrupts = <0x1 0x4>;
  223. };
  224. UART1: serial@ef600400 {
  225. device_type = "serial";
  226. compatible = "ns16550";
  227. reg = <0xef600400 0x00000008>;
  228. virtual-reg = <0xef600400>;
  229. clock-frequency = <0>; /* Filled in by U-Boot */
  230. current-speed = <0>; /* Filled in by U-Boot */
  231. interrupt-parent = <&UIC0>;
  232. interrupts = <0x1 0x4>;
  233. };
  234. IIC0: i2c@ef600700 {
  235. compatible = "ibm,iic";
  236. reg = <0xef600700 0x00000014>;
  237. interrupt-parent = <&UIC0>;
  238. interrupts = <0x2 0x4>;
  239. #address-cells = <1>;
  240. #size-cells = <0>;
  241. rtc@68 {
  242. compatible = "st,m41t80";
  243. reg = <0x68>;
  244. interrupt-parent = <&UIC0>;
  245. interrupts = <0x9 0x8>;
  246. };
  247. sttm@4C {
  248. compatible = "adm,adm1032";
  249. reg = <0x4C>;
  250. interrupt-parent = <&UIC1>;
  251. interrupts = <0x1E 0x8>; /* CPU_THERNAL_L */
  252. };
  253. };
  254. IIC1: i2c@ef600800 {
  255. compatible = "ibm,iic";
  256. reg = <0xef600800 0x00000014>;
  257. interrupt-parent = <&UIC0>;
  258. interrupts = <0x3 0x4>;
  259. };
  260. RGMII0: emac-rgmii@ef601500 {
  261. compatible = "ibm,rgmii";
  262. reg = <0xef601500 0x00000008>;
  263. has-mdio;
  264. };
  265. TAH0: emac-tah@ef601350 {
  266. compatible = "ibm,tah";
  267. reg = <0xef601350 0x00000030>;
  268. };
  269. EMAC0: ethernet@ef600c00 {
  270. device_type = "network";
  271. compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
  272. interrupt-parent = <&EMAC0>;
  273. interrupts = <0x0 0x1>;
  274. #interrupt-cells = <1>;
  275. #address-cells = <0>;
  276. #size-cells = <0>;
  277. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  278. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  279. reg = <0xef600c00 0x000000c4>;
  280. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  281. mal-device = <&MAL0>;
  282. mal-tx-channel = <0>;
  283. mal-rx-channel = <0>;
  284. cell-index = <0>;
  285. max-frame-size = <9000>;
  286. rx-fifo-size = <16384>;
  287. tx-fifo-size = <2048>;
  288. phy-mode = "rgmii";
  289. phy-map = <0x00000000>;
  290. rgmii-device = <&RGMII0>;
  291. rgmii-channel = <0>;
  292. tah-device = <&TAH0>;
  293. tah-channel = <0>;
  294. has-inverted-stacr-oc;
  295. has-new-stacr-staopc;
  296. };
  297. };
  298. PCIE0: pcie@d00000000 {
  299. device_type = "pci";
  300. #interrupt-cells = <1>;
  301. #size-cells = <2>;
  302. #address-cells = <3>;
  303. compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
  304. primary;
  305. port = <0x0>; /* port number */
  306. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  307. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  308. dcr-reg = <0x100 0x020>;
  309. sdr-base = <0x300>;
  310. /* Outbound ranges, one memory and one IO,
  311. * later cannot be changed
  312. */
  313. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  314. 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
  315. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  316. /* Inbound 2GB range starting at 0 */
  317. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  318. /* This drives busses 40 to 0x7f */
  319. bus-range = <0x40 0x7f>;
  320. /* Legacy interrupts (note the weird polarity, the bridge seems
  321. * to invert PCIe legacy interrupts).
  322. * We are de-swizzling here because the numbers are actually for
  323. * port of the root complex virtual P2P bridge. But I want
  324. * to avoid putting a node for it in the tree, so the numbers
  325. * below are basically de-swizzled numbers.
  326. * The real slot is on idsel 0, so the swizzling is 1:1
  327. */
  328. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  329. interrupt-map = <
  330. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  331. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  332. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  333. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  334. };
  335. };
  336. };