at91sam9x5.dtsi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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. nand {
  173. pinctrl_nand: nand-0 {
  174. atmel,pins =
  175. <3 4 0x0 0x1 /* PD5 gpio RDY pin pull_up */
  176. 3 5 0x0 0x1>; /* PD4 gpio enable pin pull_up */
  177. };
  178. };
  179. pioA: gpio@fffff400 {
  180. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  181. reg = <0xfffff400 0x200>;
  182. interrupts = <2 4 1>;
  183. #gpio-cells = <2>;
  184. gpio-controller;
  185. interrupt-controller;
  186. #interrupt-cells = <2>;
  187. };
  188. pioB: gpio@fffff600 {
  189. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  190. reg = <0xfffff600 0x200>;
  191. interrupts = <2 4 1>;
  192. #gpio-cells = <2>;
  193. gpio-controller;
  194. #gpio-lines = <19>;
  195. interrupt-controller;
  196. #interrupt-cells = <2>;
  197. };
  198. pioC: gpio@fffff800 {
  199. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  200. reg = <0xfffff800 0x200>;
  201. interrupts = <3 4 1>;
  202. #gpio-cells = <2>;
  203. gpio-controller;
  204. interrupt-controller;
  205. #interrupt-cells = <2>;
  206. };
  207. pioD: gpio@fffffa00 {
  208. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  209. reg = <0xfffffa00 0x200>;
  210. interrupts = <3 4 1>;
  211. #gpio-cells = <2>;
  212. gpio-controller;
  213. #gpio-lines = <22>;
  214. interrupt-controller;
  215. #interrupt-cells = <2>;
  216. };
  217. };
  218. dbgu: serial@fffff200 {
  219. compatible = "atmel,at91sam9260-usart";
  220. reg = <0xfffff200 0x200>;
  221. interrupts = <1 4 7>;
  222. pinctrl-names = "default";
  223. pinctrl-0 = <&pinctrl_dbgu>;
  224. status = "disabled";
  225. };
  226. usart0: serial@f801c000 {
  227. compatible = "atmel,at91sam9260-usart";
  228. reg = <0xf801c000 0x200>;
  229. interrupts = <5 4 5>;
  230. atmel,use-dma-rx;
  231. atmel,use-dma-tx;
  232. pinctrl-names = "default";
  233. pinctrl-0 = <&pinctrl_uart0>;
  234. status = "disabled";
  235. };
  236. usart1: serial@f8020000 {
  237. compatible = "atmel,at91sam9260-usart";
  238. reg = <0xf8020000 0x200>;
  239. interrupts = <6 4 5>;
  240. atmel,use-dma-rx;
  241. atmel,use-dma-tx;
  242. pinctrl-names = "default";
  243. pinctrl-0 = <&pinctrl_uart1>;
  244. status = "disabled";
  245. };
  246. usart2: serial@f8024000 {
  247. compatible = "atmel,at91sam9260-usart";
  248. reg = <0xf8024000 0x200>;
  249. interrupts = <7 4 5>;
  250. atmel,use-dma-rx;
  251. atmel,use-dma-tx;
  252. pinctrl-names = "default";
  253. pinctrl-0 = <&pinctrl_uart2>;
  254. status = "disabled";
  255. };
  256. macb0: ethernet@f802c000 {
  257. compatible = "cdns,at32ap7000-macb", "cdns,macb";
  258. reg = <0xf802c000 0x100>;
  259. interrupts = <24 4 3>;
  260. status = "disabled";
  261. };
  262. macb1: ethernet@f8030000 {
  263. compatible = "cdns,at32ap7000-macb", "cdns,macb";
  264. reg = <0xf8030000 0x100>;
  265. interrupts = <27 4 3>;
  266. status = "disabled";
  267. };
  268. i2c0: i2c@f8010000 {
  269. compatible = "atmel,at91sam9x5-i2c";
  270. reg = <0xf8010000 0x100>;
  271. interrupts = <9 4 6>;
  272. #address-cells = <1>;
  273. #size-cells = <0>;
  274. status = "disabled";
  275. };
  276. i2c1: i2c@f8014000 {
  277. compatible = "atmel,at91sam9x5-i2c";
  278. reg = <0xf8014000 0x100>;
  279. interrupts = <10 4 6>;
  280. #address-cells = <1>;
  281. #size-cells = <0>;
  282. status = "disabled";
  283. };
  284. i2c2: i2c@f8018000 {
  285. compatible = "atmel,at91sam9x5-i2c";
  286. reg = <0xf8018000 0x100>;
  287. interrupts = <11 4 6>;
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. status = "disabled";
  291. };
  292. adc0: adc@f804c000 {
  293. compatible = "atmel,at91sam9260-adc";
  294. reg = <0xf804c000 0x100>;
  295. interrupts = <19 4 0>;
  296. atmel,adc-use-external;
  297. atmel,adc-channels-used = <0xffff>;
  298. atmel,adc-vref = <3300>;
  299. atmel,adc-num-channels = <12>;
  300. atmel,adc-startup-time = <40>;
  301. atmel,adc-channel-base = <0x50>;
  302. atmel,adc-drdy-mask = <0x1000000>;
  303. atmel,adc-status-register = <0x30>;
  304. atmel,adc-trigger-register = <0xc0>;
  305. trigger@0 {
  306. trigger-name = "external-rising";
  307. trigger-value = <0x1>;
  308. trigger-external;
  309. };
  310. trigger@1 {
  311. trigger-name = "external-falling";
  312. trigger-value = <0x2>;
  313. trigger-external;
  314. };
  315. trigger@2 {
  316. trigger-name = "external-any";
  317. trigger-value = <0x3>;
  318. trigger-external;
  319. };
  320. trigger@3 {
  321. trigger-name = "continuous";
  322. trigger-value = <0x6>;
  323. };
  324. };
  325. };
  326. nand0: nand@40000000 {
  327. compatible = "atmel,at91rm9200-nand";
  328. #address-cells = <1>;
  329. #size-cells = <1>;
  330. reg = <0x40000000 0x10000000
  331. >;
  332. atmel,nand-addr-offset = <21>;
  333. atmel,nand-cmd-offset = <22>;
  334. pinctrl-names = "default";
  335. pinctrl-0 = <&pinctrl_nand>;
  336. gpios = <&pioD 5 0
  337. &pioD 4 0
  338. 0
  339. >;
  340. status = "disabled";
  341. };
  342. usb0: ohci@00600000 {
  343. compatible = "atmel,at91rm9200-ohci", "usb-ohci";
  344. reg = <0x00600000 0x100000>;
  345. interrupts = <22 4 2>;
  346. status = "disabled";
  347. };
  348. usb1: ehci@00700000 {
  349. compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
  350. reg = <0x00700000 0x100000>;
  351. interrupts = <22 4 2>;
  352. status = "disabled";
  353. };
  354. };
  355. i2c@0 {
  356. compatible = "i2c-gpio";
  357. gpios = <&pioA 30 0 /* sda */
  358. &pioA 31 0 /* scl */
  359. >;
  360. i2c-gpio,sda-open-drain;
  361. i2c-gpio,scl-open-drain;
  362. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  363. #address-cells = <1>;
  364. #size-cells = <0>;
  365. status = "disabled";
  366. };
  367. i2c@1 {
  368. compatible = "i2c-gpio";
  369. gpios = <&pioC 0 0 /* sda */
  370. &pioC 1 0 /* scl */
  371. >;
  372. i2c-gpio,sda-open-drain;
  373. i2c-gpio,scl-open-drain;
  374. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  375. #address-cells = <1>;
  376. #size-cells = <0>;
  377. status = "disabled";
  378. };
  379. i2c@2 {
  380. compatible = "i2c-gpio";
  381. gpios = <&pioB 4 0 /* sda */
  382. &pioB 5 0 /* scl */
  383. >;
  384. i2c-gpio,sda-open-drain;
  385. i2c-gpio,scl-open-drain;
  386. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  387. #address-cells = <1>;
  388. #size-cells = <0>;
  389. status = "disabled";
  390. };
  391. };