abilis_tb101.dtsi 9.3 KB

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