mps2.dtsi 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /*
  2. * Copyright (C) 2015 ARM Limited
  3. *
  4. * Author: Vladimir Murzin <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This file is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This file is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. #include "armv7-m.dtsi"
  45. / {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. oscclk0: clk-osc0 {
  49. compatible = "fixed-clock";
  50. #clock-cells = <0>;
  51. clock-frequency = <50000000>;
  52. };
  53. oscclk1: clk-osc1 {
  54. compatible = "fixed-clock";
  55. #clock-cells = <0>;
  56. clock-frequency = <24576000>;
  57. };
  58. oscclk2: clk-osc2 {
  59. compatible = "fixed-clock";
  60. #clock-cells = <0>;
  61. clock-frequency = <25000000>;
  62. };
  63. cfgclk: clk-cfg {
  64. compatible = "fixed-clock";
  65. #clock-cells = <0>;
  66. clock-frequency = <5000000>;
  67. };
  68. spicfgclk: clk-spicfg {
  69. compatible = "fixed-clock";
  70. #clock-cells = <0>;
  71. clock-frequency = <75000000>;
  72. };
  73. sysclk: clk-sys {
  74. compatible = "fixed-factor-clock";
  75. clocks = <&oscclk0>;
  76. #clock-cells = <0>;
  77. clock-div = <2>;
  78. clock-mult = <1>;
  79. };
  80. audmclk: clk-audm {
  81. compatible = "fixed-factor-clock";
  82. clocks = <&oscclk1>;
  83. #clock-cells = <0>;
  84. clock-div = <2>;
  85. clock-mult = <1>;
  86. };
  87. audsclk: clk-auds {
  88. compatible = "fixed-factor-clock";
  89. clocks = <&oscclk1>;
  90. #clock-cells = <0>;
  91. clock-div = <8>;
  92. clock-mult = <1>;
  93. };
  94. spiclcd: clk-cpiclcd {
  95. compatible = "fixed-factor-clock";
  96. clocks = <&oscclk0>;
  97. #clock-cells = <0>;
  98. clock-div = <2>;
  99. clock-mult = <1>;
  100. };
  101. spicon: clk-spicon {
  102. compatible = "fixed-factor-clock";
  103. clocks = <&oscclk0>;
  104. #clock-cells = <0>;
  105. clock-div = <2>;
  106. clock-mult = <1>;
  107. };
  108. i2cclcd: clk-i2cclcd {
  109. compatible = "fixed-factor-clock";
  110. clocks = <&oscclk0>;
  111. #clock-cells = <0>;
  112. clock-div = <2>;
  113. clock-mult = <1>;
  114. };
  115. i2caud: clk-i2caud {
  116. compatible = "fixed-factor-clock";
  117. clocks = <&oscclk0>;
  118. #clock-cells = <0>;
  119. clock-div = <2>;
  120. clock-mult = <1>;
  121. };
  122. soc {
  123. compatible = "simple-bus";
  124. ranges;
  125. apb@40000000 {
  126. compatible = "simple-bus";
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. ranges = <0 0x40000000 0x10000>;
  130. timer0: mps2-timer0@0 {
  131. compatible = "arm,mps2-timer";
  132. reg = <0x0 0x1000>;
  133. interrupts = <8>;
  134. clocks = <&sysclk>;
  135. status = "disabled";
  136. };
  137. timer1: mps2-timer1@1000 {
  138. compatible = "arm,mps2-timer";
  139. reg = <0x1000 0x1000>;
  140. interrupts = <9>;
  141. clocks = <&sysclk>;
  142. status = "disabled";
  143. };
  144. timer2: dual-timer@2000 {
  145. compatible = "arm,sp804", "arm,primecell";
  146. reg = <0x2000 0x1000>;
  147. clocks = <&sysclk>, <&sysclk>, <&sysclk>;
  148. clock-names = "timer0clk", "timer1clk",
  149. "apb_pclk";
  150. interrupts = <10>;
  151. status = "disabled";
  152. };
  153. uart0: serial@4000 {
  154. compatible = "arm,mps2-uart";
  155. reg = <0x4000 0x1000>;
  156. interrupts = <0>, <1>, <12>;
  157. clocks = <&sysclk>;
  158. status = "disabled";
  159. };
  160. uart1: serial@5000 {
  161. compatible = "arm,mps2-uart";
  162. reg = <0x5000 0x1000>;
  163. interrupts = <2>, <3>, <12>;
  164. clocks = <&sysclk>;
  165. status = "disabled";
  166. };
  167. uart2: serial@6000 {
  168. compatible = "arm,mps2-uart";
  169. reg = <0x6000 0x1000>;
  170. interrupts = <4>, <5>, <12>;
  171. clocks = <&sysclk>;
  172. status = "disabled";
  173. };
  174. wdt: watchdog@8000 {
  175. compatible = "arm,sp805", "arm,primecell";
  176. arm,primecell-periphid = <0x00141805>;
  177. reg = <0x8000 0x1000>;
  178. interrupts = <0>;
  179. clocks = <&sysclk>, <&sysclk>;
  180. clock-names = "wdog_clk", "apb_pclk";
  181. status = "disabled";
  182. };
  183. };
  184. };
  185. fpga@40020000 {
  186. compatible = "simple-bus";
  187. #address-cells = <1>;
  188. #size-cells = <1>;
  189. ranges = <0 0x40020000 0x10000>;
  190. fpgaio@8000 {
  191. compatible = "syscon", "simple-mfd";
  192. reg = <0x8000 0x10>;
  193. ranges = <0x0 0x8000 0x10>;
  194. #address-cells = <1>;
  195. #size-cells = <1>;
  196. led@0,0 {
  197. compatible = "register-bit-led";
  198. reg = <0x00 0x04>;
  199. offset = <0x0>;
  200. mask = <0x01>;
  201. label = "userled:0";
  202. linux,default-trigger = "heartbeat";
  203. default-state = "on";
  204. };
  205. led@0,1 {
  206. compatible = "register-bit-led";
  207. reg = <0x00 0x04>;
  208. offset = <0x0>;
  209. mask = <0x02>;
  210. label = "userled:1";
  211. linux,default-trigger = "usr";
  212. default-state = "off";
  213. };
  214. };
  215. };
  216. smb {
  217. compatible = "simple-bus";
  218. #address-cells = <2>;
  219. #size-cells = <1>;
  220. ranges = <0 0 0x40200000 0x10000>,
  221. <1 0 0xa0000000 0x10000>;
  222. };
  223. };