3012-dts-ls1043a-add-fman-bman-qman-ethernet-nodes.patch 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. From 10b0a19d62d932a6eb01ceb8749190aaf0ff063e Mon Sep 17 00:00:00 2001
  2. From: Shaohui Xie <Shaohui.Xie@freescale.com>
  3. Date: Mon, 11 Jul 2016 10:47:20 +0800
  4. Subject: [PATCH 12/70] dts: ls1043a: add fman/bman/qman/ethernet nodes
  5. commit ecb0901ba0a6558a05054d21ad9e70999a6f7ca1
  6. [context adjustment]
  7. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
  8. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
  9. ---
  10. arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 461 ++++++++++++++++++++
  11. .../boot/dts/freescale/qoriq-bman1-portals.dtsi | 104 +++++
  12. .../boot/dts/freescale/qoriq-qman1-portals.dtsi | 136 ++++++
  13. 3 files changed, 701 insertions(+)
  14. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
  15. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
  16. --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
  17. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
  18. @@ -50,6 +50,16 @@
  19. #address-cells = <2>;
  20. #size-cells = <2>;
  21. + aliases {
  22. + ethernet0 = &fm1mac1;
  23. + ethernet1 = &fm1mac2;
  24. + ethernet2 = &fm1mac3;
  25. + ethernet3 = &fm1mac4;
  26. + ethernet4 = &fm1mac5;
  27. + ethernet5 = &fm1mac6;
  28. + ethernet6 = &fm1mac9;
  29. + };
  30. +
  31. cpus {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. @@ -174,6 +184,323 @@
  35. bus-width = <4>;
  36. };
  37. + qman: qman@1880000 {
  38. + compatible = "fsl,qman";
  39. + reg = <0x00 0x1880000 0x0 0x10000>;
  40. + interrupts = <0 45 0x4>;
  41. + };
  42. +
  43. + bman: bman@1890000 {
  44. + compatible = "fsl,bman";
  45. + reg = <0x00 0x1890000 0x0 0x10000>;
  46. + interrupts = <0 45 0x4>;
  47. + };
  48. +
  49. + fman0: fman@1a00000 {
  50. + #address-cells = <1>;
  51. + #size-cells = <1>;
  52. + cell-index = <0>;
  53. + compatible = "fsl,fman", "simple-bus";
  54. + ranges = <0x0 0x00 0x1a00000 0x100000>;
  55. + reg = <0x00 0x1a00000 0x0 0x100000>;
  56. + clock-frequency = <0>;
  57. + interrupts = <0 44 0x4>,
  58. + <0 45 0x4>;
  59. +
  60. + cc {
  61. + compatible = "fsl,fman-cc";
  62. + };
  63. +
  64. + muram@0 {
  65. + compatible = "fsl,fman-muram";
  66. + reg = <0x0 0x60000>;
  67. + };
  68. +
  69. + bmi@80000 {
  70. + compatible = "fsl,fman-bmi";
  71. + reg = <0x80000 0x400>;
  72. + };
  73. +
  74. + qmi@80400 {
  75. + compatible = "fsl,fman-qmi";
  76. + reg = <0x80400 0x400>;
  77. + };
  78. +
  79. + fman0_oh1: port@82000 {
  80. + cell-index = <0>;
  81. + compatible = "fsl,fman-port-oh";
  82. + reg = <0x82000 0x1000>;
  83. + };
  84. +
  85. + fman0_oh2: port@83000 {
  86. + cell-index = <1>;
  87. + compatible = "fsl,fman-port-oh";
  88. + reg = <0x83000 0x1000>;
  89. + };
  90. +
  91. + fman0_oh3: port@84000 {
  92. + cell-index = <2>;
  93. + compatible = "fsl,fman-port-oh";
  94. + reg = <0x84000 0x1000>;
  95. + };
  96. +
  97. + fman0_oh4: port@85000 {
  98. + cell-index = <3>;
  99. + compatible = "fsl,fman-port-oh";
  100. + reg = <0x85000 0x1000>;
  101. + };
  102. +
  103. + fman0_oh5: port@86000 {
  104. + cell-index = <4>;
  105. + compatible = "fsl,fman-port-oh";
  106. + reg = <0x86000 0x1000>;
  107. + };
  108. +
  109. + fman0_oh6: port@87000 {
  110. + cell-index = <5>;
  111. + compatible = "fsl,fman-port-oh";
  112. + reg = <0x87000 0x1000>;
  113. + };
  114. +
  115. + policer@c0000 {
  116. + compatible = "fsl,fman-policer";
  117. + reg = <0xc0000 0x1000>;
  118. + };
  119. +
  120. + keygen@c1000 {
  121. + compatible = "fsl,fman-keygen";
  122. + reg = <0xc1000 0x1000>;
  123. + };
  124. +
  125. + dma@c2000 {
  126. + compatible = "fsl,fman-dma";
  127. + reg = <0xc2000 0x1000>;
  128. + };
  129. +
  130. + fpm@c3000 {
  131. + compatible = "fsl,fman-fpm";
  132. + reg = <0xc3000 0x1000>;
  133. + };
  134. +
  135. + parser@c7000 {
  136. + compatible = "fsl,fman-parser";
  137. + reg = <0xc7000 0x1000>;
  138. + };
  139. +
  140. + vsps@dc000 {
  141. + compatible = "fsl,fman-vsps";
  142. + reg = <0xdc000 0x1000>;
  143. + };
  144. +
  145. + mdio0: mdio@fc000 {
  146. + #address-cells = <1>;
  147. + #size-cells = <0>;
  148. + compatible = "fsl,fman-memac-mdio";
  149. + reg = <0xfc000 0x1000>;
  150. + };
  151. +
  152. + xmdio0: mdio@fd000 {
  153. + #address-cells = <1>;
  154. + #size-cells = <0>;
  155. + compatible = "fsl,fman-memac-mdio";
  156. + reg = <0xfd000 0x1000>;
  157. + };
  158. +
  159. + fman0_rx0: port@88000 {
  160. + cell-index = <0>;
  161. + compatible = "fsl,fman-port-1g-rx";
  162. + reg = <0x88000 0x1000>;
  163. + };
  164. +
  165. + fman0_tx0: port@a8000 {
  166. + cell-index = <0>;
  167. + compatible = "fsl,fman-port-1g-tx";
  168. + reg = <0xa8000 0x1000>;
  169. + };
  170. +
  171. + fm1mac1: ethernet@e0000 {
  172. + cell-index = <0>;
  173. + compatible = "fsl,fman-memac";
  174. + reg = <0xe0000 0x1000>;
  175. + fsl,port-handles = <&fman0_rx0 &fman0_tx0>;
  176. + ptimer-handle = <&ptp_timer0>;
  177. + };
  178. +
  179. + mdio@e1000 {
  180. + #address-cells = <1>;
  181. + #size-cells = <0>;
  182. + compatible = "fsl,fman-memac-mdio";
  183. + reg = <0xe1000 0x1000>;
  184. + };
  185. +
  186. + fman0_rx1: port@89000 {
  187. + cell-index = <1>;
  188. + compatible = "fsl,fman-port-1g-rx";
  189. + reg = <0x89000 0x1000>;
  190. + };
  191. +
  192. + fman0_tx1: port@a9000 {
  193. + cell-index = <1>;
  194. + compatible = "fsl,fman-port-1g-tx";
  195. + reg = <0xa9000 0x1000>;
  196. + };
  197. +
  198. + fm1mac2: ethernet@e2000 {
  199. + cell-index = <1>;
  200. + compatible = "fsl,fman-memac";
  201. + reg = <0xe2000 0x1000>;
  202. + fsl,port-handles = <&fman0_rx1 &fman0_tx1>;
  203. + ptimer-handle = <&ptp_timer0>;
  204. + };
  205. +
  206. + mdio@e3000 {
  207. + #address-cells = <1>;
  208. + #size-cells = <0>;
  209. + compatible = "fsl,fman-memac-mdio";
  210. + reg = <0xe3000 0x1000>;
  211. + };
  212. +
  213. + fman0_rx2: port@8a000 {
  214. + cell-index = <2>;
  215. + compatible = "fsl,fman-port-1g-rx";
  216. + reg = <0x8a000 0x1000>;
  217. + };
  218. +
  219. + fman0_tx2: port@aa000 {
  220. + cell-index = <2>;
  221. + compatible = "fsl,fman-port-1g-tx";
  222. + reg = <0xaa000 0x1000>;
  223. + };
  224. +
  225. + fm1mac3: ethernet@e4000 {
  226. + cell-index = <2>;
  227. + compatible = "fsl,fman-memac";
  228. + reg = <0xe4000 0x1000>;
  229. + fsl,port-handles = <&fman0_rx2 &fman0_tx2>;
  230. + ptimer-handle = <&ptp_timer0>;
  231. + };
  232. +
  233. + mdio@e5000 {
  234. + #address-cells = <1>;
  235. + #size-cells = <0>;
  236. + compatible = "fsl,fman-memac-mdio";
  237. + reg = <0xe5000 0x1000>;
  238. + };
  239. +
  240. + fman0_rx3: port@8b000 {
  241. + cell-index = <3>;
  242. + compatible = "fsl,fman-port-1g-rx";
  243. + reg = <0x8b000 0x1000>;
  244. + };
  245. +
  246. + fman0_tx3: port@ab000 {
  247. + cell-index = <3>;
  248. + compatible = "fsl,fman-port-1g-tx";
  249. + reg = <0xab000 0x1000>;
  250. + };
  251. +
  252. + fm1mac4: ethernet@e6000 {
  253. + cell-index = <3>;
  254. + compatible = "fsl,fman-memac";
  255. + reg = <0xe6000 0x1000>;
  256. + fsl,port-handles = <&fman0_rx3 &fman0_tx3>;
  257. + ptimer-handle = <&ptp_timer0>;
  258. + };
  259. +
  260. + mdio@e7000 {
  261. + #address-cells = <1>;
  262. + #size-cells = <0>;
  263. + compatible = "fsl,fman-memac-mdio";
  264. + reg = <0xe7000 0x1000>;
  265. + };
  266. +
  267. + fman0_rx4: port@8c000 {
  268. + cell-index = <4>;
  269. + compatible = "fsl,fman-port-1g-rx";
  270. + reg = <0x8c000 0x1000>;
  271. + };
  272. +
  273. + fman0_tx4: port@ac000 {
  274. + cell-index = <4>;
  275. + compatible = "fsl,fman-port-1g-tx";
  276. + reg = <0xac000 0x1000>;
  277. + };
  278. +
  279. + fm1mac5: ethernet@e8000 {
  280. + cell-index = <4>;
  281. + compatible = "fsl,fman-memac";
  282. + reg = <0xe8000 0x1000>;
  283. + fsl,port-handles = <&fman0_rx4 &fman0_tx4>;
  284. + ptimer-handle = <&ptp_timer0>;
  285. + };
  286. +
  287. + mdio@e9000 {
  288. + #address-cells = <1>;
  289. + #size-cells = <0>;
  290. + compatible = "fsl,fman-memac-mdio";
  291. + reg = <0xe9000 0x1000>;
  292. + };
  293. +
  294. + fman0_rx5: port@8d000 {
  295. + cell-index = <5>;
  296. + compatible = "fsl,fman-port-1g-rx";
  297. + reg = <0x8d000 0x1000>;
  298. + };
  299. +
  300. + fman0_tx5: port@ad000 {
  301. + cell-index = <5>;
  302. + compatible = "fsl,fman-port-1g-tx";
  303. + reg = <0xad000 0x1000>;
  304. + };
  305. +
  306. + fm1mac6: ethernet@ea000 {
  307. + cell-index = <5>;
  308. + compatible = "fsl,fman-memac";
  309. + reg = <0xea000 0x1000>;
  310. + fsl,port-handles = <&fman0_rx5 &fman0_tx5>;
  311. + ptimer-handle = <&ptp_timer0>;
  312. + };
  313. +
  314. + mdio@eb000 {
  315. + #address-cells = <1>;
  316. + #size-cells = <0>;
  317. + compatible = "fsl,fman-memac-mdio";
  318. + reg = <0xeb000 0x1000>;
  319. + };
  320. +
  321. + fman0_10g_rx0: port@90000 {
  322. + cell-index = <0>;
  323. + compatible = "fsl,fman-port-10g-rx";
  324. + reg = <0x90000 0x1000>;
  325. + };
  326. +
  327. + fman0_10g_tx0: port@b0000 {
  328. + cell-index = <0>;
  329. + compatible = "fsl,fman-port-10g-tx";
  330. + reg = <0xb0000 0x1000>;
  331. + fsl,qman-channel-id = <0x800>;
  332. + };
  333. +
  334. + fm1mac9: ethernet@f0000 {
  335. + cell-index = <0>;
  336. + compatible = "fsl,fman-memac";
  337. + reg = <0xf0000 0x1000>;
  338. + fsl,port-handles = <&fman0_10g_rx0 &fman0_10g_tx0>;
  339. + };
  340. +
  341. + mdio@f1000 {
  342. + #address-cells = <1>;
  343. + #size-cells = <0>;
  344. + compatible = "fsl,fman-memac-mdio";
  345. + reg = <0xf1000 0x1000>;
  346. + };
  347. +
  348. + ptp_timer0: rtc@fe000 {
  349. + compatible = "fsl,fman-rtc";
  350. + reg = <0xfe000 0x1000>;
  351. + };
  352. + };
  353. +
  354. dspi0: dspi@2100000 {
  355. compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";
  356. #address-cells = <1>;
  357. @@ -522,4 +849,138 @@
  358. };
  359. };
  360. + fsl,dpaa {
  361. + compatible = "fsl,ls1043a-dpaa", "simple-bus", "fsl,dpaa";
  362. + ethernet@0 {
  363. + compatible = "fsl,dpa-ethernet";
  364. + fsl,fman-mac = <&fm1mac1>;
  365. + };
  366. + ethernet@1 {
  367. + compatible = "fsl,dpa-ethernet";
  368. + fsl,fman-mac = <&fm1mac2>;
  369. + };
  370. + ethernet@2 {
  371. + compatible = "fsl,dpa-ethernet";
  372. + fsl,fman-mac = <&fm1mac3>;
  373. + };
  374. + ethernet@3 {
  375. + compatible = "fsl,dpa-ethernet";
  376. + fsl,fman-mac = <&fm1mac4>;
  377. + };
  378. + ethernet@4 {
  379. + compatible = "fsl,dpa-ethernet";
  380. + fsl,fman-mac = <&fm1mac5>;
  381. + };
  382. + ethernet@5 {
  383. + compatible = "fsl,dpa-ethernet";
  384. + fsl,fman-mac = <&fm1mac6>;
  385. + };
  386. + ethernet@8 {
  387. + compatible = "fsl,dpa-ethernet";
  388. + fsl,fman-mac = <&fm1mac9>;
  389. + };
  390. + };
  391. +
  392. + qportals: qman-portals@500000000 {
  393. + ranges = <0x0 0x5 0x00000000 0x8000000>;
  394. + };
  395. + bportals: bman-portals@508000000 {
  396. + ranges = <0x0 0x5 0x08000000 0x8000000>;
  397. + };
  398. + reserved-memory {
  399. + #address-cells = <2>;
  400. + #size-cells = <2>;
  401. + ranges;
  402. +
  403. + bman_fbpr: bman-fbpr {
  404. + size = <0 0x1000000>;
  405. + alignment = <0 0x1000000>;
  406. + };
  407. + qman_fqd: qman-fqd {
  408. + size = <0 0x400000>;
  409. + alignment = <0 0x400000>;
  410. + };
  411. + qman_pfdr: qman-pfdr {
  412. + size = <0 0x2000000>;
  413. + alignment = <0 0x2000000>;
  414. + };
  415. + };
  416. +};
  417. +
  418. +&fman0 {
  419. + /* offline - 1 */
  420. + port@82000 {
  421. + fsl,qman-channel-id = <0x809>;
  422. + };
  423. +
  424. + /* tx - 10g - 2 */
  425. + port@a8000 {
  426. + fsl,qman-channel-id = <0x802>;
  427. + };
  428. + /* tx - 10g - 3 */
  429. + port@a9000 {
  430. + fsl,qman-channel-id = <0x803>;
  431. + };
  432. + /* tx - 1g - 2 */
  433. + port@aa000 {
  434. + fsl,qman-channel-id = <0x804>;
  435. + };
  436. + /* tx - 1g - 3 */
  437. + port@ab000 {
  438. + fsl,qman-channel-id = <0x805>;
  439. + };
  440. + /* tx - 1g - 4 */
  441. + port@ac000 {
  442. + fsl,qman-channel-id = <0x806>;
  443. + };
  444. + /* tx - 1g - 5 */
  445. + port@ad000 {
  446. + fsl,qman-channel-id = <0x807>;
  447. + };
  448. + /* tx - 10g - 0 */
  449. + port@b0000 {
  450. + fsl,qman-channel-id = <0x800>;
  451. + };
  452. + /* tx - 10g - 1 */
  453. + port@b1000 {
  454. + fsl,qman-channel-id = <0x801>;
  455. + };
  456. + /* offline - 2 */
  457. + port@83000 {
  458. + fsl,qman-channel-id = <0x80a>;
  459. + };
  460. + /* offline - 3 */
  461. + port@84000 {
  462. + fsl,qman-channel-id = <0x80b>;
  463. + };
  464. + /* offline - 4 */
  465. + port@85000 {
  466. + fsl,qman-channel-id = <0x80c>;
  467. + };
  468. + /* offline - 5 */
  469. + port@86000 {
  470. + fsl,qman-channel-id = <0x80d>;
  471. + };
  472. + /* offline - 6 */
  473. + port@87000 {
  474. + fsl,qman-channel-id = <0x80e>;
  475. + };
  476. +};
  477. +
  478. +&bman_fbpr {
  479. + compatible = "fsl,bman-fbpr";
  480. + alloc-ranges = <0 0 0x10000 0>;
  481. };
  482. +
  483. +&qman_fqd {
  484. + compatible = "fsl,qman-fqd";
  485. + alloc-ranges = <0 0 0x10000 0>;
  486. +};
  487. +
  488. +&qman_pfdr {
  489. + compatible = "fsl,qman-pfdr";
  490. + alloc-ranges = <0 0 0x10000 0>;
  491. +};
  492. +
  493. +/include/ "qoriq-qman1-portals.dtsi"
  494. +/include/ "qoriq-bman1-portals.dtsi"
  495. --- /dev/null
  496. +++ b/arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
  497. @@ -0,0 +1,104 @@
  498. +/*
  499. + * QorIQ BMan Portal device tree stub for 10 portals
  500. + *
  501. + * Copyright 2011-2016 Freescale Semiconductor Inc.
  502. + *
  503. + * Redistribution and use in source and binary forms, with or without
  504. + * modification, are permitted provided that the following conditions are met:
  505. + * * Redistributions of source code must retain the above copyright
  506. + * notice, this list of conditions and the following disclaimer.
  507. + * * Redistributions in binary form must reproduce the above copyright
  508. + * notice, this list of conditions and the following disclaimer in the
  509. + * documentation and/or other materials provided with the distribution.
  510. + * * Neither the name of Freescale Semiconductor nor the
  511. + * names of its contributors may be used to endorse or promote products
  512. + * derived from this software without specific prior written permission.
  513. + *
  514. + *
  515. + * ALTERNATIVELY, this software may be distributed under the terms of the
  516. + * GNU General Public License ("GPL") as published by the Free Software
  517. + * Foundation, either version 2 of that License or (at your option) any
  518. + * later version.
  519. + *
  520. + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  521. + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  522. + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  523. + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  524. + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  525. + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  526. + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  527. + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  528. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  529. + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  530. + */
  531. +
  532. +&bportals {
  533. + #address-cells = <1>;
  534. + #size-cells = <1>;
  535. + compatible = "simple-bus";
  536. + bportal0: bman-portal@0 {
  537. + cell-index = <0>;
  538. + compatible = "fsl,bman-portal";
  539. + reg = <0x0 0x4000 0x4000000 0x4000>;
  540. + interrupts = <0 173 0x4>;
  541. + };
  542. + bportal1: bman-portal@10000 {
  543. + cell-index = <1>;
  544. + compatible = "fsl,bman-portal";
  545. + reg = <0x10000 0x4000 0x4010000 0x4000>;
  546. + interrupts = <0 175 0x4>;
  547. + };
  548. + bportal2: bman-portal@20000 {
  549. + cell-index = <2>;
  550. + compatible = "fsl,bman-portal";
  551. + reg = <0x20000 0x4000 0x4020000 0x4000>;
  552. + interrupts = <0 177 0x4>;
  553. + };
  554. + bportal3: bman-portal@30000 {
  555. + cell-index = <3>;
  556. + compatible = "fsl,bman-portal";
  557. + reg = <0x30000 0x4000 0x4030000 0x4000>;
  558. + interrupts = <0 179 0x4>;
  559. + };
  560. + bportal4: bman-portal@40000 {
  561. + cell-index = <4>;
  562. + compatible = "fsl,bman-portal";
  563. + reg = <0x40000 0x4000 0x4040000 0x4000>;
  564. + interrupts = <0 181 0x4>;
  565. + };
  566. + bportal5: bman-portal@50000 {
  567. + cell-index = <5>;
  568. + compatible = "fsl,bman-portal";
  569. + reg = <0x50000 0x4000 0x4050000 0x4000>;
  570. + interrupts = <0 183 0x4>;
  571. + };
  572. + bportal6: bman-portal@60000 {
  573. + cell-index = <6>;
  574. + compatible = "fsl,bman-portal";
  575. + reg = <0x60000 0x4000 0x4060000 0x4000>;
  576. + interrupts = <0 185 0x4>;
  577. + };
  578. + bportal7: bman-portal@70000 {
  579. + cell-index = <7>;
  580. + compatible = "fsl,bman-portal";
  581. + reg = <0x70000 0x4000 0x4070000 0x4000>;
  582. + interrupts = <0 187 0x4>;
  583. + };
  584. + bportal8: bman-portal@80000 {
  585. + cell-index = <8>;
  586. + compatible = "fsl,bman-portal";
  587. + reg = <0x80000 0x4000 0x4080000 0x4000>;
  588. + interrupts = <0 189 0x4>;
  589. + };
  590. +/* bportal9: bman-portal@90000 {
  591. + cell-index = <9>;
  592. + compatible = "fsl,bman-portal";
  593. + reg = <0x90000 0x4000 0x4090000 0x4000>;
  594. + interrupts = <0 191 0x4>;
  595. + }; */
  596. + bman-bpids@0 {
  597. + compatible = "fsl,bpid-range";
  598. + fsl,bpid-range = <32 32>;
  599. + };
  600. +
  601. +};
  602. --- /dev/null
  603. +++ b/arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
  604. @@ -0,0 +1,136 @@
  605. +/*
  606. + * QorIQ QMan Portal device tree stub for 10 portals & 15 pool channels
  607. + *
  608. + * Copyright 2011-2016 Freescale Semiconductor Inc.
  609. + *
  610. + * Redistribution and use in source and binary forms, with or without
  611. + * modification, are permitted provided that the following conditions are met:
  612. + * * Redistributions of source code must retain the above copyright
  613. + * notice, this list of conditions and the following disclaimer.
  614. + * * Redistributions in binary form must reproduce the above copyright
  615. + * notice, this list of conditions and the following disclaimer in the
  616. + * documentation and/or other materials provided with the distribution.
  617. + * * Neither the name of Freescale Semiconductor nor the
  618. + * names of its contributors may be used to endorse or promote products
  619. + * derived from this software without specific prior written permission.
  620. + *
  621. + *
  622. + * ALTERNATIVELY, this software may be distributed under the terms of the
  623. + * GNU General Public License ("GPL") as published by the Free Software
  624. + * Foundation, either version 2 of that License or (at your option) any
  625. + * later version.
  626. + *
  627. + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  628. + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  629. + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  630. + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  631. + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  632. + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  633. + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  634. + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  635. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  636. + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  637. + */
  638. +&qportals {
  639. +
  640. + #address-cells = <1>;
  641. + #size-cells = <1>;
  642. + compatible = "simple-bus";
  643. + qportal0: qman-portal@0 {
  644. + cell-index = <0>;
  645. + compatible = "fsl,qman-portal";
  646. + reg = <0x0 0x4000 0x4000000 0x4000>;
  647. + interrupts = <0 172 0x4>;
  648. + fsl,qman-channel-id = <0x0>;
  649. + };
  650. +
  651. + qportal1: qman-portal@10000 {
  652. + cell-index = <1>;
  653. + compatible = "fsl,qman-portal";
  654. + reg = <0x10000 0x4000 0x4010000 0x4000>;
  655. + interrupts = <0 174 0x4>;
  656. + fsl,qman-channel-id = <1>;
  657. + };
  658. +
  659. + qportal2: qman-portal@20000 {
  660. + cell-index = <2>;
  661. + compatible = "fsl,qman-portal";
  662. + reg = <0x20000 0x4000 0x4020000 0x4000>;
  663. + interrupts = <0 176 0x4>;
  664. + fsl,qman-channel-id = <2>;
  665. + };
  666. +
  667. + qportal3: qman-portal@30000 {
  668. + cell-index = <3>;
  669. + compatible = "fsl,qman-portal";
  670. + reg = <0x30000 0x4000 0x4030000 0x4000>;
  671. + interrupts = <0 178 0x4>;
  672. + fsl,qman-channel-id = <3>;
  673. + };
  674. +
  675. + qportal4: qman-portal@40000 {
  676. + cell-index = <4>;
  677. + compatible = "fsl,qman-portal";
  678. + reg = <0x40000 0x4000 0x4040000 0x4000>;
  679. + interrupts = <0 180 0x4>;
  680. + fsl,qman-channel-id = <4>;
  681. + };
  682. +
  683. + qportal5: qman-portal@50000 {
  684. + cell-index = <5>;
  685. + compatible = "fsl,qman-portal";
  686. + reg = <0x50000 0x4000 0x4050000 0x4000>;
  687. + interrupts = <0 182 0x4>;
  688. + fsl,qman-channel-id = <5>;
  689. + };
  690. +
  691. + qportal6: qman-portal@60000 {
  692. + cell-index = <6>;
  693. + compatible = "fsl,qman-portal";
  694. + reg = <0x60000 0x4000 0x4060000 0x4000>;
  695. + interrupts = <0 184 0x4>;
  696. + fsl,qman-channel-id = <6>;
  697. + };
  698. +
  699. + qportal7: qman-portal@70000 {
  700. + cell-index = <7>;
  701. + compatible = "fsl,qman-portal";
  702. + reg = <0x70000 0x4000 0x4070000 0x4000>;
  703. + interrupts = <0 186 0x4>;
  704. + fsl,qman-channel-id = <7>;
  705. + };
  706. +
  707. + qportal8: qman-portal@80000 {
  708. + cell-index = <8>;
  709. + compatible = "fsl,qman-portal";
  710. + reg = <0x80000 0x4000 0x4080000 0x4000>;
  711. + interrupts = <0 188 0x4>;
  712. + fsl,qman-channel-id = <8>;
  713. + };
  714. +
  715. +/* qportal9: qman-portal@90000 {
  716. + cell-index = <9>;
  717. + compatible = "fsl,qman-portal";
  718. + reg = <0x90000 0x4000 0x4090000 0x4000>;
  719. + interrupts = <0 190 0x4>;
  720. + fsl,qman-channel-id = <9>;
  721. + }; */
  722. +
  723. + qman-fqids@0 {
  724. + compatible = "fsl,fqid-range";
  725. + fsl,fqid-range = <256 256>;
  726. + };
  727. + qman-fqids@1 {
  728. + compatible = "fsl,fqid-range";
  729. + fsl,fqid-range = <32768 32768>;
  730. + };
  731. + qman-pools@0 {
  732. + compatible = "fsl,pool-channel-range";
  733. + fsl,pool-channel-range = <0x401 0xf>;
  734. + };
  735. + qman-cgrids@0 {
  736. + compatible = "fsl,cgrid-range";
  737. + fsl,cgrid-range = <0 256>;
  738. + };
  739. +
  740. +};
  741. \ No newline at end of file