Advertisement
hanni76

h3 dts

Mar 12th, 2018
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42.  
  43. #include "sunxi-h3-h5.dtsi"
  44.  
  45. / {
  46. cpus {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49.  
  50. cpu0: cpu@0 {
  51. compatible = "arm,cortex-a7";
  52. device_type = "cpu";
  53. reg = <0>;
  54. clocks = <&ccu CLK_CPUX>;
  55. operating-points-v2 = <&cpu0_opp_table>;
  56. #cooling-cells = <0x2>;
  57. cooling-min-level = <0>;
  58. cooling-max-level = <8>;
  59. };
  60.  
  61. cpu1: cpu@1 {
  62. compatible = "arm,cortex-a7";
  63. device_type = "cpu";
  64. reg = <1>;
  65. clocks = <&ccu CLK_CPUX>;
  66. operating-points-v2 = <&cpu0_opp_table>;
  67. };
  68.  
  69. cpu2: cpu@2 {
  70. compatible = "arm,cortex-a7";
  71. device_type = "cpu";
  72. reg = <2>;
  73. clocks = <&ccu CLK_CPUX>;
  74. operating-points-v2 = <&cpu0_opp_table>;
  75. };
  76.  
  77. cpu3: cpu@3 {
  78. compatible = "arm,cortex-a7";
  79. device_type = "cpu";
  80. reg = <3>;
  81. clocks = <&ccu CLK_CPUX>;
  82. operating-points-v2 = <&cpu0_opp_table>;
  83. };
  84. };
  85.  
  86. cpu0_opp_table: opp_table0 {
  87. compatible = "operating-points-v2";
  88. opp-shared;
  89.  
  90. opp@480000000 {
  91. opp-hz = /bits/ 64 <480000000>;
  92. opp-microvolt = <980000 980000 1320000>;
  93. clock-latency-ns = <244144>; /* 8 32k periods */
  94. };
  95.  
  96. opp@648000000 {
  97. opp-hz = /bits/ 64 <648000000>;
  98. opp-microvolt = <1000000 1000000 1320000>;
  99. clock-latency-ns = <244144>; /* 8 32k periods */
  100. };
  101.  
  102. opp@816000000 {
  103. opp-hz = /bits/ 64 <816000000>;
  104. opp-microvolt = <1020000 1020000 1320000>;
  105. clock-latency-ns = <244144>; /* 8 32k periods */
  106. };
  107.  
  108. opp@912000000 {
  109. opp-hz = /bits/ 64 <912000000>;
  110. opp-microvolt = <1040000 1040000 1320000>;
  111. clock-latency-ns = <244144>; /* 8 32k periods */
  112. };
  113.  
  114. opp@960000000 {
  115. opp-hz = /bits/ 64 <960000000>;
  116. opp-microvolt = <1080000 1080000 1320000>;
  117. clock-latency-ns = <244144>; /* 8 32k periods */
  118. };
  119.  
  120. opp@1008000000 {
  121. opp-hz = /bits/ 64 <1008000000>;
  122. opp-microvolt = <1140000 1140000 1300000>;
  123. clock-latency-ns = <244144>; /* 8 32k periods */
  124. };
  125.  
  126. opp@1104000000 {
  127. opp-hz = /bits/ 64 <1104000000>;
  128. opp-microvolt = <1180000 1180000 1320000>;
  129. clock-latency-ns = <244144>; /* 8 32k periods */
  130. };
  131.  
  132. opp@1200000000 {
  133. opp-hz = /bits/ 64 <1200000000>;
  134. opp-microvolt = <1240000 1240000 1320000>;
  135. clock-latency-ns = <244144>; /* 8 32k periods */
  136. };
  137.  
  138. opp@1296000000 {
  139. opp-hz = /bits/ 64 <1296000000>;
  140. opp-microvolt = <1320000 1320000 1320000>;
  141. clock-latency-ns = <244144>; /* 8 32k periods */
  142. };
  143. };
  144.  
  145. thermal-zones {
  146. cpu-thermal {
  147. /* milliseconds */
  148. polling-delay-passive = <250>;
  149. polling-delay = <1000>;
  150. thermal-sensors = <&ths>;
  151.  
  152. trips {
  153. cpu_warm: cpu_warm {
  154. temperature = <65000>;
  155. hysteresis = <2000>;
  156. type = "passive";
  157. };
  158.  
  159. cpu_hot_pre: cpu_hot_pre {
  160. temperature = <70000>;
  161. hysteresis = <2000>;
  162. type = "passive";
  163. };
  164.  
  165. cpu_hot: cpu_hot {
  166. temperature = <75000>;
  167. hysteresis = <2000>;
  168. type = "passive";
  169. };
  170.  
  171. cpu_very_hot_pre: cpu_very_hot_pre {
  172. temperature = <85000>;
  173. hysteresis = <2000>;
  174. type = "passive";
  175. };
  176.  
  177. cpu_very_hot: cpu_very_hot {
  178. temperature = <90000>;
  179. hysteresis = <2000>;
  180. type = "passive";
  181. };
  182.  
  183. cpu_crit: cpu_crit {
  184. temperature = <105000>;
  185. hysteresis = <2000>;
  186. type = "critical";
  187. };
  188. };
  189.  
  190. cooling-maps {
  191. cpu_warm_limit_cpu {
  192. trip = <&cpu_warm>;
  193. cooling-device = <&cpu0 THERMAL_NO_LIMIT 2>;
  194. };
  195.  
  196. cpu_hot_pre_limit_cpu {
  197. trip = <&cpu_hot_pre>;
  198. cooling-device = <&cpu0 2 3>;
  199. };
  200.  
  201. cpu_hot_limit_cpu {
  202. trip = <&cpu_hot>;
  203. cooling-device = <&cpu0 3 4>;
  204. };
  205.  
  206. cpu_very_hot_pre_limit_cpu {
  207. trip = <&cpu_very_hot>;
  208. cooling-device = <&cpu0 5 6>;
  209. };
  210.  
  211. cpu_very_hot_limit_cpu {
  212. trip = <&cpu_very_hot>;
  213. cooling-device = <&cpu0 7 THERMAL_NO_LIMIT>;
  214. };
  215. };
  216. };
  217. };
  218.  
  219. timer {
  220. compatible = "arm,armv7-timer";
  221. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  222. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  223. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  224. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  225. };
  226.  
  227. soc {
  228. mali: gpu@1c40000 {
  229. compatible = "allwinner,sun8i-h3-mali",
  230. "allwinner,sun7i-a20-mali",
  231. "arm,mali-400";
  232. reg = <0x01c40000 0x10000>;
  233. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
  234. <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
  235. <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
  236. <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
  237. <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
  238. <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
  239. <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
  240. interrupt-names = "gp",
  241. "gpmmu",
  242. "pp0",
  243. "ppmmu0",
  244. "pp1",
  245. "ppmmu1",
  246. "pmu";
  247. clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
  248. clock-names = "bus", "core";
  249. resets = <&ccu RST_BUS_GPU>;
  250. memory-region = <&cma>;
  251.  
  252. assigned-clocks = <&ccu CLK_GPU>;
  253. assigned-clock-rates = <384000000>;
  254. };
  255. };
  256.  
  257. reserved-memory {
  258. #address-cells = <1>;
  259. #size-cells = <1>;
  260. ranges;
  261.  
  262. cma: linux,cma {
  263. compatible = "shared-dma-pool";
  264. reusable;
  265. size = <0x8000000>;
  266. alignment = <0x2000>;
  267. linux,cma-default;
  268. };
  269. };
  270. };
  271.  
  272. &ccu {
  273. compatible = "allwinner,sun8i-h3-ccu";
  274. };
  275.  
  276. &de {
  277. memory-region = <&cma>;
  278. };
  279.  
  280. &display_clocks {
  281. compatible = "allwinner,sun8i-h3-de2-clk";
  282. };
  283.  
  284. &mmc0 {
  285. compatible = "allwinner,sun7i-a20-mmc";
  286. clocks = <&ccu CLK_BUS_MMC0>,
  287. <&ccu CLK_MMC0>,
  288. <&ccu CLK_MMC0_OUTPUT>,
  289. <&ccu CLK_MMC0_SAMPLE>;
  290. clock-names = "ahb",
  291. "mmc",
  292. "output",
  293. "sample";
  294. };
  295.  
  296. &mmc1 {
  297. compatible = "allwinner,sun7i-a20-mmc";
  298. clocks = <&ccu CLK_BUS_MMC1>,
  299. <&ccu CLK_MMC1>,
  300. <&ccu CLK_MMC1_OUTPUT>,
  301. <&ccu CLK_MMC1_SAMPLE>;
  302. clock-names = "ahb",
  303. "mmc",
  304. "output",
  305. "sample";
  306. };
  307.  
  308. &mmc2 {
  309. compatible = "allwinner,sun7i-a20-mmc";
  310. clocks = <&ccu CLK_BUS_MMC2>,
  311. <&ccu CLK_MMC2>,
  312. <&ccu CLK_MMC2_OUTPUT>,
  313. <&ccu CLK_MMC2_SAMPLE>;
  314. clock-names = "ahb",
  315. "mmc",
  316. "output",
  317. "sample";
  318. };
  319.  
  320. &pio {
  321. compatible = "allwinner,sun8i-h3-pinctrl";
  322. };
  323.  
  324. &ths {
  325. compatible = "allwinner,sun8i-h3-ths";
  326. #thermal-sensor-cells = <0>;
  327. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement