juno-motherboard.dtsi 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. /*
  2. * ARM Juno Platform motherboard peripherals
  3. *
  4. * Copyright (c) 2013-2014 ARM Ltd
  5. *
  6. * This file is licensed under a dual GPLv2 or BSD license.
  7. *
  8. */
  9. / {
  10. mb_clk24mhz: clk24mhz {
  11. compatible = "fixed-clock";
  12. #clock-cells = <0>;
  13. clock-frequency = <24000000>;
  14. clock-output-names = "juno_mb:clk24mhz";
  15. };
  16. mb_clk25mhz: clk25mhz {
  17. compatible = "fixed-clock";
  18. #clock-cells = <0>;
  19. clock-frequency = <25000000>;
  20. clock-output-names = "juno_mb:clk25mhz";
  21. };
  22. v2m_refclk1mhz: refclk1mhz {
  23. compatible = "fixed-clock";
  24. #clock-cells = <0>;
  25. clock-frequency = <1000000>;
  26. clock-output-names = "juno_mb:refclk1mhz";
  27. };
  28. v2m_refclk32khz: refclk32khz {
  29. compatible = "fixed-clock";
  30. #clock-cells = <0>;
  31. clock-frequency = <32768>;
  32. clock-output-names = "juno_mb:refclk32khz";
  33. };
  34. mb_fixed_3v3: mcc-sb-3v3 {
  35. compatible = "regulator-fixed";
  36. regulator-name = "MCC_SB_3V3";
  37. regulator-min-microvolt = <3300000>;
  38. regulator-max-microvolt = <3300000>;
  39. regulator-always-on;
  40. };
  41. gpio-keys {
  42. compatible = "gpio-keys";
  43. power-button {
  44. debounce-interval = <50>;
  45. wakeup-source;
  46. linux,code = <116>;
  47. label = "POWER";
  48. gpios = <&iofpga_gpio0 0 0x4>;
  49. };
  50. home-button {
  51. debounce-interval = <50>;
  52. wakeup-source;
  53. linux,code = <102>;
  54. label = "HOME";
  55. gpios = <&iofpga_gpio0 1 0x4>;
  56. };
  57. rlock-button {
  58. debounce-interval = <50>;
  59. wakeup-source;
  60. linux,code = <152>;
  61. label = "RLOCK";
  62. gpios = <&iofpga_gpio0 2 0x4>;
  63. };
  64. vol-up-button {
  65. debounce-interval = <50>;
  66. wakeup-source;
  67. linux,code = <115>;
  68. label = "VOL+";
  69. gpios = <&iofpga_gpio0 3 0x4>;
  70. };
  71. vol-down-button {
  72. debounce-interval = <50>;
  73. wakeup-source;
  74. linux,code = <114>;
  75. label = "VOL-";
  76. gpios = <&iofpga_gpio0 4 0x4>;
  77. };
  78. nmi-button {
  79. debounce-interval = <50>;
  80. wakeup-source;
  81. linux,code = <99>;
  82. label = "NMI";
  83. gpios = <&iofpga_gpio0 5 0x4>;
  84. };
  85. };
  86. bus@8000000 {
  87. compatible = "simple-bus";
  88. #address-cells = <2>;
  89. #size-cells = <1>;
  90. ranges = <0 0x8000000 0 0x8000000 0x18000000>;
  91. motherboard-bus@8000000 {
  92. compatible = "arm,vexpress,v2p-p1", "simple-bus";
  93. #address-cells = <2>; /* SMB chipselect number and offset */
  94. #size-cells = <1>;
  95. ranges = <0 0 0 0x08000000 0x04000000>,
  96. <1 0 0 0x14000000 0x04000000>,
  97. <2 0 0 0x18000000 0x04000000>,
  98. <3 0 0 0x1c000000 0x04000000>,
  99. <4 0 0 0x0c000000 0x04000000>,
  100. <5 0 0 0x10000000 0x04000000>;
  101. arm,hbi = <0x252>;
  102. arm,vexpress,site = <0>;
  103. flash@0 {
  104. /* 2 * 32MiB NOR Flash memory mounted on CS0 */
  105. compatible = "arm,vexpress-flash", "cfi-flash";
  106. reg = <0 0x00000000 0x04000000>;
  107. bank-width = <4>;
  108. /*
  109. * Unfortunately, accessing the flash disturbs
  110. * the CPU idle states (suspend) and CPU
  111. * hotplug of the platform. For this reason,
  112. * flash hardware access is disabled by default.
  113. */
  114. status = "disabled";
  115. partitions {
  116. compatible = "arm,arm-firmware-suite";
  117. };
  118. };
  119. ethernet@200000000 {
  120. compatible = "smsc,lan9118", "smsc,lan9115";
  121. reg = <2 0x00000000 0x10000>;
  122. interrupts = <3>;
  123. phy-mode = "mii";
  124. reg-io-width = <4>;
  125. smsc,irq-active-high;
  126. smsc,irq-push-pull;
  127. clocks = <&mb_clk25mhz>;
  128. vdd33a-supply = <&mb_fixed_3v3>;
  129. vddvario-supply = <&mb_fixed_3v3>;
  130. };
  131. iofpga-bus@300000000 {
  132. compatible = "simple-bus";
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  135. ranges = <0 3 0 0x200000>;
  136. v2m_sysctl: sysctl@20000 {
  137. compatible = "arm,sp810", "arm,primecell";
  138. reg = <0x020000 0x1000>;
  139. clocks = <&v2m_refclk32khz>, <&v2m_refclk1mhz>, <&mb_clk24mhz>;
  140. clock-names = "refclk", "timclk", "apb_pclk";
  141. #clock-cells = <1>;
  142. clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
  143. assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
  144. assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
  145. };
  146. apbregs@10000 {
  147. compatible = "syscon", "simple-mfd";
  148. reg = <0x010000 0x1000>;
  149. ranges = <0x0 0x10000 0x1000>;
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. led@8,0 {
  153. compatible = "register-bit-led";
  154. reg = <0x08 0x04>;
  155. offset = <0x08>;
  156. mask = <0x01>;
  157. label = "vexpress:0";
  158. linux,default-trigger = "heartbeat";
  159. default-state = "on";
  160. };
  161. led@8,1 {
  162. compatible = "register-bit-led";
  163. reg = <0x08 0x04>;
  164. offset = <0x08>;
  165. mask = <0x02>;
  166. label = "vexpress:1";
  167. linux,default-trigger = "mmc0";
  168. default-state = "off";
  169. };
  170. led@8,2 {
  171. compatible = "register-bit-led";
  172. reg = <0x08 0x04>;
  173. offset = <0x08>;
  174. mask = <0x04>;
  175. label = "vexpress:2";
  176. linux,default-trigger = "cpu0";
  177. default-state = "off";
  178. };
  179. led@8,3 {
  180. compatible = "register-bit-led";
  181. reg = <0x08 0x04>;
  182. offset = <0x08>;
  183. mask = <0x08>;
  184. label = "vexpress:3";
  185. linux,default-trigger = "cpu1";
  186. default-state = "off";
  187. };
  188. led@8,4 {
  189. compatible = "register-bit-led";
  190. reg = <0x08 0x04>;
  191. offset = <0x08>;
  192. mask = <0x10>;
  193. label = "vexpress:4";
  194. linux,default-trigger = "cpu2";
  195. default-state = "off";
  196. };
  197. led@8,5 {
  198. compatible = "register-bit-led";
  199. reg = <0x08 0x04>;
  200. offset = <0x08>;
  201. mask = <0x20>;
  202. label = "vexpress:5";
  203. linux,default-trigger = "cpu3";
  204. default-state = "off";
  205. };
  206. led@8,6 {
  207. compatible = "register-bit-led";
  208. reg = <0x08 0x04>;
  209. offset = <0x08>;
  210. mask = <0x40>;
  211. label = "vexpress:6";
  212. default-state = "off";
  213. };
  214. led@8,7 {
  215. compatible = "register-bit-led";
  216. reg = <0x08 0x04>;
  217. offset = <0x08>;
  218. mask = <0x80>;
  219. label = "vexpress:7";
  220. default-state = "off";
  221. };
  222. };
  223. mmc@50000 {
  224. compatible = "arm,pl180", "arm,primecell";
  225. reg = <0x050000 0x1000>;
  226. interrupts = <5>;
  227. /* cd-gpios = <&v2m_mmc_gpios 0 0>;
  228. wp-gpios = <&v2m_mmc_gpios 1 0>; */
  229. max-frequency = <12000000>;
  230. vmmc-supply = <&mb_fixed_3v3>;
  231. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  232. clock-names = "mclk", "apb_pclk";
  233. };
  234. kmi@60000 {
  235. compatible = "arm,pl050", "arm,primecell";
  236. reg = <0x060000 0x1000>;
  237. interrupts = <8>;
  238. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  239. clock-names = "KMIREFCLK", "apb_pclk";
  240. };
  241. kmi@70000 {
  242. compatible = "arm,pl050", "arm,primecell";
  243. reg = <0x070000 0x1000>;
  244. interrupts = <8>;
  245. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  246. clock-names = "KMIREFCLK", "apb_pclk";
  247. };
  248. watchdog@f0000 {
  249. compatible = "arm,sp805", "arm,primecell";
  250. reg = <0x0f0000 0x10000>;
  251. interrupts = <7>;
  252. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  253. clock-names = "wdog_clk", "apb_pclk";
  254. };
  255. v2m_timer01: timer@110000 {
  256. compatible = "arm,sp804", "arm,primecell";
  257. reg = <0x110000 0x10000>;
  258. interrupts = <9>;
  259. clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&mb_clk24mhz>;
  260. clock-names = "timclken1", "timclken2", "apb_pclk";
  261. };
  262. v2m_timer23: timer@120000 {
  263. compatible = "arm,sp804", "arm,primecell";
  264. reg = <0x120000 0x10000>;
  265. interrupts = <9>;
  266. clocks = <&v2m_sysctl 2>, <&v2m_sysctl 3>, <&mb_clk24mhz>;
  267. clock-names = "timclken1", "timclken2", "apb_pclk";
  268. };
  269. rtc@170000 {
  270. compatible = "arm,pl031", "arm,primecell";
  271. reg = <0x170000 0x10000>;
  272. interrupts = <0>;
  273. clocks = <&soc_smc50mhz>;
  274. clock-names = "apb_pclk";
  275. };
  276. iofpga_gpio0: gpio@1d0000 {
  277. compatible = "arm,pl061", "arm,primecell";
  278. reg = <0x1d0000 0x1000>;
  279. interrupts = <6>;
  280. clocks = <&soc_smc50mhz>;
  281. clock-names = "apb_pclk";
  282. gpio-controller;
  283. #gpio-cells = <2>;
  284. interrupt-controller;
  285. #interrupt-cells = <2>;
  286. };
  287. };
  288. };
  289. };
  290. };