kmeter1.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /*
  2. * Keymile KMETER1 Device Tree Source
  3. *
  4. * 2008-2011 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,mpc8313-i2c","fsl-i2c";
  65. reg = <0x3000 0x100>;
  66. interrupts = <14 0x8>;
  67. interrupt-parent = <&ipic>;
  68. clock-frequency = <400000>;
  69. };
  70. serial0: serial@4500 {
  71. cell-index = <0>;
  72. device_type = "serial";
  73. compatible = "fsl,ns16550", "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. qe_pio_c: gpio-controller@30 {
  127. #gpio-cells = <2>;
  128. compatible = "fsl,mpc8360-qe-pario-bank",
  129. "fsl,mpc8323-qe-pario-bank";
  130. reg = <0x1430 0x18>;
  131. gpio-controller;
  132. };
  133. pio_ucc1: ucc_pin@0 {
  134. reg = <0>;
  135. pio-map = <
  136. /* port pin dir open_drain assignment has_irq */
  137. 0 1 3 0 2 0 /* MDIO */
  138. 0 2 1 0 1 0 /* MDC */
  139. 0 3 1 0 1 0 /* TxD0 */
  140. 0 4 1 0 1 0 /* TxD1 */
  141. 0 5 1 0 1 0 /* TxD2 */
  142. 0 6 1 0 1 0 /* TxD3 */
  143. 0 9 2 0 1 0 /* RxD0 */
  144. 0 10 2 0 1 0 /* RxD1 */
  145. 0 11 2 0 1 0 /* RxD2 */
  146. 0 12 2 0 1 0 /* RxD3 */
  147. 0 7 1 0 1 0 /* TX_EN */
  148. 0 8 1 0 1 0 /* TX_ER */
  149. 0 15 2 0 1 0 /* RX_DV */
  150. 0 16 2 0 1 0 /* RX_ER */
  151. 0 0 2 0 1 0 /* RX_CLK */
  152. 2 9 1 0 3 0 /* GTX_CLK - CLK10 */
  153. 2 8 2 0 1 0 /* GTX125 - CLK9 */
  154. >;
  155. };
  156. pio_ucc2: ucc_pin@1 {
  157. reg = <1>;
  158. pio-map = <
  159. /* port pin dir open_drain assignment has_irq */
  160. 0 1 3 0 2 0 /* MDIO */
  161. 0 2 1 0 1 0 /* MDC */
  162. 0 17 1 0 1 0 /* TxD0 */
  163. 0 18 1 0 1 0 /* TxD1 */
  164. 0 19 1 0 1 0 /* TxD2 */
  165. 0 20 1 0 1 0 /* TxD3 */
  166. 0 23 2 0 1 0 /* RxD0 */
  167. 0 24 2 0 1 0 /* RxD1 */
  168. 0 25 2 0 1 0 /* RxD2 */
  169. 0 26 2 0 1 0 /* RxD3 */
  170. 0 21 1 0 1 0 /* TX_EN */
  171. 0 22 1 0 1 0 /* TX_ER */
  172. 0 29 2 0 1 0 /* RX_DV */
  173. 0 30 2 0 1 0 /* RX_ER */
  174. 0 31 2 0 1 0 /* RX_CLK */
  175. 2 2 1 0 2 0 /* GTX_CLK - CLK3 */
  176. 2 3 2 0 1 0 /* GTX125 - CLK4 */
  177. >;
  178. };
  179. pio_ucc4: ucc_pin@3 {
  180. reg = <3>;
  181. pio-map = <
  182. /* port pin dir open_drain assignment has_irq */
  183. 0 1 3 0 2 0 /* MDIO */
  184. 0 2 1 0 1 0 /* MDC */
  185. 1 14 1 0 1 0 /* TxD0 (PB14, out, f1) */
  186. 1 15 1 0 1 0 /* TxD1 (PB15, out, f1) */
  187. 1 20 2 0 1 0 /* RxD0 (PB20, in, f1) */
  188. 1 21 2 0 1 0 /* RxD1 (PB21, in, f1) */
  189. 1 18 1 0 1 0 /* TX_EN (PB18, out, f1) */
  190. 1 26 2 0 1 0 /* RX_DV (PB26, in, f1) */
  191. 1 27 2 0 1 0 /* RX_ER (PB27, in, f1) */
  192. 2 16 2 0 1 0 /* UCC4_RMII_CLK (CLK17) */
  193. >;
  194. };
  195. pio_ucc5: ucc_pin@4 {
  196. reg = <4>;
  197. pio-map = <
  198. /* port pin dir open_drain assignment has_irq */
  199. 0 1 3 0 2 0 /* MDIO */
  200. 0 2 1 0 1 0 /* MDC */
  201. 3 0 1 0 1 0 /* TxD0 (PD0, out, f1) */
  202. 3 1 1 0 1 0 /* TxD1 (PD1, out, f1) */
  203. 3 6 2 0 1 0 /* RxD0 (PD6, in, f1) */
  204. 3 7 2 0 1 0 /* RxD1 (PD7, in, f1) */
  205. 3 4 1 0 1 0 /* TX_EN (PD4, out, f1) */
  206. 3 12 2 0 1 0 /* RX_DV (PD12, in, f1) */
  207. 3 13 2 0 1 0 /* RX_ER (PD13, in, f1) */
  208. >;
  209. };
  210. pio_ucc6: ucc_pin@5 {
  211. reg = <5>;
  212. pio-map = <
  213. /* port pin dir open_drain assignment has_irq */
  214. 0 1 3 0 2 0 /* MDIO */
  215. 0 2 1 0 1 0 /* MDC */
  216. 3 14 1 0 1 0 /* TxD0 (PD14, out, f1) */
  217. 3 15 1 0 1 0 /* TxD1 (PD15, out, f1) */
  218. 3 20 2 0 1 0 /* RxD0 (PD20, in, f1) */
  219. 3 21 2 0 1 0 /* RxD1 (PD21, in, f1) */
  220. 3 18 1 0 1 0 /* TX_EN (PD18, out, f1) */
  221. 3 26 2 0 1 0 /* RX_DV (PD26, in, f1) */
  222. 3 27 2 0 1 0 /* RX_ER (PD27, in, f1) */
  223. >;
  224. };
  225. pio_ucc7: ucc_pin@6 {
  226. reg = <6>;
  227. pio-map = <
  228. /* port pin dir open_drain assignment has_irq */
  229. 0 1 3 0 2 0 /* MDIO */
  230. 0 2 1 0 1 0 /* MDC */
  231. 4 0 1 0 1 0 /* TxD0 (PE0, out, f1) */
  232. 4 1 1 0 1 0 /* TxD1 (PE1, out, f1) */
  233. 4 6 2 0 1 0 /* RxD0 (PE6, in, f1) */
  234. 4 7 2 0 1 0 /* RxD1 (PE7, in, f1) */
  235. 4 4 1 0 1 0 /* TX_EN (PE4, out, f1) */
  236. 4 12 2 0 1 0 /* RX_DV (PE12, in, f1) */
  237. 4 13 2 0 1 0 /* RX_ER (PE13, in, f1) */
  238. >;
  239. };
  240. pio_ucc8: ucc_pin@7 {
  241. reg = <7>;
  242. pio-map = <
  243. /* port pin dir open_drain assignment has_irq */
  244. 0 1 3 0 2 0 /* MDIO */
  245. 0 2 1 0 1 0 /* MDC */
  246. 4 14 1 0 2 0 /* TxD0 (PE14, out, f2) */
  247. 4 15 1 0 1 0 /* TxD1 (PE15, out, f1) */
  248. 4 20 2 0 1 0 /* RxD0 (PE20, in, f1) */
  249. 4 21 2 0 1 0 /* RxD1 (PE21, in, f1) */
  250. 4 18 1 0 1 0 /* TX_EN (PE18, out, f1) */
  251. 4 26 2 0 1 0 /* RX_DV (PE26, in, f1) */
  252. 4 27 2 0 1 0 /* RX_ER (PE27, in, f1) */
  253. 2 15 2 0 1 0 /* UCCx_RMII_CLK (CLK16) */
  254. >;
  255. };
  256. };
  257. qe@100000 {
  258. #address-cells = <1>;
  259. #size-cells = <1>;
  260. compatible = "fsl,qe";
  261. ranges = <0x0 0x100000 0x100000>;
  262. reg = <0x100000 0x480>;
  263. clock-frequency = <0>; /* Filled in by U-Boot */
  264. brg-frequency = <0>; /* Filled in by U-Boot */
  265. bus-frequency = <0>; /* Filled in by U-Boot */
  266. muram@10000 {
  267. #address-cells = <1>;
  268. #size-cells = <1>;
  269. compatible = "fsl,qe-muram", "fsl,cpm-muram";
  270. ranges = <0x0 0x00010000 0x0000c000>;
  271. data-only@0 {
  272. compatible = "fsl,qe-muram-data",
  273. "fsl,cpm-muram-data";
  274. reg = <0x0 0xc000>;
  275. };
  276. };
  277. /* ESTAR-1 (UCC1, MDIO 0x10, RGMII) */
  278. enet_estar1: ucc@2000 {
  279. device_type = "network";
  280. compatible = "ucc_geth";
  281. cell-index = <1>;
  282. reg = <0x2000 0x200>;
  283. interrupts = <32>;
  284. interrupt-parent = <&qeic>;
  285. local-mac-address = [ 00 00 00 00 00 00 ];
  286. rx-clock-name = "none";
  287. tx-clock-name = "clk9";
  288. phy-handle = <&phy_estar1>;
  289. phy-connection-type = "rgmii-id";
  290. pio-handle = <&pio_ucc1>;
  291. };
  292. /* ESTAR-2 (UCC2, MDIO 0x11, RGMII) */
  293. enet_estar2: ucc@3000 {
  294. device_type = "network";
  295. compatible = "ucc_geth";
  296. cell-index = <2>;
  297. reg = <0x3000 0x200>;
  298. interrupts = <33>;
  299. interrupt-parent = <&qeic>;
  300. local-mac-address = [ 00 00 00 00 00 00 ];
  301. rx-clock-name = "none";
  302. tx-clock-name = "clk4";
  303. phy-handle = <&phy_estar2>;
  304. phy-connection-type = "rgmii-id";
  305. pio-handle = <&pio_ucc2>;
  306. };
  307. /* Piggy2 (UCC4, MDIO 0x00, RMII) */
  308. enet_piggy2: ucc@3200 {
  309. device_type = "network";
  310. compatible = "ucc_geth";
  311. cell-index = <4>;
  312. reg = <0x3200 0x200>;
  313. interrupts = <35>;
  314. interrupt-parent = <&qeic>;
  315. local-mac-address = [ 00 00 00 00 00 00 ];
  316. rx-clock-name = "none";
  317. tx-clock-name = "clk17";
  318. phy-handle = <&phy_piggy2>;
  319. phy-connection-type = "rmii";
  320. pio-handle = <&pio_ucc4>;
  321. };
  322. /* Eth-1 (UCC5, MDIO 0x08, RMII) */
  323. enet_eth1: ucc@2400 {
  324. device_type = "network";
  325. compatible = "ucc_geth";
  326. cell-index = <5>;
  327. reg = <0x2400 0x200>;
  328. interrupts = <40>;
  329. interrupt-parent = <&qeic>;
  330. local-mac-address = [ 00 00 00 00 00 00 ];
  331. rx-clock-name = "none";
  332. tx-clock-name = "clk16";
  333. phy-handle = <&phy_eth1>;
  334. phy-connection-type = "rmii";
  335. pio-handle = <&pio_ucc5>;
  336. };
  337. /* Eth-2 (UCC6, MDIO 0x09, RMII) */
  338. enet_eth2: ucc@3400 {
  339. device_type = "network";
  340. compatible = "ucc_geth";
  341. cell-index = <6>;
  342. reg = <0x3400 0x200>;
  343. interrupts = <41>;
  344. interrupt-parent = <&qeic>;
  345. local-mac-address = [ 00 00 00 00 00 00 ];
  346. rx-clock-name = "none";
  347. tx-clock-name = "clk16";
  348. phy-handle = <&phy_eth2>;
  349. phy-connection-type = "rmii";
  350. pio-handle = <&pio_ucc6>;
  351. };
  352. /* Eth-3 (UCC7, MDIO 0x0a, RMII) */
  353. enet_eth3: ucc@2600 {
  354. device_type = "network";
  355. compatible = "ucc_geth";
  356. cell-index = <7>;
  357. reg = <0x2600 0x200>;
  358. interrupts = <42>;
  359. interrupt-parent = <&qeic>;
  360. local-mac-address = [ 00 00 00 00 00 00 ];
  361. rx-clock-name = "none";
  362. tx-clock-name = "clk16";
  363. phy-handle = <&phy_eth3>;
  364. phy-connection-type = "rmii";
  365. pio-handle = <&pio_ucc7>;
  366. };
  367. /* Eth-4 (UCC8, MDIO 0x0b, RMII) */
  368. enet_eth4: ucc@3600 {
  369. device_type = "network";
  370. compatible = "ucc_geth";
  371. cell-index = <8>;
  372. reg = <0x3600 0x200>;
  373. interrupts = <43>;
  374. interrupt-parent = <&qeic>;
  375. local-mac-address = [ 00 00 00 00 00 00 ];
  376. rx-clock-name = "none";
  377. tx-clock-name = "clk16";
  378. phy-handle = <&phy_eth4>;
  379. phy-connection-type = "rmii";
  380. pio-handle = <&pio_ucc8>;
  381. };
  382. mdio@3320 {
  383. #address-cells = <1>;
  384. #size-cells = <0>;
  385. reg = <0x3320 0x18>;
  386. compatible = "fsl,ucc-mdio";
  387. /* Piggy2 (UCC4, MDIO 0x00, RMII) */
  388. phy_piggy2: ethernet-phy@00 {
  389. reg = <0x0>;
  390. };
  391. /* Eth-1 (UCC5, MDIO 0x08, RMII) */
  392. phy_eth1: ethernet-phy@08 {
  393. reg = <0x08>;
  394. };
  395. /* Eth-2 (UCC6, MDIO 0x09, RMII) */
  396. phy_eth2: ethernet-phy@09 {
  397. reg = <0x09>;
  398. };
  399. /* Eth-3 (UCC7, MDIO 0x0a, RMII) */
  400. phy_eth3: ethernet-phy@0a {
  401. reg = <0x0a>;
  402. };
  403. /* Eth-4 (UCC8, MDIO 0x0b, RMII) */
  404. phy_eth4: ethernet-phy@0b {
  405. reg = <0x0b>;
  406. };
  407. /* ESTAR-1 (UCC1, MDIO 0x10, RGMII) */
  408. phy_estar1: ethernet-phy@10 {
  409. interrupt-parent = <&ipic>;
  410. interrupts = <17 0x8>;
  411. reg = <0x10>;
  412. };
  413. /* ESTAR-2 (UCC2, MDIO 0x11, RGMII) */
  414. phy_estar2: ethernet-phy@11 {
  415. interrupt-parent = <&ipic>;
  416. interrupts = <18 0x8>;
  417. reg = <0x11>;
  418. };
  419. };
  420. qeic: interrupt-controller@80 {
  421. interrupt-controller;
  422. compatible = "fsl,qe-ic";
  423. #address-cells = <0>;
  424. #interrupt-cells = <1>;
  425. reg = <0x80 0x80>;
  426. big-endian;
  427. interrupts = <
  428. 32 0x8
  429. 33 0x8
  430. 34 0x8
  431. 35 0x8
  432. 40 0x8
  433. 41 0x8
  434. 42 0x8
  435. 43 0x8
  436. >;
  437. interrupt-parent = <&ipic>;
  438. };
  439. };
  440. };
  441. localbus@e0005000 {
  442. #address-cells = <2>;
  443. #size-cells = <1>;
  444. compatible = "fsl,mpc8360-localbus", "fsl,pq2pro-localbus",
  445. "simple-bus";
  446. reg = <0xe0005000 0xd8>;
  447. ranges = <0 0 0xf0000000 0x04000000 /* LB 0 */
  448. 1 0 0xe8000000 0x01000000 /* LB 1 */
  449. 3 0 0xa0000000 0x10000000>; /* LB 3 */
  450. flash@0,0 {
  451. compatible = "cfi-flash";
  452. reg = <0 0 0x04000000>;
  453. #address-cells = <1>;
  454. #size-cells = <1>;
  455. bank-width = <2>;
  456. partition@0 { /* 768KB */
  457. label = "u-boot";
  458. reg = <0 0xC0000>;
  459. };
  460. partition@c0000 { /* 128KB */
  461. label = "env";
  462. reg = <0xC0000 0x20000>;
  463. };
  464. partition@e0000 { /* 128KB */
  465. label = "envred";
  466. reg = <0xE0000 0x20000>;
  467. };
  468. partition@100000 { /* 64512KB */
  469. label = "ubi0";
  470. reg = <0x100000 0x3F00000>;
  471. };
  472. };
  473. };
  474. };