abilis_tb100.dtsi 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /*
  2. * Abilis Systems TB100 SOC device tree
  3. *
  4. * Copyright (C) Abilis Systems 2013
  5. *
  6. * Author: Christian Ruppert <christian.ruppert@abilis.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. /include/ "abilis_tb10x.dtsi"
  22. / {
  23. clock-frequency = <500000000>; /* 500 MHZ */
  24. soc100 {
  25. bus-frequency = <166666666>;
  26. pll0: oscillator {
  27. clock-frequency = <1000000000>;
  28. };
  29. cpu_clk: clkdiv_cpu {
  30. clock-mult = <1>;
  31. clock-div = <2>;
  32. };
  33. ahb_clk: clkdiv_ahb {
  34. clock-mult = <1>;
  35. clock-div = <6>;
  36. };
  37. iomux: iomux@FF10601c {
  38. /* Port 1 */
  39. pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */
  40. abilis,function = "mis0";
  41. };
  42. pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */
  43. abilis,function = "mis1";
  44. };
  45. pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */
  46. abilis,function = "gpioa";
  47. };
  48. pctl_tsin_p1: pctl-tsin-p1 { /* Parallel TS-in 1 */
  49. abilis,function = "mip1";
  50. };
  51. /* Port 2 */
  52. pctl_tsin_s2: pctl-tsin-s2 { /* Serial TS-in 2 */
  53. abilis,function = "mis2";
  54. };
  55. pctl_tsin_s3: pctl-tsin-s3 { /* Serial TS-in 3 */
  56. abilis,function = "mis3";
  57. };
  58. pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */
  59. abilis,function = "gpioc";
  60. };
  61. pctl_tsin_p3: pctl-tsin-p3 { /* Parallel TS-in 3 */
  62. abilis,function = "mip3";
  63. };
  64. /* Port 3 */
  65. pctl_tsin_s4: pctl-tsin-s4 { /* Serial TS-in 4 */
  66. abilis,function = "mis4";
  67. };
  68. pctl_tsin_s5: pctl-tsin-s5 { /* Serial TS-in 5 */
  69. abilis,function = "mis5";
  70. };
  71. pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */
  72. abilis,function = "gpioe";
  73. };
  74. pctl_tsin_p5: pctl-tsin-p5 { /* Parallel TS-in 5 */
  75. abilis,function = "mip5";
  76. };
  77. /* Port 4 */
  78. pctl_tsin_s6: pctl-tsin-s6 { /* Serial TS-in 6 */
  79. abilis,function = "mis6";
  80. };
  81. pctl_tsin_s7: pctl-tsin-s7 { /* Serial TS-in 7 */
  82. abilis,function = "mis7";
  83. };
  84. pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */
  85. abilis,function = "gpiog";
  86. };
  87. pctl_tsin_p7: pctl-tsin-p7 { /* Parallel TS-in 7 */
  88. abilis,function = "mip7";
  89. };
  90. /* Port 5 */
  91. pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */
  92. abilis,function = "gpioj";
  93. };
  94. pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */
  95. abilis,function = "gpiok";
  96. };
  97. pctl_ciplus: pctl-ciplus { /* CI+ interface */
  98. abilis,function = "ciplus";
  99. };
  100. pctl_mcard: pctl-mcard { /* M-Card interface */
  101. abilis,function = "mcard";
  102. };
  103. /* Port 6 */
  104. pctl_tsout_p: pctl-tsout-p { /* Parallel TS-out */
  105. abilis,function = "mop";
  106. };
  107. pctl_tsout_s0: pctl-tsout-s0 { /* Serial TS-out 0 */
  108. abilis,function = "mos0";
  109. };
  110. pctl_tsout_s1: pctl-tsout-s1 { /* Serial TS-out 1 */
  111. abilis,function = "mos1";
  112. };
  113. pctl_tsout_s2: pctl-tsout-s2 { /* Serial TS-out 2 */
  114. abilis,function = "mos2";
  115. };
  116. pctl_tsout_s3: pctl-tsout-s3 { /* Serial TS-out 3 */
  117. abilis,function = "mos3";
  118. };
  119. /* Port 7 */
  120. pctl_uart0: pctl-uart0 { /* UART 0 */
  121. abilis,function = "uart0";
  122. };
  123. pctl_uart1: pctl-uart1 { /* UART 1 */
  124. abilis,function = "uart1";
  125. };
  126. pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
  127. abilis,function = "gpiol";
  128. };
  129. pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
  130. abilis,function = "gpiom";
  131. };
  132. /* Port 8 */
  133. pctl_spi3: pctl-spi3 {
  134. abilis,function = "spi3";
  135. };
  136. /* Port 9 */
  137. pctl_spi1: pctl-spi1 {
  138. abilis,function = "spi1";
  139. };
  140. pctl_gpio_n: pctl-gpio-n {
  141. abilis,function = "gpion";
  142. };
  143. /* Unmuxed GPIOs */
  144. pctl_gpio_b: pctl-gpio-b {
  145. abilis,function = "gpiob";
  146. };
  147. pctl_gpio_d: pctl-gpio-d {
  148. abilis,function = "gpiod";
  149. };
  150. pctl_gpio_f: pctl-gpio-f {
  151. abilis,function = "gpiof";
  152. };
  153. pctl_gpio_h: pctl-gpio-h {
  154. abilis,function = "gpioh";
  155. };
  156. pctl_gpio_i: pctl-gpio-i {
  157. abilis,function = "gpioi";
  158. };
  159. };
  160. gpioa: gpio@FF140000 {
  161. compatible = "abilis,tb10x-gpio";
  162. interrupt-controller;
  163. #interrupt-cells = <1>;
  164. interrupt-parent = <&tb10x_ictl>;
  165. interrupts = <27 2>;
  166. reg = <0xFF140000 0x1000>;
  167. gpio-controller;
  168. #gpio-cells = <2>;
  169. abilis,ngpio = <3>;
  170. gpio-ranges = <&iomux 0 0 0>;
  171. gpio-ranges-group-names = "gpioa";
  172. };
  173. gpiob: gpio@FF141000 {
  174. compatible = "abilis,tb10x-gpio";
  175. interrupt-controller;
  176. #interrupt-cells = <1>;
  177. interrupt-parent = <&tb10x_ictl>;
  178. interrupts = <27 2>;
  179. reg = <0xFF141000 0x1000>;
  180. gpio-controller;
  181. #gpio-cells = <2>;
  182. abilis,ngpio = <2>;
  183. gpio-ranges = <&iomux 0 0 0>;
  184. gpio-ranges-group-names = "gpiob";
  185. };
  186. gpioc: gpio@FF142000 {
  187. compatible = "abilis,tb10x-gpio";
  188. interrupt-controller;
  189. #interrupt-cells = <1>;
  190. interrupt-parent = <&tb10x_ictl>;
  191. interrupts = <27 2>;
  192. reg = <0xFF142000 0x1000>;
  193. gpio-controller;
  194. #gpio-cells = <2>;
  195. abilis,ngpio = <3>;
  196. gpio-ranges = <&iomux 0 0 0>;
  197. gpio-ranges-group-names = "gpioc";
  198. };
  199. gpiod: gpio@FF143000 {
  200. compatible = "abilis,tb10x-gpio";
  201. interrupt-controller;
  202. #interrupt-cells = <1>;
  203. interrupt-parent = <&tb10x_ictl>;
  204. interrupts = <27 2>;
  205. reg = <0xFF143000 0x1000>;
  206. gpio-controller;
  207. #gpio-cells = <2>;
  208. abilis,ngpio = <2>;
  209. gpio-ranges = <&iomux 0 0 0>;
  210. gpio-ranges-group-names = "gpiod";
  211. };
  212. gpioe: gpio@FF144000 {
  213. compatible = "abilis,tb10x-gpio";
  214. interrupt-controller;
  215. #interrupt-cells = <1>;
  216. interrupt-parent = <&tb10x_ictl>;
  217. interrupts = <27 2>;
  218. reg = <0xFF144000 0x1000>;
  219. gpio-controller;
  220. #gpio-cells = <2>;
  221. abilis,ngpio = <3>;
  222. gpio-ranges = <&iomux 0 0 0>;
  223. gpio-ranges-group-names = "gpioe";
  224. };
  225. gpiof: gpio@FF145000 {
  226. compatible = "abilis,tb10x-gpio";
  227. interrupt-controller;
  228. #interrupt-cells = <1>;
  229. interrupt-parent = <&tb10x_ictl>;
  230. interrupts = <27 2>;
  231. reg = <0xFF145000 0x1000>;
  232. gpio-controller;
  233. #gpio-cells = <2>;
  234. abilis,ngpio = <2>;
  235. gpio-ranges = <&iomux 0 0 0>;
  236. gpio-ranges-group-names = "gpiof";
  237. };
  238. gpiog: gpio@FF146000 {
  239. compatible = "abilis,tb10x-gpio";
  240. interrupt-controller;
  241. #interrupt-cells = <1>;
  242. interrupt-parent = <&tb10x_ictl>;
  243. interrupts = <27 2>;
  244. reg = <0xFF146000 0x1000>;
  245. gpio-controller;
  246. #gpio-cells = <2>;
  247. abilis,ngpio = <3>;
  248. gpio-ranges = <&iomux 0 0 0>;
  249. gpio-ranges-group-names = "gpiog";
  250. };
  251. gpioh: gpio@FF147000 {
  252. compatible = "abilis,tb10x-gpio";
  253. interrupt-controller;
  254. #interrupt-cells = <1>;
  255. interrupt-parent = <&tb10x_ictl>;
  256. interrupts = <27 2>;
  257. reg = <0xFF147000 0x1000>;
  258. gpio-controller;
  259. #gpio-cells = <2>;
  260. abilis,ngpio = <2>;
  261. gpio-ranges = <&iomux 0 0 0>;
  262. gpio-ranges-group-names = "gpioh";
  263. };
  264. gpioi: gpio@FF148000 {
  265. compatible = "abilis,tb10x-gpio";
  266. interrupt-controller;
  267. #interrupt-cells = <1>;
  268. interrupt-parent = <&tb10x_ictl>;
  269. interrupts = <27 2>;
  270. reg = <0xFF148000 0x1000>;
  271. gpio-controller;
  272. #gpio-cells = <2>;
  273. abilis,ngpio = <12>;
  274. gpio-ranges = <&iomux 0 0 0>;
  275. gpio-ranges-group-names = "gpioi";
  276. };
  277. gpioj: gpio@FF149000 {
  278. compatible = "abilis,tb10x-gpio";
  279. interrupt-controller;
  280. #interrupt-cells = <1>;
  281. interrupt-parent = <&tb10x_ictl>;
  282. interrupts = <27 2>;
  283. reg = <0xFF149000 0x1000>;
  284. gpio-controller;
  285. #gpio-cells = <2>;
  286. abilis,ngpio = <32>;
  287. gpio-ranges = <&iomux 0 0 0>;
  288. gpio-ranges-group-names = "gpioj";
  289. };
  290. gpiok: gpio@FF14a000 {
  291. compatible = "abilis,tb10x-gpio";
  292. interrupt-controller;
  293. #interrupt-cells = <1>;
  294. interrupt-parent = <&tb10x_ictl>;
  295. interrupts = <27 2>;
  296. reg = <0xFF14A000 0x1000>;
  297. gpio-controller;
  298. #gpio-cells = <2>;
  299. abilis,ngpio = <22>;
  300. gpio-ranges = <&iomux 0 0 0>;
  301. gpio-ranges-group-names = "gpiok";
  302. };
  303. gpiol: gpio@FF14b000 {
  304. compatible = "abilis,tb10x-gpio";
  305. interrupt-controller;
  306. #interrupt-cells = <1>;
  307. interrupt-parent = <&tb10x_ictl>;
  308. interrupts = <27 2>;
  309. reg = <0xFF14B000 0x1000>;
  310. gpio-controller;
  311. #gpio-cells = <2>;
  312. abilis,ngpio = <4>;
  313. gpio-ranges = <&iomux 0 0 0>;
  314. gpio-ranges-group-names = "gpiol";
  315. };
  316. gpiom: gpio@FF14c000 {
  317. compatible = "abilis,tb10x-gpio";
  318. interrupt-controller;
  319. #interrupt-cells = <1>;
  320. interrupt-parent = <&tb10x_ictl>;
  321. interrupts = <27 2>;
  322. reg = <0xFF14C000 0x1000>;
  323. gpio-controller;
  324. #gpio-cells = <2>;
  325. abilis,ngpio = <4>;
  326. gpio-ranges = <&iomux 0 0 0>;
  327. gpio-ranges-group-names = "gpiom";
  328. };
  329. gpion: gpio@FF14d000 {
  330. compatible = "abilis,tb10x-gpio";
  331. interrupt-controller;
  332. #interrupt-cells = <1>;
  333. interrupt-parent = <&tb10x_ictl>;
  334. interrupts = <27 2>;
  335. reg = <0xFF14D000 0x1000>;
  336. gpio-controller;
  337. #gpio-cells = <2>;
  338. abilis,ngpio = <5>;
  339. gpio-ranges = <&iomux 0 0 0>;
  340. gpio-ranges-group-names = "gpion";
  341. };
  342. };
  343. };