tqm8548.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * TQM8548 Device Tree Source
  4. *
  5. * Copyright 2006 Freescale Semiconductor Inc.
  6. * Copyright 2008 Wolfgang Grandegger <[email protected]>
  7. */
  8. /dts-v1/;
  9. / {
  10. model = "tqc,tqm8548";
  11. compatible = "tqc,tqm8548";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. aliases {
  15. ethernet0 = &enet0;
  16. ethernet1 = &enet1;
  17. ethernet2 = &enet2;
  18. ethernet3 = &enet3;
  19. serial0 = &serial0;
  20. serial1 = &serial1;
  21. pci0 = &pci0;
  22. pci1 = &pci1;
  23. };
  24. cpus {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. PowerPC,8548@0 {
  28. device_type = "cpu";
  29. reg = <0>;
  30. d-cache-line-size = <32>; // 32 bytes
  31. i-cache-line-size = <32>; // 32 bytes
  32. d-cache-size = <0x8000>; // L1, 32K
  33. i-cache-size = <0x8000>; // L1, 32K
  34. next-level-cache = <&L2>;
  35. };
  36. };
  37. memory {
  38. device_type = "memory";
  39. reg = <0x00000000 0x00000000>; // Filled in by U-Boot
  40. };
  41. soc@e0000000 {
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. device_type = "soc";
  45. ranges = <0x0 0xe0000000 0x100000>;
  46. bus-frequency = <0>;
  47. compatible = "fsl,mpc8548-immr", "simple-bus";
  48. ecm-law@0 {
  49. compatible = "fsl,ecm-law";
  50. reg = <0x0 0x1000>;
  51. fsl,num-laws = <10>;
  52. };
  53. ecm@1000 {
  54. compatible = "fsl,mpc8548-ecm", "fsl,ecm";
  55. reg = <0x1000 0x1000>;
  56. interrupts = <17 2>;
  57. interrupt-parent = <&mpic>;
  58. };
  59. memory-controller@2000 {
  60. compatible = "fsl,mpc8548-memory-controller";
  61. reg = <0x2000 0x1000>;
  62. interrupt-parent = <&mpic>;
  63. interrupts = <18 2>;
  64. };
  65. L2: l2-cache-controller@20000 {
  66. compatible = "fsl,mpc8548-l2-cache-controller";
  67. reg = <0x20000 0x1000>;
  68. cache-line-size = <32>; // 32 bytes
  69. cache-size = <0x80000>; // L2, 512K
  70. interrupt-parent = <&mpic>;
  71. interrupts = <16 2>;
  72. };
  73. i2c@3000 {
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. cell-index = <0>;
  77. compatible = "fsl-i2c";
  78. reg = <0x3000 0x100>;
  79. interrupts = <43 2>;
  80. interrupt-parent = <&mpic>;
  81. dfsrr;
  82. dtt@48 {
  83. compatible = "national,lm75";
  84. reg = <0x48>;
  85. };
  86. rtc@68 {
  87. compatible = "dallas,ds1337";
  88. reg = <0x68>;
  89. };
  90. };
  91. i2c@3100 {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. cell-index = <1>;
  95. compatible = "fsl-i2c";
  96. reg = <0x3100 0x100>;
  97. interrupts = <43 2>;
  98. interrupt-parent = <&mpic>;
  99. dfsrr;
  100. };
  101. dma@21300 {
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
  105. reg = <0x21300 0x4>;
  106. ranges = <0x0 0x21100 0x200>;
  107. cell-index = <0>;
  108. dma-channel@0 {
  109. compatible = "fsl,mpc8548-dma-channel",
  110. "fsl,eloplus-dma-channel";
  111. reg = <0x0 0x80>;
  112. cell-index = <0>;
  113. interrupt-parent = <&mpic>;
  114. interrupts = <20 2>;
  115. };
  116. dma-channel@80 {
  117. compatible = "fsl,mpc8548-dma-channel",
  118. "fsl,eloplus-dma-channel";
  119. reg = <0x80 0x80>;
  120. cell-index = <1>;
  121. interrupt-parent = <&mpic>;
  122. interrupts = <21 2>;
  123. };
  124. dma-channel@100 {
  125. compatible = "fsl,mpc8548-dma-channel",
  126. "fsl,eloplus-dma-channel";
  127. reg = <0x100 0x80>;
  128. cell-index = <2>;
  129. interrupt-parent = <&mpic>;
  130. interrupts = <22 2>;
  131. };
  132. dma-channel@180 {
  133. compatible = "fsl,mpc8548-dma-channel",
  134. "fsl,eloplus-dma-channel";
  135. reg = <0x180 0x80>;
  136. cell-index = <3>;
  137. interrupt-parent = <&mpic>;
  138. interrupts = <23 2>;
  139. };
  140. };
  141. enet0: ethernet@24000 {
  142. #address-cells = <1>;
  143. #size-cells = <1>;
  144. cell-index = <0>;
  145. device_type = "network";
  146. model = "eTSEC";
  147. compatible = "gianfar";
  148. reg = <0x24000 0x1000>;
  149. ranges = <0x0 0x24000 0x1000>;
  150. local-mac-address = [ 00 00 00 00 00 00 ];
  151. interrupts = <29 2 30 2 34 2>;
  152. interrupt-parent = <&mpic>;
  153. tbi-handle = <&tbi0>;
  154. phy-handle = <&phy2>;
  155. mdio@520 {
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. compatible = "fsl,gianfar-mdio";
  159. reg = <0x520 0x20>;
  160. phy1: ethernet-phy@0 {
  161. interrupt-parent = <&mpic>;
  162. interrupts = <8 1>;
  163. reg = <1>;
  164. };
  165. phy2: ethernet-phy@1 {
  166. interrupt-parent = <&mpic>;
  167. interrupts = <8 1>;
  168. reg = <2>;
  169. };
  170. phy3: ethernet-phy@3 {
  171. interrupt-parent = <&mpic>;
  172. interrupts = <8 1>;
  173. reg = <3>;
  174. };
  175. phy4: ethernet-phy@4 {
  176. interrupt-parent = <&mpic>;
  177. interrupts = <8 1>;
  178. reg = <4>;
  179. };
  180. phy5: ethernet-phy@5 {
  181. interrupt-parent = <&mpic>;
  182. interrupts = <8 1>;
  183. reg = <5>;
  184. };
  185. tbi0: tbi-phy@11 {
  186. reg = <0x11>;
  187. device_type = "tbi-phy";
  188. };
  189. };
  190. };
  191. enet1: ethernet@25000 {
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. cell-index = <1>;
  195. device_type = "network";
  196. model = "eTSEC";
  197. compatible = "gianfar";
  198. reg = <0x25000 0x1000>;
  199. ranges = <0x0 0x25000 0x1000>;
  200. local-mac-address = [ 00 00 00 00 00 00 ];
  201. interrupts = <35 2 36 2 40 2>;
  202. interrupt-parent = <&mpic>;
  203. tbi-handle = <&tbi1>;
  204. phy-handle = <&phy1>;
  205. mdio@520 {
  206. #address-cells = <1>;
  207. #size-cells = <0>;
  208. compatible = "fsl,gianfar-tbi";
  209. reg = <0x520 0x20>;
  210. tbi1: tbi-phy@11 {
  211. reg = <0x11>;
  212. device_type = "tbi-phy";
  213. };
  214. };
  215. };
  216. enet2: ethernet@26000 {
  217. #address-cells = <1>;
  218. #size-cells = <1>;
  219. cell-index = <2>;
  220. device_type = "network";
  221. model = "eTSEC";
  222. compatible = "gianfar";
  223. reg = <0x26000 0x1000>;
  224. ranges = <0x0 0x26000 0x1000>;
  225. local-mac-address = [ 00 00 00 00 00 00 ];
  226. interrupts = <31 2 32 2 33 2>;
  227. interrupt-parent = <&mpic>;
  228. tbi-handle = <&tbi2>;
  229. phy-handle = <&phy4>;
  230. mdio@520 {
  231. #address-cells = <1>;
  232. #size-cells = <0>;
  233. compatible = "fsl,gianfar-tbi";
  234. reg = <0x520 0x20>;
  235. tbi2: tbi-phy@11 {
  236. reg = <0x11>;
  237. device_type = "tbi-phy";
  238. };
  239. };
  240. };
  241. enet3: ethernet@27000 {
  242. #address-cells = <1>;
  243. #size-cells = <1>;
  244. cell-index = <3>;
  245. device_type = "network";
  246. model = "eTSEC";
  247. compatible = "gianfar";
  248. reg = <0x27000 0x1000>;
  249. ranges = <0x0 0x27000 0x1000>;
  250. local-mac-address = [ 00 00 00 00 00 00 ];
  251. interrupts = <37 2 38 2 39 2>;
  252. interrupt-parent = <&mpic>;
  253. tbi-handle = <&tbi3>;
  254. phy-handle = <&phy5>;
  255. mdio@520 {
  256. #address-cells = <1>;
  257. #size-cells = <0>;
  258. compatible = "fsl,gianfar-tbi";
  259. reg = <0x520 0x20>;
  260. tbi3: tbi-phy@11 {
  261. reg = <0x11>;
  262. device_type = "tbi-phy";
  263. };
  264. };
  265. };
  266. serial0: serial@4500 {
  267. cell-index = <0>;
  268. device_type = "serial";
  269. compatible = "fsl,ns16550", "ns16550";
  270. reg = <0x4500 0x100>; // reg base, size
  271. clock-frequency = <0>; // should we fill in in uboot?
  272. current-speed = <115200>;
  273. interrupts = <42 2>;
  274. interrupt-parent = <&mpic>;
  275. };
  276. serial1: serial@4600 {
  277. cell-index = <1>;
  278. device_type = "serial";
  279. compatible = "fsl,ns16550", "ns16550";
  280. reg = <0x4600 0x100>; // reg base, size
  281. clock-frequency = <0>; // should we fill in in uboot?
  282. current-speed = <115200>;
  283. interrupts = <42 2>;
  284. interrupt-parent = <&mpic>;
  285. };
  286. global-utilities@e0000 { // global utilities reg
  287. compatible = "fsl,mpc8548-guts";
  288. reg = <0xe0000 0x1000>;
  289. fsl,has-rstcr;
  290. };
  291. mpic: pic@40000 {
  292. interrupt-controller;
  293. #address-cells = <0>;
  294. #interrupt-cells = <2>;
  295. reg = <0x40000 0x40000>;
  296. compatible = "chrp,open-pic";
  297. device_type = "open-pic";
  298. };
  299. };
  300. localbus@e0005000 {
  301. compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
  302. "simple-bus";
  303. #address-cells = <2>;
  304. #size-cells = <1>;
  305. reg = <0xe0005000 0x100>; // BRx, ORx, etc.
  306. interrupt-parent = <&mpic>;
  307. interrupts = <19 2>;
  308. ranges = <
  309. 0 0x0 0xfc000000 0x04000000 // NOR FLASH bank 1
  310. 1 0x0 0xf8000000 0x08000000 // NOR FLASH bank 0
  311. 2 0x0 0xe3000000 0x00008000 // CAN (2 x CC770)
  312. 3 0x0 0xe3010000 0x00008000 // NAND FLASH
  313. >;
  314. flash@1,0 {
  315. #address-cells = <1>;
  316. #size-cells = <1>;
  317. compatible = "cfi-flash";
  318. reg = <1 0x0 0x8000000>;
  319. bank-width = <4>;
  320. device-width = <1>;
  321. partition@0 {
  322. label = "kernel";
  323. reg = <0x00000000 0x00200000>;
  324. };
  325. partition@200000 {
  326. label = "root";
  327. reg = <0x00200000 0x00300000>;
  328. };
  329. partition@500000 {
  330. label = "user";
  331. reg = <0x00500000 0x07a00000>;
  332. };
  333. partition@7f00000 {
  334. label = "env1";
  335. reg = <0x07f00000 0x00040000>;
  336. };
  337. partition@7f40000 {
  338. label = "env2";
  339. reg = <0x07f40000 0x00040000>;
  340. };
  341. partition@7f80000 {
  342. label = "u-boot";
  343. reg = <0x07f80000 0x00080000>;
  344. read-only;
  345. };
  346. };
  347. /* Note: CAN support needs be enabled in U-Boot */
  348. can@2,0 {
  349. compatible = "bosch,cc770"; // Bosch CC770
  350. reg = <2 0x0 0x100>;
  351. interrupts = <4 1>;
  352. interrupt-parent = <&mpic>;
  353. bosch,external-clock-frequency = <16000000>;
  354. bosch,disconnect-rx1-input;
  355. bosch,disconnect-tx1-output;
  356. bosch,iso-low-speed-mux;
  357. bosch,clock-out-frequency = <16000000>;
  358. };
  359. can@2,100 {
  360. compatible = "bosch,cc770"; // Bosch CC770
  361. reg = <2 0x100 0x100>;
  362. interrupts = <4 1>;
  363. interrupt-parent = <&mpic>;
  364. bosch,external-clock-frequency = <16000000>;
  365. bosch,disconnect-rx1-input;
  366. bosch,disconnect-tx1-output;
  367. bosch,iso-low-speed-mux;
  368. };
  369. /* Note: NAND support needs to be enabled in U-Boot */
  370. upm@3,0 {
  371. #address-cells = <0>;
  372. #size-cells = <0>;
  373. compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand";
  374. reg = <3 0x0 0x800>;
  375. fsl,upm-addr-offset = <0x10>;
  376. fsl,upm-cmd-offset = <0x08>;
  377. /* Micron MT29F8G08FAB multi-chip device */
  378. fsl,upm-addr-line-cs-offsets = <0x0 0x200>;
  379. fsl,upm-wait-flags = <0x5>;
  380. chip-delay = <25>; // in micro-seconds
  381. nand@0 {
  382. #address-cells = <1>;
  383. #size-cells = <1>;
  384. partition@0 {
  385. label = "fs";
  386. reg = <0x00000000 0x10000000>;
  387. };
  388. };
  389. };
  390. };
  391. pci0: pci@e0008000 {
  392. #interrupt-cells = <1>;
  393. #size-cells = <2>;
  394. #address-cells = <3>;
  395. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  396. device_type = "pci";
  397. reg = <0xe0008000 0x1000>;
  398. clock-frequency = <33333333>;
  399. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  400. interrupt-map = <
  401. /* IDSEL 28 */
  402. 0xe000 0 0 1 &mpic 2 1
  403. 0xe000 0 0 2 &mpic 3 1
  404. 0xe000 0 0 3 &mpic 6 1
  405. 0xe000 0 0 4 &mpic 5 1
  406. /* IDSEL 11 */
  407. 0x5800 0 0 1 &mpic 6 1
  408. 0x5800 0 0 2 &mpic 5 1
  409. >;
  410. interrupt-parent = <&mpic>;
  411. interrupts = <24 2>;
  412. bus-range = <0 0>;
  413. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  414. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  415. };
  416. pci1: pcie@e000a000 {
  417. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  418. interrupt-map = <
  419. /* IDSEL 0x0 (PEX) */
  420. 0x00000 0 0 1 &mpic 0 1
  421. 0x00000 0 0 2 &mpic 1 1
  422. 0x00000 0 0 3 &mpic 2 1
  423. 0x00000 0 0 4 &mpic 3 1>;
  424. interrupt-parent = <&mpic>;
  425. interrupts = <26 2>;
  426. bus-range = <0 0xff>;
  427. ranges = <0x02000000 0 0xc0000000 0xc0000000 0 0x20000000
  428. 0x01000000 0 0x00000000 0xef000000 0 0x08000000>;
  429. clock-frequency = <33333333>;
  430. #interrupt-cells = <1>;
  431. #size-cells = <2>;
  432. #address-cells = <3>;
  433. reg = <0xe000a000 0x1000>;
  434. compatible = "fsl,mpc8548-pcie";
  435. device_type = "pci";
  436. pcie@0 {
  437. reg = <0 0 0 0 0>;
  438. #size-cells = <2>;
  439. #address-cells = <3>;
  440. device_type = "pci";
  441. ranges = <0x02000000 0 0xc0000000 0x02000000 0
  442. 0xc0000000 0 0x20000000
  443. 0x01000000 0 0x00000000 0x01000000 0
  444. 0x00000000 0 0x08000000>;
  445. };
  446. };
  447. };