at91sam9x5.dtsi 11 KB

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