juno-motherboard.dtsi 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. mb_clk24mhz: clk24mhz {
  10. compatible = "fixed-clock";
  11. #clock-cells = <0>;
  12. clock-frequency = <24000000>;
  13. clock-output-names = "juno_mb:clk24mhz";
  14. };
  15. mb_clk25mhz: clk25mhz {
  16. compatible = "fixed-clock";
  17. #clock-cells = <0>;
  18. clock-frequency = <25000000>;
  19. clock-output-names = "juno_mb:clk25mhz";
  20. };
  21. v2m_refclk1mhz: refclk1mhz {
  22. compatible = "fixed-clock";
  23. #clock-cells = <0>;
  24. clock-frequency = <1000000>;
  25. clock-output-names = "juno_mb:refclk1mhz";
  26. };
  27. v2m_refclk32khz: refclk32khz {
  28. compatible = "fixed-clock";
  29. #clock-cells = <0>;
  30. clock-frequency = <32768>;
  31. clock-output-names = "juno_mb:refclk32khz";
  32. };
  33. motherboard {
  34. compatible = "arm,vexpress,v2p-p1", "simple-bus";
  35. #address-cells = <2>; /* SMB chipselect number and offset */
  36. #size-cells = <1>;
  37. #interrupt-cells = <1>;
  38. ranges;
  39. model = "V2M-Juno";
  40. arm,hbi = <0x252>;
  41. arm,vexpress,site = <0>;
  42. arm,v2m-memory-map = "rs1";
  43. mb_fixed_3v3: fixedregulator@0 {
  44. compatible = "regulator-fixed";
  45. regulator-name = "MCC_SB_3V3";
  46. regulator-min-microvolt = <3300000>;
  47. regulator-max-microvolt = <3300000>;
  48. regulator-always-on;
  49. };
  50. gpio_keys {
  51. compatible = "gpio-keys";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. button@1 {
  55. debounce_interval = <50>;
  56. wakeup-source;
  57. linux,code = <116>;
  58. label = "POWER";
  59. gpios = <&iofpga_gpio0 0 0x4>;
  60. };
  61. button@2 {
  62. debounce_interval = <50>;
  63. wakeup-source;
  64. linux,code = <102>;
  65. label = "HOME";
  66. gpios = <&iofpga_gpio0 1 0x4>;
  67. };
  68. button@3 {
  69. debounce_interval = <50>;
  70. wakeup-source;
  71. linux,code = <152>;
  72. label = "RLOCK";
  73. gpios = <&iofpga_gpio0 2 0x4>;
  74. };
  75. button@4 {
  76. debounce_interval = <50>;
  77. wakeup-source;
  78. linux,code = <115>;
  79. label = "VOL+";
  80. gpios = <&iofpga_gpio0 3 0x4>;
  81. };
  82. button@5 {
  83. debounce_interval = <50>;
  84. wakeup-source;
  85. linux,code = <114>;
  86. label = "VOL-";
  87. gpios = <&iofpga_gpio0 4 0x4>;
  88. };
  89. button@6 {
  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. usb@5,00000000 {
  124. compatible = "nxp,usb-isp1763";
  125. reg = <5 0x00000000 0x20000>;
  126. bus-width = <16>;
  127. interrupts = <4>;
  128. };
  129. iofpga@3,00000000 {
  130. compatible = "arm,amba-bus", "simple-bus";
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. ranges = <0 3 0 0x200000>;
  134. v2m_sysctl: sysctl@020000 {
  135. compatible = "arm,sp810", "arm,primecell";
  136. reg = <0x020000 0x1000>;
  137. clocks = <&v2m_refclk32khz>, <&v2m_refclk1mhz>, <&mb_clk24mhz>;
  138. clock-names = "refclk", "timclk", "apb_pclk";
  139. #clock-cells = <1>;
  140. clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
  141. assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
  142. assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
  143. };
  144. apbregs@010000 {
  145. compatible = "syscon", "simple-mfd";
  146. reg = <0x010000 0x1000>;
  147. led@08.0 {
  148. compatible = "register-bit-led";
  149. offset = <0x08>;
  150. mask = <0x01>;
  151. label = "vexpress:0";
  152. linux,default-trigger = "heartbeat";
  153. default-state = "on";
  154. };
  155. led@08.1 {
  156. compatible = "register-bit-led";
  157. offset = <0x08>;
  158. mask = <0x02>;
  159. label = "vexpress:1";
  160. linux,default-trigger = "mmc0";
  161. default-state = "off";
  162. };
  163. led@08.2 {
  164. compatible = "register-bit-led";
  165. offset = <0x08>;
  166. mask = <0x04>;
  167. label = "vexpress:2";
  168. linux,default-trigger = "cpu0";
  169. default-state = "off";
  170. };
  171. led@08.3 {
  172. compatible = "register-bit-led";
  173. offset = <0x08>;
  174. mask = <0x08>;
  175. label = "vexpress:3";
  176. linux,default-trigger = "cpu1";
  177. default-state = "off";
  178. };
  179. led@08.4 {
  180. compatible = "register-bit-led";
  181. offset = <0x08>;
  182. mask = <0x10>;
  183. label = "vexpress:4";
  184. linux,default-trigger = "cpu2";
  185. default-state = "off";
  186. };
  187. led@08.5 {
  188. compatible = "register-bit-led";
  189. offset = <0x08>;
  190. mask = <0x20>;
  191. label = "vexpress:5";
  192. linux,default-trigger = "cpu3";
  193. default-state = "off";
  194. };
  195. led@08.6 {
  196. compatible = "register-bit-led";
  197. offset = <0x08>;
  198. mask = <0x40>;
  199. label = "vexpress:6";
  200. default-state = "off";
  201. };
  202. led@08.7 {
  203. compatible = "register-bit-led";
  204. offset = <0x08>;
  205. mask = <0x80>;
  206. label = "vexpress:7";
  207. default-state = "off";
  208. };
  209. };
  210. mmci@050000 {
  211. compatible = "arm,pl180", "arm,primecell";
  212. reg = <0x050000 0x1000>;
  213. interrupts = <5>;
  214. /* cd-gpios = <&v2m_mmc_gpios 0 0>;
  215. wp-gpios = <&v2m_mmc_gpios 1 0>; */
  216. max-frequency = <12000000>;
  217. vmmc-supply = <&mb_fixed_3v3>;
  218. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  219. clock-names = "mclk", "apb_pclk";
  220. };
  221. kmi@060000 {
  222. compatible = "arm,pl050", "arm,primecell";
  223. reg = <0x060000 0x1000>;
  224. interrupts = <8>;
  225. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  226. clock-names = "KMIREFCLK", "apb_pclk";
  227. };
  228. kmi@070000 {
  229. compatible = "arm,pl050", "arm,primecell";
  230. reg = <0x070000 0x1000>;
  231. interrupts = <8>;
  232. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  233. clock-names = "KMIREFCLK", "apb_pclk";
  234. };
  235. wdt@0f0000 {
  236. compatible = "arm,sp805", "arm,primecell";
  237. reg = <0x0f0000 0x10000>;
  238. interrupts = <7>;
  239. clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
  240. clock-names = "wdogclk", "apb_pclk";
  241. };
  242. v2m_timer01: timer@110000 {
  243. compatible = "arm,sp804", "arm,primecell";
  244. reg = <0x110000 0x10000>;
  245. interrupts = <9>;
  246. clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&mb_clk24mhz>;
  247. clock-names = "timclken1", "timclken2", "apb_pclk";
  248. };
  249. v2m_timer23: timer@120000 {
  250. compatible = "arm,sp804", "arm,primecell";
  251. reg = <0x120000 0x10000>;
  252. interrupts = <9>;
  253. clocks = <&v2m_sysctl 2>, <&v2m_sysctl 3>, <&mb_clk24mhz>;
  254. clock-names = "timclken1", "timclken2", "apb_pclk";
  255. };
  256. rtc@170000 {
  257. compatible = "arm,pl031", "arm,primecell";
  258. reg = <0x170000 0x10000>;
  259. interrupts = <0>;
  260. clocks = <&soc_smc50mhz>;
  261. clock-names = "apb_pclk";
  262. };
  263. iofpga_gpio0: gpio@1d0000 {
  264. compatible = "arm,pl061", "arm,primecell";
  265. reg = <0x1d0000 0x1000>;
  266. interrupts = <6>;
  267. clocks = <&soc_smc50mhz>;
  268. clock-names = "apb_pclk";
  269. gpio-controller;
  270. #gpio-cells = <2>;
  271. interrupt-controller;
  272. #interrupt-cells = <2>;
  273. };
  274. };
  275. };