kmeter1.dts 13 KB

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