sama5d3.dtsi 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047
  1. /*
  2. * sama5d3.dtsi - Device Tree Include file for SAMA5D3 family SoC
  3. * applies to SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35 SoC
  4. *
  5. * Copyright (C) 2013 Atmel,
  6. * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
  7. *
  8. * Licensed under GPLv2 or later.
  9. */
  10. #include "skeleton.dtsi"
  11. #include <dt-bindings/gpio/gpio.h>
  12. / {
  13. model = "Atmel SAMA5D3 family SoC";
  14. compatible = "atmel,sama5d3", "atmel,sama5";
  15. interrupt-parent = <&aic>;
  16. aliases {
  17. serial0 = &dbgu;
  18. serial1 = &usart0;
  19. serial2 = &usart1;
  20. serial3 = &usart2;
  21. serial4 = &usart3;
  22. gpio0 = &pioA;
  23. gpio1 = &pioB;
  24. gpio2 = &pioC;
  25. gpio3 = &pioD;
  26. gpio4 = &pioE;
  27. tcb0 = &tcb0;
  28. tcb1 = &tcb1;
  29. i2c0 = &i2c0;
  30. i2c1 = &i2c1;
  31. i2c2 = &i2c2;
  32. ssc0 = &ssc0;
  33. ssc1 = &ssc1;
  34. };
  35. cpus {
  36. cpu@0 {
  37. compatible = "arm,cortex-a5";
  38. };
  39. };
  40. memory {
  41. reg = <0x20000000 0x8000000>;
  42. };
  43. ahb {
  44. compatible = "simple-bus";
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. ranges;
  48. apb {
  49. compatible = "simple-bus";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. ranges;
  53. mmc0: mmc@f0000000 {
  54. compatible = "atmel,hsmci";
  55. reg = <0xf0000000 0x600>;
  56. interrupts = <21 4 0>;
  57. dmas = <&dma0 2 0>;
  58. dma-names = "rxtx";
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7>;
  61. status = "disabled";
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. };
  65. spi0: spi@f0004000 {
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. compatible = "atmel,at91sam9x5-spi";
  69. reg = <0xf0004000 0x100>;
  70. interrupts = <24 4 3>;
  71. cs-gpios = <&pioD 13 0
  72. &pioD 14 0 /* conflicts with SCK0 and CANRX0 */
  73. &pioD 15 0 /* conflicts with CTS0 and CANTX0 */
  74. &pioD 16 0 /* conflicts with RTS0 and PWMFI3 */
  75. >;
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_spi0>;
  78. status = "disabled";
  79. };
  80. ssc0: ssc@f0008000 {
  81. compatible = "atmel,at91sam9g45-ssc";
  82. reg = <0xf0008000 0x4000>;
  83. interrupts = <38 4 4>;
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
  86. status = "disabled";
  87. };
  88. can0: can@f000c000 {
  89. compatible = "atmel,at91sam9x5-can";
  90. reg = <0xf000c000 0x300>;
  91. interrupts = <40 4 3>;
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&pinctrl_can0_rx_tx>;
  94. status = "disabled";
  95. };
  96. tcb0: timer@f0010000 {
  97. compatible = "atmel,at91sam9x5-tcb";
  98. reg = <0xf0010000 0x100>;
  99. interrupts = <26 4 0>;
  100. };
  101. i2c0: i2c@f0014000 {
  102. compatible = "atmel,at91sam9x5-i2c";
  103. reg = <0xf0014000 0x4000>;
  104. interrupts = <18 4 6>;
  105. dmas = <&dma0 2 7>,
  106. <&dma0 2 8>;
  107. dma-names = "tx", "rx";
  108. pinctrl-names = "default";
  109. pinctrl-0 = <&pinctrl_i2c0>;
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. status = "disabled";
  113. };
  114. i2c1: i2c@f0018000 {
  115. compatible = "atmel,at91sam9x5-i2c";
  116. reg = <0xf0018000 0x4000>;
  117. interrupts = <19 4 6>;
  118. dmas = <&dma0 2 9>,
  119. <&dma0 2 10>;
  120. dma-names = "tx", "rx";
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&pinctrl_i2c1>;
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. status = "disabled";
  126. };
  127. usart0: serial@f001c000 {
  128. compatible = "atmel,at91sam9260-usart";
  129. reg = <0xf001c000 0x100>;
  130. interrupts = <12 4 5>;
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&pinctrl_usart0>;
  133. status = "disabled";
  134. };
  135. usart1: serial@f0020000 {
  136. compatible = "atmel,at91sam9260-usart";
  137. reg = <0xf0020000 0x100>;
  138. interrupts = <13 4 5>;
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&pinctrl_usart1>;
  141. status = "disabled";
  142. };
  143. macb0: ethernet@f0028000 {
  144. compatible = "cnds,pc302-gem", "cdns,gem";
  145. reg = <0xf0028000 0x100>;
  146. interrupts = <34 4 3>;
  147. pinctrl-names = "default";
  148. pinctrl-0 = <&pinctrl_macb0_data_rgmii &pinctrl_macb0_signal_rgmii>;
  149. status = "disabled";
  150. };
  151. isi: isi@f0034000 {
  152. compatible = "atmel,at91sam9g45-isi";
  153. reg = <0xf0034000 0x4000>;
  154. interrupts = <37 4 5>;
  155. status = "disabled";
  156. };
  157. mmc1: mmc@f8000000 {
  158. compatible = "atmel,hsmci";
  159. reg = <0xf8000000 0x600>;
  160. interrupts = <22 4 0>;
  161. dmas = <&dma1 2 0>;
  162. dma-names = "rxtx";
  163. pinctrl-names = "default";
  164. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
  165. status = "disabled";
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. };
  169. mmc2: mmc@f8004000 {
  170. compatible = "atmel,hsmci";
  171. reg = <0xf8004000 0x600>;
  172. interrupts = <23 4 0>;
  173. dmas = <&dma1 2 1>;
  174. dma-names = "rxtx";
  175. pinctrl-names = "default";
  176. pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>;
  177. status = "disabled";
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. };
  181. spi1: spi@f8008000 {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. compatible = "atmel,at91sam9x5-spi";
  185. reg = <0xf8008000 0x100>;
  186. interrupts = <25 4 3>;
  187. cs-gpios = <&pioC 25 0
  188. &pioC 26 0 /* conflitcs with TWD1 and ISI_D11 */
  189. &pioC 27 0 /* conflitcs with TWCK1 and ISI_D10 */
  190. &pioC 28 0 /* conflitcs with PWMFI0 and ISI_D9 */
  191. >;
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&pinctrl_spi1>;
  194. status = "disabled";
  195. };
  196. ssc1: ssc@f800c000 {
  197. compatible = "atmel,at91sam9g45-ssc";
  198. reg = <0xf800c000 0x4000>;
  199. interrupts = <39 4 4>;
  200. pinctrl-names = "default";
  201. pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
  202. status = "disabled";
  203. };
  204. can1: can@f8010000 {
  205. compatible = "atmel,at91sam9x5-can";
  206. reg = <0xf8010000 0x300>;
  207. interrupts = <41 4 3>;
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&pinctrl_can1_rx_tx>;
  210. };
  211. tcb1: timer@f8014000 {
  212. compatible = "atmel,at91sam9x5-tcb";
  213. reg = <0xf8014000 0x100>;
  214. interrupts = <27 4 0>;
  215. };
  216. adc0: adc@f8018000 {
  217. compatible = "atmel,at91sam9260-adc";
  218. reg = <0xf8018000 0x100>;
  219. interrupts = <29 4 5>;
  220. pinctrl-names = "default";
  221. pinctrl-0 = <
  222. &pinctrl_adc0_adtrg
  223. &pinctrl_adc0_ad0
  224. &pinctrl_adc0_ad1
  225. &pinctrl_adc0_ad2
  226. &pinctrl_adc0_ad3
  227. &pinctrl_adc0_ad4
  228. &pinctrl_adc0_ad5
  229. &pinctrl_adc0_ad6
  230. &pinctrl_adc0_ad7
  231. &pinctrl_adc0_ad8
  232. &pinctrl_adc0_ad9
  233. &pinctrl_adc0_ad10
  234. &pinctrl_adc0_ad11
  235. >;
  236. atmel,adc-channel-base = <0x50>;
  237. atmel,adc-channels-used = <0xfff>;
  238. atmel,adc-drdy-mask = <0x1000000>;
  239. atmel,adc-num-channels = <12>;
  240. atmel,adc-startup-time = <40>;
  241. atmel,adc-status-register = <0x30>;
  242. atmel,adc-trigger-register = <0xc0>;
  243. atmel,adc-use-external;
  244. atmel,adc-vref = <3000>;
  245. atmel,adc-res = <10 12>;
  246. atmel,adc-res-names = "lowres", "highres";
  247. status = "disabled";
  248. trigger@0 {
  249. trigger-name = "external-rising";
  250. trigger-value = <0x1>;
  251. trigger-external;
  252. };
  253. trigger@1 {
  254. trigger-name = "external-falling";
  255. trigger-value = <0x2>;
  256. trigger-external;
  257. };
  258. trigger@2 {
  259. trigger-name = "external-any";
  260. trigger-value = <0x3>;
  261. trigger-external;
  262. };
  263. trigger@3 {
  264. trigger-name = "continuous";
  265. trigger-value = <0x6>;
  266. };
  267. };
  268. tsadcc: tsadcc@f8018000 {
  269. compatible = "atmel,at91sam9x5-tsadcc";
  270. reg = <0xf8018000 0x4000>;
  271. interrupts = <29 4 5>;
  272. atmel,tsadcc_clock = <300000>;
  273. atmel,filtering_average = <0x03>;
  274. atmel,pendet_debounce = <0x08>;
  275. atmel,pendet_sensitivity = <0x02>;
  276. atmel,ts_sample_hold_time = <0x0a>;
  277. status = "disabled";
  278. };
  279. i2c2: i2c@f801c000 {
  280. compatible = "atmel,at91sam9x5-i2c";
  281. reg = <0xf801c000 0x4000>;
  282. interrupts = <20 4 6>;
  283. dmas = <&dma1 2 11>,
  284. <&dma1 2 12>;
  285. dma-names = "tx", "rx";
  286. #address-cells = <1>;
  287. #size-cells = <0>;
  288. status = "disabled";
  289. };
  290. usart2: serial@f8020000 {
  291. compatible = "atmel,at91sam9260-usart";
  292. reg = <0xf8020000 0x100>;
  293. interrupts = <14 4 5>;
  294. pinctrl-names = "default";
  295. pinctrl-0 = <&pinctrl_usart2>;
  296. status = "disabled";
  297. };
  298. usart3: serial@f8024000 {
  299. compatible = "atmel,at91sam9260-usart";
  300. reg = <0xf8024000 0x100>;
  301. interrupts = <15 4 5>;
  302. pinctrl-names = "default";
  303. pinctrl-0 = <&pinctrl_usart3>;
  304. status = "disabled";
  305. };
  306. macb1: ethernet@f802c000 {
  307. compatible = "cdns,at32ap7000-macb", "cdns,macb";
  308. reg = <0xf802c000 0x100>;
  309. interrupts = <35 4 3>;
  310. pinctrl-names = "default";
  311. pinctrl-0 = <&pinctrl_macb1_rmii>;
  312. status = "disabled";
  313. };
  314. sha@f8034000 {
  315. compatible = "atmel,sam9g46-sha";
  316. reg = <0xf8034000 0x100>;
  317. interrupts = <42 4 0>;
  318. };
  319. aes@f8038000 {
  320. compatible = "atmel,sam9g46-aes";
  321. reg = <0xf8038000 0x100>;
  322. interrupts = <43 4 0>;
  323. };
  324. tdes@f803c000 {
  325. compatible = "atmel,sam9g46-tdes";
  326. reg = <0xf803c000 0x100>;
  327. interrupts = <44 4 0>;
  328. };
  329. dma0: dma-controller@ffffe600 {
  330. compatible = "atmel,at91sam9g45-dma";
  331. reg = <0xffffe600 0x200>;
  332. interrupts = <30 4 0>;
  333. #dma-cells = <2>;
  334. };
  335. dma1: dma-controller@ffffe800 {
  336. compatible = "atmel,at91sam9g45-dma";
  337. reg = <0xffffe800 0x200>;
  338. interrupts = <31 4 0>;
  339. #dma-cells = <2>;
  340. };
  341. ramc0: ramc@ffffea00 {
  342. compatible = "atmel,at91sam9g45-ddramc";
  343. reg = <0xffffea00 0x200>;
  344. };
  345. dbgu: serial@ffffee00 {
  346. compatible = "atmel,at91sam9260-usart";
  347. reg = <0xffffee00 0x200>;
  348. interrupts = <2 4 7>;
  349. pinctrl-names = "default";
  350. pinctrl-0 = <&pinctrl_dbgu>;
  351. status = "disabled";
  352. };
  353. aic: interrupt-controller@fffff000 {
  354. #interrupt-cells = <3>;
  355. compatible = "atmel,sama5d3-aic";
  356. interrupt-controller;
  357. reg = <0xfffff000 0x200>;
  358. atmel,external-irqs = <47>;
  359. };
  360. pinctrl@fffff200 {
  361. #address-cells = <1>;
  362. #size-cells = <1>;
  363. compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
  364. ranges = <0xfffff200 0xfffff200 0xa00>;
  365. atmel,mux-mask = <
  366. /* A B C */
  367. 0xffffffff 0xc0fc0000 0xc0ff0000 /* pioA */
  368. 0xffffffff 0x0ff8ffff 0x00000000 /* pioB */
  369. 0xffffffff 0xbc00f1ff 0x7c00fc00 /* pioC */
  370. 0xffffffff 0xc001c0e0 0x0001c1e0 /* pioD */
  371. 0xffffffff 0xbf9f8000 0x18000000 /* pioE */
  372. >;
  373. /* shared pinctrl settings */
  374. adc0 {
  375. pinctrl_adc0_adtrg: adc0_adtrg {
  376. atmel,pins =
  377. <3 19 0x1 0x0>; /* PD19 periph A ADTRG */
  378. };
  379. pinctrl_adc0_ad0: adc0_ad0 {
  380. atmel,pins =
  381. <3 20 0x1 0x0>; /* PD20 periph A AD0 */
  382. };
  383. pinctrl_adc0_ad1: adc0_ad1 {
  384. atmel,pins =
  385. <3 21 0x1 0x0>; /* PD21 periph A AD1 */
  386. };
  387. pinctrl_adc0_ad2: adc0_ad2 {
  388. atmel,pins =
  389. <3 22 0x1 0x0>; /* PD22 periph A AD2 */
  390. };
  391. pinctrl_adc0_ad3: adc0_ad3 {
  392. atmel,pins =
  393. <3 23 0x1 0x0>; /* PD23 periph A AD3 */
  394. };
  395. pinctrl_adc0_ad4: adc0_ad4 {
  396. atmel,pins =
  397. <3 24 0x1 0x0>; /* PD24 periph A AD4 */
  398. };
  399. pinctrl_adc0_ad5: adc0_ad5 {
  400. atmel,pins =
  401. <3 25 0x1 0x0>; /* PD25 periph A AD5 */
  402. };
  403. pinctrl_adc0_ad6: adc0_ad6 {
  404. atmel,pins =
  405. <3 26 0x1 0x0>; /* PD26 periph A AD6 */
  406. };
  407. pinctrl_adc0_ad7: adc0_ad7 {
  408. atmel,pins =
  409. <3 27 0x1 0x0>; /* PD27 periph A AD7 */
  410. };
  411. pinctrl_adc0_ad8: adc0_ad8 {
  412. atmel,pins =
  413. <3 28 0x1 0x0>; /* PD28 periph A AD8 */
  414. };
  415. pinctrl_adc0_ad9: adc0_ad9 {
  416. atmel,pins =
  417. <3 29 0x1 0x0>; /* PD29 periph A AD9 */
  418. };
  419. pinctrl_adc0_ad10: adc0_ad10 {
  420. atmel,pins =
  421. <3 30 0x1 0x0>; /* PD30 periph A AD10, conflicts with PCK0 */
  422. };
  423. pinctrl_adc0_ad11: adc0_ad11 {
  424. atmel,pins =
  425. <3 31 0x1 0x0>; /* PD31 periph A AD11, conflicts with PCK1 */
  426. };
  427. };
  428. can0 {
  429. pinctrl_can0_rx_tx: can0_rx_tx {
  430. atmel,pins =
  431. <3 14 0x3 0x0 /* PD14 periph C RX, conflicts with SCK0, SPI0_NPCS1 */
  432. 3 15 0x3 0x0>; /* PD15 periph C TX, conflicts with CTS0, SPI0_NPCS2 */
  433. };
  434. };
  435. can1 {
  436. pinctrl_can1_rx_tx: can1_rx_tx {
  437. atmel,pins =
  438. <1 14 0x2 0x0 /* PB14 periph B RX, conflicts with GCRS */
  439. 1 15 0x2 0x0>; /* PB15 periph B TX, conflicts with GCOL */
  440. };
  441. };
  442. dbgu {
  443. pinctrl_dbgu: dbgu-0 {
  444. atmel,pins =
  445. <1 30 0x1 0x0 /* PB30 periph A */
  446. 1 31 0x1 0x1>; /* PB31 periph A with pullup */
  447. };
  448. };
  449. i2c0 {
  450. pinctrl_i2c0: i2c0-0 {
  451. atmel,pins =
  452. <0 30 0x1 0x0 /* PA30 periph A TWD0 pin, conflicts with URXD1, ISI_VSYNC */
  453. 0 31 0x1 0x0>; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */
  454. };
  455. };
  456. i2c1 {
  457. pinctrl_i2c1: i2c1-0 {
  458. atmel,pins =
  459. <2 26 0x2 0x0 /* PC26 periph B TWD1 pin, conflicts with SPI1_NPCS1, ISI_D11 */
  460. 2 27 0x2 0x0>; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */
  461. };
  462. };
  463. isi {
  464. pinctrl_isi: isi-0 {
  465. atmel,pins =
  466. <0 16 0x3 0x0 /* PA16 periph C ISI_D0, conflicts with LCDDAT16 */
  467. 0 17 0x3 0x0 /* PA17 periph C ISI_D1, conflicts with LCDDAT17 */
  468. 0 18 0x3 0x0 /* PA18 periph C ISI_D2, conflicts with LCDDAT18, TWD2 */
  469. 0 19 0x3 0x0 /* PA19 periph C ISI_D3, conflicts with LCDDAT19, TWCK2 */
  470. 0 20 0x3 0x0 /* PA20 periph C ISI_D4, conflicts with LCDDAT20, PWMH0 */
  471. 0 21 0x3 0x0 /* PA21 periph C ISI_D5, conflicts with LCDDAT21, PWML0 */
  472. 0 22 0x3 0x0 /* PA22 periph C ISI_D6, conflicts with LCDDAT22, PWMH1 */
  473. 0 23 0x3 0x0 /* PA23 periph C ISI_D7, conflicts with LCDDAT23, PWML1 */
  474. 2 30 0x3 0x0 /* PC30 periph C ISI_PCK, conflicts with UTXD0 */
  475. 0 31 0x3 0x0 /* PA31 periph C ISI_HSYNC, conflicts with TWCK0, UTXD1 */
  476. 0 30 0x3 0x0 /* PA30 periph C ISI_VSYNC, conflicts with TWD0, URXD1 */
  477. 2 29 0x3 0x0 /* PC29 periph C ISI_PD8, conflicts with URXD0, PWMFI2 */
  478. 2 28 0x3 0x0>; /* PC28 periph C ISI_PD9, conflicts with SPI1_NPCS3, PWMFI0 */
  479. };
  480. pinctrl_isi_pck_as_mck: isi_pck_as_mck-0 {
  481. atmel,pins =
  482. <3 31 0x2 0x0>; /* PD31 periph B ISI_MCK */
  483. };
  484. };
  485. lcd {
  486. pinctrl_lcd: lcd-0 {
  487. atmel,pins =
  488. <0 24 0x1 0x0 /* PA24 periph A LCDPWM */
  489. 0 26 0x1 0x0 /* PA26 periph A LCDVSYNC */
  490. 0 27 0x1 0x0 /* PA27 periph A LCDHSYNC */
  491. 0 25 0x1 0x0 /* PA25 periph A LCDDISP */
  492. 0 29 0x1 0x0 /* PA29 periph A LCDDEN */
  493. 0 28 0x1 0x0 /* PA28 periph A LCDPCK */
  494. 0 0 0x1 0x0 /* PA0 periph A LCDD0 pin */
  495. 0 1 0x1 0x0 /* PA1 periph A LCDD1 pin */
  496. 0 2 0x1 0x0 /* PA2 periph A LCDD2 pin */
  497. 0 3 0x1 0x0 /* PA3 periph A LCDD3 pin */
  498. 0 4 0x1 0x0 /* PA4 periph A LCDD4 pin */
  499. 0 5 0x1 0x0 /* PA5 periph A LCDD5 pin */
  500. 0 6 0x1 0x0 /* PA6 periph A LCDD6 pin */
  501. 0 7 0x1 0x0 /* PA7 periph A LCDD7 pin */
  502. 0 8 0x1 0x0 /* PA8 periph A LCDD8 pin */
  503. 0 9 0x1 0x0 /* PA9 periph A LCDD9 pin */
  504. 0 10 0x1 0x0 /* PA10 periph A LCDD10 pin */
  505. 0 11 0x1 0x0 /* PA11 periph A LCDD11 pin */
  506. 0 12 0x1 0x0 /* PA12 periph A LCDD12 pin */
  507. 0 13 0x1 0x0 /* PA13 periph A LCDD13 pin */
  508. 0 14 0x1 0x0 /* PA14 periph A LCDD14 pin */
  509. 0 15 0x1 0x0 /* PA15 periph A LCDD15 pin */
  510. 2 14 0x3 0x0 /* PC14 periph C LCDD16 pin */
  511. 2 13 0x3 0x0 /* PC13 periph C LCDD17 pin */
  512. 2 12 0x3 0x0 /* PC12 periph C LCDD18 pin */
  513. 2 11 0x3 0x0 /* PC11 periph C LCDD19 pin */
  514. 2 10 0x3 0x0 /* PC10 periph C LCDD20 pin */
  515. 2 15 0x3 0x0 /* PC15 periph C LCDD21 pin */
  516. 4 27 0x3 0x0 /* PE27 periph C LCDD22 pin */
  517. 4 28 0x3 0x0>; /* PE28 periph C LCDD23 pin */
  518. };
  519. };
  520. macb0 {
  521. pinctrl_macb0_data_rgmii: macb0_data_rgmii {
  522. atmel,pins =
  523. <1 0 0x1 0x0 /* PB0 periph A GTX0, conflicts with PWMH0 */
  524. 1 1 0x1 0x0 /* PB1 periph A GTX1, conflicts with PWML0 */
  525. 1 2 0x1 0x0 /* PB2 periph A GTX2, conflicts with TK1 */
  526. 1 3 0x1 0x0 /* PB3 periph A GTX3, conflicts with TF1 */
  527. 1 4 0x1 0x0 /* PB4 periph A GRX0, conflicts with PWMH1 */
  528. 1 5 0x1 0x0 /* PB5 periph A GRX1, conflicts with PWML1 */
  529. 1 6 0x1 0x0 /* PB6 periph A GRX2, conflicts with TD1 */
  530. 1 7 0x1 0x0>; /* PB7 periph A GRX3, conflicts with RK1 */
  531. };
  532. pinctrl_macb0_data_gmii: macb0_data_gmii {
  533. atmel,pins =
  534. <1 19 0x2 0x0 /* PB19 periph B GTX4, conflicts with MCI1_CDA */
  535. 1 20 0x2 0x0 /* PB20 periph B GTX5, conflicts with MCI1_DA0 */
  536. 1 21 0x2 0x0 /* PB21 periph B GTX6, conflicts with MCI1_DA1 */
  537. 1 22 0x2 0x0 /* PB22 periph B GTX7, conflicts with MCI1_DA2 */
  538. 1 23 0x2 0x0 /* PB23 periph B GRX4, conflicts with MCI1_DA3 */
  539. 1 24 0x2 0x0 /* PB24 periph B GRX5, conflicts with MCI1_CK */
  540. 1 25 0x2 0x0 /* PB25 periph B GRX6, conflicts with SCK1 */
  541. 1 26 0x2 0x0>; /* PB26 periph B GRX7, conflicts with CTS1 */
  542. };
  543. pinctrl_macb0_signal_rgmii: macb0_signal_rgmii {
  544. atmel,pins =
  545. <1 8 0x1 0x0 /* PB8 periph A GTXCK, conflicts with PWMH2 */
  546. 1 9 0x1 0x0 /* PB9 periph A GTXEN, conflicts with PWML2 */
  547. 1 11 0x1 0x0 /* PB11 periph A GRXCK, conflicts with RD1 */
  548. 1 13 0x1 0x0 /* PB13 periph A GRXER, conflicts with PWML3 */
  549. 1 16 0x1 0x0 /* PB16 periph A GMDC */
  550. 1 17 0x1 0x0 /* PB17 periph A GMDIO */
  551. 1 18 0x1 0x0>; /* PB18 periph A G125CK */
  552. };
  553. pinctrl_macb0_signal_gmii: macb0_signal_gmii {
  554. atmel,pins =
  555. <1 9 0x1 0x0 /* PB9 periph A GTXEN, conflicts with PWML2 */
  556. 1 10 0x1 0x0 /* PB10 periph A GTXER, conflicts with RF1 */
  557. 1 11 0x1 0x0 /* PB11 periph A GRXCK, conflicts with RD1 */
  558. 1 12 0x1 0x0 /* PB12 periph A GRXDV, conflicts with PWMH3 */
  559. 1 13 0x1 0x0 /* PB13 periph A GRXER, conflicts with PWML3 */
  560. 1 14 0x1 0x0 /* PB14 periph A GCRS, conflicts with CANRX1 */
  561. 1 15 0x1 0x0 /* PB15 periph A GCOL, conflicts with CANTX1 */
  562. 1 16 0x1 0x0 /* PB16 periph A GMDC */
  563. 1 17 0x1 0x0 /* PB17 periph A GMDIO */
  564. 1 27 0x2 0x0>; /* PB27 periph B G125CKO */
  565. };
  566. };
  567. macb1 {
  568. pinctrl_macb1_rmii: macb1_rmii-0 {
  569. atmel,pins =
  570. <2 0 0x1 0x0 /* PC0 periph A ETX0, conflicts with TIOA3 */
  571. 2 1 0x1 0x0 /* PC1 periph A ETX1, conflicts with TIOB3 */
  572. 2 2 0x1 0x0 /* PC2 periph A ERX0, conflicts with TCLK3 */
  573. 2 3 0x1 0x0 /* PC3 periph A ERX1, conflicts with TIOA4 */
  574. 2 4 0x1 0x0 /* PC4 periph A ETXEN, conflicts with TIOB4 */
  575. 2 5 0x1 0x0 /* PC5 periph A ECRSDV,conflicts with TCLK4 */
  576. 2 6 0x1 0x0 /* PC6 periph A ERXER, conflicts with TIOA5 */
  577. 2 7 0x1 0x0 /* PC7 periph A EREFCK, conflicts with TIOB5 */
  578. 2 8 0x1 0x0 /* PC8 periph A EMDC, conflicts with TCLK5 */
  579. 2 9 0x1 0x0>; /* PC9 periph A EMDIO */
  580. };
  581. };
  582. mmc0 {
  583. pinctrl_mmc0_clk_cmd_dat0: mmc0_clk_cmd_dat0 {
  584. atmel,pins =
  585. <3 9 0x1 0x0 /* PD9 periph A MCI0_CK */
  586. 3 0 0x1 0x1 /* PD0 periph A MCI0_CDA with pullup */
  587. 3 1 0x1 0x1>; /* PD1 periph A MCI0_DA0 with pullup */
  588. };
  589. pinctrl_mmc0_dat1_3: mmc0_dat1_3 {
  590. atmel,pins =
  591. <3 2 0x1 0x1 /* PD2 periph A MCI0_DA1 with pullup */
  592. 3 3 0x1 0x1 /* PD3 periph A MCI0_DA2 with pullup */
  593. 3 4 0x1 0x1>; /* PD4 periph A MCI0_DA3 with pullup */
  594. };
  595. pinctrl_mmc0_dat4_7: mmc0_dat4_7 {
  596. atmel,pins =
  597. <3 5 0x1 0x1 /* PD5 periph A MCI0_DA4 with pullup, conflicts with TIOA0, PWMH2 */
  598. 3 6 0x1 0x1 /* PD6 periph A MCI0_DA5 with pullup, conflicts with TIOB0, PWML2 */
  599. 3 7 0x1 0x1 /* PD7 periph A MCI0_DA6 with pullup, conlicts with TCLK0, PWMH3 */
  600. 3 8 0x1 0x1>; /* PD8 periph A MCI0_DA7 with pullup, conflicts with PWML3 */
  601. };
  602. };
  603. mmc1 {
  604. pinctrl_mmc1_clk_cmd_dat0: mmc1_clk_cmd_dat0 {
  605. atmel,pins =
  606. <1 24 0x1 0x0 /* PB24 periph A MCI1_CK, conflicts with GRX5 */
  607. 1 19 0x1 0x1 /* PB19 periph A MCI1_CDA with pullup, conflicts with GTX4 */
  608. 1 20 0x1 0x1>; /* PB20 periph A MCI1_DA0 with pullup, conflicts with GTX5 */
  609. };
  610. pinctrl_mmc1_dat1_3: mmc1_dat1_3 {
  611. atmel,pins =
  612. <1 21 0x1 0x1 /* PB21 periph A MCI1_DA1 with pullup, conflicts with GTX6 */
  613. 1 22 0x1 0x1 /* PB22 periph A MCI1_DA2 with pullup, conflicts with GTX7 */
  614. 1 23 0x1 0x1>; /* PB23 periph A MCI1_DA3 with pullup, conflicts with GRX4 */
  615. };
  616. };
  617. mmc2 {
  618. pinctrl_mmc2_clk_cmd_dat0: mmc2_clk_cmd_dat0 {
  619. atmel,pins =
  620. <2 15 0x1 0x0 /* PC15 periph A MCI2_CK, conflicts with PCK2 */
  621. 2 10 0x1 0x1 /* PC10 periph A MCI2_CDA with pullup */
  622. 2 11 0x1 0x1>; /* PC11 periph A MCI2_DA0 with pullup */
  623. };
  624. pinctrl_mmc2_dat1_3: mmc2_dat1_3 {
  625. atmel,pins =
  626. <2 12 0x1 0x0 /* PC12 periph A MCI2_DA1 with pullup, conflicts with TIOA1 */
  627. 2 13 0x1 0x0 /* PC13 periph A MCI2_DA2 with pullup, conflicts with TIOB1 */
  628. 2 14 0x1 0x0>; /* PC14 periph A MCI2_DA3 with pullup, conflicts with TCLK1 */
  629. };
  630. };
  631. nand0 {
  632. pinctrl_nand0_ale_cle: nand0_ale_cle-0 {
  633. atmel,pins =
  634. <4 21 0x1 0x1 /* PE21 periph A with pullup */
  635. 4 22 0x1 0x1>; /* PE22 periph A with pullup */
  636. };
  637. };
  638. pioA: gpio@fffff200 {
  639. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  640. reg = <0xfffff200 0x100>;
  641. interrupts = <6 4 1>;
  642. #gpio-cells = <2>;
  643. gpio-controller;
  644. interrupt-controller;
  645. #interrupt-cells = <2>;
  646. };
  647. pioB: gpio@fffff400 {
  648. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  649. reg = <0xfffff400 0x100>;
  650. interrupts = <7 4 1>;
  651. #gpio-cells = <2>;
  652. gpio-controller;
  653. interrupt-controller;
  654. #interrupt-cells = <2>;
  655. };
  656. pioC: gpio@fffff600 {
  657. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  658. reg = <0xfffff600 0x100>;
  659. interrupts = <8 4 1>;
  660. #gpio-cells = <2>;
  661. gpio-controller;
  662. interrupt-controller;
  663. #interrupt-cells = <2>;
  664. };
  665. pioD: gpio@fffff800 {
  666. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  667. reg = <0xfffff800 0x100>;
  668. interrupts = <9 4 1>;
  669. #gpio-cells = <2>;
  670. gpio-controller;
  671. interrupt-controller;
  672. #interrupt-cells = <2>;
  673. };
  674. pioE: gpio@fffffa00 {
  675. compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
  676. reg = <0xfffffa00 0x100>;
  677. interrupts = <10 4 1>;
  678. #gpio-cells = <2>;
  679. gpio-controller;
  680. interrupt-controller;
  681. #interrupt-cells = <2>;
  682. };
  683. spi0 {
  684. pinctrl_spi0: spi0-0 {
  685. atmel,pins =
  686. <3 10 0x1 0x0 /* PD10 periph A SPI0_MISO pin */
  687. 3 11 0x1 0x0 /* PD11 periph A SPI0_MOSI pin */
  688. 3 12 0x1 0x0 /* PD12 periph A SPI0_SPCK pin */
  689. 3 13 0x0 0x0>; /* PD13 GPIO SPI0_NPCS0 pin */
  690. };
  691. };
  692. spi1 {
  693. pinctrl_spi1: spi1-0 {
  694. atmel,pins =
  695. <2 22 0x1 0x0 /* PC22 periph A SPI1_MISO pin */
  696. 2 23 0x1 0x0 /* PC23 periph A SPI1_MOSI pin */
  697. 2 24 0x1 0x0 /* PC24 periph A SPI1_SPCK pin */
  698. 2 25 0x0 0x0>; /* PC25 GPIO SPI1_NPCS0 pin */
  699. };
  700. };
  701. ssc0 {
  702. pinctrl_ssc0_tx: ssc0_tx {
  703. atmel,pins =
  704. <2 16 0x1 0x0 /* PC16 periph A TK0 */
  705. 2 17 0x1 0x0 /* PC17 periph A TF0 */
  706. 2 18 0x1 0x0>; /* PC18 periph A TD0 */
  707. };
  708. pinctrl_ssc0_rx: ssc0_rx {
  709. atmel,pins =
  710. <2 19 0x1 0x0 /* PC19 periph A RK0 */
  711. 2 20 0x1 0x0 /* PC20 periph A RF0 */
  712. 2 21 0x1 0x0>; /* PC21 periph A RD0 */
  713. };
  714. };
  715. ssc1 {
  716. pinctrl_ssc1_tx: ssc1_tx {
  717. atmel,pins =
  718. <1 2 0x2 0x0 /* PB2 periph B TK1, conflicts with GTX2 */
  719. 1 3 0x2 0x0 /* PB3 periph B TF1, conflicts with GTX3 */
  720. 1 6 0x2 0x0>; /* PB6 periph B TD1, conflicts with TD1 */
  721. };
  722. pinctrl_ssc1_rx: ssc1_rx {
  723. atmel,pins =
  724. <1 7 0x2 0x0 /* PB7 periph B RK1, conflicts with EREFCK */
  725. 1 10 0x2 0x0 /* PB10 periph B RF1, conflicts with GTXER */
  726. 1 11 0x2 0x0>; /* PB11 periph B RD1, conflicts with GRXCK */
  727. };
  728. };
  729. uart0 {
  730. pinctrl_uart0: uart0-0 {
  731. atmel,pins =
  732. <2 29 0x1 0x0 /* PC29 periph A, conflicts with PWMFI2, ISI_D8 */
  733. 2 30 0x1 0x1>; /* PC30 periph A with pullup, conflicts with ISI_PCK */
  734. };
  735. };
  736. uart1 {
  737. pinctrl_uart1: uart1-0 {
  738. atmel,pins =
  739. <0 30 0x2 0x0 /* PA30 periph B, conflicts with TWD0, ISI_VSYNC */
  740. 0 31 0x2 0x1>; /* PA31 periph B with pullup, conflicts with TWCK0, ISI_HSYNC */
  741. };
  742. };
  743. usart0 {
  744. pinctrl_usart0: usart0-0 {
  745. atmel,pins =
  746. <3 17 0x1 0x0 /* PD17 periph A */
  747. 3 18 0x1 0x1>; /* PD18 periph A with pullup */
  748. };
  749. pinctrl_usart0_rts_cts: usart0_rts_cts-0 {
  750. atmel,pins =
  751. <3 15 0x1 0x0 /* PD15 periph A, conflicts with SPI0_NPCS2, CANTX0 */
  752. 3 16 0x1 0x0>; /* PD16 periph A, conflicts with SPI0_NPCS3, PWMFI3 */
  753. };
  754. };
  755. usart1 {
  756. pinctrl_usart1: usart1-0 {
  757. atmel,pins =
  758. <1 28 0x1 0x0 /* PB28 periph A */
  759. 1 29 0x1 0x1>; /* PB29 periph A with pullup */
  760. };
  761. pinctrl_usart1_rts_cts: usart1_rts_cts-0 {
  762. atmel,pins =
  763. <1 26 0x1 0x0 /* PB26 periph A, conflicts with GRX7 */
  764. 1 27 0x1 0x0>; /* PB27 periph A, conflicts with G125CKO */
  765. };
  766. };
  767. usart2 {
  768. pinctrl_usart2: usart2-0 {
  769. atmel,pins =
  770. <4 25 0x2 0x0 /* PE25 periph B, conflicts with A25 */
  771. 4 26 0x2 0x1>; /* PE26 periph B with pullup, conflicts NCS0 */
  772. };
  773. pinctrl_usart2_rts_cts: usart2_rts_cts-0 {
  774. atmel,pins =
  775. <4 23 0x2 0x0 /* PE23 periph B, conflicts with A23 */
  776. 4 24 0x2 0x0>; /* PE24 periph B, conflicts with A24 */
  777. };
  778. };
  779. usart3 {
  780. pinctrl_usart3: usart3-0 {
  781. atmel,pins =
  782. <4 18 0x2 0x0 /* PE18 periph B, conflicts with A18 */
  783. 4 19 0x2 0x1>; /* PE19 periph B with pullup, conflicts with A19 */
  784. };
  785. pinctrl_usart3_rts_cts: usart3_rts_cts-0 {
  786. atmel,pins =
  787. <4 16 0x2 0x0 /* PE16 periph B, conflicts with A16 */
  788. 4 17 0x2 0x0>; /* PE17 periph B, conflicts with A17 */
  789. };
  790. };
  791. };
  792. pmc: pmc@fffffc00 {
  793. compatible = "atmel,at91rm9200-pmc";
  794. reg = <0xfffffc00 0x120>;
  795. };
  796. rstc@fffffe00 {
  797. compatible = "atmel,at91sam9g45-rstc";
  798. reg = <0xfffffe00 0x10>;
  799. };
  800. pit: timer@fffffe30 {
  801. compatible = "atmel,at91sam9260-pit";
  802. reg = <0xfffffe30 0xf>;
  803. interrupts = <3 4 5>;
  804. };
  805. watchdog@fffffe40 {
  806. compatible = "atmel,at91sam9260-wdt";
  807. reg = <0xfffffe40 0x10>;
  808. status = "disabled";
  809. };
  810. rtc@fffffeb0 {
  811. compatible = "atmel,at91rm9200-rtc";
  812. reg = <0xfffffeb0 0x30>;
  813. interrupts = <1 4 7>;
  814. };
  815. };
  816. usb0: gadget@00500000 {
  817. #address-cells = <1>;
  818. #size-cells = <0>;
  819. compatible = "atmel,at91sam9rl-udc";
  820. reg = <0x00500000 0x100000
  821. 0xf8030000 0x4000>;
  822. interrupts = <33 4 2>;
  823. status = "disabled";
  824. ep0 {
  825. reg = <0>;
  826. atmel,fifo-size = <64>;
  827. atmel,nb-banks = <1>;
  828. };
  829. ep1 {
  830. reg = <1>;
  831. atmel,fifo-size = <1024>;
  832. atmel,nb-banks = <3>;
  833. atmel,can-dma;
  834. atmel,can-isoc;
  835. };
  836. ep2 {
  837. reg = <2>;
  838. atmel,fifo-size = <1024>;
  839. atmel,nb-banks = <3>;
  840. atmel,can-dma;
  841. atmel,can-isoc;
  842. };
  843. ep3 {
  844. reg = <3>;
  845. atmel,fifo-size = <1024>;
  846. atmel,nb-banks = <2>;
  847. atmel,can-dma;
  848. };
  849. ep4 {
  850. reg = <4>;
  851. atmel,fifo-size = <1024>;
  852. atmel,nb-banks = <2>;
  853. atmel,can-dma;
  854. };
  855. ep5 {
  856. reg = <5>;
  857. atmel,fifo-size = <1024>;
  858. atmel,nb-banks = <2>;
  859. atmel,can-dma;
  860. };
  861. ep6 {
  862. reg = <6>;
  863. atmel,fifo-size = <1024>;
  864. atmel,nb-banks = <2>;
  865. atmel,can-dma;
  866. };
  867. ep7 {
  868. reg = <7>;
  869. atmel,fifo-size = <1024>;
  870. atmel,nb-banks = <2>;
  871. atmel,can-dma;
  872. };
  873. ep8 {
  874. reg = <8>;
  875. atmel,fifo-size = <1024>;
  876. atmel,nb-banks = <2>;
  877. };
  878. ep9 {
  879. reg = <9>;
  880. atmel,fifo-size = <1024>;
  881. atmel,nb-banks = <2>;
  882. };
  883. ep10 {
  884. reg = <10>;
  885. atmel,fifo-size = <1024>;
  886. atmel,nb-banks = <2>;
  887. };
  888. ep11 {
  889. reg = <11>;
  890. atmel,fifo-size = <1024>;
  891. atmel,nb-banks = <2>;
  892. };
  893. ep12 {
  894. reg = <12>;
  895. atmel,fifo-size = <1024>;
  896. atmel,nb-banks = <2>;
  897. };
  898. ep13 {
  899. reg = <13>;
  900. atmel,fifo-size = <1024>;
  901. atmel,nb-banks = <2>;
  902. };
  903. ep14 {
  904. reg = <14>;
  905. atmel,fifo-size = <1024>;
  906. atmel,nb-banks = <2>;
  907. };
  908. ep15 {
  909. reg = <15>;
  910. atmel,fifo-size = <1024>;
  911. atmel,nb-banks = <2>;
  912. };
  913. };
  914. usb1: ohci@00600000 {
  915. compatible = "atmel,at91rm9200-ohci", "usb-ohci";
  916. reg = <0x00600000 0x100000>;
  917. interrupts = <32 4 2>;
  918. status = "disabled";
  919. };
  920. usb2: ehci@00700000 {
  921. compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
  922. reg = <0x00700000 0x100000>;
  923. interrupts = <32 4 2>;
  924. status = "disabled";
  925. };
  926. nand0: nand@60000000 {
  927. compatible = "atmel,at91rm9200-nand";
  928. #address-cells = <1>;
  929. #size-cells = <1>;
  930. reg = < 0x60000000 0x01000000 /* EBI CS3 */
  931. 0xffffc070 0x00000490 /* SMC PMECC regs */
  932. 0xffffc500 0x00000100 /* SMC PMECC Error Location regs */
  933. 0x00100000 0x00100000 /* ROM code */
  934. 0x70000000 0x10000000 /* NFC Command Registers */
  935. 0xffffc000 0x00000070 /* NFC HSMC regs */
  936. 0x00200000 0x00100000 /* NFC SRAM banks */
  937. >;
  938. interrupts = <5 4 6>;
  939. atmel,nand-addr-offset = <21>;
  940. atmel,nand-cmd-offset = <22>;
  941. pinctrl-names = "default";
  942. pinctrl-0 = <&pinctrl_nand0_ale_cle>;
  943. atmel,pmecc-lookup-table-offset = <0x10000 0x18000>;
  944. status = "disabled";
  945. };
  946. };
  947. };