008-v5.5-arm64-dts-marvell-Prepare-the-introduction-of-AP807-.patch 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. From 7409b155562cc19b929b57692b334c5758ffc75d Mon Sep 17 00:00:00 2001
  2. From: Konstantin Porotchkin <[email protected]>
  3. Date: Fri, 4 Oct 2019 16:27:22 +0200
  4. Subject: [PATCH] arm64: dts: marvell: Prepare the introduction of AP807 based
  5. SoCs
  6. Prepare the support for Marvell AP807 die. This die is very similar to
  7. AP806 but uses different DDR PHY. AP807 is a major component of CN9130
  8. SoC series.
  9. Signed-off-by: Konstantin Porotchkin <[email protected]>
  10. Signed-off-by: Miquel Raynal <[email protected]>
  11. Signed-off-by: Gregory CLEMENT <[email protected]>
  12. ---
  13. arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 448 +----------------
  14. arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 456 ++++++++++++++++++
  15. 2 files changed, 458 insertions(+), 446 deletions(-)
  16. create mode 100644 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
  17. --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
  18. +++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
  19. @@ -5,454 +5,10 @@
  20. * Device Tree file for Marvell Armada AP806.
  21. */
  22. -#include <dt-bindings/interrupt-controller/arm-gic.h>
  23. -#include <dt-bindings/thermal/thermal.h>
  24. -
  25. -/dts-v1/;
  26. +#define AP_NAME ap806
  27. +#include "armada-ap80x.dtsi"
  28. / {
  29. model = "Marvell Armada AP806";
  30. compatible = "marvell,armada-ap806";
  31. - #address-cells = <2>;
  32. - #size-cells = <2>;
  33. -
  34. - aliases {
  35. - serial0 = &uart0;
  36. - serial1 = &uart1;
  37. - gpio0 = &ap_gpio;
  38. - spi0 = &spi0;
  39. - };
  40. -
  41. - psci {
  42. - compatible = "arm,psci-0.2";
  43. - method = "smc";
  44. - };
  45. -
  46. - reserved-memory {
  47. - #address-cells = <2>;
  48. - #size-cells = <2>;
  49. - ranges;
  50. -
  51. - /*
  52. - * This area matches the mapping done with a
  53. - * mainline U-Boot, and should be updated by the
  54. - * bootloader.
  55. - */
  56. -
  57. - psci-area@4000000 {
  58. - reg = <0x0 0x4000000 0x0 0x200000>;
  59. - no-map;
  60. - };
  61. - };
  62. -
  63. - ap806 {
  64. - #address-cells = <2>;
  65. - #size-cells = <2>;
  66. - compatible = "simple-bus";
  67. - interrupt-parent = <&gic>;
  68. - ranges;
  69. -
  70. - config-space@f0000000 {
  71. - #address-cells = <1>;
  72. - #size-cells = <1>;
  73. - compatible = "simple-bus";
  74. - ranges = <0x0 0x0 0xf0000000 0x1000000>;
  75. -
  76. - gic: interrupt-controller@210000 {
  77. - compatible = "arm,gic-400";
  78. - #interrupt-cells = <3>;
  79. - #address-cells = <1>;
  80. - #size-cells = <1>;
  81. - ranges;
  82. - interrupt-controller;
  83. - interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  84. - reg = <0x210000 0x10000>,
  85. - <0x220000 0x20000>,
  86. - <0x240000 0x20000>,
  87. - <0x260000 0x20000>;
  88. -
  89. - gic_v2m0: v2m@280000 {
  90. - compatible = "arm,gic-v2m-frame";
  91. - msi-controller;
  92. - reg = <0x280000 0x1000>;
  93. - arm,msi-base-spi = <160>;
  94. - arm,msi-num-spis = <32>;
  95. - };
  96. - gic_v2m1: v2m@290000 {
  97. - compatible = "arm,gic-v2m-frame";
  98. - msi-controller;
  99. - reg = <0x290000 0x1000>;
  100. - arm,msi-base-spi = <192>;
  101. - arm,msi-num-spis = <32>;
  102. - };
  103. - gic_v2m2: v2m@2a0000 {
  104. - compatible = "arm,gic-v2m-frame";
  105. - msi-controller;
  106. - reg = <0x2a0000 0x1000>;
  107. - arm,msi-base-spi = <224>;
  108. - arm,msi-num-spis = <32>;
  109. - };
  110. - gic_v2m3: v2m@2b0000 {
  111. - compatible = "arm,gic-v2m-frame";
  112. - msi-controller;
  113. - reg = <0x2b0000 0x1000>;
  114. - arm,msi-base-spi = <256>;
  115. - arm,msi-num-spis = <32>;
  116. - };
  117. - };
  118. -
  119. - timer {
  120. - compatible = "arm,armv8-timer";
  121. - interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  122. - <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  123. - <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  124. - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  125. - };
  126. -
  127. - pmu {
  128. - compatible = "arm,cortex-a72-pmu";
  129. - interrupt-parent = <&pic>;
  130. - interrupts = <17>;
  131. - };
  132. -
  133. - odmi: odmi@300000 {
  134. - compatible = "marvell,odmi-controller";
  135. - interrupt-controller;
  136. - msi-controller;
  137. - marvell,odmi-frames = <4>;
  138. - reg = <0x300000 0x4000>,
  139. - <0x304000 0x4000>,
  140. - <0x308000 0x4000>,
  141. - <0x30C000 0x4000>;
  142. - marvell,spi-base = <128>, <136>, <144>, <152>;
  143. - };
  144. -
  145. - gicp: gicp@3f0040 {
  146. - compatible = "marvell,ap806-gicp";
  147. - reg = <0x3f0040 0x10>;
  148. - marvell,spi-ranges = <64 64>, <288 64>;
  149. - msi-controller;
  150. - };
  151. -
  152. - pic: interrupt-controller@3f0100 {
  153. - compatible = "marvell,armada-8k-pic";
  154. - reg = <0x3f0100 0x10>;
  155. - #interrupt-cells = <1>;
  156. - interrupt-controller;
  157. - interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
  158. - };
  159. -
  160. - sei: interrupt-controller@3f0200 {
  161. - compatible = "marvell,ap806-sei";
  162. - reg = <0x3f0200 0x40>;
  163. - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  164. - #interrupt-cells = <1>;
  165. - interrupt-controller;
  166. - msi-controller;
  167. - };
  168. -
  169. - xor@400000 {
  170. - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  171. - reg = <0x400000 0x1000>,
  172. - <0x410000 0x1000>;
  173. - msi-parent = <&gic_v2m0>;
  174. - clocks = <&ap_clk 3>;
  175. - dma-coherent;
  176. - };
  177. -
  178. - xor@420000 {
  179. - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  180. - reg = <0x420000 0x1000>,
  181. - <0x430000 0x1000>;
  182. - msi-parent = <&gic_v2m0>;
  183. - clocks = <&ap_clk 3>;
  184. - dma-coherent;
  185. - };
  186. -
  187. - xor@440000 {
  188. - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  189. - reg = <0x440000 0x1000>,
  190. - <0x450000 0x1000>;
  191. - msi-parent = <&gic_v2m0>;
  192. - clocks = <&ap_clk 3>;
  193. - dma-coherent;
  194. - };
  195. -
  196. - xor@460000 {
  197. - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  198. - reg = <0x460000 0x1000>,
  199. - <0x470000 0x1000>;
  200. - msi-parent = <&gic_v2m0>;
  201. - clocks = <&ap_clk 3>;
  202. - dma-coherent;
  203. - };
  204. -
  205. - spi0: spi@510600 {
  206. - compatible = "marvell,armada-380-spi";
  207. - reg = <0x510600 0x50>;
  208. - #address-cells = <1>;
  209. - #size-cells = <0>;
  210. - interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  211. - clocks = <&ap_clk 3>;
  212. - status = "disabled";
  213. - };
  214. -
  215. - i2c0: i2c@511000 {
  216. - compatible = "marvell,mv78230-i2c";
  217. - reg = <0x511000 0x20>;
  218. - #address-cells = <1>;
  219. - #size-cells = <0>;
  220. - interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  221. - timeout-ms = <1000>;
  222. - clocks = <&ap_clk 3>;
  223. - status = "disabled";
  224. - };
  225. -
  226. - uart0: serial@512000 {
  227. - compatible = "snps,dw-apb-uart";
  228. - reg = <0x512000 0x100>;
  229. - reg-shift = <2>;
  230. - interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  231. - reg-io-width = <1>;
  232. - clocks = <&ap_clk 3>;
  233. - status = "disabled";
  234. - };
  235. -
  236. - uart1: serial@512100 {
  237. - compatible = "snps,dw-apb-uart";
  238. - reg = <0x512100 0x100>;
  239. - reg-shift = <2>;
  240. - interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  241. - reg-io-width = <1>;
  242. - clocks = <&ap_clk 3>;
  243. - status = "disabled";
  244. -
  245. - };
  246. -
  247. - watchdog: watchdog@610000 {
  248. - compatible = "arm,sbsa-gwdt";
  249. - reg = <0x610000 0x1000>, <0x600000 0x1000>;
  250. - interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  251. - };
  252. -
  253. - ap_sdhci0: sdhci@6e0000 {
  254. - compatible = "marvell,armada-ap806-sdhci";
  255. - reg = <0x6e0000 0x300>;
  256. - interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  257. - clock-names = "core";
  258. - clocks = <&ap_clk 4>;
  259. - dma-coherent;
  260. - marvell,xenon-phy-slow-mode;
  261. - status = "disabled";
  262. - };
  263. -
  264. - ap_syscon0: system-controller@6f4000 {
  265. - compatible = "syscon", "simple-mfd";
  266. - reg = <0x6f4000 0x2000>;
  267. -
  268. - ap_clk: clock {
  269. - compatible = "marvell,ap806-clock";
  270. - #clock-cells = <1>;
  271. - };
  272. -
  273. - ap_pinctrl: pinctrl {
  274. - compatible = "marvell,ap806-pinctrl";
  275. -
  276. - uart0_pins: uart0-pins {
  277. - marvell,pins = "mpp11", "mpp19";
  278. - marvell,function = "uart0";
  279. - };
  280. - };
  281. -
  282. - ap_gpio: gpio@1040 {
  283. - compatible = "marvell,armada-8k-gpio";
  284. - offset = <0x1040>;
  285. - ngpios = <20>;
  286. - gpio-controller;
  287. - #gpio-cells = <2>;
  288. - gpio-ranges = <&ap_pinctrl 0 0 20>;
  289. - };
  290. - };
  291. -
  292. - ap_syscon1: system-controller@6f8000 {
  293. - compatible = "syscon", "simple-mfd";
  294. - reg = <0x6f8000 0x1000>;
  295. - #address-cells = <1>;
  296. - #size-cells = <1>;
  297. -
  298. - cpu_clk: clock-cpu@278 {
  299. - compatible = "marvell,ap806-cpu-clock";
  300. - clocks = <&ap_clk 0>, <&ap_clk 1>;
  301. - #clock-cells = <1>;
  302. - reg = <0x278 0xa30>;
  303. - };
  304. -
  305. - ap_thermal: thermal-sensor@80 {
  306. - compatible = "marvell,armada-ap806-thermal";
  307. - reg = <0x80 0x10>;
  308. - interrupt-parent = <&sei>;
  309. - interrupts = <18>;
  310. - #thermal-sensor-cells = <1>;
  311. - };
  312. - };
  313. - };
  314. - };
  315. -
  316. - /*
  317. - * The thermal IP features one internal sensor plus, if applicable, one
  318. - * remote channel wired to one sensor per CPU.
  319. - *
  320. - * Only one thermal zone per AP/CP may trigger interrupts at a time, the
  321. - * first one that will have a critical trip point will be chosen.
  322. - */
  323. - thermal-zones {
  324. - ap_thermal_ic: ap-thermal-ic {
  325. - polling-delay-passive = <0>; /* Interrupt driven */
  326. - polling-delay = <0>; /* Interrupt driven */
  327. -
  328. - thermal-sensors = <&ap_thermal 0>;
  329. -
  330. - trips {
  331. - ap_crit: ap-crit {
  332. - temperature = <100000>; /* mC degrees */
  333. - hysteresis = <2000>; /* mC degrees */
  334. - type = "critical";
  335. - };
  336. - };
  337. -
  338. - cooling-maps { };
  339. - };
  340. -
  341. - ap_thermal_cpu0: ap-thermal-cpu0 {
  342. - polling-delay-passive = <1000>;
  343. - polling-delay = <1000>;
  344. -
  345. - thermal-sensors = <&ap_thermal 1>;
  346. -
  347. - trips {
  348. - cpu0_hot: cpu0-hot {
  349. - temperature = <85000>;
  350. - hysteresis = <2000>;
  351. - type = "passive";
  352. - };
  353. - cpu0_emerg: cpu0-emerg {
  354. - temperature = <95000>;
  355. - hysteresis = <2000>;
  356. - type = "passive";
  357. - };
  358. - };
  359. -
  360. - cooling-maps {
  361. - map0_hot: map0-hot {
  362. - trip = <&cpu0_hot>;
  363. - cooling-device = <&cpu0 1 2>,
  364. - <&cpu1 1 2>;
  365. - };
  366. - map0_emerg: map0-ermerg {
  367. - trip = <&cpu0_emerg>;
  368. - cooling-device = <&cpu0 3 3>,
  369. - <&cpu1 3 3>;
  370. - };
  371. - };
  372. - };
  373. -
  374. - ap_thermal_cpu1: ap-thermal-cpu1 {
  375. - polling-delay-passive = <1000>;
  376. - polling-delay = <1000>;
  377. -
  378. - thermal-sensors = <&ap_thermal 2>;
  379. -
  380. - trips {
  381. - cpu1_hot: cpu1-hot {
  382. - temperature = <85000>;
  383. - hysteresis = <2000>;
  384. - type = "passive";
  385. - };
  386. - cpu1_emerg: cpu1-emerg {
  387. - temperature = <95000>;
  388. - hysteresis = <2000>;
  389. - type = "passive";
  390. - };
  391. - };
  392. -
  393. - cooling-maps {
  394. - map1_hot: map1-hot {
  395. - trip = <&cpu1_hot>;
  396. - cooling-device = <&cpu0 1 2>,
  397. - <&cpu1 1 2>;
  398. - };
  399. - map1_emerg: map1-emerg {
  400. - trip = <&cpu1_emerg>;
  401. - cooling-device = <&cpu0 3 3>,
  402. - <&cpu1 3 3>;
  403. - };
  404. - };
  405. - };
  406. -
  407. - ap_thermal_cpu2: ap-thermal-cpu2 {
  408. - polling-delay-passive = <1000>;
  409. - polling-delay = <1000>;
  410. -
  411. - thermal-sensors = <&ap_thermal 3>;
  412. -
  413. - trips {
  414. - cpu2_hot: cpu2-hot {
  415. - temperature = <85000>;
  416. - hysteresis = <2000>;
  417. - type = "passive";
  418. - };
  419. - cpu2_emerg: cpu2-emerg {
  420. - temperature = <95000>;
  421. - hysteresis = <2000>;
  422. - type = "passive";
  423. - };
  424. - };
  425. -
  426. - cooling-maps {
  427. - map2_hot: map2-hot {
  428. - trip = <&cpu2_hot>;
  429. - cooling-device = <&cpu2 1 2>,
  430. - <&cpu3 1 2>;
  431. - };
  432. - map2_emerg: map2-emerg {
  433. - trip = <&cpu2_emerg>;
  434. - cooling-device = <&cpu2 3 3>,
  435. - <&cpu3 3 3>;
  436. - };
  437. - };
  438. - };
  439. -
  440. - ap_thermal_cpu3: ap-thermal-cpu3 {
  441. - polling-delay-passive = <1000>;
  442. - polling-delay = <1000>;
  443. -
  444. - thermal-sensors = <&ap_thermal 4>;
  445. -
  446. - trips {
  447. - cpu3_hot: cpu3-hot {
  448. - temperature = <85000>;
  449. - hysteresis = <2000>;
  450. - type = "passive";
  451. - };
  452. - cpu3_emerg: cpu3-emerg {
  453. - temperature = <95000>;
  454. - hysteresis = <2000>;
  455. - type = "passive";
  456. - };
  457. - };
  458. -
  459. - cooling-maps {
  460. - map3_hot: map3-bhot {
  461. - trip = <&cpu3_hot>;
  462. - cooling-device = <&cpu2 1 2>,
  463. - <&cpu3 1 2>;
  464. - };
  465. - map3_emerg: map3-emerg {
  466. - trip = <&cpu3_emerg>;
  467. - cooling-device = <&cpu2 3 3>,
  468. - <&cpu3 3 3>;
  469. - };
  470. - };
  471. - };
  472. - };
  473. };
  474. --- /dev/null
  475. +++ b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
  476. @@ -0,0 +1,456 @@
  477. +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  478. +/*
  479. + * Copyright (C) 2019 Marvell Technology Group Ltd.
  480. + *
  481. + * Device Tree file for Marvell Armada AP80x.
  482. + */
  483. +
  484. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  485. +#include <dt-bindings/thermal/thermal.h>
  486. +
  487. +/dts-v1/;
  488. +
  489. +/ {
  490. + #address-cells = <2>;
  491. + #size-cells = <2>;
  492. +
  493. + aliases {
  494. + serial0 = &uart0;
  495. + serial1 = &uart1;
  496. + gpio0 = &ap_gpio;
  497. + spi0 = &spi0;
  498. + };
  499. +
  500. + psci {
  501. + compatible = "arm,psci-0.2";
  502. + method = "smc";
  503. + };
  504. +
  505. + reserved-memory {
  506. + #address-cells = <2>;
  507. + #size-cells = <2>;
  508. + ranges;
  509. +
  510. + /*
  511. + * This area matches the mapping done with a
  512. + * mainline U-Boot, and should be updated by the
  513. + * bootloader.
  514. + */
  515. +
  516. + psci-area@4000000 {
  517. + reg = <0x0 0x4000000 0x0 0x200000>;
  518. + no-map;
  519. + };
  520. + };
  521. +
  522. + AP_NAME {
  523. + #address-cells = <2>;
  524. + #size-cells = <2>;
  525. + compatible = "simple-bus";
  526. + interrupt-parent = <&gic>;
  527. + ranges;
  528. +
  529. + config-space@f0000000 {
  530. + #address-cells = <1>;
  531. + #size-cells = <1>;
  532. + compatible = "simple-bus";
  533. + ranges = <0x0 0x0 0xf0000000 0x1000000>;
  534. +
  535. + gic: interrupt-controller@210000 {
  536. + compatible = "arm,gic-400";
  537. + #interrupt-cells = <3>;
  538. + #address-cells = <1>;
  539. + #size-cells = <1>;
  540. + ranges;
  541. + interrupt-controller;
  542. + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  543. + reg = <0x210000 0x10000>,
  544. + <0x220000 0x20000>,
  545. + <0x240000 0x20000>,
  546. + <0x260000 0x20000>;
  547. +
  548. + gic_v2m0: v2m@280000 {
  549. + compatible = "arm,gic-v2m-frame";
  550. + msi-controller;
  551. + reg = <0x280000 0x1000>;
  552. + arm,msi-base-spi = <160>;
  553. + arm,msi-num-spis = <32>;
  554. + };
  555. + gic_v2m1: v2m@290000 {
  556. + compatible = "arm,gic-v2m-frame";
  557. + msi-controller;
  558. + reg = <0x290000 0x1000>;
  559. + arm,msi-base-spi = <192>;
  560. + arm,msi-num-spis = <32>;
  561. + };
  562. + gic_v2m2: v2m@2a0000 {
  563. + compatible = "arm,gic-v2m-frame";
  564. + msi-controller;
  565. + reg = <0x2a0000 0x1000>;
  566. + arm,msi-base-spi = <224>;
  567. + arm,msi-num-spis = <32>;
  568. + };
  569. + gic_v2m3: v2m@2b0000 {
  570. + compatible = "arm,gic-v2m-frame";
  571. + msi-controller;
  572. + reg = <0x2b0000 0x1000>;
  573. + arm,msi-base-spi = <256>;
  574. + arm,msi-num-spis = <32>;
  575. + };
  576. + };
  577. +
  578. + timer {
  579. + compatible = "arm,armv8-timer";
  580. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  581. + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  582. + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  583. + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  584. + };
  585. +
  586. + pmu {
  587. + compatible = "arm,cortex-a72-pmu";
  588. + interrupt-parent = <&pic>;
  589. + interrupts = <17>;
  590. + };
  591. +
  592. + odmi: odmi@300000 {
  593. + compatible = "marvell,odmi-controller";
  594. + interrupt-controller;
  595. + msi-controller;
  596. + marvell,odmi-frames = <4>;
  597. + reg = <0x300000 0x4000>,
  598. + <0x304000 0x4000>,
  599. + <0x308000 0x4000>,
  600. + <0x30C000 0x4000>;
  601. + marvell,spi-base = <128>, <136>, <144>, <152>;
  602. + };
  603. +
  604. + gicp: gicp@3f0040 {
  605. + compatible = "marvell,ap806-gicp";
  606. + reg = <0x3f0040 0x10>;
  607. + marvell,spi-ranges = <64 64>, <288 64>;
  608. + msi-controller;
  609. + };
  610. +
  611. + pic: interrupt-controller@3f0100 {
  612. + compatible = "marvell,armada-8k-pic";
  613. + reg = <0x3f0100 0x10>;
  614. + #interrupt-cells = <1>;
  615. + interrupt-controller;
  616. + interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
  617. + };
  618. +
  619. + sei: interrupt-controller@3f0200 {
  620. + compatible = "marvell,ap806-sei";
  621. + reg = <0x3f0200 0x40>;
  622. + interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  623. + #interrupt-cells = <1>;
  624. + interrupt-controller;
  625. + msi-controller;
  626. + };
  627. +
  628. + xor@400000 {
  629. + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  630. + reg = <0x400000 0x1000>,
  631. + <0x410000 0x1000>;
  632. + msi-parent = <&gic_v2m0>;
  633. + clocks = <&ap_clk 3>;
  634. + dma-coherent;
  635. + };
  636. +
  637. + xor@420000 {
  638. + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  639. + reg = <0x420000 0x1000>,
  640. + <0x430000 0x1000>;
  641. + msi-parent = <&gic_v2m0>;
  642. + clocks = <&ap_clk 3>;
  643. + dma-coherent;
  644. + };
  645. +
  646. + xor@440000 {
  647. + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  648. + reg = <0x440000 0x1000>,
  649. + <0x450000 0x1000>;
  650. + msi-parent = <&gic_v2m0>;
  651. + clocks = <&ap_clk 3>;
  652. + dma-coherent;
  653. + };
  654. +
  655. + xor@460000 {
  656. + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
  657. + reg = <0x460000 0x1000>,
  658. + <0x470000 0x1000>;
  659. + msi-parent = <&gic_v2m0>;
  660. + clocks = <&ap_clk 3>;
  661. + dma-coherent;
  662. + };
  663. +
  664. + spi0: spi@510600 {
  665. + compatible = "marvell,armada-380-spi";
  666. + reg = <0x510600 0x50>;
  667. + #address-cells = <1>;
  668. + #size-cells = <0>;
  669. + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  670. + clocks = <&ap_clk 3>;
  671. + status = "disabled";
  672. + };
  673. +
  674. + i2c0: i2c@511000 {
  675. + compatible = "marvell,mv78230-i2c";
  676. + reg = <0x511000 0x20>;
  677. + #address-cells = <1>;
  678. + #size-cells = <0>;
  679. + interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  680. + timeout-ms = <1000>;
  681. + clocks = <&ap_clk 3>;
  682. + status = "disabled";
  683. + };
  684. +
  685. + uart0: serial@512000 {
  686. + compatible = "snps,dw-apb-uart";
  687. + reg = <0x512000 0x100>;
  688. + reg-shift = <2>;
  689. + interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  690. + reg-io-width = <1>;
  691. + clocks = <&ap_clk 3>;
  692. + status = "disabled";
  693. + };
  694. +
  695. + uart1: serial@512100 {
  696. + compatible = "snps,dw-apb-uart";
  697. + reg = <0x512100 0x100>;
  698. + reg-shift = <2>;
  699. + interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  700. + reg-io-width = <1>;
  701. + clocks = <&ap_clk 3>;
  702. + status = "disabled";
  703. +
  704. + };
  705. +
  706. + watchdog: watchdog@610000 {
  707. + compatible = "arm,sbsa-gwdt";
  708. + reg = <0x610000 0x1000>, <0x600000 0x1000>;
  709. + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  710. + };
  711. +
  712. + ap_sdhci0: sdhci@6e0000 {
  713. + compatible = "marvell,armada-ap806-sdhci";
  714. + reg = <0x6e0000 0x300>;
  715. + interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  716. + clock-names = "core";
  717. + clocks = <&ap_clk 4>;
  718. + dma-coherent;
  719. + marvell,xenon-phy-slow-mode;
  720. + status = "disabled";
  721. + };
  722. +
  723. + ap_syscon0: system-controller@6f4000 {
  724. + compatible = "syscon", "simple-mfd";
  725. + reg = <0x6f4000 0x2000>;
  726. +
  727. + ap_clk: clock {
  728. + compatible = "marvell,ap806-clock";
  729. + #clock-cells = <1>;
  730. + };
  731. +
  732. + ap_pinctrl: pinctrl {
  733. + compatible = "marvell,ap806-pinctrl";
  734. +
  735. + uart0_pins: uart0-pins {
  736. + marvell,pins = "mpp11", "mpp19";
  737. + marvell,function = "uart0";
  738. + };
  739. + };
  740. +
  741. + ap_gpio: gpio@1040 {
  742. + compatible = "marvell,armada-8k-gpio";
  743. + offset = <0x1040>;
  744. + ngpios = <20>;
  745. + gpio-controller;
  746. + #gpio-cells = <2>;
  747. + gpio-ranges = <&ap_pinctrl 0 0 20>;
  748. + };
  749. + };
  750. +
  751. + ap_syscon1: system-controller@6f8000 {
  752. + compatible = "syscon", "simple-mfd";
  753. + reg = <0x6f8000 0x1000>;
  754. + #address-cells = <1>;
  755. + #size-cells = <1>;
  756. +
  757. + cpu_clk: clock-cpu@278 {
  758. + compatible = "marvell,ap806-cpu-clock";
  759. + clocks = <&ap_clk 0>, <&ap_clk 1>;
  760. + #clock-cells = <1>;
  761. + reg = <0x278 0xa30>;
  762. + };
  763. +
  764. + ap_thermal: thermal-sensor@80 {
  765. + compatible = "marvell,armada-ap806-thermal";
  766. + reg = <0x80 0x10>;
  767. + interrupt-parent = <&sei>;
  768. + interrupts = <18>;
  769. + #thermal-sensor-cells = <1>;
  770. + };
  771. + };
  772. + };
  773. + };
  774. +
  775. + /*
  776. + * The thermal IP features one internal sensor plus, if applicable, one
  777. + * remote channel wired to one sensor per CPU.
  778. + *
  779. + * Only one thermal zone per AP/CP may trigger interrupts at a time, the
  780. + * first one that will have a critical trip point will be chosen.
  781. + */
  782. + thermal-zones {
  783. + ap_thermal_ic: ap-thermal-ic {
  784. + polling-delay-passive = <0>; /* Interrupt driven */
  785. + polling-delay = <0>; /* Interrupt driven */
  786. +
  787. + thermal-sensors = <&ap_thermal 0>;
  788. +
  789. + trips {
  790. + ap_crit: ap-crit {
  791. + temperature = <100000>; /* mC degrees */
  792. + hysteresis = <2000>; /* mC degrees */
  793. + type = "critical";
  794. + };
  795. + };
  796. +
  797. + cooling-maps { };
  798. + };
  799. +
  800. + ap_thermal_cpu0: ap-thermal-cpu0 {
  801. + polling-delay-passive = <1000>;
  802. + polling-delay = <1000>;
  803. +
  804. + thermal-sensors = <&ap_thermal 1>;
  805. +
  806. + trips {
  807. + cpu0_hot: cpu0-hot {
  808. + temperature = <85000>;
  809. + hysteresis = <2000>;
  810. + type = "passive";
  811. + };
  812. + cpu0_emerg: cpu0-emerg {
  813. + temperature = <95000>;
  814. + hysteresis = <2000>;
  815. + type = "passive";
  816. + };
  817. + };
  818. +
  819. + cooling-maps {
  820. + map0_hot: map0-hot {
  821. + trip = <&cpu0_hot>;
  822. + cooling-device = <&cpu0 1 2>,
  823. + <&cpu1 1 2>;
  824. + };
  825. + map0_emerg: map0-ermerg {
  826. + trip = <&cpu0_emerg>;
  827. + cooling-device = <&cpu0 3 3>,
  828. + <&cpu1 3 3>;
  829. + };
  830. + };
  831. + };
  832. +
  833. + ap_thermal_cpu1: ap-thermal-cpu1 {
  834. + polling-delay-passive = <1000>;
  835. + polling-delay = <1000>;
  836. +
  837. + thermal-sensors = <&ap_thermal 2>;
  838. +
  839. + trips {
  840. + cpu1_hot: cpu1-hot {
  841. + temperature = <85000>;
  842. + hysteresis = <2000>;
  843. + type = "passive";
  844. + };
  845. + cpu1_emerg: cpu1-emerg {
  846. + temperature = <95000>;
  847. + hysteresis = <2000>;
  848. + type = "passive";
  849. + };
  850. + };
  851. +
  852. + cooling-maps {
  853. + map1_hot: map1-hot {
  854. + trip = <&cpu1_hot>;
  855. + cooling-device = <&cpu0 1 2>,
  856. + <&cpu1 1 2>;
  857. + };
  858. + map1_emerg: map1-emerg {
  859. + trip = <&cpu1_emerg>;
  860. + cooling-device = <&cpu0 3 3>,
  861. + <&cpu1 3 3>;
  862. + };
  863. + };
  864. + };
  865. +
  866. + ap_thermal_cpu2: ap-thermal-cpu2 {
  867. + polling-delay-passive = <1000>;
  868. + polling-delay = <1000>;
  869. +
  870. + thermal-sensors = <&ap_thermal 3>;
  871. +
  872. + trips {
  873. + cpu2_hot: cpu2-hot {
  874. + temperature = <85000>;
  875. + hysteresis = <2000>;
  876. + type = "passive";
  877. + };
  878. + cpu2_emerg: cpu2-emerg {
  879. + temperature = <95000>;
  880. + hysteresis = <2000>;
  881. + type = "passive";
  882. + };
  883. + };
  884. +
  885. + cooling-maps {
  886. + map2_hot: map2-hot {
  887. + trip = <&cpu2_hot>;
  888. + cooling-device = <&cpu2 1 2>,
  889. + <&cpu3 1 2>;
  890. + };
  891. + map2_emerg: map2-emerg {
  892. + trip = <&cpu2_emerg>;
  893. + cooling-device = <&cpu2 3 3>,
  894. + <&cpu3 3 3>;
  895. + };
  896. + };
  897. + };
  898. +
  899. + ap_thermal_cpu3: ap-thermal-cpu3 {
  900. + polling-delay-passive = <1000>;
  901. + polling-delay = <1000>;
  902. +
  903. + thermal-sensors = <&ap_thermal 4>;
  904. +
  905. + trips {
  906. + cpu3_hot: cpu3-hot {
  907. + temperature = <85000>;
  908. + hysteresis = <2000>;
  909. + type = "passive";
  910. + };
  911. + cpu3_emerg: cpu3-emerg {
  912. + temperature = <95000>;
  913. + hysteresis = <2000>;
  914. + type = "passive";
  915. + };
  916. + };
  917. +
  918. + cooling-maps {
  919. + map3_hot: map3-bhot {
  920. + trip = <&cpu3_hot>;
  921. + cooling-device = <&cpu2 1 2>,
  922. + <&cpu3 1 2>;
  923. + };
  924. + map3_emerg: map3-emerg {
  925. + trip = <&cpu3_emerg>;
  926. + cooling-device = <&cpu2 3 3>,
  927. + <&cpu3 3 3>;
  928. + };
  929. + };
  930. + };
  931. + };
  932. +};