spear1310-evb.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. /*
  2. * DTS file for SPEAr1310 Evaluation Baord
  3. *
  4. * Copyright 2012 Viresh Kumar <viresh.linux@gmail.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /dts-v1/;
  14. /include/ "spear1310.dtsi"
  15. / {
  16. model = "ST SPEAr1310 Evaluation Board";
  17. compatible = "st,spear1310-evb", "st,spear1310";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. memory {
  21. reg = <0 0x40000000>;
  22. };
  23. ahb {
  24. pinmux@e0700000 {
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&state_default>;
  27. state_default: pinmux {
  28. i2c0 {
  29. st,pins = "i2c0_grp";
  30. st,function = "i2c0";
  31. };
  32. i2s0 {
  33. st,pins = "i2s0_grp";
  34. st,function = "i2s0";
  35. };
  36. i2s1 {
  37. st,pins = "i2s1_grp";
  38. st,function = "i2s1";
  39. };
  40. gpio {
  41. st,pins = "arm_gpio_grp";
  42. st,function = "arm_gpio";
  43. };
  44. clcd {
  45. st,pins = "clcd_grp" , "clcd_high_res";
  46. st,function = "clcd";
  47. };
  48. eth {
  49. st,pins = "gmii_grp";
  50. st,function = "gmii";
  51. };
  52. ssp0 {
  53. st,pins = "ssp0_grp";
  54. st,function = "ssp0";
  55. };
  56. kbd {
  57. st,pins = "keyboard_6x6_grp";
  58. st,function = "keyboard";
  59. };
  60. sdhci {
  61. st,pins = "sdhci_grp";
  62. st,function = "sdhci";
  63. };
  64. smi-pmx {
  65. st,pins = "smi_2_chips_grp";
  66. st,function = "smi";
  67. };
  68. uart0 {
  69. st,pins = "uart0_grp";
  70. st,function = "uart0";
  71. };
  72. rs485 {
  73. st,pins = "rs485_0_1_tdm_0_1_grp";
  74. st,function = "rs485_0_1_tdm_0_1";
  75. };
  76. i2c1_2 {
  77. st,pins = "i2c_1_2_grp";
  78. st,function = "i2c_1_2";
  79. };
  80. smii {
  81. st,pins = "smii_0_1_2_grp";
  82. st,function = "smii_0_1_2";
  83. };
  84. nand {
  85. st,pins = "nand_8bit_grp",
  86. "nand_16bit_grp";
  87. st,function = "nand";
  88. };
  89. sata {
  90. st,pins = "sata0_grp";
  91. st,function = "sata";
  92. };
  93. pcie {
  94. st,pins = "pcie1_grp", "pcie2_grp";
  95. st,function = "pci_express";
  96. };
  97. };
  98. };
  99. ahci@b1000000 {
  100. status = "okay";
  101. };
  102. cf@b2800000 {
  103. status = "okay";
  104. };
  105. dma@ea800000 {
  106. status = "okay";
  107. };
  108. dma@eb000000 {
  109. status = "okay";
  110. };
  111. fsmc: flash@b0000000 {
  112. status = "okay";
  113. partition@0 {
  114. label = "xloader";
  115. reg = <0x0 0x80000>;
  116. };
  117. partition@80000 {
  118. label = "u-boot";
  119. reg = <0x80000 0x140000>;
  120. };
  121. partition@1C0000 {
  122. label = "environment";
  123. reg = <0x1C0000 0x40000>;
  124. };
  125. partition@200000 {
  126. label = "dtb";
  127. reg = <0x200000 0x40000>;
  128. };
  129. partition@240000 {
  130. label = "linux";
  131. reg = <0x240000 0xC00000>;
  132. };
  133. partition@E40000 {
  134. label = "rootfs";
  135. reg = <0xE40000 0x0>;
  136. };
  137. };
  138. gpio_keys {
  139. compatible = "gpio-keys";
  140. #address-cells = <1>;
  141. #size-cells = <0>;
  142. button@1 {
  143. label = "wakeup";
  144. linux,code = <0x100>;
  145. gpios = <&gpio0 7 0x4>;
  146. debounce-interval = <20>;
  147. gpio-key,wakeup = <1>;
  148. };
  149. };
  150. gmac0: eth@e2000000 {
  151. phy-mode = "gmii";
  152. status = "okay";
  153. };
  154. sdhci@b3000000 {
  155. status = "okay";
  156. };
  157. smi: flash@ea000000 {
  158. status = "okay";
  159. clock-rate=<50000000>;
  160. flash@e6000000 {
  161. #address-cells = <1>;
  162. #size-cells = <1>;
  163. reg = <0xe6000000 0x800000>;
  164. st,smi-fast-mode;
  165. partition@0 {
  166. label = "xloader";
  167. reg = <0x0 0x10000>;
  168. };
  169. partition@10000 {
  170. label = "u-boot";
  171. reg = <0x10000 0x50000>;
  172. };
  173. partition@60000 {
  174. label = "environment";
  175. reg = <0x60000 0x10000>;
  176. };
  177. partition@70000 {
  178. label = "dtb";
  179. reg = <0x70000 0x10000>;
  180. };
  181. partition@80000 {
  182. label = "linux";
  183. reg = <0x80000 0x310000>;
  184. };
  185. partition@390000 {
  186. label = "rootfs";
  187. reg = <0x390000 0x0>;
  188. };
  189. };
  190. };
  191. ehci@e4800000 {
  192. status = "okay";
  193. };
  194. ehci@e5800000 {
  195. status = "okay";
  196. };
  197. ohci@e4000000 {
  198. status = "okay";
  199. };
  200. ohci@e5000000 {
  201. status = "okay";
  202. };
  203. apb {
  204. adc@e0080000 {
  205. status = "okay";
  206. };
  207. gpio0: gpio@e0600000 {
  208. status = "okay";
  209. };
  210. gpio1: gpio@e0680000 {
  211. status = "okay";
  212. };
  213. gpio@d8400000 {
  214. status = "okay";
  215. };
  216. i2c0: i2c@e0280000 {
  217. status = "okay";
  218. };
  219. kbd@e0300000 {
  220. linux,keymap = < 0x00000001
  221. 0x00010002
  222. 0x00020003
  223. 0x00030004
  224. 0x00040005
  225. 0x00050006
  226. 0x00060007
  227. 0x00070008
  228. 0x00080009
  229. 0x0100000a
  230. 0x0101000c
  231. 0x0102000d
  232. 0x0103000e
  233. 0x0104000f
  234. 0x01050010
  235. 0x01060011
  236. 0x01070012
  237. 0x01080013
  238. 0x02000014
  239. 0x02010015
  240. 0x02020016
  241. 0x02030017
  242. 0x02040018
  243. 0x02050019
  244. 0x0206001a
  245. 0x0207001b
  246. 0x0208001c
  247. 0x0300001d
  248. 0x0301001e
  249. 0x0302001f
  250. 0x03030020
  251. 0x03040021
  252. 0x03050022
  253. 0x03060023
  254. 0x03070024
  255. 0x03080025
  256. 0x04000026
  257. 0x04010027
  258. 0x04020028
  259. 0x04030029
  260. 0x0404002a
  261. 0x0405002b
  262. 0x0406002c
  263. 0x0407002d
  264. 0x0408002e
  265. 0x0500002f
  266. 0x05010030
  267. 0x05020031
  268. 0x05030032
  269. 0x05040033
  270. 0x05050034
  271. 0x05060035
  272. 0x05070036
  273. 0x05080037
  274. 0x06000038
  275. 0x06010039
  276. 0x0602003a
  277. 0x0603003b
  278. 0x0604003c
  279. 0x0605003d
  280. 0x0606003e
  281. 0x0607003f
  282. 0x06080040
  283. 0x07000041
  284. 0x07010042
  285. 0x07020043
  286. 0x07030044
  287. 0x07040045
  288. 0x07050046
  289. 0x07060047
  290. 0x07070048
  291. 0x07080049
  292. 0x0800004a
  293. 0x0801004b
  294. 0x0802004c
  295. 0x0803004d
  296. 0x0804004e
  297. 0x0805004f
  298. 0x08060050
  299. 0x08070051
  300. 0x08080052 >;
  301. autorepeat;
  302. st,mode = <0>;
  303. suspended_rate = <2000000>;
  304. status = "okay";
  305. };
  306. rtc@e0580000 {
  307. status = "okay";
  308. };
  309. serial@e0000000 {
  310. status = "okay";
  311. pinctrl-names = "default";
  312. pinctrl-0 = <>;
  313. };
  314. spi0: spi@e0100000 {
  315. status = "okay";
  316. num-cs = <3>;
  317. cs-gpios = <&gpio1 7 0>, <&spics 0>, <&spics 1>;
  318. stmpe610@0 {
  319. compatible = "st,stmpe610";
  320. reg = <0>;
  321. #address-cells = <1>;
  322. #size-cells = <0>;
  323. spi-max-frequency = <1000000>;
  324. spi-cpha;
  325. pl022,hierarchy = <0>;
  326. pl022,interface = <0>;
  327. pl022,slave-tx-disable;
  328. pl022,com-mode = <0>;
  329. pl022,rx-level-trig = <0>;
  330. pl022,tx-level-trig = <0>;
  331. pl022,ctrl-len = <0x7>;
  332. pl022,wait-state = <0>;
  333. pl022,duplex = <0>;
  334. interrupts = <6 0x4>;
  335. interrupt-parent = <&gpio1>;
  336. irq-trigger = <0x2>;
  337. stmpe_touchscreen {
  338. compatible = "st,stmpe-ts";
  339. ts,sample-time = <4>;
  340. ts,mod-12b = <1>;
  341. ts,ref-sel = <0>;
  342. ts,adc-freq = <1>;
  343. ts,ave-ctrl = <1>;
  344. ts,touch-det-delay = <2>;
  345. ts,settling = <2>;
  346. ts,fraction-z = <7>;
  347. ts,i-drive = <1>;
  348. };
  349. };
  350. m25p80@1 {
  351. compatible = "st,m25p80";
  352. reg = <1>;
  353. spi-max-frequency = <12000000>;
  354. spi-cpol;
  355. spi-cpha;
  356. pl022,hierarchy = <0>;
  357. pl022,interface = <0>;
  358. pl022,slave-tx-disable;
  359. pl022,com-mode = <0x2>;
  360. pl022,rx-level-trig = <0>;
  361. pl022,tx-level-trig = <0>;
  362. pl022,ctrl-len = <0x11>;
  363. pl022,wait-state = <0>;
  364. pl022,duplex = <0>;
  365. };
  366. spidev@2 {
  367. compatible = "spidev";
  368. reg = <2>;
  369. spi-max-frequency = <25000000>;
  370. spi-cpha;
  371. pl022,hierarchy = <0>;
  372. pl022,interface = <0>;
  373. pl022,slave-tx-disable;
  374. pl022,com-mode = <0x2>;
  375. pl022,rx-level-trig = <0>;
  376. pl022,tx-level-trig = <0>;
  377. pl022,ctrl-len = <0x11>;
  378. pl022,wait-state = <0>;
  379. pl022,duplex = <0>;
  380. };
  381. };
  382. wdt@ec800620 {
  383. status = "okay";
  384. };
  385. };
  386. };
  387. };