at91rm9200.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. /*
  2. * at91rm9200.dtsi - Device Tree Include file for AT91RM9200 family SoC
  3. *
  4. * Copyright (C) 2011 Atmel,
  5. * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>,
  6. * 2012 Joachim Eastwood <manabian@gmail.com>
  7. *
  8. * Based on at91sam9260.dtsi
  9. *
  10. * Licensed under GPLv2 or later.
  11. */
  12. /include/ "skeleton.dtsi"
  13. / {
  14. model = "Atmel AT91RM9200 family SoC";
  15. compatible = "atmel,at91rm9200";
  16. interrupt-parent = <&aic>;
  17. aliases {
  18. serial0 = &dbgu;
  19. serial1 = &usart0;
  20. serial2 = &usart1;
  21. serial3 = &usart2;
  22. serial4 = &usart3;
  23. gpio0 = &pioA;
  24. gpio1 = &pioB;
  25. gpio2 = &pioC;
  26. gpio3 = &pioD;
  27. tcb0 = &tcb0;
  28. tcb1 = &tcb1;
  29. ssc0 = &ssc0;
  30. ssc1 = &ssc1;
  31. ssc2 = &ssc2;
  32. };
  33. cpus {
  34. cpu@0 {
  35. compatible = "arm,arm920t";
  36. };
  37. };
  38. memory {
  39. reg = <0x20000000 0x04000000>;
  40. };
  41. ahb {
  42. compatible = "simple-bus";
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. ranges;
  46. apb {
  47. compatible = "simple-bus";
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. ranges;
  51. aic: interrupt-controller@fffff000 {
  52. #interrupt-cells = <3>;
  53. compatible = "atmel,at91rm9200-aic";
  54. interrupt-controller;
  55. reg = <0xfffff000 0x200>;
  56. atmel,external-irqs = <25 26 27 28 29 30 31>;
  57. };
  58. ramc0: ramc@ffffff00 {
  59. compatible = "atmel,at91rm9200-sdramc";
  60. reg = <0xffffff00 0x100>;
  61. };
  62. pmc: pmc@fffffc00 {
  63. compatible = "atmel,at91rm9200-pmc";
  64. reg = <0xfffffc00 0x100>;
  65. };
  66. st: timer@fffffd00 {
  67. compatible = "atmel,at91rm9200-st";
  68. reg = <0xfffffd00 0x100>;
  69. interrupts = <1 4 7>;
  70. };
  71. tcb0: timer@fffa0000 {
  72. compatible = "atmel,at91rm9200-tcb";
  73. reg = <0xfffa0000 0x100>;
  74. interrupts = <17 4 0 18 4 0 19 4 0>;
  75. };
  76. tcb1: timer@fffa4000 {
  77. compatible = "atmel,at91rm9200-tcb";
  78. reg = <0xfffa4000 0x100>;
  79. interrupts = <20 4 0 21 4 0 22 4 0>;
  80. };
  81. mmc0: mmc@fffb4000 {
  82. compatible = "atmel,hsmci";
  83. reg = <0xfffb4000 0x4000>;
  84. interrupts = <10 4 0>;
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. status = "disabled";
  88. };
  89. ssc0: ssc@fffd0000 {
  90. compatible = "atmel,at91rm9200-ssc";
  91. reg = <0xfffd0000 0x4000>;
  92. interrupts = <14 4 5>;
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
  95. status = "disable";
  96. };
  97. ssc1: ssc@fffd4000 {
  98. compatible = "atmel,at91rm9200-ssc";
  99. reg = <0xfffd4000 0x4000>;
  100. interrupts = <15 4 5>;
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
  103. status = "disable";
  104. };
  105. ssc2: ssc@fffd8000 {
  106. compatible = "atmel,at91rm9200-ssc";
  107. reg = <0xfffd8000 0x4000>;
  108. interrupts = <16 4 5>;
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>;
  111. status = "disable";
  112. };
  113. macb0: ethernet@fffbc000 {
  114. compatible = "cdns,at91rm9200-emac", "cdns,emac";
  115. reg = <0xfffbc000 0x4000>;
  116. interrupts = <24 4 3>;
  117. phy-mode = "rmii";
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&pinctrl_macb_rmii>;
  120. status = "disabled";
  121. };
  122. pinctrl@fffff400 {
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
  126. ranges = <0xfffff400 0xfffff400 0x800>;
  127. atmel,mux-mask = <
  128. /* A B */
  129. 0xffffffff 0xffffffff /* pioA */
  130. 0xffffffff 0x083fffff /* pioB */
  131. 0xffff3fff 0x00000000 /* pioC */
  132. 0x03ff87ff 0x0fffff80 /* pioD */
  133. >;
  134. /* shared pinctrl settings */
  135. dbgu {
  136. pinctrl_dbgu: dbgu-0 {
  137. atmel,pins =
  138. <0 30 0x1 0x0 /* PA30 periph A */
  139. 0 31 0x1 0x1>; /* PA31 periph with pullup */
  140. };
  141. };
  142. uart0 {
  143. pinctrl_uart0: uart0-0 {
  144. atmel,pins =
  145. <0 17 0x1 0x0 /* PA17 periph A */
  146. 0 18 0x1 0x0>; /* PA18 periph A */
  147. };
  148. pinctrl_uart0_rts: uart0_rts-0 {
  149. atmel,pins =
  150. <0 20 0x1 0x0>; /* PA20 periph A */
  151. };
  152. pinctrl_uart0_cts: uart0_cts-0 {
  153. atmel,pins =
  154. <0 21 0x1 0x0>; /* PA21 periph A */
  155. };
  156. };
  157. uart1 {
  158. pinctrl_uart1: uart1-0 {
  159. atmel,pins =
  160. <1 20 0x1 0x1 /* PB20 periph A with pullup */
  161. 1 21 0x1 0x0>; /* PB21 periph A */
  162. };
  163. pinctrl_uart1_rts: uart1_rts-0 {
  164. atmel,pins =
  165. <1 24 0x1 0x0>; /* PB24 periph A */
  166. };
  167. pinctrl_uart1_cts: uart1_cts-0 {
  168. atmel,pins =
  169. <1 26 0x1 0x0>; /* PB26 periph A */
  170. };
  171. pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 {
  172. atmel,pins =
  173. <1 19 0x1 0x0 /* PB19 periph A */
  174. 1 25 0x1 0x0>; /* PB25 periph A */
  175. };
  176. pinctrl_uart1_dcd: uart1_dcd-0 {
  177. atmel,pins =
  178. <1 23 0x1 0x0>; /* PB23 periph A */
  179. };
  180. pinctrl_uart1_ri: uart1_ri-0 {
  181. atmel,pins =
  182. <1 18 0x1 0x0>; /* PB18 periph A */
  183. };
  184. };
  185. uart2 {
  186. pinctrl_uart2: uart2-0 {
  187. atmel,pins =
  188. <0 22 0x1 0x0 /* PA22 periph A */
  189. 0 23 0x1 0x1>; /* PA23 periph A with pullup */
  190. };
  191. pinctrl_uart2_rts: uart2_rts-0 {
  192. atmel,pins =
  193. <0 30 0x2 0x0>; /* PA30 periph B */
  194. };
  195. pinctrl_uart2_cts: uart2_cts-0 {
  196. atmel,pins =
  197. <0 31 0x2 0x0>; /* PA31 periph B */
  198. };
  199. };
  200. uart3 {
  201. pinctrl_uart3: uart3-0 {
  202. atmel,pins =
  203. <0 5 0x2 0x1 /* PA5 periph B with pullup */
  204. 0 6 0x2 0x0>; /* PA6 periph B */
  205. };
  206. pinctrl_uart3_rts: uart3_rts-0 {
  207. atmel,pins =
  208. <1 0 0x2 0x0>; /* PB0 periph B */
  209. };
  210. pinctrl_uart3_cts: uart3_cts-0 {
  211. atmel,pins =
  212. <1 1 0x2 0x0>; /* PB1 periph B */
  213. };
  214. };
  215. nand {
  216. pinctrl_nand: nand-0 {
  217. atmel,pins =
  218. <2 2 0x0 0x1 /* PC2 gpio RDY pin pull_up */
  219. 1 1 0x0 0x1>; /* PB1 gpio CD pin pull_up */
  220. };
  221. };
  222. macb {
  223. pinctrl_macb_rmii: macb_rmii-0 {
  224. atmel,pins =
  225. <0 7 0x1 0x0 /* PA7 periph A */
  226. 0 8 0x1 0x0 /* PA8 periph A */
  227. 0 9 0x1 0x0 /* PA9 periph A */
  228. 0 10 0x1 0x0 /* PA10 periph A */
  229. 0 11 0x1 0x0 /* PA11 periph A */
  230. 0 12 0x1 0x0 /* PA12 periph A */
  231. 0 13 0x1 0x0 /* PA13 periph A */
  232. 0 14 0x1 0x0 /* PA14 periph A */
  233. 0 15 0x1 0x0 /* PA15 periph A */
  234. 0 16 0x1 0x0>; /* PA16 periph A */
  235. };
  236. pinctrl_macb_rmii_mii: macb_rmii_mii-0 {
  237. atmel,pins =
  238. <1 12 0x2 0x0 /* PB12 periph B */
  239. 1 13 0x2 0x0 /* PB13 periph B */
  240. 1 14 0x2 0x0 /* PB14 periph B */
  241. 1 15 0x2 0x0 /* PB15 periph B */
  242. 1 16 0x2 0x0 /* PB16 periph B */
  243. 1 17 0x2 0x0 /* PB17 periph B */
  244. 1 18 0x2 0x0 /* PB18 periph B */
  245. 1 19 0x2 0x0>; /* PB19 periph B */
  246. };
  247. };
  248. mmc0 {
  249. pinctrl_mmc0_clk: mmc0_clk-0 {
  250. atmel,pins =
  251. <0 27 0x1 0x0>; /* PA27 periph A */
  252. };
  253. pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
  254. atmel,pins =
  255. <0 28 0x1 0x1 /* PA28 periph A with pullup */
  256. 0 29 0x1 0x1>; /* PA29 periph A with pullup */
  257. };
  258. pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
  259. atmel,pins =
  260. <1 3 0x2 0x1 /* PB3 periph B with pullup */
  261. 1 4 0x2 0x1 /* PB4 periph B with pullup */
  262. 1 5 0x2 0x1>; /* PB5 periph B with pullup */
  263. };
  264. pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 {
  265. atmel,pins =
  266. <0 8 0x2 0x1 /* PA8 periph B with pullup */
  267. 0 9 0x2 0x1>; /* PA9 periph B with pullup */
  268. };
  269. pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 {
  270. atmel,pins =
  271. <0 10 0x2 0x1 /* PA10 periph B with pullup */
  272. 0 11 0x2 0x1 /* PA11 periph B with pullup */
  273. 0 12 0x2 0x1>; /* PA12 periph B with pullup */
  274. };
  275. };
  276. ssc0 {
  277. pinctrl_ssc0_tx: ssc0_tx-0 {
  278. atmel,pins =
  279. <1 0 0x1 0x0 /* PB0 periph A */
  280. 1 1 0x1 0x0 /* PB1 periph A */
  281. 1 2 0x1 0x0>; /* PB2 periph A */
  282. };
  283. pinctrl_ssc0_rx: ssc0_rx-0 {
  284. atmel,pins =
  285. <1 3 0x1 0x0 /* PB3 periph A */
  286. 1 4 0x1 0x0 /* PB4 periph A */
  287. 1 5 0x1 0x0>; /* PB5 periph A */
  288. };
  289. };
  290. ssc1 {
  291. pinctrl_ssc1_tx: ssc1_tx-0 {
  292. atmel,pins =
  293. <1 6 0x1 0x0 /* PB6 periph A */
  294. 1 7 0x1 0x0 /* PB7 periph A */
  295. 1 8 0x1 0x0>; /* PB8 periph A */
  296. };
  297. pinctrl_ssc1_rx: ssc1_rx-0 {
  298. atmel,pins =
  299. <1 9 0x1 0x0 /* PB9 periph A */
  300. 1 10 0x1 0x0 /* PB10 periph A */
  301. 1 11 0x1 0x0>; /* PB11 periph A */
  302. };
  303. };
  304. ssc2 {
  305. pinctrl_ssc2_tx: ssc2_tx-0 {
  306. atmel,pins =
  307. <1 12 0x1 0x0 /* PB12 periph A */
  308. 1 13 0x1 0x0 /* PB13 periph A */
  309. 1 14 0x1 0x0>; /* PB14 periph A */
  310. };
  311. pinctrl_ssc2_rx: ssc2_rx-0 {
  312. atmel,pins =
  313. <1 15 0x1 0x0 /* PB15 periph A */
  314. 1 16 0x1 0x0 /* PB16 periph A */
  315. 1 17 0x1 0x0>; /* PB17 periph A */
  316. };
  317. };
  318. pioA: gpio@fffff400 {
  319. compatible = "atmel,at91rm9200-gpio";
  320. reg = <0xfffff400 0x200>;
  321. interrupts = <2 4 1>;
  322. #gpio-cells = <2>;
  323. gpio-controller;
  324. interrupt-controller;
  325. #interrupt-cells = <2>;
  326. };
  327. pioB: gpio@fffff600 {
  328. compatible = "atmel,at91rm9200-gpio";
  329. reg = <0xfffff600 0x200>;
  330. interrupts = <3 4 1>;
  331. #gpio-cells = <2>;
  332. gpio-controller;
  333. interrupt-controller;
  334. #interrupt-cells = <2>;
  335. };
  336. pioC: gpio@fffff800 {
  337. compatible = "atmel,at91rm9200-gpio";
  338. reg = <0xfffff800 0x200>;
  339. interrupts = <4 4 1>;
  340. #gpio-cells = <2>;
  341. gpio-controller;
  342. interrupt-controller;
  343. #interrupt-cells = <2>;
  344. };
  345. pioD: gpio@fffffa00 {
  346. compatible = "atmel,at91rm9200-gpio";
  347. reg = <0xfffffa00 0x200>;
  348. interrupts = <5 4 1>;
  349. #gpio-cells = <2>;
  350. gpio-controller;
  351. interrupt-controller;
  352. #interrupt-cells = <2>;
  353. };
  354. };
  355. dbgu: serial@fffff200 {
  356. compatible = "atmel,at91rm9200-usart";
  357. reg = <0xfffff200 0x200>;
  358. interrupts = <1 4 7>;
  359. pinctrl-names = "default";
  360. pinctrl-0 = <&pinctrl_dbgu>;
  361. status = "disabled";
  362. };
  363. usart0: serial@fffc0000 {
  364. compatible = "atmel,at91rm9200-usart";
  365. reg = <0xfffc0000 0x200>;
  366. interrupts = <6 4 5>;
  367. atmel,use-dma-rx;
  368. atmel,use-dma-tx;
  369. pinctrl-names = "default";
  370. pinctrl-0 = <&pinctrl_uart0>;
  371. status = "disabled";
  372. };
  373. usart1: serial@fffc4000 {
  374. compatible = "atmel,at91rm9200-usart";
  375. reg = <0xfffc4000 0x200>;
  376. interrupts = <7 4 5>;
  377. atmel,use-dma-rx;
  378. atmel,use-dma-tx;
  379. pinctrl-names = "default";
  380. pinctrl-0 = <&pinctrl_uart1>;
  381. status = "disabled";
  382. };
  383. usart2: serial@fffc8000 {
  384. compatible = "atmel,at91rm9200-usart";
  385. reg = <0xfffc8000 0x200>;
  386. interrupts = <8 4 5>;
  387. atmel,use-dma-rx;
  388. atmel,use-dma-tx;
  389. pinctrl-names = "default";
  390. pinctrl-0 = <&pinctrl_uart2>;
  391. status = "disabled";
  392. };
  393. usart3: serial@fffcc000 {
  394. compatible = "atmel,at91rm9200-usart";
  395. reg = <0xfffcc000 0x200>;
  396. interrupts = <23 4 5>;
  397. atmel,use-dma-rx;
  398. atmel,use-dma-tx;
  399. pinctrl-names = "default";
  400. pinctrl-0 = <&pinctrl_uart3>;
  401. status = "disabled";
  402. };
  403. usb1: gadget@fffb0000 {
  404. compatible = "atmel,at91rm9200-udc";
  405. reg = <0xfffb0000 0x4000>;
  406. interrupts = <11 4 2>;
  407. status = "disabled";
  408. };
  409. };
  410. nand0: nand@40000000 {
  411. compatible = "atmel,at91rm9200-nand";
  412. #address-cells = <1>;
  413. #size-cells = <1>;
  414. reg = <0x40000000 0x10000000>;
  415. atmel,nand-addr-offset = <21>;
  416. atmel,nand-cmd-offset = <22>;
  417. pinctrl-names = "default";
  418. pinctrl-0 = <&pinctrl_nand>;
  419. nand-ecc-mode = "soft";
  420. gpios = <&pioC 2 0
  421. 0
  422. &pioB 1 0
  423. >;
  424. status = "disabled";
  425. };
  426. usb0: ohci@00300000 {
  427. compatible = "atmel,at91rm9200-ohci", "usb-ohci";
  428. reg = <0x00300000 0x100000>;
  429. interrupts = <23 4 2>;
  430. status = "disabled";
  431. };
  432. };
  433. i2c@0 {
  434. compatible = "i2c-gpio";
  435. gpios = <&pioA 25 0 /* sda */
  436. &pioA 26 0 /* scl */
  437. >;
  438. i2c-gpio,sda-open-drain;
  439. i2c-gpio,scl-open-drain;
  440. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  441. #address-cells = <1>;
  442. #size-cells = <0>;
  443. status = "disabled";
  444. };
  445. };