juno-motherboard.dtsi 7.3 KB

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