abilis_tb100.dtsi 9.1 KB

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