sama5d3.dtsi 29 KB

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