kmeter1.dts 13 KB

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