at91sam9x5.dtsi 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. /*
  2. * at91sam9x5.dtsi - Device Tree Include file for AT91SAM9x5 family SoC
  3. * applies to AT91SAM9G15, AT91SAM9G25, AT91SAM9G35,
  4. * AT91SAM9X25, AT91SAM9X35 SoC
  5. *
  6. * Copyright (C) 2012 Atmel,
  7. * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
  8. *
  9. * Licensed under GPLv2 or later.
  10. */
  11. /include/ "skeleton.dtsi"
  12. / {
  13. model = "Atmel AT91SAM9x5 family SoC";
  14. compatible = "atmel,at91sam9x5";
  15. interrupt-parent = <&aic>;
  16. aliases {
  17. serial0 = &dbgu;
  18. serial1 = &usart0;
  19. serial2 = &usart1;
  20. serial3 = &usart2;
  21. gpio0 = &pioA;
  22. gpio1 = &pioB;
  23. gpio2 = &pioC;
  24. gpio3 = &pioD;
  25. tcb0 = &tcb0;
  26. tcb1 = &tcb1;
  27. i2c0 = &i2c0;
  28. i2c1 = &i2c1;
  29. i2c2 = &i2c2;
  30. };
  31. cpus {
  32. cpu@0 {
  33. compatible = "arm,arm926ejs";
  34. };
  35. };
  36. memory {
  37. reg = <0x20000000 0x10000000>;
  38. };
  39. ahb {
  40. compatible = "simple-bus";
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. ranges;
  44. apb {
  45. compatible = "simple-bus";
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. ranges;
  49. aic: interrupt-controller@fffff000 {
  50. #interrupt-cells = <3>;
  51. compatible = "atmel,at91rm9200-aic";
  52. interrupt-controller;
  53. reg = <0xfffff000 0x200>;
  54. atmel,external-irqs = <31>;
  55. };
  56. ramc0: ramc@ffffe800 {
  57. compatible = "atmel,at91sam9g45-ddramc";
  58. reg = <0xffffe800 0x200>;
  59. };
  60. pmc: pmc@fffffc00 {
  61. compatible = "atmel,at91rm9200-pmc";
  62. reg = <0xfffffc00 0x100>;
  63. };
  64. rstc@fffffe00 {
  65. compatible = "atmel,at91sam9g45-rstc";
  66. reg = <0xfffffe00 0x10>;
  67. };
  68. shdwc@fffffe10 {
  69. compatible = "atmel,at91sam9x5-shdwc";
  70. reg = <0xfffffe10 0x10>;
  71. };
  72. pit: timer@fffffe30 {
  73. compatible = "atmel,at91sam9260-pit";
  74. reg = <0xfffffe30 0xf>;
  75. interrupts = <1 4 7>;
  76. };
  77. tcb0: timer@f8008000 {
  78. compatible = "atmel,at91sam9x5-tcb";
  79. reg = <0xf8008000 0x100>;
  80. interrupts = <17 4 0>;
  81. };
  82. tcb1: timer@f800c000 {
  83. compatible = "atmel,at91sam9x5-tcb";
  84. reg = <0xf800c000 0x100>;
  85. interrupts = <17 4 0>;
  86. };
  87. dma0: dma-controller@ffffec00 {
  88. compatible = "atmel,at91sam9g45-dma";
  89. reg = <0xffffec00 0x200>;
  90. interrupts = <20 4 0>;
  91. };
  92. dma1: dma-controller@ffffee00 {
  93. compatible = "atmel,at91sam9g45-dma";
  94. reg = <0xffffee00 0x200>;
  95. interrupts = <21 4 0>;
  96. };
  97. pinctrl@fffff400 {
  98. #address-cells = <1>;
  99. #size-cells = <1>;
  100. compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
  101. ranges = <0xfffff400 0xfffff400 0x800>;
  102. /* shared pinctrl settings */
  103. dbgu {
  104. pinctrl_dbgu: dbgu-0 {
  105. atmel,pins =
  106. <0 9 0x1 0x0 /* PA9 periph A */
  107. 0 10 0x1 0x1>; /* PA10 periph A with pullup */
  108. };
  109. };
  110. uart0 {
  111. pinctrl_uart0: uart0-0 {
  112. atmel,pins =
  113. <0 0 0x1 0x1 /* PA0 periph A with pullup */
  114. 0 1 0x1 0x0>; /* PA1 periph A */
  115. };
  116. pinctrl_uart0_rts_cts: uart0_rts_cts-0 {
  117. atmel,pins =
  118. <0 2 0x1 0x0 /* PA2 periph A */
  119. 0 3 0x1 0x0>; /* PA3 periph A */
  120. };
  121. };
  122. uart1 {
  123. pinctrl_uart1: uart1-0 {
  124. atmel,pins =
  125. <0 5 0x1 0x1 /* PA5 periph A with pullup */
  126. 0 6 0x1 0x0>; /* PA6 periph A */
  127. };
  128. pinctrl_uart1_rts_cts: uart1_rts_cts-0 {
  129. atmel,pins =
  130. <3 27 0x3 0x0 /* PC27 periph C */
  131. 3 28 0x3 0x0>; /* PC28 periph C */
  132. };
  133. };
  134. uart2 {
  135. pinctrl_uart2: uart2-0 {
  136. atmel,pins =
  137. <0 7 0x1 0x1 /* PA7 periph A with pullup */
  138. 0 8 0x1 0x0>; /* PA8 periph A */
  139. };
  140. pinctrl_uart2_rts_cts: uart2_rts_cts-0 {
  141. atmel,pins =
  142. <0 0 0x2 0x0 /* PB0 periph B */
  143. 0 1 0x2 0x0>; /* PB1 periph B */
  144. };
  145. };
  146. uart3 {
  147. pinctrl_uart3: uart3-0 {
  148. atmel,pins =
  149. <3 23 0x2 0x1 /* PC22 periph B with pullup */
  150. 3 23 0x2 0x0>; /* PC23 periph B */
  151. };
  152. pinctrl_uart3_rts_cts: uart3_rts_cts-0 {
  153. atmel,pins =
  154. <3 24 0x2 0x0 /* PC24 periph B */
  155. 3 25 0x2 0x0>; /* PC25 periph B */
  156. };
  157. };
  158. usart0 {
  159. pinctrl_usart0: usart0-0 {
  160. atmel,pins =
  161. <3 8 0x3 0x0 /* PC8 periph C */
  162. 3 9 0x3 0x1>; /* PC9 periph C with pullup */
  163. };
  164. };
  165. usart1 {
  166. pinctrl_usart1: usart1-0 {
  167. atmel,pins =
  168. <3 16 0x3 0x0 /* PC16 periph C */
  169. 3 17 0x3 0x1>; /* PC17 periph C with pullup */
  170. };
  171. };
  172. pioA: gpio@fffff400 {
  173. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  174. reg = <0xfffff400 0x200>;
  175. interrupts = <2 4 1>;
  176. #gpio-cells = <2>;
  177. gpio-controller;
  178. interrupt-controller;
  179. #interrupt-cells = <2>;
  180. };
  181. pioB: gpio@fffff600 {
  182. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  183. reg = <0xfffff600 0x200>;
  184. interrupts = <2 4 1>;
  185. #gpio-cells = <2>;
  186. gpio-controller;
  187. #gpio-lines = <19>;
  188. interrupt-controller;
  189. #interrupt-cells = <2>;
  190. };
  191. pioC: gpio@fffff800 {
  192. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  193. reg = <0xfffff800 0x200>;
  194. interrupts = <3 4 1>;
  195. #gpio-cells = <2>;
  196. gpio-controller;
  197. interrupt-controller;
  198. #interrupt-cells = <2>;
  199. };
  200. pioD: gpio@fffffa00 {
  201. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  202. reg = <0xfffffa00 0x200>;
  203. interrupts = <3 4 1>;
  204. #gpio-cells = <2>;
  205. gpio-controller;
  206. #gpio-lines = <22>;
  207. interrupt-controller;
  208. #interrupt-cells = <2>;
  209. };
  210. };
  211. dbgu: serial@fffff200 {
  212. compatible = "atmel,at91sam9260-usart";
  213. reg = <0xfffff200 0x200>;
  214. interrupts = <1 4 7>;
  215. pinctrl-names = "default";
  216. pinctrl-0 = <&pinctrl_dbgu>;
  217. status = "disabled";
  218. };
  219. usart0: serial@f801c000 {
  220. compatible = "atmel,at91sam9260-usart";
  221. reg = <0xf801c000 0x200>;
  222. interrupts = <5 4 5>;
  223. atmel,use-dma-rx;
  224. atmel,use-dma-tx;
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&pinctrl_uart0>;
  227. status = "disabled";
  228. };
  229. usart1: serial@f8020000 {
  230. compatible = "atmel,at91sam9260-usart";
  231. reg = <0xf8020000 0x200>;
  232. interrupts = <6 4 5>;
  233. atmel,use-dma-rx;
  234. atmel,use-dma-tx;
  235. pinctrl-names = "default";
  236. pinctrl-0 = <&pinctrl_uart1>;
  237. status = "disabled";
  238. };
  239. usart2: serial@f8024000 {
  240. compatible = "atmel,at91sam9260-usart";
  241. reg = <0xf8024000 0x200>;
  242. interrupts = <7 4 5>;
  243. atmel,use-dma-rx;
  244. atmel,use-dma-tx;
  245. pinctrl-names = "default";
  246. pinctrl-0 = <&pinctrl_uart2>;
  247. status = "disabled";
  248. };
  249. macb0: ethernet@f802c000 {
  250. compatible = "cdns,at32ap7000-macb", "cdns,macb";
  251. reg = <0xf802c000 0x100>;
  252. interrupts = <24 4 3>;
  253. status = "disabled";
  254. };
  255. macb1: ethernet@f8030000 {
  256. compatible = "cdns,at32ap7000-macb", "cdns,macb";
  257. reg = <0xf8030000 0x100>;
  258. interrupts = <27 4 3>;
  259. status = "disabled";
  260. };
  261. i2c0: i2c@f8010000 {
  262. compatible = "atmel,at91sam9x5-i2c";
  263. reg = <0xf8010000 0x100>;
  264. interrupts = <9 4 6>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. status = "disabled";
  268. };
  269. i2c1: i2c@f8014000 {
  270. compatible = "atmel,at91sam9x5-i2c";
  271. reg = <0xf8014000 0x100>;
  272. interrupts = <10 4 6>;
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. status = "disabled";
  276. };
  277. i2c2: i2c@f8018000 {
  278. compatible = "atmel,at91sam9x5-i2c";
  279. reg = <0xf8018000 0x100>;
  280. interrupts = <11 4 6>;
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. status = "disabled";
  284. };
  285. adc0: adc@f804c000 {
  286. compatible = "atmel,at91sam9260-adc";
  287. reg = <0xf804c000 0x100>;
  288. interrupts = <19 4 0>;
  289. atmel,adc-use-external;
  290. atmel,adc-channels-used = <0xffff>;
  291. atmel,adc-vref = <3300>;
  292. atmel,adc-num-channels = <12>;
  293. atmel,adc-startup-time = <40>;
  294. atmel,adc-channel-base = <0x50>;
  295. atmel,adc-drdy-mask = <0x1000000>;
  296. atmel,adc-status-register = <0x30>;
  297. atmel,adc-trigger-register = <0xc0>;
  298. trigger@0 {
  299. trigger-name = "external-rising";
  300. trigger-value = <0x1>;
  301. trigger-external;
  302. };
  303. trigger@1 {
  304. trigger-name = "external-falling";
  305. trigger-value = <0x2>;
  306. trigger-external;
  307. };
  308. trigger@2 {
  309. trigger-name = "external-any";
  310. trigger-value = <0x3>;
  311. trigger-external;
  312. };
  313. trigger@3 {
  314. trigger-name = "continuous";
  315. trigger-value = <0x6>;
  316. };
  317. };
  318. };
  319. nand0: nand@40000000 {
  320. compatible = "atmel,at91rm9200-nand";
  321. #address-cells = <1>;
  322. #size-cells = <1>;
  323. reg = <0x40000000 0x10000000
  324. >;
  325. atmel,nand-addr-offset = <21>;
  326. atmel,nand-cmd-offset = <22>;
  327. gpios = <&pioD 5 0
  328. &pioD 4 0
  329. 0
  330. >;
  331. status = "disabled";
  332. };
  333. usb0: ohci@00600000 {
  334. compatible = "atmel,at91rm9200-ohci", "usb-ohci";
  335. reg = <0x00600000 0x100000>;
  336. interrupts = <22 4 2>;
  337. status = "disabled";
  338. };
  339. usb1: ehci@00700000 {
  340. compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
  341. reg = <0x00700000 0x100000>;
  342. interrupts = <22 4 2>;
  343. status = "disabled";
  344. };
  345. };
  346. i2c@0 {
  347. compatible = "i2c-gpio";
  348. gpios = <&pioA 30 0 /* sda */
  349. &pioA 31 0 /* scl */
  350. >;
  351. i2c-gpio,sda-open-drain;
  352. i2c-gpio,scl-open-drain;
  353. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  354. #address-cells = <1>;
  355. #size-cells = <0>;
  356. status = "disabled";
  357. };
  358. i2c@1 {
  359. compatible = "i2c-gpio";
  360. gpios = <&pioC 0 0 /* sda */
  361. &pioC 1 0 /* scl */
  362. >;
  363. i2c-gpio,sda-open-drain;
  364. i2c-gpio,scl-open-drain;
  365. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  366. #address-cells = <1>;
  367. #size-cells = <0>;
  368. status = "disabled";
  369. };
  370. i2c@2 {
  371. compatible = "i2c-gpio";
  372. gpios = <&pioB 4 0 /* sda */
  373. &pioB 5 0 /* scl */
  374. >;
  375. i2c-gpio,sda-open-drain;
  376. i2c-gpio,scl-open-drain;
  377. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  378. #address-cells = <1>;
  379. #size-cells = <0>;
  380. status = "disabled";
  381. };
  382. };