spear1340-evb.dts 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. /*
  2. * DTS file for SPEAr1340 Evaluation Baord
  3. *
  4. * Copyright 2012 Viresh Kumar <vireshk@kernel.org>
  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/ "spear1340.dtsi"
  15. / {
  16. model = "ST SPEAr1340 Evaluation Board";
  17. compatible = "st,spear1340-evb", "st,spear1340";
  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. pads_as_gpio {
  29. st,pins = "pads_as_gpio_grp";
  30. st,function = "pads_as_gpio";
  31. };
  32. fsmc {
  33. st,pins = "fsmc_8bit_grp";
  34. st,function = "fsmc";
  35. };
  36. uart0 {
  37. st,pins = "uart0_grp";
  38. st,function = "uart0";
  39. };
  40. i2c0 {
  41. st,pins = "i2c0_grp";
  42. st,function = "i2c0";
  43. };
  44. i2c1 {
  45. st,pins = "i2c1_grp";
  46. st,function = "i2c1";
  47. };
  48. spdif-in {
  49. st,pins = "spdif_in_grp";
  50. st,function = "spdif_in";
  51. };
  52. spdif-out {
  53. st,pins = "spdif_out_grp";
  54. st,function = "spdif_out";
  55. };
  56. ssp0 {
  57. st,pins = "ssp0_grp", "ssp0_cs1_grp", "ssp0_cs2_grp", "ssp0_cs3_grp";
  58. st,function = "ssp0";
  59. };
  60. smi-pmx {
  61. st,pins = "smi_grp";
  62. st,function = "smi";
  63. };
  64. i2s {
  65. st,pins = "i2s_in_grp", "i2s_out_grp";
  66. st,function = "i2s";
  67. };
  68. gmac {
  69. st,pins = "gmii_grp", "rgmii_grp";
  70. st,function = "gmac";
  71. };
  72. cam0 {
  73. st,pins = "cam0_grp";
  74. st,function = "cam0";
  75. };
  76. cam1 {
  77. st,pins = "cam1_grp";
  78. st,function = "cam1";
  79. };
  80. cam2 {
  81. st,pins = "cam2_grp";
  82. st,function = "cam2";
  83. };
  84. cam3 {
  85. st,pins = "cam3_grp";
  86. st,function = "cam3";
  87. };
  88. cec0 {
  89. st,pins = "cec0_grp";
  90. st,function = "cec0";
  91. };
  92. cec1 {
  93. st,pins = "cec1_grp";
  94. st,function = "cec1";
  95. };
  96. sdhci {
  97. st,pins = "sdhci_grp";
  98. st,function = "sdhci";
  99. };
  100. clcd {
  101. st,pins = "clcd_grp";
  102. st,function = "clcd";
  103. };
  104. sata {
  105. st,pins = "sata_grp";
  106. st,function = "sata";
  107. };
  108. pcie {
  109. st,pins = "pcie_grp";
  110. st,function = "pcie";
  111. };
  112. };
  113. };
  114. ahci@b1000000 {
  115. status = "okay";
  116. };
  117. miphy@eb800000 {
  118. status = "okay";
  119. };
  120. dma@ea800000 {
  121. status = "okay";
  122. };
  123. dma@eb000000 {
  124. status = "okay";
  125. };
  126. fsmc: flash@b0000000 {
  127. status = "okay";
  128. partition@0 {
  129. label = "xloader";
  130. reg = <0x0 0x200000>;
  131. };
  132. partition@200000 {
  133. label = "u-boot";
  134. reg = <0x200000 0x200000>;
  135. };
  136. partition@400000 {
  137. label = "environment";
  138. reg = <0x400000 0x100000>;
  139. };
  140. partition@500000 {
  141. label = "dtb";
  142. reg = <0x500000 0x100000>;
  143. };
  144. partition@600000 {
  145. label = "linux";
  146. reg = <0x600000 0xC00000>;
  147. };
  148. partition@1200000 {
  149. label = "rootfs";
  150. reg = <0x1200000 0x0>;
  151. };
  152. };
  153. gmac0: eth@e2000000 {
  154. phy-mode = "rgmii";
  155. status = "okay";
  156. };
  157. sdhci@b3000000 {
  158. status = "okay";
  159. };
  160. smi: flash@ea000000 {
  161. status = "okay";
  162. clock-rate=<50000000>;
  163. flash@e6000000 {
  164. #address-cells = <1>;
  165. #size-cells = <1>;
  166. reg = <0xe6000000 0x800000>;
  167. st,smi-fast-mode;
  168. partition@0 {
  169. label = "xloader";
  170. reg = <0x0 0x10000>;
  171. };
  172. partition@10000 {
  173. label = "u-boot";
  174. reg = <0x10000 0x50000>;
  175. };
  176. partition@60000 {
  177. label = "environment";
  178. reg = <0x60000 0x10000>;
  179. };
  180. partition@70000 {
  181. label = "dtb";
  182. reg = <0x70000 0x10000>;
  183. };
  184. partition@80000 {
  185. label = "linux";
  186. reg = <0x80000 0x310000>;
  187. };
  188. partition@390000 {
  189. label = "rootfs";
  190. reg = <0x390000 0x0>;
  191. };
  192. };
  193. };
  194. ehci@e4800000 {
  195. status = "okay";
  196. };
  197. gpio_keys {
  198. compatible = "gpio-keys";
  199. #address-cells = <1>;
  200. #size-cells = <0>;
  201. button@1 {
  202. label = "wakeup";
  203. linux,code = <0x100>;
  204. gpios = <&gpio1 1 0x4>;
  205. debounce-interval = <20>;
  206. wakeup-source;
  207. };
  208. };
  209. ehci@e5800000 {
  210. status = "okay";
  211. };
  212. i2s0: i2s-play@b2400000 {
  213. status = "okay";
  214. };
  215. i2s1: i2s-rec@b2000000 {
  216. status = "okay";
  217. };
  218. incodec: dir-hifi {
  219. compatible = "dummy,dir-hifi";
  220. status = "okay";
  221. };
  222. ohci@e4000000 {
  223. status = "okay";
  224. };
  225. ohci@e5000000 {
  226. status = "okay";
  227. };
  228. outcodec: dit-hifi {
  229. compatible = "dummy,dit-hifi";
  230. status = "okay";
  231. };
  232. sound {
  233. compatible = "spear,spear-evb";
  234. audio-controllers = <&spdif0 &spdif1 &i2s0 &i2s1>;
  235. audio-codecs = <&incodec &outcodec &sta529 &sta529>;
  236. codec_dai_name = "dir-hifi", "dit-hifi", "sta529-audio", "sta529-audio";
  237. stream_name = "spdif-cap", "spdif-play", "i2s-play", "i2s-cap";
  238. dai_name = "spdifin-pcm", "spdifout-pcm", "i2s0-pcm", "i2s1-pcm";
  239. nr_controllers = <4>;
  240. status = "okay";
  241. };
  242. spdif0: spdif-in@d0100000 {
  243. status = "okay";
  244. };
  245. spdif1: spdif-out@d0000000 {
  246. status = "okay";
  247. };
  248. apb {
  249. adc@e0080000 {
  250. status = "okay";
  251. };
  252. i2s-play@b2400000 {
  253. status = "okay";
  254. };
  255. i2s-rec@b2000000 {
  256. status = "okay";
  257. };
  258. gpio0: gpio@e0600000 {
  259. status = "okay";
  260. };
  261. gpio1: gpio@e0680000 {
  262. status = "okay";
  263. };
  264. gpio@e2800000 {
  265. status = "okay";
  266. };
  267. i2c0: i2c@e0280000 {
  268. status = "okay";
  269. sta529: sta529@1a {
  270. compatible = "st,sta529";
  271. reg = <0x1a>;
  272. };
  273. };
  274. i2c1: i2c@b4000000 {
  275. status = "okay";
  276. eeprom0@56 {
  277. compatible = "st,eeprom";
  278. reg = <0x56>;
  279. };
  280. stmpe801@41 {
  281. compatible = "st,stmpe801";
  282. #address-cells = <1>;
  283. #size-cells = <0>;
  284. reg = <0x41>;
  285. interrupts = <4 0x4>;
  286. interrupt-parent = <&gpio0>;
  287. irq-trigger = <0x2>;
  288. stmpegpio: stmpe_gpio {
  289. compatible = "st,stmpe-gpio";
  290. gpio-controller;
  291. #gpio-cells = <2>;
  292. };
  293. };
  294. };
  295. kbd@e0300000 {
  296. linux,keymap = < 0x00000001
  297. 0x00010002
  298. 0x00020003
  299. 0x00030004
  300. 0x00040005
  301. 0x00050006
  302. 0x00060007
  303. 0x00070008
  304. 0x00080009
  305. 0x0100000a
  306. 0x0101000c
  307. 0x0102000d
  308. 0x0103000e
  309. 0x0104000f
  310. 0x01050010
  311. 0x01060011
  312. 0x01070012
  313. 0x01080013
  314. 0x02000014
  315. 0x02010015
  316. 0x02020016
  317. 0x02030017
  318. 0x02040018
  319. 0x02050019
  320. 0x0206001a
  321. 0x0207001b
  322. 0x0208001c
  323. 0x0300001d
  324. 0x0301001e
  325. 0x0302001f
  326. 0x03030020
  327. 0x03040021
  328. 0x03050022
  329. 0x03060023
  330. 0x03070024
  331. 0x03080025
  332. 0x04000026
  333. 0x04010027
  334. 0x04020028
  335. 0x04030029
  336. 0x0404002a
  337. 0x0405002b
  338. 0x0406002c
  339. 0x0407002d
  340. 0x0408002e
  341. 0x0500002f
  342. 0x05010030
  343. 0x05020031
  344. 0x05030032
  345. 0x05040033
  346. 0x05050034
  347. 0x05060035
  348. 0x05070036
  349. 0x05080037
  350. 0x06000038
  351. 0x06010039
  352. 0x0602003a
  353. 0x0603003b
  354. 0x0604003c
  355. 0x0605003d
  356. 0x0606003e
  357. 0x0607003f
  358. 0x06080040
  359. 0x07000041
  360. 0x07010042
  361. 0x07020043
  362. 0x07030044
  363. 0x07040045
  364. 0x07050046
  365. 0x07060047
  366. 0x07070048
  367. 0x07080049
  368. 0x0800004a
  369. 0x0801004b
  370. 0x0802004c
  371. 0x0803004d
  372. 0x0804004e
  373. 0x0805004f
  374. 0x08060050
  375. 0x08070051
  376. 0x08080052 >;
  377. autorepeat;
  378. st,mode = <0>;
  379. suspended_rate = <2000000>;
  380. status = "okay";
  381. };
  382. rtc@e0580000 {
  383. status = "okay";
  384. };
  385. serial@e0000000 {
  386. status = "okay";
  387. pinctrl-names = "default";
  388. pinctrl-0 = <>;
  389. };
  390. serial@b4100000 {
  391. status = "okay";
  392. pinctrl-names = "default";
  393. pinctrl-0 = <>;
  394. };
  395. spi0: spi@e0100000 {
  396. status = "okay";
  397. num-cs = <3>;
  398. cs-gpios = <&gpiopinctrl 80 0>, <&gpiopinctrl 24 0>,
  399. <&gpiopinctrl 85 0>;
  400. m25p80@0 {
  401. compatible = "m25p80";
  402. reg = <0>;
  403. spi-max-frequency = <12000000>;
  404. spi-cpol;
  405. spi-cpha;
  406. pl022,hierarchy = <0>;
  407. pl022,interface = <0>;
  408. pl022,slave-tx-disable;
  409. pl022,com-mode = <0x2>;
  410. pl022,rx-level-trig = <0>;
  411. pl022,tx-level-trig = <0>;
  412. pl022,ctrl-len = <0x11>;
  413. pl022,wait-state = <0>;
  414. pl022,duplex = <0>;
  415. };
  416. stmpe610@1 {
  417. compatible = "st,stmpe610";
  418. spi-max-frequency = <1000000>;
  419. spi-cpha;
  420. reg = <1>;
  421. pl022,hierarchy = <0>;
  422. pl022,interface = <0>;
  423. pl022,slave-tx-disable;
  424. pl022,com-mode = <0>;
  425. pl022,rx-level-trig = <0>;
  426. pl022,tx-level-trig = <0>;
  427. pl022,ctrl-len = <0x7>;
  428. pl022,wait-state = <0>;
  429. pl022,duplex = <0>;
  430. interrupts = <100 0>;
  431. interrupt-parent = <&gpiopinctrl>;
  432. irq-trigger = <0x2>;
  433. #address-cells = <1>;
  434. #size-cells = <0>;
  435. stmpe_touchscreen {
  436. compatible = "st,stmpe-ts";
  437. ts,sample-time = <4>;
  438. ts,mod-12b = <1>;
  439. ts,ref-sel = <0>;
  440. ts,adc-freq = <1>;
  441. ts,ave-ctrl = <1>;
  442. ts,touch-det-delay = <2>;
  443. ts,settling = <2>;
  444. ts,fraction-z = <7>;
  445. ts,i-drive = <1>;
  446. };
  447. };
  448. spidev@2 {
  449. compatible = "spidev";
  450. reg = <2>;
  451. spi-max-frequency = <25000000>;
  452. spi-cpha;
  453. pl022,hierarchy = <0>;
  454. pl022,interface = <0>;
  455. pl022,slave-tx-disable;
  456. pl022,com-mode = <0x2>;
  457. pl022,rx-level-trig = <0>;
  458. pl022,tx-level-trig = <0>;
  459. pl022,ctrl-len = <0x11>;
  460. pl022,wait-state = <0>;
  461. pl022,duplex = <0>;
  462. };
  463. };
  464. timer@ec800600 {
  465. status = "okay";
  466. };
  467. wdt@ec800620 {
  468. status = "okay";
  469. };
  470. };
  471. };
  472. };