kmeter1.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. /*
  2. * Keymile KMETER1 Device Tree Source
  3. *
  4. * 2008 DENX Software Engineering GmbH
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. /dts-v1/;
  12. / {
  13. model = "KMETER1";
  14. compatible = "keymile,KMETER1";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet_piggy2;
  19. ethernet1 = &enet_estar1;
  20. ethernet2 = &enet_estar2;
  21. ethernet3 = &enet_eth1;
  22. ethernet4 = &enet_eth2;
  23. ethernet5 = &enet_eth3;
  24. ethernet6 = &enet_eth4;
  25. serial0 = &serial0;
  26. };
  27. cpus {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. PowerPC,8360@0 {
  31. device_type = "cpu";
  32. reg = <0x0>;
  33. d-cache-line-size = <32>; // 32 bytes
  34. i-cache-line-size = <32>; // 32 bytes
  35. d-cache-size = <32768>; // L1, 32K
  36. i-cache-size = <32768>; // L1, 32K
  37. timebase-frequency = <0>; /* Filled in by U-Boot */
  38. bus-frequency = <0>; /* Filled in by U-Boot */
  39. clock-frequency = <0>; /* Filled in by U-Boot */
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0 0>; /* Filled in by U-Boot */
  45. };
  46. soc8360@e0000000 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. device_type = "soc";
  50. compatible = "fsl,mpc8360-immr", "simple-bus";
  51. ranges = <0x0 0xe0000000 0x00200000>;
  52. reg = <0xe0000000 0x00000200>;
  53. bus-frequency = <0>; /* Filled in by U-Boot */
  54. i2c@3000 {
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. cell-index = <0>;
  58. compatible = "fsl-i2c";
  59. reg = <0x3000 0x100>;
  60. interrupts = <14 0x8>;
  61. interrupt-parent = <&ipic>;
  62. dfsrr;
  63. };
  64. serial0: serial@4500 {
  65. cell-index = <0>;
  66. device_type = "serial";
  67. compatible = "ns16550";
  68. reg = <0x4500 0x100>;
  69. clock-frequency = <264000000>;
  70. interrupts = <9 0x8>;
  71. interrupt-parent = <&ipic>;
  72. };
  73. dma@82a8 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "fsl,mpc8360-dma", "fsl,elo-dma";
  77. reg = <0x82a8 4>;
  78. ranges = <0 0x8100 0x1a8>;
  79. interrupt-parent = <&ipic>;
  80. interrupts = <71 8>;
  81. cell-index = <0>;
  82. dma-channel@0 {
  83. compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
  84. reg = <0 0x80>;
  85. interrupt-parent = <&ipic>;
  86. interrupts = <71 8>;
  87. };
  88. dma-channel@80 {
  89. compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
  90. reg = <0x80 0x80>;
  91. interrupt-parent = <&ipic>;
  92. interrupts = <71 8>;
  93. };
  94. dma-channel@100 {
  95. compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
  96. reg = <0x100 0x80>;
  97. interrupt-parent = <&ipic>;
  98. interrupts = <71 8>;
  99. };
  100. dma-channel@180 {
  101. compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
  102. reg = <0x180 0x28>;
  103. interrupt-parent = <&ipic>;
  104. interrupts = <71 8>;
  105. };
  106. };
  107. ipic: pic@700 {
  108. #address-cells = <0>;
  109. #interrupt-cells = <2>;
  110. compatible = "fsl,pq2pro-pic", "fsl,ipic";
  111. interrupt-controller;
  112. reg = <0x700 0x100>;
  113. };
  114. par_io@1400 {
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. reg = <0x1400 0x100>;
  118. compatible = "fsl,mpc8360-par_io";
  119. num-ports = <7>;
  120. pio_ucc1: ucc_pin@0 {
  121. reg = <0>;
  122. pio-map = <
  123. /* port pin dir open_drain assignment has_irq */
  124. 0 1 3 0 2 0 /* MDIO */
  125. 0 2 1 0 1 0 /* MDC */
  126. 0 3 1 0 1 0 /* TxD0 */
  127. 0 4 1 0 1 0 /* TxD1 */
  128. 0 5 1 0 1 0 /* TxD2 */
  129. 0 6 1 0 1 0 /* TxD3 */
  130. 0 9 2 0 1 0 /* RxD0 */
  131. 0 10 2 0 1 0 /* RxD1 */
  132. 0 11 2 0 1 0 /* RxD2 */
  133. 0 12 2 0 1 0 /* RxD3 */
  134. 0 7 1 0 1 0 /* TX_EN */
  135. 0 8 1 0 1 0 /* TX_ER */
  136. 0 15 2 0 1 0 /* RX_DV */
  137. 0 16 2 0 1 0 /* RX_ER */
  138. 0 0 2 0 1 0 /* RX_CLK */
  139. 2 9 1 0 3 0 /* GTX_CLK - CLK10 */
  140. 2 8 2 0 1 0 /* GTX125 - CLK9 */
  141. >;
  142. };
  143. pio_ucc2: ucc_pin@1 {
  144. reg = <1>;
  145. pio-map = <
  146. /* port pin dir open_drain assignment has_irq */
  147. 0 1 3 0 2 0 /* MDIO */
  148. 0 2 1 0 1 0 /* MDC */
  149. 0 17 1 0 1 0 /* TxD0 */
  150. 0 18 1 0 1 0 /* TxD1 */
  151. 0 19 1 0 1 0 /* TxD2 */
  152. 0 20 1 0 1 0 /* TxD3 */
  153. 0 23 2 0 1 0 /* RxD0 */
  154. 0 24 2 0 1 0 /* RxD1 */
  155. 0 25 2 0 1 0 /* RxD2 */
  156. 0 26 2 0 1 0 /* RxD3 */
  157. 0 21 1 0 1 0 /* TX_EN */
  158. 0 22 1 0 1 0 /* TX_ER */
  159. 0 29 2 0 1 0 /* RX_DV */
  160. 0 30 2 0 1 0 /* RX_ER */
  161. 0 31 2 0 1 0 /* RX_CLK */
  162. 2 2 1 0 2 0 /* GTX_CLK - CLK3 */
  163. 2 3 2 0 1 0 /* GTX125 - CLK4 */
  164. >;
  165. };
  166. pio_ucc4: ucc_pin@3 {
  167. reg = <3>;
  168. pio-map = <
  169. /* port pin dir open_drain assignment has_irq */
  170. 0 1 3 0 2 0 /* MDIO */
  171. 0 2 1 0 1 0 /* MDC */
  172. 1 14 1 0 1 0 /* TxD0 (PB14, out, f1) */
  173. 1 15 1 0 1 0 /* TxD1 (PB15, out, f1) */
  174. 1 20 2 0 1 0 /* RxD0 (PB20, in, f1) */
  175. 1 21 2 0 1 0 /* RxD1 (PB21, in, f1) */
  176. 1 18 1 0 1 0 /* TX_EN (PB18, out, f1) */
  177. 1 26 2 0 1 0 /* RX_DV (PB26, in, f1) */
  178. 1 27 2 0 1 0 /* RX_ER (PB27, in, f1) */
  179. 2 16 2 0 1 0 /* UCC4_RMII_CLK (CLK17) */
  180. >;
  181. };
  182. pio_ucc5: ucc_pin@4 {
  183. reg = <4>;
  184. pio-map = <
  185. /* port pin dir open_drain assignment has_irq */
  186. 0 1 3 0 2 0 /* MDIO */
  187. 0 2 1 0 1 0 /* MDC */
  188. 3 0 1 0 1 0 /* TxD0 (PD0, out, f1) */
  189. 3 1 1 0 1 0 /* TxD1 (PD1, out, f1) */
  190. 3 6 2 0 1 0 /* RxD0 (PD6, in, f1) */
  191. 3 7 2 0 1 0 /* RxD1 (PD7, in, f1) */
  192. 3 4 1 0 1 0 /* TX_EN (PD4, out, f1) */
  193. 3 12 2 0 1 0 /* RX_DV (PD12, in, f1) */
  194. 3 13 2 0 1 0 /* RX_ER (PD13, in, f1) */
  195. >;
  196. };
  197. pio_ucc6: ucc_pin@5 {
  198. reg = <5>;
  199. pio-map = <
  200. /* port pin dir open_drain assignment has_irq */
  201. 0 1 3 0 2 0 /* MDIO */
  202. 0 2 1 0 1 0 /* MDC */
  203. 3 14 1 0 1 0 /* TxD0 (PD14, out, f1) */
  204. 3 15 1 0 1 0 /* TxD1 (PD15, out, f1) */
  205. 3 20 2 0 1 0 /* RxD0 (PD20, in, f1) */
  206. 3 21 2 0 1 0 /* RxD1 (PD21, in, f1) */
  207. 3 18 1 0 1 0 /* TX_EN (PD18, out, f1) */
  208. 3 26 2 0 1 0 /* RX_DV (PD26, in, f1) */
  209. 3 27 2 0 1 0 /* RX_ER (PD27, in, f1) */
  210. >;
  211. };
  212. pio_ucc7: ucc_pin@6 {
  213. reg = <6>;
  214. pio-map = <
  215. /* port pin dir open_drain assignment has_irq */
  216. 0 1 3 0 2 0 /* MDIO */
  217. 0 2 1 0 1 0 /* MDC */
  218. 4 0 1 0 1 0 /* TxD0 (PE0, out, f1) */
  219. 4 1 1 0 1 0 /* TxD1 (PE1, out, f1) */
  220. 4 6 2 0 1 0 /* RxD0 (PE6, in, f1) */
  221. 4 7 2 0 1 0 /* RxD1 (PE7, in, f1) */
  222. 4 4 1 0 1 0 /* TX_EN (PE4, out, f1) */
  223. 4 12 2 0 1 0 /* RX_DV (PE12, in, f1) */
  224. 4 13 2 0 1 0 /* RX_ER (PE13, in, f1) */
  225. >;
  226. };
  227. pio_ucc8: ucc_pin@7 {
  228. reg = <7>;
  229. pio-map = <
  230. /* port pin dir open_drain assignment has_irq */
  231. 0 1 3 0 2 0 /* MDIO */
  232. 0 2 1 0 1 0 /* MDC */
  233. 4 14 1 0 2 0 /* TxD0 (PE14, out, f2) */
  234. 4 15 1 0 1 0 /* TxD1 (PE15, out, f1) */
  235. 4 20 2 0 1 0 /* RxD0 (PE20, in, f1) */
  236. 4 21 2 0 1 0 /* RxD1 (PE21, in, f1) */
  237. 4 18 1 0 1 0 /* TX_EN (PE18, out, f1) */
  238. 4 26 2 0 1 0 /* RX_DV (PE26, in, f1) */
  239. 4 27 2 0 1 0 /* RX_ER (PE27, in, f1) */
  240. 2 15 2 0 1 0 /* UCCx_RMII_CLK (CLK16) */
  241. >;
  242. };
  243. };
  244. qe@100000 {
  245. #address-cells = <1>;
  246. #size-cells = <1>;
  247. compatible = "fsl,qe";
  248. ranges = <0x0 0x100000 0x100000>;
  249. reg = <0x100000 0x480>;
  250. clock-frequency = <0>; /* Filled in by U-Boot */
  251. brg-frequency = <0>; /* Filled in by U-Boot */
  252. bus-frequency = <0>; /* Filled in by U-Boot */
  253. muram@10000 {
  254. #address-cells = <1>;
  255. #size-cells = <1>;
  256. compatible = "fsl,qe-muram", "fsl,cpm-muram";
  257. ranges = <0x0 0x00010000 0x0000c000>;
  258. data-only@0 {
  259. compatible = "fsl,qe-muram-data",
  260. "fsl,cpm-muram-data";
  261. reg = <0x0 0xc000>;
  262. };
  263. };
  264. /* ESTAR-1 (UCC1, MDIO 0x10, RGMII) */
  265. enet_estar1: ucc@2000 {
  266. device_type = "network";
  267. compatible = "ucc_geth";
  268. cell-index = <1>;
  269. reg = <0x2000 0x200>;
  270. interrupts = <32>;
  271. interrupt-parent = <&qeic>;
  272. local-mac-address = [ 00 00 00 00 00 00 ];
  273. rx-clock-name = "none";
  274. tx-clock-name = "clk9";
  275. phy-handle = <&phy_estar1>;
  276. phy-connection-type = "rgmii-id";
  277. pio-handle = <&pio_ucc1>;
  278. };
  279. /* ESTAR-2 (UCC2, MDIO 0x11, RGMII) */
  280. enet_estar2: ucc@3000 {
  281. device_type = "network";
  282. compatible = "ucc_geth";
  283. cell-index = <2>;
  284. reg = <0x3000 0x200>;
  285. interrupts = <33>;
  286. interrupt-parent = <&qeic>;
  287. local-mac-address = [ 00 00 00 00 00 00 ];
  288. rx-clock-name = "none";
  289. tx-clock-name = "clk4";
  290. phy-handle = <&phy_estar2>;
  291. phy-connection-type = "rgmii-id";
  292. pio-handle = <&pio_ucc2>;
  293. };
  294. /* Piggy2 (UCC4, MDIO 0x00, RMII) */
  295. enet_piggy2: ucc@3200 {
  296. device_type = "network";
  297. compatible = "ucc_geth";
  298. cell-index = <4>;
  299. reg = <0x3200 0x200>;
  300. interrupts = <35>;
  301. interrupt-parent = <&qeic>;
  302. local-mac-address = [ 00 00 00 00 00 00 ];
  303. rx-clock-name = "none";
  304. tx-clock-name = "clk17";
  305. phy-handle = <&phy_piggy2>;
  306. phy-connection-type = "rmii";
  307. pio-handle = <&pio_ucc4>;
  308. };
  309. /* Eth-1 (UCC5, MDIO 0x08, RMII) */
  310. enet_eth1: ucc@2400 {
  311. device_type = "network";
  312. compatible = "ucc_geth";
  313. cell-index = <5>;
  314. reg = <0x2400 0x200>;
  315. interrupts = <40>;
  316. interrupt-parent = <&qeic>;
  317. local-mac-address = [ 00 00 00 00 00 00 ];
  318. rx-clock-name = "none";
  319. tx-clock-name = "clk16";
  320. phy-handle = <&phy_eth1>;
  321. phy-connection-type = "rmii";
  322. pio-handle = <&pio_ucc5>;
  323. };
  324. /* Eth-2 (UCC6, MDIO 0x09, RMII) */
  325. enet_eth2: ucc@3400 {
  326. device_type = "network";
  327. compatible = "ucc_geth";
  328. cell-index = <6>;
  329. reg = <0x3400 0x200>;
  330. interrupts = <41>;
  331. interrupt-parent = <&qeic>;
  332. local-mac-address = [ 00 00 00 00 00 00 ];
  333. rx-clock-name = "none";
  334. tx-clock-name = "clk16";
  335. phy-handle = <&phy_eth2>;
  336. phy-connection-type = "rmii";
  337. pio-handle = <&pio_ucc6>;
  338. };
  339. /* Eth-3 (UCC7, MDIO 0x0a, RMII) */
  340. enet_eth3: ucc@2600 {
  341. device_type = "network";
  342. compatible = "ucc_geth";
  343. cell-index = <7>;
  344. reg = <0x2600 0x200>;
  345. interrupts = <42>;
  346. interrupt-parent = <&qeic>;
  347. local-mac-address = [ 00 00 00 00 00 00 ];
  348. rx-clock-name = "none";
  349. tx-clock-name = "clk16";
  350. phy-handle = <&phy_eth3>;
  351. phy-connection-type = "rmii";
  352. pio-handle = <&pio_ucc7>;
  353. };
  354. /* Eth-4 (UCC8, MDIO 0x0b, RMII) */
  355. enet_eth4: ucc@3600 {
  356. device_type = "network";
  357. compatible = "ucc_geth";
  358. cell-index = <8>;
  359. reg = <0x3600 0x200>;
  360. interrupts = <43>;
  361. interrupt-parent = <&qeic>;
  362. local-mac-address = [ 00 00 00 00 00 00 ];
  363. rx-clock-name = "none";
  364. tx-clock-name = "clk16";
  365. phy-handle = <&phy_eth4>;
  366. phy-connection-type = "rmii";
  367. pio-handle = <&pio_ucc8>;
  368. };
  369. mdio@3320 {
  370. #address-cells = <1>;
  371. #size-cells = <0>;
  372. reg = <0x3320 0x18>;
  373. compatible = "fsl,ucc-mdio";
  374. /* Piggy2 (UCC4, MDIO 0x00, RMII) */
  375. phy_piggy2: ethernet-phy@00 {
  376. reg = <0x0>;
  377. };
  378. /* Eth-1 (UCC5, MDIO 0x08, RMII) */
  379. phy_eth1: ethernet-phy@08 {
  380. reg = <0x08>;
  381. };
  382. /* Eth-2 (UCC6, MDIO 0x09, RMII) */
  383. phy_eth2: ethernet-phy@09 {
  384. reg = <0x09>;
  385. };
  386. /* Eth-3 (UCC7, MDIO 0x0a, RMII) */
  387. phy_eth3: ethernet-phy@0a {
  388. reg = <0x0a>;
  389. };
  390. /* Eth-4 (UCC8, MDIO 0x0b, RMII) */
  391. phy_eth4: ethernet-phy@0b {
  392. reg = <0x0b>;
  393. };
  394. /* ESTAR-1 (UCC1, MDIO 0x10, RGMII) */
  395. phy_estar1: ethernet-phy@10 {
  396. interrupt-parent = <&ipic>;
  397. interrupts = <17 0x8>;
  398. reg = <0x10>;
  399. };
  400. /* ESTAR-2 (UCC2, MDIO 0x11, RGMII) */
  401. phy_estar2: ethernet-phy@11 {
  402. interrupt-parent = <&ipic>;
  403. interrupts = <18 0x8>;
  404. reg = <0x11>;
  405. };
  406. };
  407. qeic: interrupt-controller@80 {
  408. interrupt-controller;
  409. compatible = "fsl,qe-ic";
  410. #address-cells = <0>;
  411. #interrupt-cells = <1>;
  412. reg = <0x80 0x80>;
  413. interrupts = <32 8 33 8>;
  414. interrupt-parent = <&ipic>;
  415. };
  416. };
  417. };
  418. localbus@e0005000 {
  419. #address-cells = <2>;
  420. #size-cells = <1>;
  421. compatible = "fsl,mpc8360-localbus", "fsl,pq2pro-localbus",
  422. "simple-bus";
  423. reg = <0xe0005000 0xd8>;
  424. ranges = <0 0 0xf0000000 0x04000000>; /* Filled in by U-Boot */
  425. flash@f0000000,0 {
  426. compatible = "cfi-flash";
  427. /*
  428. * The Intel P30 chip has 2 non-identical chips on
  429. * one die, so we need to define 2 seperate regions
  430. * that are scanned by physmap_of independantly.
  431. */
  432. reg = <0 0x00000000 0x02000000
  433. 0 0x02000000 0x02000000>; /* Filled in by U-Boot */
  434. bank-width = <2>;
  435. #address-cells = <1>;
  436. #size-cells = <1>;
  437. partition@0 {
  438. label = "u-boot";
  439. reg = <0 0x40000>;
  440. };
  441. partition@40000 {
  442. label = "env";
  443. reg = <0x40000 0x40000>;
  444. };
  445. partition@80000 {
  446. label = "dtb";
  447. reg = <0x80000 0x20000>;
  448. };
  449. partition@a0000 {
  450. label = "kernel";
  451. reg = <0xa0000 0x300000>;
  452. };
  453. partition@3a0000 {
  454. label = "ramdisk";
  455. reg = <0x3a0000 0x800000>;
  456. };
  457. partition@ba0000 {
  458. label = "user";
  459. reg = <0xba0000 0x3460000>;
  460. };
  461. };
  462. };
  463. };