302-dts-0002-sdk-arm64-dts-add-DPAA1-SDK-flavor-dts-files.patch 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. From 7f3b260e937238632e523306089e856d0db1a4f9 Mon Sep 17 00:00:00 2001
  2. From: Li Yang <[email protected]>
  3. Date: Fri, 5 Oct 2018 18:03:25 -0500
  4. Subject: [PATCH] sdk: arm64: dts: add DPAA1 SDK flavor dts files
  5. Signed-off-by: Camelia Groza <[email protected]>
  6. Signed-off-by: Madalin Bucur <[email protected]>
  7. Signed-off-by: Iordache Florinel-R70177 <[email protected]>
  8. Signed-off-by: Roy Pledge <[email protected]>
  9. Signed-off-by: Li Yang <[email protected]>
  10. ---
  11. arch/arm64/boot/dts/freescale/Makefile | 6 ++
  12. .../boot/dts/freescale/fsl-ls1043a-qds-sdk.dts | 71 +++++++++++++
  13. .../boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts | 71 +++++++++++++
  14. .../boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts | 117 +++++++++++++++++++++
  15. .../boot/dts/freescale/fsl-ls1046a-qds-sdk.dts | 79 ++++++++++++++
  16. .../boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts | 115 ++++++++++++++++++++
  17. .../boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts | 110 +++++++++++++++++++
  18. 7 files changed, 569 insertions(+)
  19. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
  20. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
  21. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
  22. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
  23. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
  24. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
  25. --- a/arch/arm64/boot/dts/freescale/Makefile
  26. +++ b/arch/arm64/boot/dts/freescale/Makefile
  27. @@ -7,10 +7,16 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1
  28. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
  29. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb.dtb
  30. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
  31. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds-sdk.dtb
  32. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
  33. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-sdk.dtb
  34. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-usdpaa.dtb
  35. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb
  36. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
  37. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds-sdk.dtb
  38. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
  39. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-sdk.dtb
  40. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-usdpaa.dtb
  41. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-qds.dtb
  42. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-rdb.dtb
  43. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
  44. --- /dev/null
  45. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
  46. @@ -0,0 +1,71 @@
  47. +/*
  48. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  49. + *
  50. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  51. + *
  52. + * Mingkai Hu <[email protected]>
  53. + *
  54. + * This file is dual-licensed: you can use it either under the terms
  55. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  56. + * licensing only applies to this file, and not this project as a
  57. + * whole.
  58. + *
  59. + * a) This library is free software; you can redistribute it and/or
  60. + * modify it under the terms of the GNU General Public License as
  61. + * published by the Free Software Foundation; either version 2 of the
  62. + * License, or (at your option) any later version.
  63. + *
  64. + * This library is distributed in the hope that it will be useful,
  65. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  66. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  67. + * GNU General Public License for more details.
  68. + *
  69. + * Or, alternatively,
  70. + *
  71. + * b) Permission is hereby granted, free of charge, to any person
  72. + * obtaining a copy of this software and associated documentation
  73. + * files (the "Software"), to deal in the Software without
  74. + * restriction, including without limitation the rights to use,
  75. + * copy, modify, merge, publish, distribute, sublicense, and/or
  76. + * sell copies of the Software, and to permit persons to whom the
  77. + * Software is furnished to do so, subject to the following
  78. + * conditions:
  79. + *
  80. + * The above copyright notice and this permission notice shall be
  81. + * included in all copies or substantial portions of the Software.
  82. + *
  83. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  84. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  85. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  86. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  87. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  88. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  89. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  90. + * OTHER DEALINGS IN THE SOFTWARE.
  91. + */
  92. +
  93. +#include "fsl-ls1043a-qds.dts"
  94. +#include "qoriq-qman-portals-sdk.dtsi"
  95. +#include "qoriq-bman-portals-sdk.dtsi"
  96. +
  97. +&bman_fbpr {
  98. + compatible = "fsl,bman-fbpr";
  99. + alloc-ranges = <0 0 0x10000 0>;
  100. +};
  101. +&qman_fqd {
  102. + compatible = "fsl,qman-fqd";
  103. + alloc-ranges = <0 0 0x10000 0>;
  104. +};
  105. +&qman_pfdr {
  106. + compatible = "fsl,qman-pfdr";
  107. + alloc-ranges = <0 0 0x10000 0>;
  108. +};
  109. +
  110. +&soc {
  111. +#include "qoriq-dpaa-eth.dtsi"
  112. +#include "qoriq-fman3-0-6oh.dtsi"
  113. +};
  114. +
  115. +&fman0 {
  116. + compatible = "fsl,fman", "simple-bus";
  117. +};
  118. --- /dev/null
  119. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
  120. @@ -0,0 +1,71 @@
  121. +/*
  122. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  123. + *
  124. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  125. + *
  126. + * Mingkai Hu <[email protected]>
  127. + *
  128. + * This file is dual-licensed: you can use it either under the terms
  129. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  130. + * licensing only applies to this file, and not this project as a
  131. + * whole.
  132. + *
  133. + * a) This library is free software; you can redistribute it and/or
  134. + * modify it under the terms of the GNU General Public License as
  135. + * published by the Free Software Foundation; either version 2 of the
  136. + * License, or (at your option) any later version.
  137. + *
  138. + * This library is distributed in the hope that it will be useful,
  139. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  140. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  141. + * GNU General Public License for more details.
  142. + *
  143. + * Or, alternatively,
  144. + *
  145. + * b) Permission is hereby granted, free of charge, to any person
  146. + * obtaining a copy of this software and associated documentation
  147. + * files (the "Software"), to deal in the Software without
  148. + * restriction, including without limitation the rights to use,
  149. + * copy, modify, merge, publish, distribute, sublicense, and/or
  150. + * sell copies of the Software, and to permit persons to whom the
  151. + * Software is furnished to do so, subject to the following
  152. + * conditions:
  153. + *
  154. + * The above copyright notice and this permission notice shall be
  155. + * included in all copies or substantial portions of the Software.
  156. + *
  157. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  158. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  159. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  160. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  161. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  162. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  163. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  164. + * OTHER DEALINGS IN THE SOFTWARE.
  165. + */
  166. +
  167. +#include "fsl-ls1043a-rdb.dts"
  168. +#include "qoriq-qman-portals-sdk.dtsi"
  169. +#include "qoriq-bman-portals-sdk.dtsi"
  170. +
  171. +&bman_fbpr {
  172. + compatible = "fsl,bman-fbpr";
  173. + alloc-ranges = <0 0 0x10000 0>;
  174. +};
  175. +&qman_fqd {
  176. + compatible = "fsl,qman-fqd";
  177. + alloc-ranges = <0 0 0x10000 0>;
  178. +};
  179. +&qman_pfdr {
  180. + compatible = "fsl,qman-pfdr";
  181. + alloc-ranges = <0 0 0x10000 0>;
  182. +};
  183. +
  184. +&soc {
  185. +#include "qoriq-dpaa-eth.dtsi"
  186. +#include "qoriq-fman3-0-6oh.dtsi"
  187. +};
  188. +
  189. +&fman0 {
  190. + compatible = "fsl,fman", "simple-bus";
  191. +};
  192. --- /dev/null
  193. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
  194. @@ -0,0 +1,117 @@
  195. +/*
  196. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  197. + *
  198. + * Copyright (C) 2014-2015, Freescale Semiconductor
  199. + *
  200. + * This file is licensed under the terms of the GNU General Public
  201. + * License version 2. This program is licensed "as is" without any
  202. + * warranty of any kind, whether express or implied.
  203. + */
  204. +
  205. +#include "fsl-ls1043a-rdb-sdk.dts"
  206. +
  207. +&soc {
  208. + bp7: buffer-pool@7 {
  209. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  210. + fsl,bpid = <7>;
  211. + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
  212. + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
  213. + };
  214. +
  215. + bp8: buffer-pool@8 {
  216. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  217. + fsl,bpid = <8>;
  218. + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
  219. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  220. + };
  221. +
  222. + bp9: buffer-pool@9 {
  223. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  224. + fsl,bpid = <9>;
  225. + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
  226. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  227. + };
  228. +
  229. + fsl,dpaa {
  230. + compatible = "fsl,ls1043a", "fsl,dpaa", "simple-bus";
  231. +
  232. + ethernet@0 {
  233. + compatible = "fsl,dpa-ethernet-init";
  234. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  235. + fsl,qman-frame-queues-rx = <0x50 1 0x51 1>;
  236. + fsl,qman-frame-queues-tx = <0x70 1 0x71 1>;
  237. + };
  238. +
  239. + ethernet@1 {
  240. + compatible = "fsl,dpa-ethernet-init";
  241. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  242. + fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
  243. + fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
  244. + };
  245. +
  246. + ethernet@2 {
  247. + compatible = "fsl,dpa-ethernet-init";
  248. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  249. + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
  250. + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
  251. + };
  252. +
  253. + ethernet@3 {
  254. + compatible = "fsl,dpa-ethernet-init";
  255. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  256. + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
  257. + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
  258. + };
  259. +
  260. + ethernet@4 {
  261. + compatible = "fsl,dpa-ethernet-init";
  262. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  263. + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
  264. + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
  265. + };
  266. +
  267. + ethernet@5 {
  268. + compatible = "fsl,dpa-ethernet-init";
  269. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  270. + fsl,qman-frame-queues-rx = <0x60 1 0x61 1>;
  271. + fsl,qman-frame-queues-tx = <0x80 1 0x81 1>;
  272. + };
  273. +
  274. + ethernet@8 {
  275. + compatible = "fsl,dpa-ethernet-init";
  276. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  277. + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
  278. + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
  279. +
  280. + };
  281. + dpa-fman0-oh@2 {
  282. + compatible = "fsl,dpa-oh";
  283. + /* Define frame queues for the OH port*/
  284. + /* <OH Rx error, OH Rx default> */
  285. + fsl,qman-frame-queues-oh = <0x5a 1 0x5b 1>;
  286. + fsl,fman-oh-port = <&fman0_oh2>;
  287. + };
  288. + };
  289. +};
  290. +/ {
  291. + reserved-memory {
  292. + #address-cells = <2>;
  293. + #size-cells = <2>;
  294. + ranges;
  295. +
  296. + usdpaa_mem: usdpaa_mem {
  297. + compatible = "fsl,usdpaa-mem";
  298. + alloc-ranges = <0 0 0x10000 0>;
  299. + size = <0 0x10000000>;
  300. + alignment = <0 0x10000000>;
  301. + };
  302. + };
  303. +};
  304. +
  305. +&fman0 {
  306. + fman0_oh2: port@83000 {
  307. + cell-index = <1>;
  308. + compatible = "fsl,fman-port-oh";
  309. + reg = <0x83000 0x1000>;
  310. + };
  311. +};
  312. --- /dev/null
  313. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
  314. @@ -0,0 +1,79 @@
  315. +/*
  316. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  317. + *
  318. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  319. + *
  320. + * Mingkai Hu <[email protected]>
  321. + *
  322. + * This file is dual-licensed: you can use it either under the terms
  323. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  324. + * licensing only applies to this file, and not this project as a
  325. + * whole.
  326. + *
  327. + * a) This library is free software; you can redistribute it and/or
  328. + * modify it under the terms of the GNU General Public License as
  329. + * published by the Free Software Foundation; either version 2 of the
  330. + * License, or (at your option) any later version.
  331. + *
  332. + * This library is distributed in the hope that it will be useful,
  333. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  334. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  335. + * GNU General Public License for more details.
  336. + *
  337. + * Or, alternatively,
  338. + *
  339. + * b) Permission is hereby granted, free of charge, to any person
  340. + * obtaining a copy of this software and associated documentation
  341. + * files (the "Software"), to deal in the Software without
  342. + * restriction, including without limitation the rights to use,
  343. + * copy, modify, merge, publish, distribute, sublicense, and/or
  344. + * sell copies of the Software, and to permit persons to whom the
  345. + * Software is furnished to do so, subject to the following
  346. + * conditions:
  347. + *
  348. + * The above copyright notice and this permission notice shall be
  349. + * included in all copies or substantial portions of the Software.
  350. + *
  351. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  352. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  353. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  354. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  355. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  356. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  357. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  358. + * OTHER DEALINGS IN THE SOFTWARE.
  359. + */
  360. +
  361. +#include "fsl-ls1046a-qds.dts"
  362. +#include "qoriq-qman-portals-sdk.dtsi"
  363. +#include "qoriq-bman-portals-sdk.dtsi"
  364. +
  365. +&bman_fbpr {
  366. + compatible = "fsl,bman-fbpr";
  367. + alloc-ranges = <0 0 0x10000 0>;
  368. +};
  369. +&qman_fqd {
  370. + compatible = "fsl,qman-fqd";
  371. + alloc-ranges = <0 0 0x10000 0>;
  372. +};
  373. +&qman_pfdr {
  374. + compatible = "fsl,qman-pfdr";
  375. + alloc-ranges = <0 0 0x10000 0>;
  376. +};
  377. +
  378. +&soc {
  379. +#include "qoriq-dpaa-eth.dtsi"
  380. +#include "qoriq-fman3-0-6oh.dtsi"
  381. +};
  382. +
  383. +&fsldpaa {
  384. + ethernet@9 {
  385. + compatible = "fsl,dpa-ethernet";
  386. + fsl,fman-mac = <&enet7>;
  387. + dma-coherent;
  388. + };
  389. +};
  390. +
  391. +&fman0 {
  392. + compatible = "fsl,fman", "simple-bus";
  393. +};
  394. --- /dev/null
  395. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
  396. @@ -0,0 +1,115 @@
  397. +/*
  398. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  399. + *
  400. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  401. + *
  402. + * Mingkai Hu <[email protected]>
  403. + *
  404. + * This file is dual-licensed: you can use it either under the terms
  405. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  406. + * licensing only applies to this file, and not this project as a
  407. + * whole.
  408. + *
  409. + * a) This library is free software; you can redistribute it and/or
  410. + * modify it under the terms of the GNU General Public License as
  411. + * published by the Free Software Foundation; either version 2 of the
  412. + * License, or (at your option) any later version.
  413. + *
  414. + * This library is distributed in the hope that it will be useful,
  415. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  416. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  417. + * GNU General Public License for more details.
  418. + *
  419. + * Or, alternatively,
  420. + *
  421. + * b) Permission is hereby granted, free of charge, to any person
  422. + * obtaining a copy of this software and associated documentation
  423. + * files (the "Software"), to deal in the Software without
  424. + * restriction, including without limitation the rights to use,
  425. + * copy, modify, merge, publish, distribute, sublicense, and/or
  426. + * sell copies of the Software, and to permit persons to whom the
  427. + * Software is furnished to do so, subject to the following
  428. + * conditions:
  429. + *
  430. + * The above copyright notice and this permission notice shall be
  431. + * included in all copies or substantial portions of the Software.
  432. + *
  433. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  434. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  435. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  436. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  437. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  438. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  439. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  440. + * OTHER DEALINGS IN THE SOFTWARE.
  441. + */
  442. +
  443. +#include "fsl-ls1046a-rdb.dts"
  444. +#include "qoriq-qman-portals-sdk.dtsi"
  445. +#include "qoriq-bman-portals-sdk.dtsi"
  446. +
  447. +&bman_fbpr {
  448. + compatible = "fsl,bman-fbpr";
  449. + alloc-ranges = <0 0 0x10000 0>;
  450. +};
  451. +&qman_fqd {
  452. + compatible = "fsl,qman-fqd";
  453. + alloc-ranges = <0 0 0x10000 0>;
  454. +};
  455. +&qman_pfdr {
  456. + compatible = "fsl,qman-pfdr";
  457. + alloc-ranges = <0 0 0x10000 0>;
  458. +};
  459. +
  460. +&soc {
  461. +#include "qoriq-dpaa-eth.dtsi"
  462. +#include "qoriq-fman3-0-6oh.dtsi"
  463. +};
  464. +
  465. +&fsldpaa {
  466. + ethernet@0 {
  467. + status = "disabled";
  468. + };
  469. + ethernet@1 {
  470. + status = "disabled";
  471. + };
  472. + ethernet@9 {
  473. + compatible = "fsl,dpa-ethernet";
  474. + fsl,fman-mac = <&enet7>;
  475. + dma-coherent;
  476. + };
  477. +};
  478. +
  479. +&fman0 {
  480. + compatible = "fsl,fman", "simple-bus";
  481. +};
  482. +
  483. +&mdio9 {
  484. + pcsphy6: ethernet-phy@0 {
  485. + backplane-mode = "10gbase-kr";
  486. + compatible = "ethernet-phy-ieee802.3-c45";
  487. + reg = <0x0>;
  488. + fsl,lane-handle = <&serdes1>;
  489. + fsl,lane-reg = <0x8C0 0x40>; /* lane D */
  490. + };
  491. +};
  492. +
  493. +&mdio10 {
  494. + pcsphy7: ethernet-phy@0 {
  495. + backplane-mode = "10gbase-kr";
  496. + compatible = "ethernet-phy-ieee802.3-c45";
  497. + reg = <0x0>;
  498. + fsl,lane-handle = <&serdes1>;
  499. + fsl,lane-reg = <0x880 0x40>; /* lane C */
  500. + };
  501. +};
  502. +
  503. +/* Update MAC connections to backplane PHYs
  504. + * &mac9 {
  505. + * phy-handle = <&pcsphy6>;
  506. + *};
  507. + *
  508. + *&mac10 {
  509. + * phy-handle = <&pcsphy7>;
  510. + *};
  511. +*/
  512. --- /dev/null
  513. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
  514. @@ -0,0 +1,110 @@
  515. +/*
  516. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  517. + *
  518. + * Copyright (C) 2016, Freescale Semiconductor
  519. + *
  520. + * This file is licensed under the terms of the GNU General Public
  521. + * License version 2. This program is licensed "as is" without any
  522. + * warranty of any kind, whether express or implied.
  523. + */
  524. +
  525. +#include "fsl-ls1046a-rdb-sdk.dts"
  526. +
  527. +&soc {
  528. + bp7: buffer-pool@7 {
  529. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  530. + fsl,bpid = <7>;
  531. + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
  532. + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
  533. + };
  534. +
  535. + bp8: buffer-pool@8 {
  536. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  537. + fsl,bpid = <8>;
  538. + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
  539. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  540. + };
  541. +
  542. + bp9: buffer-pool@9 {
  543. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  544. + fsl,bpid = <9>;
  545. + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
  546. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  547. + };
  548. +
  549. + fsl,dpaa {
  550. + compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
  551. +
  552. + ethernet@2 {
  553. + compatible = "fsl,dpa-ethernet-init";
  554. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  555. + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
  556. + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
  557. + };
  558. +
  559. + ethernet@3 {
  560. + compatible = "fsl,dpa-ethernet-init";
  561. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  562. + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
  563. + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
  564. + };
  565. +
  566. + ethernet@4 {
  567. + compatible = "fsl,dpa-ethernet-init";
  568. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  569. + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
  570. + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
  571. + };
  572. +
  573. + ethernet@5 {
  574. + compatible = "fsl,dpa-ethernet-init";
  575. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  576. + fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>;
  577. + fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1>;
  578. + };
  579. +
  580. + ethernet@8 {
  581. + compatible = "fsl,dpa-ethernet-init";
  582. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  583. + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
  584. + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
  585. + };
  586. +
  587. + ethernet@9 {
  588. + compatible = "fsl,dpa-ethernet-init";
  589. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  590. + fsl,qman-frame-queues-rx = <0x5e 1 0x5f 1>;
  591. + fsl,qman-frame-queues-tx = <0x7e 1 0x7f 1>;
  592. + };
  593. +
  594. + dpa-fman0-oh@2 {
  595. + compatible = "fsl,dpa-oh";
  596. + /* Define frame queues for the OH port*/
  597. + /* <OH Rx error, OH Rx default> */
  598. + fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
  599. + fsl,fman-oh-port = <&fman0_oh2>;
  600. + };
  601. + };
  602. +};
  603. +/ {
  604. + reserved-memory {
  605. + #address-cells = <2>;
  606. + #size-cells = <2>;
  607. + ranges;
  608. +
  609. + usdpaa_mem: usdpaa_mem {
  610. + compatible = "fsl,usdpaa-mem";
  611. + alloc-ranges = <0 0 0x10000 0>;
  612. + size = <0 0x10000000>;
  613. + alignment = <0 0x10000000>;
  614. + };
  615. + };
  616. +};
  617. +
  618. +&fman0 {
  619. + fman0_oh2: port@83000 {
  620. + cell-index = <1>;
  621. + compatible = "fsl,fman-port-oh";
  622. + reg = <0x83000 0x1000>;
  623. + };
  624. +};