spear320-hmi.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * DTS file for SPEAr320 Evaluation Baord
  4. *
  5. * Copyright 2012 Shiraz Hashim <[email protected]>
  6. */
  7. /dts-v1/;
  8. /include/ "spear320.dtsi"
  9. / {
  10. model = "ST SPEAr320 HMI Board";
  11. compatible = "st,spear320-hmi", "st,spear320";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. memory {
  15. reg = <0 0x40000000>;
  16. };
  17. ahb {
  18. pinmux@b3000000 {
  19. st,pinmux-mode = <4>;
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&state_default>;
  22. state_default: pinmux {
  23. i2c0 {
  24. st,pins = "i2c0_grp";
  25. st,function = "i2c0";
  26. };
  27. ssp0 {
  28. st,pins = "ssp0_grp";
  29. st,function = "ssp0";
  30. };
  31. uart0 {
  32. st,pins = "uart0_grp";
  33. st,function = "uart0";
  34. };
  35. clcd {
  36. st,pins = "clcd_grp";
  37. st,function = "clcd";
  38. };
  39. fsmc {
  40. st,pins = "fsmc_8bit_grp";
  41. st,function = "fsmc";
  42. };
  43. sdhci {
  44. st,pins = "sdhci_cd_12_grp";
  45. st,function = "sdhci";
  46. };
  47. i2s {
  48. st,pins = "i2s_grp";
  49. st,function = "i2s";
  50. };
  51. uart1 {
  52. st,pins = "uart1_grp";
  53. st,function = "uart1";
  54. };
  55. uart2 {
  56. st,pins = "uart2_grp";
  57. st,function = "uart2";
  58. };
  59. can0 {
  60. st,pins = "can0_grp";
  61. st,function = "can0";
  62. };
  63. can1 {
  64. st,pins = "can1_grp";
  65. st,function = "can1";
  66. };
  67. mii0_1 {
  68. st,pins = "rmii0_1_grp";
  69. st,function = "mii0_1";
  70. };
  71. pwm0_1 {
  72. st,pins = "pwm0_1_pin_37_38_grp";
  73. st,function = "pwm0_1";
  74. };
  75. pwm2 {
  76. st,pins = "pwm2_pin_34_grp";
  77. st,function = "pwm2";
  78. };
  79. };
  80. };
  81. clcd@90000000 {
  82. status = "okay";
  83. };
  84. dma@fc400000 {
  85. status = "okay";
  86. };
  87. ehci@e1800000 {
  88. status = "okay";
  89. };
  90. fsmc: flash@4c000000 {
  91. status = "okay";
  92. partition@0 {
  93. label = "xloader";
  94. reg = <0x0 0x80000>;
  95. };
  96. partition@80000 {
  97. label = "u-boot";
  98. reg = <0x80000 0x140000>;
  99. };
  100. partition@1C0000 {
  101. label = "environment";
  102. reg = <0x1C0000 0x40000>;
  103. };
  104. partition@200000 {
  105. label = "dtb";
  106. reg = <0x200000 0x40000>;
  107. };
  108. partition@240000 {
  109. label = "linux";
  110. reg = <0x240000 0xC00000>;
  111. };
  112. partition@E40000 {
  113. label = "rootfs";
  114. reg = <0xE40000 0x0>;
  115. };
  116. };
  117. gpio_keys {
  118. compatible = "gpio-keys";
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. button@1 {
  122. label = "user button 1";
  123. linux,code = <0x100>;
  124. gpios = <&stmpegpio 3 0x4>;
  125. debounce-interval = <20>;
  126. wakeup-source;
  127. };
  128. button@2 {
  129. label = "user button 2";
  130. linux,code = <0x200>;
  131. gpios = <&stmpegpio 2 0x4>;
  132. debounce-interval = <20>;
  133. wakeup-source;
  134. };
  135. };
  136. ohci@e1900000 {
  137. status = "okay";
  138. };
  139. ohci@e2100000 {
  140. status = "okay";
  141. };
  142. pwm: pwm@a8000000 {
  143. status = "okay";
  144. };
  145. sdhci@70000000 {
  146. power-gpio = <&gpiopinctrl 50 1>;
  147. power_always_enb;
  148. status = "okay";
  149. };
  150. smi: flash@fc000000 {
  151. status = "okay";
  152. clock-rate = <50000000>;
  153. flash@f8000000 {
  154. #address-cells = <1>;
  155. #size-cells = <1>;
  156. reg = <0xf8000000 0x800000>;
  157. st,smi-fast-mode;
  158. partition@0 {
  159. label = "xloader";
  160. reg = <0x0 0x10000>;
  161. };
  162. partition@10000 {
  163. label = "u-boot";
  164. reg = <0x10000 0x50000>;
  165. };
  166. partition@60000 {
  167. label = "environment";
  168. reg = <0x60000 0x10000>;
  169. };
  170. partition@70000 {
  171. label = "dtb";
  172. reg = <0x70000 0x10000>;
  173. };
  174. partition@80000 {
  175. label = "linux";
  176. reg = <0x80000 0x310000>;
  177. };
  178. partition@390000 {
  179. label = "rootfs";
  180. reg = <0x390000 0x0>;
  181. };
  182. };
  183. };
  184. spi0: spi@d0100000 {
  185. status = "okay";
  186. };
  187. spi1: spi@a5000000 {
  188. status = "okay";
  189. };
  190. spi2: spi@a6000000 {
  191. status = "okay";
  192. };
  193. usbd@e1100000 {
  194. status = "okay";
  195. };
  196. apb {
  197. gpio0: gpio@fc980000 {
  198. status = "okay";
  199. };
  200. gpio@b3000000 {
  201. status = "okay";
  202. };
  203. i2c0: i2c@d0180000 {
  204. status = "okay";
  205. stmpe811@41 {
  206. compatible = "st,stmpe811";
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. reg = <0x41>;
  210. irq-gpios = <&gpiopinctrl 29 0x4>;
  211. id = <0>;
  212. blocks = <0x5>;
  213. irq-trigger = <0x1>;
  214. stmpegpio: stmpe-gpio {
  215. compatible = "st,stmpe-gpio";
  216. reg = <0>;
  217. gpio-controller;
  218. #gpio-cells = <2>;
  219. gpio,norequest-mask = <0xF3>;
  220. };
  221. stmpe610-ts {
  222. compatible = "stmpe,ts";
  223. reg = <0>;
  224. ts,sample-time = <4>;
  225. ts,mod-12b = <1>;
  226. ts,ref-sel = <0>;
  227. ts,adc-freq = <1>;
  228. ts,ave-ctrl = <1>;
  229. ts,touch-det-delay = <3>;
  230. ts,settling = <4>;
  231. ts,fraction-z = <7>;
  232. ts,i-drive = <1>;
  233. };
  234. };
  235. };
  236. i2c1: i2c@a7000000 {
  237. status = "okay";
  238. };
  239. rtc@fc900000 {
  240. status = "okay";
  241. };
  242. serial@d0000000 {
  243. status = "okay";
  244. pinctrl-names = "default";
  245. pinctrl-0 = <>;
  246. };
  247. serial@a3000000 {
  248. status = "okay";
  249. pinctrl-names = "default";
  250. pinctrl-0 = <>;
  251. };
  252. serial@a4000000 {
  253. status = "okay";
  254. pinctrl-names = "default";
  255. pinctrl-0 = <>;
  256. };
  257. wdt@fc880000 {
  258. status = "okay";
  259. };
  260. };
  261. };
  262. };