mps2.dtsi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. /*
  2. * Copyright (C) 2015 ARM Limited
  3. *
  4. * Author: Vladimir Murzin <vladimir.murzin@arm.com>
  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 "skeleton.dtsi"
  45. #include "armv7-m.dtsi"
  46. / {
  47. oscclk0: clk-osc0 {
  48. compatible = "fixed-clock";
  49. #clock-cells = <0>;
  50. clock-frequency = <50000000>;
  51. };
  52. oscclk1: clk-osc1 {
  53. compatible = "fixed-clock";
  54. #clock-cells = <0>;
  55. clock-frequency = <24576000>;
  56. };
  57. oscclk2: clk-osc2 {
  58. compatible = "fixed-clock";
  59. #clock-cells = <0>;
  60. clock-frequency = <25000000>;
  61. };
  62. cfgclk: clk-cfg {
  63. compatible = "fixed-clock";
  64. #clock-cells = <0>;
  65. clock-frequency = <5000000>;
  66. };
  67. spicfgclk: clk-spicfg {
  68. compatible = "fixed-clock";
  69. #clock-cells = <0>;
  70. clock-frequency = <75000000>;
  71. };
  72. sysclk: clk-sys {
  73. compatible = "fixed-factor-clock";
  74. clocks = <&oscclk0>;
  75. #clock-cells = <0>;
  76. clock-div = <2>;
  77. clock-mult = <1>;
  78. };
  79. audmclk: clk-audm {
  80. compatible = "fixed-factor-clock";
  81. clocks = <&oscclk1>;
  82. #clock-cells = <0>;
  83. clock-div = <2>;
  84. clock-mult = <1>;
  85. };
  86. audsclk: clk-auds {
  87. compatible = "fixed-factor-clock";
  88. clocks = <&oscclk1>;
  89. #clock-cells = <0>;
  90. clock-div = <8>;
  91. clock-mult = <1>;
  92. };
  93. spiclcd: clk-cpiclcd {
  94. compatible = "fixed-factor-clock";
  95. clocks = <&oscclk0>;
  96. #clock-cells = <0>;
  97. clock-div = <2>;
  98. clock-mult = <1>;
  99. };
  100. spicon: clk-spicon {
  101. compatible = "fixed-factor-clock";
  102. clocks = <&oscclk0>;
  103. #clock-cells = <0>;
  104. clock-div = <2>;
  105. clock-mult = <1>;
  106. };
  107. i2cclcd: clk-i2cclcd {
  108. compatible = "fixed-factor-clock";
  109. clocks = <&oscclk0>;
  110. #clock-cells = <0>;
  111. clock-div = <2>;
  112. clock-mult = <1>;
  113. };
  114. i2caud: clk-i2caud {
  115. compatible = "fixed-factor-clock";
  116. clocks = <&oscclk0>;
  117. #clock-cells = <0>;
  118. clock-div = <2>;
  119. clock-mult = <1>;
  120. };
  121. soc {
  122. compatible = "simple-bus";
  123. ranges;
  124. apb@40000000 {
  125. compatible = "simple-bus";
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. ranges = <0 0x40000000 0x10000>;
  129. timer0: mps2-timer0@0 {
  130. compatible = "arm,mps2-timer";
  131. reg = <0x0 0x1000>;
  132. interrupts = <8>;
  133. clocks = <&sysclk>;
  134. status = "disabled";
  135. };
  136. timer1: mps2-timer1@1000 {
  137. compatible = "arm,mps2-timer";
  138. reg = <0x1000 0x1000>;
  139. interrupts = <9>;
  140. clocks = <&sysclk>;
  141. status = "disabled";
  142. };
  143. timer2: dual-timer@2000 {
  144. compatible = "arm,sp804";
  145. reg = <0x2000 0x1000>;
  146. clocks = <&sysclk>;
  147. interrupts = <10>;
  148. status = "disabled";
  149. };
  150. uart0: serial@4000 {
  151. compatible = "arm,mps2-uart";
  152. reg = <0x4000 0x1000>;
  153. interrupts = <0 1 12>;
  154. clocks = <&sysclk>;
  155. status = "disabled";
  156. };
  157. uart1: serial@5000 {
  158. compatible = "arm,mps2-uart";
  159. reg = <0x5000 0x1000>;
  160. interrupts = <2 3 12>;
  161. clocks = <&sysclk>;
  162. status = "disabled";
  163. };
  164. uart2: serial@6000 {
  165. compatible = "arm,mps2-uart";
  166. reg = <0x6000 0x1000>;
  167. interrupts = <4 5 12>;
  168. clocks = <&sysclk>;
  169. status = "disabled";
  170. };
  171. wdt: watchdog@8000 {
  172. compatible = "arm,sp805", "arm,primecell";
  173. arm,primecell-periphid = <0x00141805>;
  174. reg = <0x8000 0x1000>;
  175. interrupts = <0>;
  176. clocks = <&sysclk>;
  177. clock-names = "apb_pclk";
  178. status = "disabled";
  179. };
  180. };
  181. };
  182. fpga@40020000 {
  183. compatible = "simple-bus";
  184. #address-cells = <1>;
  185. #size-cells = <1>;
  186. ranges = <0 0x40020000 0x10000>;
  187. fpgaio@8000 {
  188. compatible = "syscon", "simple-mfd";
  189. reg = <0x8000 0x10>;
  190. led0 {
  191. compatible = "register-bit-led";
  192. offset = <0x0>;
  193. mask = <0x01>;
  194. label = "userled:0";
  195. linux,default-trigger = "heartbeat";
  196. default-state = "on";
  197. };
  198. led1 {
  199. compatible = "register-bit-led";
  200. offset = <0x0>;
  201. mask = <0x02>;
  202. label = "userled:1";
  203. linux,default-trigger = "usr";
  204. default-state = "off";
  205. };
  206. };
  207. };
  208. smb {
  209. compatible = "simple-bus";
  210. #address-cells = <2>;
  211. #size-cells = <1>;
  212. ranges = <0 0 0x40200000 0x10000>,
  213. <1 0 0xa0000000 0x10000>;
  214. };
  215. };