abilis_tb101.dtsi 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. /*
  2. * Abilis Systems TB101 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. pctl_stc0: pctl-stc0 { /* Smart card I/F 0 */
  104. abilis,function = "stc0";
  105. };
  106. pctl_stc1: pctl-stc1 { /* Smart card I/F 1 */
  107. abilis,function = "stc1";
  108. };
  109. /* Port 6 */
  110. pctl_tsout_p: pctl-tsout-p { /* Parallel TS-out */
  111. abilis,function = "mop";
  112. };
  113. pctl_tsout_s0: pctl-tsout-s0 { /* Serial TS-out 0 */
  114. abilis,function = "mos0";
  115. };
  116. pctl_tsout_s1: pctl-tsout-s1 { /* Serial TS-out 1 */
  117. abilis,function = "mos1";
  118. };
  119. pctl_tsout_s2: pctl-tsout-s2 { /* Serial TS-out 2 */
  120. abilis,function = "mos2";
  121. };
  122. pctl_tsout_s3: pctl-tsout-s3 { /* Serial TS-out 3 */
  123. abilis,function = "mos3";
  124. };
  125. /* Port 7 */
  126. pctl_uart0: pctl-uart0 { /* UART 0 */
  127. abilis,function = "uart0";
  128. };
  129. pctl_uart1: pctl-uart1 { /* UART 1 */
  130. abilis,function = "uart1";
  131. };
  132. pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
  133. abilis,function = "gpiol";
  134. };
  135. pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
  136. abilis,function = "gpiom";
  137. };
  138. /* Port 8 */
  139. pctl_spi3: pctl-spi3 {
  140. abilis,function = "spi3";
  141. };
  142. pctl_jtag: pctl-jtag {
  143. abilis,function = "jtag";
  144. };
  145. /* Port 9 */
  146. pctl_spi1: pctl-spi1 {
  147. abilis,function = "spi1";
  148. };
  149. pctl_gpio_n: pctl-gpio-n {
  150. abilis,function = "gpion";
  151. };
  152. /* Unmuxed GPIOs */
  153. pctl_gpio_b: pctl-gpio-b {
  154. abilis,function = "gpiob";
  155. };
  156. pctl_gpio_d: pctl-gpio-d {
  157. abilis,function = "gpiod";
  158. };
  159. pctl_gpio_f: pctl-gpio-f {
  160. abilis,function = "gpiof";
  161. };
  162. pctl_gpio_h: pctl-gpio-h {
  163. abilis,function = "gpioh";
  164. };
  165. pctl_gpio_i: pctl-gpio-i {
  166. abilis,function = "gpioi";
  167. };
  168. };
  169. gpioa: gpio@FF140000 {
  170. compatible = "abilis,tb10x-gpio";
  171. interrupt-controller;
  172. #interrupt-cells = <1>;
  173. interrupt-parent = <&tb10x_ictl>;
  174. interrupts = <27 2>;
  175. reg = <0xFF140000 0x1000>;
  176. gpio-controller;
  177. #gpio-cells = <2>;
  178. abilis,ngpio = <3>;
  179. gpio-ranges = <&iomux 0 0 0>;
  180. gpio-ranges-group-names = "gpioa";
  181. };
  182. gpiob: gpio@FF141000 {
  183. compatible = "abilis,tb10x-gpio";
  184. interrupt-controller;
  185. #interrupt-cells = <1>;
  186. interrupt-parent = <&tb10x_ictl>;
  187. interrupts = <27 2>;
  188. reg = <0xFF141000 0x1000>;
  189. gpio-controller;
  190. #gpio-cells = <2>;
  191. abilis,ngpio = <2>;
  192. gpio-ranges = <&iomux 0 0 0>;
  193. gpio-ranges-group-names = "gpiob";
  194. };
  195. gpioc: gpio@FF142000 {
  196. compatible = "abilis,tb10x-gpio";
  197. interrupt-controller;
  198. #interrupt-cells = <1>;
  199. interrupt-parent = <&tb10x_ictl>;
  200. interrupts = <27 2>;
  201. reg = <0xFF142000 0x1000>;
  202. gpio-controller;
  203. #gpio-cells = <2>;
  204. abilis,ngpio = <3>;
  205. gpio-ranges = <&iomux 0 0 0>;
  206. gpio-ranges-group-names = "gpioc";
  207. };
  208. gpiod: gpio@FF143000 {
  209. compatible = "abilis,tb10x-gpio";
  210. interrupt-controller;
  211. #interrupt-cells = <1>;
  212. interrupt-parent = <&tb10x_ictl>;
  213. interrupts = <27 2>;
  214. reg = <0xFF143000 0x1000>;
  215. gpio-controller;
  216. #gpio-cells = <2>;
  217. abilis,ngpio = <2>;
  218. gpio-ranges = <&iomux 0 0 0>;
  219. gpio-ranges-group-names = "gpiod";
  220. };
  221. gpioe: gpio@FF144000 {
  222. compatible = "abilis,tb10x-gpio";
  223. interrupt-controller;
  224. #interrupt-cells = <1>;
  225. interrupt-parent = <&tb10x_ictl>;
  226. interrupts = <27 2>;
  227. reg = <0xFF144000 0x1000>;
  228. gpio-controller;
  229. #gpio-cells = <2>;
  230. abilis,ngpio = <3>;
  231. gpio-ranges = <&iomux 0 0 0>;
  232. gpio-ranges-group-names = "gpioe";
  233. };
  234. gpiof: gpio@FF145000 {
  235. compatible = "abilis,tb10x-gpio";
  236. interrupt-controller;
  237. #interrupt-cells = <1>;
  238. interrupt-parent = <&tb10x_ictl>;
  239. interrupts = <27 2>;
  240. reg = <0xFF145000 0x1000>;
  241. gpio-controller;
  242. #gpio-cells = <2>;
  243. abilis,ngpio = <2>;
  244. gpio-ranges = <&iomux 0 0 0>;
  245. gpio-ranges-group-names = "gpiof";
  246. };
  247. gpiog: gpio@FF146000 {
  248. compatible = "abilis,tb10x-gpio";
  249. interrupt-controller;
  250. #interrupt-cells = <1>;
  251. interrupt-parent = <&tb10x_ictl>;
  252. interrupts = <27 2>;
  253. reg = <0xFF146000 0x1000>;
  254. gpio-controller;
  255. #gpio-cells = <2>;
  256. abilis,ngpio = <3>;
  257. gpio-ranges = <&iomux 0 0 0>;
  258. gpio-ranges-group-names = "gpiog";
  259. };
  260. gpioh: gpio@FF147000 {
  261. compatible = "abilis,tb10x-gpio";
  262. interrupt-controller;
  263. #interrupt-cells = <1>;
  264. interrupt-parent = <&tb10x_ictl>;
  265. interrupts = <27 2>;
  266. reg = <0xFF147000 0x1000>;
  267. gpio-controller;
  268. #gpio-cells = <2>;
  269. abilis,ngpio = <2>;
  270. gpio-ranges = <&iomux 0 0 0>;
  271. gpio-ranges-group-names = "gpioh";
  272. };
  273. gpioi: gpio@FF148000 {
  274. compatible = "abilis,tb10x-gpio";
  275. interrupt-controller;
  276. #interrupt-cells = <1>;
  277. interrupt-parent = <&tb10x_ictl>;
  278. interrupts = <27 2>;
  279. reg = <0xFF148000 0x1000>;
  280. gpio-controller;
  281. #gpio-cells = <2>;
  282. abilis,ngpio = <12>;
  283. gpio-ranges = <&iomux 0 0 0>;
  284. gpio-ranges-group-names = "gpioi";
  285. };
  286. gpioj: gpio@FF149000 {
  287. compatible = "abilis,tb10x-gpio";
  288. interrupt-controller;
  289. #interrupt-cells = <1>;
  290. interrupt-parent = <&tb10x_ictl>;
  291. interrupts = <27 2>;
  292. reg = <0xFF149000 0x1000>;
  293. gpio-controller;
  294. #gpio-cells = <2>;
  295. abilis,ngpio = <32>;
  296. gpio-ranges = <&iomux 0 0 0>;
  297. gpio-ranges-group-names = "gpioj";
  298. };
  299. gpiok: gpio@FF14a000 {
  300. compatible = "abilis,tb10x-gpio";
  301. interrupt-controller;
  302. #interrupt-cells = <1>;
  303. interrupt-parent = <&tb10x_ictl>;
  304. interrupts = <27 2>;
  305. reg = <0xFF14A000 0x1000>;
  306. gpio-controller;
  307. #gpio-cells = <2>;
  308. abilis,ngpio = <22>;
  309. gpio-ranges = <&iomux 0 0 0>;
  310. gpio-ranges-group-names = "gpiok";
  311. };
  312. gpiol: gpio@FF14b000 {
  313. compatible = "abilis,tb10x-gpio";
  314. interrupt-controller;
  315. #interrupt-cells = <1>;
  316. interrupt-parent = <&tb10x_ictl>;
  317. interrupts = <27 2>;
  318. reg = <0xFF14B000 0x1000>;
  319. gpio-controller;
  320. #gpio-cells = <2>;
  321. abilis,ngpio = <4>;
  322. gpio-ranges = <&iomux 0 0 0>;
  323. gpio-ranges-group-names = "gpiol";
  324. };
  325. gpiom: gpio@FF14c000 {
  326. compatible = "abilis,tb10x-gpio";
  327. interrupt-controller;
  328. #interrupt-cells = <1>;
  329. interrupt-parent = <&tb10x_ictl>;
  330. interrupts = <27 2>;
  331. reg = <0xFF14C000 0x1000>;
  332. gpio-controller;
  333. #gpio-cells = <2>;
  334. abilis,ngpio = <4>;
  335. gpio-ranges = <&iomux 0 0 0>;
  336. gpio-ranges-group-names = "gpiom";
  337. };
  338. gpion: gpio@FF14d000 {
  339. compatible = "abilis,tb10x-gpio";
  340. interrupt-controller;
  341. #interrupt-cells = <1>;
  342. interrupt-parent = <&tb10x_ictl>;
  343. interrupts = <27 2>;
  344. reg = <0xFF14D000 0x1000>;
  345. gpio-controller;
  346. #gpio-cells = <2>;
  347. abilis,ngpio = <5>;
  348. gpio-ranges = <&iomux 0 0 0>;
  349. gpio-ranges-group-names = "gpion";
  350. };
  351. };
  352. };