snowball.dts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. /*
  2. * Copyright 2011 ST-Ericsson AB
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /dts-v1/;
  12. #include "dbx5x0.dtsi"
  13. / {
  14. model = "Calao Systems Snowball platform with device tree";
  15. compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500";
  16. memory {
  17. reg = <0x00000000 0x20000000>;
  18. };
  19. en_3v3_reg: en_3v3 {
  20. compatible = "regulator-fixed";
  21. regulator-name = "en-3v3-fixed-supply";
  22. regulator-min-microvolt = <3300000>;
  23. regulator-max-microvolt = <3300000>;
  24. /* AB8500 GPIOs start from 1 - offset 25 is GPIO26. */
  25. gpio = <&ab8500_gpio 25 0x4>;
  26. startup-delay-us = <5000>;
  27. enable-active-high;
  28. };
  29. gpio_keys {
  30. compatible = "gpio-keys";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. button@1 {
  34. debounce_interval = <50>;
  35. wakeup = <1>;
  36. linux,code = <2>;
  37. label = "userpb";
  38. gpios = <&gpio1 0 0x4>;
  39. };
  40. button@2 {
  41. debounce_interval = <50>;
  42. wakeup = <1>;
  43. linux,code = <3>;
  44. label = "extkb1";
  45. gpios = <&gpio4 23 0x4>;
  46. };
  47. button@3 {
  48. debounce_interval = <50>;
  49. wakeup = <1>;
  50. linux,code = <4>;
  51. label = "extkb2";
  52. gpios = <&gpio4 24 0x4>;
  53. };
  54. button@4 {
  55. debounce_interval = <50>;
  56. wakeup = <1>;
  57. linux,code = <5>;
  58. label = "extkb3";
  59. gpios = <&gpio5 1 0x4>;
  60. };
  61. button@5 {
  62. debounce_interval = <50>;
  63. wakeup = <1>;
  64. linux,code = <6>;
  65. label = "extkb4";
  66. gpios = <&gpio5 2 0x4>;
  67. };
  68. };
  69. leds {
  70. compatible = "gpio-leds";
  71. used-led {
  72. label = "user_led";
  73. gpios = <&gpio4 14 0x4>;
  74. default-state = "on";
  75. linux,default-trigger = "heartbeat";
  76. };
  77. };
  78. soc {
  79. sound {
  80. compatible = "stericsson,snd-soc-mop500";
  81. stericsson,cpu-dai = <&msp1 &msp3>;
  82. stericsson,audio-codec = <&codec>;
  83. };
  84. msp1: msp@80124000 {
  85. status = "okay";
  86. };
  87. msp3: msp@80125000 {
  88. status = "okay";
  89. };
  90. external-bus@50000000 {
  91. status = "okay";
  92. ethernet@0 {
  93. compatible = "smsc,lan9115";
  94. reg = <0 0x10000>;
  95. interrupts = <12 IRQ_TYPE_EDGE_RISING>;
  96. interrupt-parent = <&gpio4>;
  97. vdd33a-supply = <&en_3v3_reg>;
  98. vddvario-supply = <&db8500_vape_reg>;
  99. reg-shift = <1>;
  100. reg-io-width = <2>;
  101. smsc,force-internal-phy;
  102. smsc,irq-active-high;
  103. smsc,irq-push-pull;
  104. };
  105. };
  106. vmmci: regulator-gpio {
  107. gpios = <&gpio6 25 0x4>;
  108. enable-gpio = <&gpio7 4 0x4>;
  109. status = "okay";
  110. };
  111. // External Micro SD slot
  112. sdi0_per1@80126000 {
  113. arm,primecell-periphid = <0x10480180>;
  114. max-frequency = <100000000>;
  115. bus-width = <4>;
  116. mmc-cap-mmc-highspeed;
  117. vmmc-supply = <&ab8500_ldo_aux3_reg>;
  118. vqmmc-supply = <&vmmci>;
  119. cd-gpios = <&gpio6 26 0x4>; // 218
  120. cd-inverted;
  121. status = "okay";
  122. };
  123. // On-board eMMC
  124. sdi4_per2@80114000 {
  125. arm,primecell-periphid = <0x10480180>;
  126. max-frequency = <100000000>;
  127. bus-width = <8>;
  128. mmc-cap-mmc-highspeed;
  129. vmmc-supply = <&ab8500_ldo_aux2_reg>;
  130. status = "okay";
  131. };
  132. uart@80120000 {
  133. status = "okay";
  134. };
  135. uart@80121000 {
  136. status = "okay";
  137. };
  138. uart@80007000 {
  139. status = "okay";
  140. };
  141. i2c@80004000 {
  142. tc3589x@42 {
  143. //compatible = "tc3589x";
  144. reg = <0x42>;
  145. gpios = <&gpio6 25 0x4>;
  146. interrupt-parent = <&gpio6>;
  147. };
  148. tps61052@33 {
  149. //compatible = "tps61052";
  150. reg = <0x33>;
  151. };
  152. };
  153. i2c@80128000 {
  154. lp5521@33 {
  155. // compatible = "lp5521";
  156. reg = <0x33>;
  157. };
  158. lp5521@34 {
  159. // compatible = "lp5521";
  160. reg = <0x34>;
  161. };
  162. bh1780@29 {
  163. // compatible = "rohm,bh1780gli";
  164. reg = <0x33>;
  165. };
  166. };
  167. cpufreq-cooling {
  168. status = "okay";
  169. };
  170. prcmu@80157000 {
  171. db8500-prcmu-regulators {
  172. db8500_vape_reg: db8500_vape {
  173. regulator-name = "db8500-vape";
  174. };
  175. db8500_varm_reg: db8500_varm {
  176. regulator-name = "db8500-varm";
  177. };
  178. db8500_vmodem_reg: db8500_vmodem {
  179. regulator-name = "db8500-vmodem";
  180. };
  181. db8500_vpll_reg: db8500_vpll {
  182. regulator-name = "db8500-vpll";
  183. };
  184. db8500_vsmps1_reg: db8500_vsmps1 {
  185. regulator-name = "db8500-vsmps1";
  186. };
  187. db8500_vsmps2_reg: db8500_vsmps2 {
  188. regulator-name = "db8500-vsmps2";
  189. };
  190. db8500_vsmps3_reg: db8500_vsmps3 {
  191. regulator-name = "db8500-vsmps3";
  192. };
  193. db8500_vrf1_reg: db8500_vrf1 {
  194. regulator-name = "db8500-vrf1";
  195. };
  196. db8500_sva_mmdsp_reg: db8500_sva_mmdsp {
  197. regulator-name = "db8500-sva-mmdsp";
  198. };
  199. db8500_sva_mmdsp_ret_reg: db8500_sva_mmdsp_ret {
  200. regulator-name = "db8500-sva-mmdsp-ret";
  201. };
  202. db8500_sva_pipe_reg: db8500_sva_pipe {
  203. regulator-name = "db8500_sva_pipe";
  204. };
  205. db8500_sia_mmdsp_reg: db8500_sia_mmdsp {
  206. regulator-name = "db8500_sia_mmdsp";
  207. };
  208. db8500_sia_mmdsp_ret_reg: db8500_sia_mmdsp_ret {
  209. regulator-name = "db8500-sia-mmdsp-ret";
  210. };
  211. db8500_sia_pipe_reg: db8500_sia_pipe {
  212. regulator-name = "db8500-sia-pipe";
  213. };
  214. db8500_sga_reg: db8500_sga {
  215. regulator-name = "db8500-sga";
  216. };
  217. db8500_b2r2_mcde_reg: db8500_b2r2_mcde {
  218. regulator-name = "db8500-b2r2-mcde";
  219. };
  220. db8500_esram12_reg: db8500_esram12 {
  221. regulator-name = "db8500-esram12";
  222. };
  223. db8500_esram12_ret_reg: db8500_esram12_ret {
  224. regulator-name = "db8500-esram12-ret";
  225. };
  226. db8500_esram34_reg: db8500_esram34 {
  227. regulator-name = "db8500-esram34";
  228. };
  229. db8500_esram34_ret_reg: db8500_esram34_ret {
  230. regulator-name = "db8500-esram34-ret";
  231. };
  232. };
  233. thermal@801573c0 {
  234. num-trips = <4>;
  235. trip0-temp = <70000>;
  236. trip0-type = "active";
  237. trip0-cdev-num = <1>;
  238. trip0-cdev-name0 = "thermal-cpufreq-0";
  239. trip1-temp = <75000>;
  240. trip1-type = "active";
  241. trip1-cdev-num = <1>;
  242. trip1-cdev-name0 = "thermal-cpufreq-0";
  243. trip2-temp = <80000>;
  244. trip2-type = "active";
  245. trip2-cdev-num = <1>;
  246. trip2-cdev-name0 = "thermal-cpufreq-0";
  247. trip3-temp = <85000>;
  248. trip3-type = "critical";
  249. trip3-cdev-num = <0>;
  250. status = "okay";
  251. };
  252. ab8500 {
  253. ab8500-gpio {
  254. compatible = "stericsson,ab8500-gpio";
  255. };
  256. ab8500-regulators {
  257. ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
  258. regulator-name = "V-DISPLAY";
  259. };
  260. ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
  261. regulator-name = "V-eMMC1";
  262. };
  263. ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
  264. regulator-name = "V-MMC-SD";
  265. };
  266. ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
  267. regulator-name = "V-INTCORE";
  268. };
  269. ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
  270. regulator-name = "V-TVOUT";
  271. };
  272. ab8500_ldo_usb_reg: ab8500_ldo_usb {
  273. regulator-name = "dummy";
  274. };
  275. ab8500_ldo_audio_reg: ab8500_ldo_audio {
  276. regulator-name = "V-AUD";
  277. };
  278. ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
  279. regulator-name = "V-AMIC1";
  280. };
  281. ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
  282. regulator-name = "V-AMIC2";
  283. };
  284. ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
  285. regulator-name = "V-DMIC";
  286. };
  287. ab8500_ldo_ana_reg: ab8500_ldo_ana {
  288. regulator-name = "V-CSI/DSI";
  289. };
  290. };
  291. };
  292. };
  293. };
  294. };